![]() |
GearBlocks
The GearBlocks Lua scripting API
|
A texture. More...
Static Public Member Functions | |
static TextureProxy | Create (int width, int height) |
Create an empty texture. | |
static TextureProxy | Load (string path, string fileName) |
Load a texture. | |
Properties | |
readonly int | Width [get] |
The texture's width. | |
readonly int | Height [get] |
The texture's height. | |
A texture.
Static methods available in Lua via the "Texture" global, for example:
|
static |
Create an empty texture.
width | The texture's width. |
height | The texture's height. |
|
static |
Load a texture.
path | Directory containing the file to load. |
fileName | Name of file to load texture from. |
|
get |
The texture's width.
The width of this texture.
|
get |
The texture's height.
The height of this texture.