formZ SDK | 5.0 API Reference | System | Texture Maps

fz_tmap_ptr

Description

Data structure for a texture map. A texture map is an image file stored on disk, in a format supported by formZ, such as TIFF or Targa. The image of the texture map can be loaded into memory and retrieved by a plugin and used for rendering or other image based operations. The pixels of a texture map, once loaded into memory through the API , are always in rgb format, even if the file is black and white or cmyk. If the texture map file has an alpha channel, it can be loaded separately, or together with the rgb channels. Before using any of the api functions that extract information from a texture map, such as the pixels, or the texture map width and height, the API function fz_tmap_find_file should be called. This function makes sure that the texture map file can be found on disk. if the file cannot be found, the plugin may decide to ignore the texture map or use an alternative texture.

Availability

5.0.0.0

See Also

,

Defined in

fz_tmap_api.h