RenderWare V2.1

Previous Page Index Next Page

RwBool

RwSetSurfaceTexture(char *name);

Description

Sets the current material’s texture to the texture with the given name. RwGetNamedTexture() is used to find the texture. If the named texture is found (either in the dictionary stack or in the file system), the current material’s texture is set to the texture found.

Arguments

name Name of a texture.

Return Value

TRUE if successful, and FALSE otherwise.

Comments

For more information on how the named texture is found, see the description of RwGetNamedTexture().

This function can only be called within the context of an RwModelBegin()RwModelEnd() block.

See Also

RwGetNamedTexture()

RwModelBegin()

RwModelEnd()

RwSetMaterialTexture()

RwSetPolygonTexture()

RwSetSurfaceTextureExt()