natiny_texture_get_width

C
uint32_t natiny_texture_get_width(NatinyTexture texture);

Returns the texture width in pixels.

Parameters

Name Type Description
texture NatinyTexture Texture handle from natiny_texture_create

Returns

Type Description
uint32_t Width in pixels, or 0 for an invalid handle

Example

C
uint32_t w = natiny_texture_get_width(tex);