formZ SDK | 5.0 API Reference | System | Texture Maps

# fz_tmap_set_floc

Description

Sets the file locator (floc) of a texture map. The floc argument needs to be allocated and disposed by the calling code via the API functions fzrt_file_floc_init and . This function call effectively changes, which file a texture map is associated with. If the floc identifies a file which is not a supported image file, an error is returned. The cropping information is always reset to the full texture width and height.

Plugin Prototype

fzrt_error_td fz_tmap_set_floc(

fz_tmap_ptr | tmap,
fzrt_floc_ptr | floc )

Parameters

tmap [Input]

the texture map for which to set the file locator

floc [Input]

the file locator

Returns

error codes

Availability

5.0.0.0

See Also

fz_tmap_get_floc_func

Function Set

fz_tmap_fset

Defined in

fz_tmap_api.h