Bottle 2D - Lua API 1.0.0
All you need to create games using bottle2D.
|
A texture (an image) that can be loaded from a file. More...
#include <header.hpp>
Public Member Functions | |
Texture () | |
Constructor. | |
number | GetWidth () |
Return the width of the image. | |
number | GetHeight () |
Return the height of the image. | |
Vector2D | GetSize () |
Return the size of the image. | |
nil | LoadFromFile (string Filename) |
Load a texture from a file. |
A texture (an image) that can be loaded from a file.
Texture::Texture | ( | ) |
Constructor.
number Texture::GetHeight | ( | ) |
Return the height of the image.
Vector2D Texture::GetSize | ( | ) |
Return the size of the image.
number Texture::GetWidth | ( | ) |
Return the width of the image.
nil Texture::LoadFromFile | ( | string | Filename | ) |
Load a texture from a file.
Note: the working directory is the mode's root directory.