H3D API  2.4.1
MultiTextureCoordinate.h
Go to the documentation of this file.
1 // Copyright 2004-2019, SenseGraphics AB
3 //
4 // This file is part of H3D API.
5 //
6 // H3D API is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // H3D API is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with H3D API; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // A commercial license is also available. Please contact us at
21 // www.sensegraphics.com for more information.
22 //
23 //
27 //
29 #ifndef __MULTITEXTURECOORDINATE_H__
30 #define __MULTITEXTURECOORDINATE_H__
31 
34 #include <H3D/MFNode.h>
35 
36 namespace H3D {
37 
77  public:
78 
81  typedef DependentMFNode<
84  Field,
87 
89  MultiTextureCoordinate( Inst< SFNode > _metadata = 0,
90  Inst< MFTextureCoordinateNode > _texCoord = 0 );
91 
94  virtual bool supportsExplicitTexCoords();
95 
98  virtual bool supportsTexGen();
99 
102  virtual void render( int index );
103 
105  virtual void renderForTextureUnit( int index,
106  unsigned int texture_unit );
107 
109  virtual unsigned int nrAvailableTexCoords();
110 
113  virtual void renderArray();
114 
117  virtual void renderArrayForTextureUnit( unsigned int texture_unit );
118 
120  virtual void disableArrayForTextureUnit( unsigned int texture_unit );
121 
124  virtual void renderVertexBufferObject();
125 
128  virtual void renderVertexBufferObjectForTextureUnit(
129  unsigned int texture_unit );
130 
132  virtual void disableVertexBufferObjectForTextureUnit(
133  unsigned int texture_unit );
134 
136  virtual void startTexGen();
137 
139  virtual void stopTexGen();
140 
143  virtual void startTexGenForTextureUnit( unsigned int texture_unit);
144 
146  virtual void stopTexGenForTextureUnit( unsigned int texture_unit );
147 
149  virtual bool supportsGetTexCoord( unsigned int texture_unit );
150 
152  virtual Vec4f getTexCoord( int index, unsigned int texture_unit );
153 
157  H3DUniquePtr< MFTextureCoordinateNode > texCoord;
158 
161  };
162 }
163 
164 #endif
Contains the DependentSFNode and DependentMFNode template classes.
Contains the MFNode class.
Header file for X3DTextureCoordinateNode, X3D scene-graph node.
DependentMFNode are modified TypedMFNode fields where the field dirty status is dependent on fields i...
Definition: DependentNodeFields.h:336
Class used for specifying a field member of a node in a DependentSFNode or DependentMFNode specificat...
Definition: DependentNodeFields.h:48
The Field class.
Definition: Field.h:46
MultiTextureCoordinate supplies multiple texture coordinates per vertex.
Definition: MultiTextureCoordinate.h:76
DependentMFNode< X3DTextureCoordinateNode, FieldRef< X3DGeometricPropertyNode, Field, &X3DTextureCoordinateNode::propertyChanged >, true > MFTextureCoordinateNode
The MFTextureCoordinateNode is dependent on the propertyChanged field of the contained X3DTextureCoor...
Definition: MultiTextureCoordinate.h:86
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: MultiTextureCoordinate.h:160
H3DUniquePtr< MFTextureCoordinateNode > texCoord
The X3DTextureCoordinate nodes to use for each texture unit.
Definition: MultiTextureCoordinate.h:157
This is the base node type for all geometric property node types defined in X3D.
Definition: X3DGeometricPropertyNode.h:43
H3DUniquePtr< Field > propertyChanged
Field that indicated whether the properties have changed.
Definition: X3DGeometricPropertyNode.h:53
This abstract node type is the base type for all node types which specify texture coordinates.
Definition: X3DTextureCoordinateNode.h:55
Vec4f()
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