CanvasWrapper
void Set Position( Vector2 pos)
Parameter | Type | Description |
---|---|---|
pos | Vector2 | — |
Vector2F Get Position Float( )
void Set Color( Linear Color color)
Parameter | Type | Description |
---|---|---|
color | LinearColor | — |
LinearColor Get Color( )
void Draw Box( Vector2 size)
Parameter | Type | Description |
---|---|---|
size | Vector2 | — |
void Fill Box( Vector2 size)
Parameter | Type | Description |
---|---|---|
size | Vector2 | — |
void Fill Triangle( Vector2 p1, Vector2 p2, Vector2 p3, Linear Color color)
Parameter | Type | Description |
---|---|---|
p1 | Vector2 | — |
p2 | Vector2 | — |
p3 | Vector2 | — |
color | LinearColor | — |
void Draw String( std::string text, float x Scale, float y Scale, bool drop Shadow, bool wrap Text=false)
Parameter | Type | Description |
---|---|---|
text | std::string | — |
xScale | float | — |
yScale | float | — |
dropShadow | bool | — |
wrapText | bool | — |
Vector2F Get String Size( std::string text, float x Scale=1, float y Scale=1)
Parameter | Type | Description |
---|---|---|
text | std::string | — |
xScale | float | — |
yScale | float | — |
void Draw Line( Vector2 start, Vector2 end, float width)
void Draw Rect( Vector2 start, Vector2 end)
void Draw Texture( Image Wrapper *img, float scale)
Parameter | Type | Description |
---|---|---|
img | ImageWrapper | — |
scale | float | — |
void Draw Tile( Image Wrapper *img, float XL, float YL, float U, float V, float UL, float VL, Linear Color Color, unsigned int Clip Tile, unsigned char Blend)
Parameter | Type | Description |
---|---|---|
img | ImageWrapper | — |
XL | float | — |
YL | float | — |
U | float | — |
V | float | — |
UL | float | — |
VL | float | — |
Color | LinearColor | — |
ClipTile | unsigned int | — |
Blend | unsigned char | — |
void Draw Rotated Tile( Image Wrapper *img, Rotator &Rotation, float XL, float YL, float U, float V, float UL, float VL, float Anchor X, float Anchor Y)
Parameter | Type | Description |
---|---|---|
img | ImageWrapper | — |
Rotation | Rotator | — |
XL | float | — |
YL | float | — |
U | float | — |
V | float | — |
UL | float | — |
VL | float | — |
AnchorX | float | — |
AnchorY | float | — |
Vector2 Get Position( )
Vector2 Project( Vector location)
Parameter | Type | Description |
---|---|---|
location | Vector | — |
Vector2F Project F( Vector location)
Parameter | Type | Description |
---|---|---|
location | Vector | — |