63 Color( Inst< MFColor> _color = 0,
64 Inst< SFNode > _metadata = 0 );
71 RGB c = color->getValueByIndex( i );
72 return RGBA( c.r, c.g, c.b, 1 );
78 const RGB &c = color->getValueByIndex( index );
79 glColor3f( c.r, c.g, c.b );
84 virtual void renderArray();
87 virtual void disableArray();
95 virtual void setAttributeData ( );
98 virtual void renderVBO ( );
101 virtual void disableVBO ( );
104 virtual bool preRenderCheckFail ( );
Contains the MFColor field class.
Header file for X3DColorNode, X3D scene-graph node.
This node defines a set of RGB colours to be used in the fields of another node.
Definition: Color.h:60
virtual unsigned int nrAvailableColors()
Returns the number of color this color node can render.
Definition: Color.h:90
virtual RGBA getColor(unsigned int i)
Get the color at index i.
Definition: Color.h:70
H3DUniquePtr< MFColor > color
A vector of Color values.
Definition: Color.h:111
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: Color.h:114
virtual void render(int index)
Perform the OpenGL commands to render a color given the index of the color.
Definition: Color.h:77
This is the base node type for color specifications in X3D.
Definition: X3DColorNode.h:44
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194