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 to create an empty texture. | |
Texture (string filename) | |
Create a texture from a file. | |
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 to create an empty texture.
Texture::Texture | ( | string | filename | ) |
Create a texture from a file.
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.