RenderWare V2.1

Previous Page Index Next Page

RwTexture *

RwGetPolygonTexture(RwPolygon3d *polygon);

Description

Retrieves the texture of the polygon’s material.

Arguments

polygon Pointer to the polygon.

Return Value

A pointer to the texture of the polygon’s material. NULL is returned if there is no texture associated with the polygon’s material or if there is an error. Errors can be checked for using RwGetError().

See Also

RwGetError()

RwGetMaterialTexture()

RwSetPolygonTexture()