natiny_surface_get_width

C
uint32_t natiny_surface_get_width(NatinySurface surf);

Returns the surface width in pixels.

Parameters

Name Type Description
surf NatinySurface Surface handle from natiny_surface_create

Returns

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

Example

C
uint32_t w = natiny_surface_get_width(rt);