RenderWare V2.1

Previous Page Index Next Page

RwMaterial *

RwCurrentMaterial(void);

Description

Retrieves the current material.

Arguments

None.

Return Value

A pointer to the current material if successful, and NULL otherwise.

Comments

The material returned by RwCurrentMaterial() must not be destroyed with RwDestroyMaterial(). The material stack is destroyed by RenderWare when RwClose() is called.

See Also

RwClose()

RwCreateMaterial()

RwDestroyMaterial()

RwPopCurrentMaterial()

RwPushCurrentMaterial()