Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoTextureUnit.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : R. ALBOU (Oct 2002)
22**=======================================================================*/
23
24 /* include files */
25#ifndef _SO_TEXTURE_UNIT_
26#define _SO_TEXTURE_UNIT_
27
28#include <Inventor/fields/SoSFUInt32.h>
29#include <Inventor/fields/SoSFEnum.h>
30
31#include <Inventor/nodes/SoNode.h>
32
33#include <Inventor/elements/SoTextureUnitElement.h>
34
35class SoGLRenderAction ;
36class SoCallbackAction ;
37
38/*----------------------------------------------------------------------------*/
39
112class SoTextureUnit : public SoNode {
113 SO_NODE_HEADER(SoTextureUnit) ;
114
115
116 public:
117
125
130
136 static unsigned int getMaxTextureUnit(SoState* state=NULL) ;
137
138 private:
139 virtual void doAction(SoAction *action);
140 virtual void callback(SoCallbackAction *action) ;
141 virtual void GLRender(SoGLRenderAction *action) ;
142
143
144 /*----------------------------------------------------------------------------*/
145
146 private:
147 static void initClass() ;
148 static void exitClass() ;
149
150 private:
151 // Destructor
152 virtual ~SoTextureUnit() ;
153
154private:
155#if 1
157 SoDEPRECATED_ENUM(10000,"No more used.")
158 enum MappingMethod {
162 IMAGE_MAPPING
163 } ;
164SoDEPRECATED
166 SoSFEnum mappingMethod;
167#endif
169} ;
170/*----------------------------------------------------------------------------*/
171
172#endif /* _SO_TEXTURE_UNIT_ */
173
Abstract base class for all actions.
Definition SoAction.h:132
Performs a generic traversal of a scene graph or path.
Renders a scene graph using Open Inventor's Render Engine.
Abstract base class for all database nodes.
Definition SoNode.h:145
Field containing an enumerated value.
Definition SoSFEnum.h:89
Field containing an unsigned int32_t integer.
Definition SoSFUInt32.h:80
Traversal state.
Definition SoState.h:74
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Node that specif...
SoTextureUnit()
Constructor.
SoSFUInt32 unit
Specifies the texture unit identifier.
static unsigned int getMaxTextureUnit(SoState *state=NULL)
Returns the maximum number of texture units.