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

Defines a set of per-vertex 44 matrix attributes. More...

#include <H3D/Matrix4VertexAttribute.h>

Inheritance diagram for H3D::Matrix4VertexAttribute:

Inheritance graph

List of all members.

Public Member Functions

 Matrix4VertexAttribute (Inst< SFNode > _metadata=0, Inst< SFString > _name=0, Inst< MFMatrix4f > _value=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 given index.
virtual void disableArray ()
 Disable the array state enabled in renderArray().

Public Attributes

auto_ptr< MFMatrix4fvalue
 The value field specifies an arbitrary collection of Matrix4f values that will be passed to the shader as per-vertex information.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

Defines a set of per-vertex 44 matrix attributes.

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


Member Function Documentation

void Matrix4VertexAttribute::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 and attrib_index is the index of the attribute to set.

Reimplemented from H3D::X3DVertexAttributeNode.

References value.

void Matrix4VertexAttribute::renderArray (  )  [virtual]

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

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

Reimplemented from H3D::X3DVertexAttributeNode.

References value.


Member Data Documentation

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

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:34 2008 for H3D API by  doxygen 1.5.7