RenderWare V2.1

Previous Page Index Next Page

RwTexture *

RwMaskTexture(RwTexture *texture, RwRaster *mask);

Description

Masks the texture with the mask raster mask.

Arguments

texture Pointer to the texture.

mask Pointer to the mask raster.

Return Value

The argument texture if successful, and NULL otherwise.

Comments

The mask raster must of exactly the same width and height as the texture. If the texture is a multi-frame texture, the mask’s height must be equal to n * 128, where n is the number of frames in the texture.

The mask raster must have been previously created with RwReadMaskRaster().

Masking a texture is a destructive operation. The masking cannot be undone and applies to all materials referencing the masked texture.

See Also

RwCreateRaster()

RwCreateTexture()

RwReadMaskRaster()

RwSetSurfaceTextureExt()

RwSetTextureRaster()