formZ SDK | 5.0 API Reference | System | Texture Maps

# fz_tmap_get_info

Description

Gets basic information about the texture map : width, height and whether an alpha channel is present. The width and height parameters are the original (uncropped) dimensions of the texture.
fz_tmap_find_file should be called before using this function.

Plugin Prototype

fzrt_error_td fz_tmap_get_info(

fz_tmap_ptr | tmap,
fzrt_int * | width,
fzrt_int * | height,
fzrt_boolean * | has_alpha )

Parameters

tmap [Input]

the texture map for which to get the info

width [Result]

the width of the texture map in # of pixels

height [Result]

the height of the texture map in # of pixels

has_alpha [Result]

TRUE, if the texture map has an alpha channel, FALSE otherwise

Returns

error codes

Availability

5.0.0.0

See Also

Function Set

fz_tmap_fset

Defined in

fz_tmap_api.h