29 #ifndef __TEXTURECOORDINATE_H__
30 #define __TEXTURECOORDINATE_H__
55 Inst< MFVec2f> _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 ( );
101 const Vec2f &p = point->getValueByIndex( index );
102 return Vec4f( p.x, p.y, 0, 1 );
107 return point->size();
Contains the MFVec2f field class.
Header file for X3DTextureCoordinateNode, X3D scene-graph node.
The TextureCoordinate node is a geometry property node that specifies a set of 2D texture coordinates...
Definition: TextureCoordinate.h:51
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: TextureCoordinate.h:118
H3DUniquePtr< MFVec2f > point
A vector of 2d texture coordinates.
Definition: TextureCoordinate.h:115
virtual Vec4f getTexCoord(int index, unsigned int)
Gets texture coordinate of the given index and texture unit.
Definition: TextureCoordinate.h:100
virtual unsigned int nrAvailableTexCoords()
Returns the number of texture coordinates this node can render.
Definition: TextureCoordinate.h:106
virtual bool supportsGetTexCoord(unsigned int)
Returns true if the getTexCoord function is available for use.
Definition: TextureCoordinate.h:95
virtual bool supportsExplicitTexCoords()
Returns true.
Definition: TextureCoordinate.h:61
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