ShitEngine 1.4.2
基于 C++20 与 SDL3 的轻量级 2D 游戏引擎
载入中...
搜索中...
未找到
Rect结构体 参考

Rectangle struct (float precision), with SDL_FRect conversion 更多...

#include <Math.h>

Public 成员函数

 Rect ()=default
 Rect (float x, float y, float w, float h)
SDL_FRect toSDL () const

静态 Public 成员函数

static Rect fromSDL (const SDL_FRect &r)

Public 属性

float x = 0.0f
float y = 0.0f
float w = 0.0f
float h = 0.0f

详细描述

Rectangle struct (float precision), with SDL_FRect conversion

构造及析构函数说明

◆ Rect() [1/2]

Rect ( )
default

◆ Rect() [2/2]

Rect ( float x,
float y,
float w,
float h )
inline

成员函数说明

◆ fromSDL()

Rect fromSDL ( const SDL_FRect & r)
static

◆ toSDL()

SDL_FRect toSDL ( ) const

类成员变量说明

◆ h

float h = 0.0f

◆ w

float w = 0.0f

◆ x

float x = 0.0f

◆ y

float y = 0.0f

该结构体的文档由以下文件生成: