29 #ifndef __TEXTURECOORDINATE3D_H__
30 #define __TEXTURECOORDINATE3D_H__
55 Inst< MFVec3f> _point = 0 );
68 virtual void render(
int index );
71 virtual void renderForTextureUnit(
int index,
72 unsigned int texture_unit );
76 virtual void renderArray();
79 virtual void disableArray();
82 virtual void setAttributeData ( );
85 virtual void renderVBO ( );
88 virtual void disableVBO ( );
91 virtual bool preRenderCheckFail ( );
106 Vec3f p = point->getValueByIndex( index );
107 return Vec4f( p.x, p.y, p.z, 1 );
Contains the MFVec3f field class.
Header file for X3DTextureCoordinateNode, X3D scene-graph node.
The TextureCoordinate3D node is a geometry property node that specifies a set of 3D texture coordinat...
Definition: TextureCoordinate3D.h:51
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: TextureCoordinate3D.h:118
H3DUniquePtr< MFVec3f > point
A vector of 3d texture coordinates.
Definition: TextureCoordinate3D.h:115
virtual unsigned int nrAvailableTexCoords()
Returns the number of texture coordinates this node can render.
Definition: TextureCoordinate3D.h:94
virtual bool supportsGetTexCoord(unsigned int texture_unit)
Returns true if the getTexCoord function is available for use.
Definition: TextureCoordinate3D.h:100
virtual bool supportsExplicitTexCoords()
Returns true.
Definition: TextureCoordinate3D.h:61
virtual Vec4f getTexCoord(int index, unsigned int texture_unit)
Gets texture coordinate of the given index and texture unit.
Definition: TextureCoordinate3D.h:105
This abstract node type is the base type for all node types which specify texture coordinates.
Definition: X3DTextureCoordinateNode.h:55
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194