formZ SDK | 5.0 API Reference | System | Texture Maps

# fz_tmap_set_crop_rect

Description

Sets the cropping rectangle of a texture map. This is a rectangle which specifies a sub portion of the texture. if the cropping rectangle exceeds the actual size of the texture, an error is returned. If NULL is passed for the rect argument, the cropping rectangle of the texture is set to no cropping (i.e. the full texture).
fz_tmap_find_file should be called before using this function.

Plugin Prototype

fzrt_error_td fz_tmap_set_crop_rect(

fz_tmap_ptr | tmap,
fzrt_rect * | rect )

Parameters

tmap [Input]

the texture map for which to set the cropping rectangle

rect [Input]

the cropping rectangle

Returns

error codes

Availability

5.0.0.0

See Also

Function Set

fz_tmap_fset

Defined in

fz_tmap_api.h