Bottle 2D - Lua API 1.0.0
All you need to create games using bottle2D.
|
A TexturedArea is used to render a texture. More...
#include <header.hpp>
Public Member Functions | |
Vector2D | GetAreaSize () |
Get the current size of the textured area. | |
nil | SetAreaSize (Vector2D newSize) |
Set the current size of the area. | |
nil | SetTextureSpeed (Vector2D speed) |
Set the texture speed. | |
Vector2D | GetTextureSpeed () |
Get the texture speed. | |
nil | SetTextureOffset (Vector2D offset) |
Set the offset of the texture. | |
Vector2D | GetTextureOffset () |
Get the offset of the texture. | |
Public Attributes | |
Vector2D | size |
Change the area size. | |
Vector2D | textureSpeed |
Change the area size. | |
Vector2D | textureOffset |
Change the offset of the texture. |
A TexturedArea is used to render a texture.
It can be resised. To create a Shape, you should use Group::CreateShape.
Vector2D TexturedArea::GetAreaSize | ( | ) |
Get the current size of the textured area.
Vector2D TexturedArea::GetTextureOffset | ( | ) |
Get the offset of the texture.
Vector2D TexturedArea::GetTextureSpeed | ( | ) |
Get the texture speed.
This could be used to easily animate a textured aread.
nil TexturedArea::SetAreaSize | ( | Vector2D | newSize | ) |
Set the current size of the area.
nil TexturedArea::SetTextureOffset | ( | Vector2D | offset | ) |
Set the offset of the texture.
nil TexturedArea::SetTextureSpeed | ( | Vector2D | speed | ) |
Set the texture speed.
This could be used to easily animate a textured aread.
Change the area size.
Reimplemented from Sprite.
Change the offset of the texture.
Change the area size.