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

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

#include <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
 values that will be passed to the shader as per-vertex information.
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.


Member Data Documentation

auto_ptr< SFInt32 > H3D::FloatVertexAttribute::numComponents
 

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]

auto_ptr< MFFloat > H3D::FloatVertexAttribute::value
 

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


Generated on Thu Aug 24 12:39:11 2006 for H3D API by  doxygen 1.4.5