1 #ifndef COIN_SOMULTITEXTUREENABLEDELEMENT_H
2 #define COIN_SOMULTITEXTUREENABLEDELEMENT_H
36 #include <Inventor/elements/SoElement.h>
37 #include <Inventor/elements/SoSubElement.h>
39 class SoMultiTextureEnabledElementP;
60 static void set(
SoState * state,
63 const SbBool enabled);
65 static SbBool
get(
SoState * state,
const int unit = 0);
66 virtual void setElt(
const int unit,
const int mode);
72 static const SbBool * getEnabledUnits(
SoState * state,
74 static const Mode * getActiveUnits(
SoState * state,
77 static void enableRectangle(
SoState * state,
SoNode * node,
const int unit = 0);
78 static void enableCubeMap(
SoState * state,
SoNode * node,
const int unit = 0);
79 static void enableTexture3(
SoState * state,
SoNode * node,
const int unit = 0);
80 static Mode getMode(
SoState * state,
const int unit = 0);
81 static void disableAll(
SoState * state);
85 const SbBool enabled) {
86 set(state, NULL, 0, enabled);
90 const SbBool enabled) {
91 set(state, node, 0, enabled);
95 int getMaxUnits()
const;
96 SbBool isEnabled(
const int unit)
const;
97 Mode getMode(
const int unit)
const;
100 SoMultiTextureEnabledElementP * pimpl;
103 #endif // !COIN_SOMULTITEXTUREENABLEDELEMENT_H