3#ifndef _SO_STENCIL_BITS_ELEMENT_
4#define _SO_STENCIL_BITS_ELEMENT_
69 mutable int numGLBits;
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
Subclasses store a single int32_t, int, or enum value.
static int32_t get(int stackIndex, SoState *state)
Get value.
Abstract base class for all database nodes.
An SoState collects and holds state while traversing a scene graph.
static int getNumBitPositionsToShift(uint32_t mask, SoState *state)
Number of positions a value must be shifted according to mask.
static void releaseBits(SoState *state, uint32_t mask)
Releases the stencil bits specified by the mask.
static uint32_t acquireBits(SoState *state, SoNode *node, int num)
Acquires a certain number of bits for stencil operations.
int getNumGLBits() const
Returns the number of bits supported by GL implementation.
static void clearBitsInUse(SoState *state)
Forget about the stencil bits in use.
static uint32_t getDefault()
Returns the default mask of stencil bits in use.
static uint32_t get(SoState *state)
Returns a mask of the current stencil bits in use.
virtual ~SoStencilBitsElement()
Destructor.
static int getNumRemainingBits(SoState *state)
Returns the number of stencil bits not currently used.
virtual void push(SoState *state)
Overrides push() method to copy values from next instance in the stack.
static void initClass()
Initializes the SoStencilBitsElement class.
virtual void init(SoState *state)
Initializes element.