#include <ColorRGBA.h>
Inheritance diagram for H3D::ColorRGBA:

Public Member Functions | |
| ColorRGBA (Inst< MFColorRGBA > _color=0, Inst< SFNode > _metadata=0) | |
| Constructor. | |
| virtual void | render (int index) |
| Perform the OpenGL commands to render a color given the index of the color. | |
| virtual void | renderArray () |
| Perform the OpenGL commands to render all verties as a vertex array. | |
| virtual void | disableArray () |
| Disable the array state enabled in renderArray(). | |
| virtual unsigned int | nrAvailableColors () |
| Returns the number of color this color node can render. | |
Public Attributes | |
| auto_ptr< MFColorRGBA > | color |
| A vector of ColorRGBA values. | |
Static Public Attributes | |
| static H3DNodeDatabase | database |
| The H3DNodeDatabase for this node. | |
RGBA color nodes are only used to specify multiple colours with alpha for a single geometric shape, such as colours for the faces or vertices of an IndexedFaceSet. A Material node is used to specify the overall material parameters of lit geometry. If both a Material node and a ColorRGBA node are specified for a geometric shape, the colours shall replace the diffuse and transparency components of the material.
RGB or RGBA textures take precedence over colours; specifying both an RGB or RGBA texture and a Color node for geometric shape will result in the Color node being ignored.
|
|
Perform the OpenGL commands to render a color given the index of the color. Installs the normal as a glColor4f. Reimplemented from H3D::X3DColorNode. |
|
|
A vector of ColorRGBA values.
Access type: inputOutput |
1.4.5