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

The TextureCoordinate3D node is a geometry property node that specifies a set of 3D texture coordinates used by vertex-based geometry nodes (EXAMPLE IndexedFaceSet and ElevationGrid) to map textures to vertices. More...

#include <H3D/TextureCoordinate3D.h>

Inheritance diagram for H3D::TextureCoordinate3D:

Inheritance graph

List of all members.

Public Member Functions

 TextureCoordinate3D (Inst< SFNode > _metadata=0, Inst< MFVec3f > _point=0)
 Constructor.
virtual bool supportsExplicitTexCoords ()
 Returns true.
virtual void render (int index)
 Perform the OpenGL commands to render a texture coordinate given the index of the texture coordinate.
virtual void renderForTextureUnit (int index, unsigned int texture_unit)
 Render the texture transform for the currently active texture unit.
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 nrAvailableTexCoords ()
 Returns the number of texture coordinates this node can render.

Public Attributes

auto_ptr< MFVec3fpoint
 A vector of 3d texture coordinates.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

The TextureCoordinate3D node is a geometry property node that specifies a set of 3D texture coordinates used by vertex-based geometry nodes (EXAMPLE IndexedFaceSet and ElevationGrid) to map textures to vertices.

Internal routes:
TextureCoordinate3D.dot

Member Function Documentation

void TextureCoordinate3D::render ( int  index  )  [virtual]

Perform the OpenGL commands to render a texture coordinate given the index of the texture coordinate.

Installs the texture coordinate as a glTexCoord2f

Reimplemented from H3D::X3DTextureCoordinateNode.

References point.

void TextureCoordinate3D::renderArray (  )  [virtual]

Perform the OpenGL commands to render all verties as a vertex array.

Reimplemented from H3D::X3DTextureCoordinateNode.

References point.


Member Data Documentation

A vector of 3d texture coordinates.

Access type: inputOutput

TextureCoordinate3D_point.dot

Referenced by render(), renderArray(), renderForTextureUnit(), and TextureCoordinate3D().


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

Generated on Fri Nov 7 10:31:11 2008 for H3D API by  doxygen 1.5.7