bmap_for_texture (STRING* name)
Returns a
BMAP*
pointer to a level texture. This way, the content of textures can be replaced.
Parameters:
name
The name of the texture in WED. Only the first 15 characters are significant.
Returns:
BMAP*
pointer to a bmap if operation was successfully, otherwise NULL.
Speed:
Slow
Remarks:
Functions like
media_play
etc. can use the
BMAP*
pointer for playing movies on level textures.
When
tex_share
is set, the function searches the level blocks and all map entities. Otherwise it searches the level block textures only.
Example:
BMAP
*
bm = bmap_for_texture("stone");
See also:
bmap_for_screen
,
bmap_for_entity
► latest version online