MaterialState Struct Reference
[Nodes]

Contains information about material colour and how the material is propagated through the scene graph. More...

#include <AppearanceStates.h>

List of all members.

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.
MaterialStateoperator= (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.


Detailed Description

Contains information about material colour and how the material is propagated through the scene graph.

Materials in Scene2D may be inherited from parent Nodes, this is specified in the MaterialState of a Node.


Member Enumeration Documentation

Material inheritance mode.

Contains the following:

Enumerator:
HAS_MATERIAL  Material defines its own colour
INHERIT_FROM_PARENT  This material mode will use


The documentation for this struct was generated from the following file:

Generated on Fri Feb 22 15:56:21 2008 for Scene2D by  doxygen 1.5.5