natiny.texture.get_height

Lua
natiny.texture.get_height(tex) -> height

Returns the texture height in pixels.

Parameters

Name Type Description
tex number Texture handle from natiny.texture.create

Returns

Type Description
number Height in pixels, or 0 for an invalid handle

Example

Lua
local h = natiny.texture.get_height(tex)