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:

Example:

BMAP* bm = bmap_for_texture("stone");

See also:

bmap_for_screen, bmap_for_entity

► latest version online