H3D::FloatVertexAttribute Class Reference
[X3D node classes.]

The FloatVertexAttribute node defines a set of per-vertex single precision floating point attributes. More...

#include <H3D/FloatVertexAttribute.h>

Inheritance diagram for H3D::FloatVertexAttribute:

Inheritance graph

List of all members.

Public Member Functions

 FloatVertexAttribute (Inst< SFNode > _metadata=0, Inst< SFString > _name=0, Inst< MFFloat > _value=0, Inst< SFInt32 > _numComponents=0)
 Constructor.
virtual void render (int value_index)
 Perform the OpenGL commands to set the vertex attribute with the given index.
virtual void renderArray ()
 Perform the OpenGL commands to set the vertex attributes as a an vertex attribute array on the attribute with the currently set attribute index.
virtual void disableArray ()
 Disable the array state enabled in renderArray().

Public Attributes

auto_ptr< MFFloatvalue
 The value field specifies an arbitrary collection of floating point.
auto_ptr< SFInt32numComponents
 The numComponents field specifies how many consecutive floating point values should be grouped together per vertex.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

The FloatVertexAttribute node defines a set of per-vertex single precision floating point attributes.

The numComponents field specifies how many consecutive floating point values should be grouped together per vertex. The length of the value field shall be a multiple of numComponents.

The value field specifies an arbitrary collection of floating point values that will be passed to the shader as per-vertex information.


Member Function Documentation

void FloatVertexAttribute::render ( int  value_index  )  [virtual]

Perform the OpenGL commands to set the vertex attribute with the given index.

value_index is the index of the value in the value field that is to be used.

Reimplemented from H3D::X3DVertexAttributeNode.

References numComponents, and value.

void FloatVertexAttribute::renderArray (  )  [virtual]

Perform the OpenGL commands to set the vertex attributes as a an vertex attribute array on the attribute with the currently set attribute index.

Perform the OpenGL commands to set the vertex attributes as a an vertex attribute array.

Reimplemented from H3D::X3DVertexAttributeNode.

References numComponents, and value.


Member Data Documentation

The numComponents field specifies how many consecutive floating point values should be grouped together per vertex.

Access type: inputOutput
Default value: 0
Valid range: [1-4]

Referenced by FloatVertexAttribute(), render(), and renderArray().

The value field specifies an arbitrary collection of floating point.

values that will be passed to the shader as per-vertex information. The length of the value field shall be a multiple of numComponents.

Access type: inputOutput

Referenced by render(), and renderArray().


The documentation for this class was generated from the following files:

Generated on Fri Nov 7 10:30:07 2008 for H3D API by  doxygen 1.5.7