#include <AppearanceStates.h>
Public Types | |
enum | MaterialMode { HAS_MATERIAL, INHERIT_FROM_PARENT } |
Material inheritance mode. More... | |
Public Member Functions | |
MaterialState () | |
Construct a new MaterialState. | |
MaterialState (MaterialMode behaviour) | |
Construct a new MaterialState with the specified behaviour. | |
MaterialState (const MaterialState &ms) | |
Copy constructor for MaterialState. | |
MaterialState (const Colour4f &col) | |
Construct a new MaterialState with a specified colour. | |
MaterialState (float r, float g, float b, float a) | |
Construct a new MaterialState with a specified colour. | |
MaterialState & | operator= (const MaterialState &r) |
Assignment operator. | |
void | set () const |
Apply this material to the rendering state. | |
void | setBehaviour (MaterialMode mode) |
Set the behaviour for this MaterialState. | |
MaterialMode | behaviour () const |
Get the behaviour for this MaterialState. | |
Public Attributes | |
Colour4f | colour |
Current colour of this MaterialState. |
Materials in Scene2D may be inherited from parent Nodes, this is specified in the MaterialState of a Node.