RenderWare V2.1

Previous Page Index Next Page

RwUV *

RwGetPolygonUV(RwPolygon3d *polygon, RwUV *uvarray);

Description

Retrieves the texture (U, V) coordinates of the vertices of the polygon.

Arguments

polygon Pointer to the polygon.

uvarray Pointer to an array of RwUV structures that will receive the texture coordinates of the polygon’s vertices.

Return Value

The argument uvarray if successful, and NULL otherwise.

Comments

The size of the array uvarray must match the number of the vertices of the polygon.

See Also

RwCubicTexturizeClump()

RwEnvMapClump()

RwGetClumpVertexUV()

RwGetPolygonNumSides()

RwSetClumpVertexUV()

RwSetPolygonUV()

RwSphericalTexturizeClump()

RwVertexExt()