1#ifndef COIN_SOMULTITEXTUREENABLEDELEMENT_H
2#define COIN_SOMULTITEXTUREENABLEDELEMENT_H
36#include <Inventor/elements/SoElement.h>
37#include <Inventor/elements/SoSubElement.h>
39class 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;
SoElement is the abstract base class for all elements.
Definition: SoElement.h:43
virtual SoElement * copyMatchInfo(void) const =0
virtual SbBool matches(const SoElement *element) const =0
Definition: SoElement.cpp:608
static void initClass(void)
Definition: SoElement.cpp:506
virtual void init(SoState *state)
Definition: SoElement.cpp:552
virtual void push(SoState *state)
Definition: SoElement.cpp:569
The SoMultiTextureEnabledElement class is an element which stores whether texturing is enabled or not...
Definition: SoMultiTextureEnabledElement.h:41
static void set(SoState *state, SoNode *node, const SbBool enabled)
Definition: SoMultiTextureEnabledElement.h:89
static void set(SoState *state, const SbBool enabled)
Definition: SoMultiTextureEnabledElement.h:84
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:56
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:44