RenderWare V2.1

Previous Page Index Next Page

RwTexture *

RwCreateTexture(RwRaster *raster);

Description

Creates a new texture and sets its raster to raster.

Arguments

raster Pointer to the raster.

Return Value

A pointer to the newly created texture if successful, and NULL otherwise.

Comments

The specified raster must have a width of 128 pixels and a height of 128 pixels (or n * 128 pixels for multi-frame textures where n is the number of frames). The raster will not be resized if it not already of the correct size.

Rasters cannot be shared between textures. It is an error to specify a raster already selected into a texture.

See Also

RwBitmapRaster()

RwCreateRaster()

RwDestroyTexture()

RwFindNamedTexture()

RwGetNamedTexture()

RwMaskTexture()

RwReadMaskRaster()

RwReadNamedTexture()

RwReadRaster()

RwReadTexture()

RwSetTextureRaster()