Texture:getDimensions
Returns the dimensions of the Texture.
width, height, depth = Texture:getDimensions(mipmap)
Arguments
Name | Type | Default | Description |
mipmap | number | 1 | The mipmap level to get the dimensions of. |
Returns
Name | Type | Description |
width | number | The width of the Texture, in pixels. |
height | number | The height of the Texture, in pixels. |
depth | number | The number of images stored in the Texture, for non-2D textures. |
See also
Texture