55 #error SoSpecularColorElement is obsolete. See SoLazyElement.h instead.
57 #ifndef _SO_SPECULAR_COLOR_ELEMENT
58 #define _SO_SPECULAR_COLOR_ELEMENT
91 "multiple specular colors not supported");
101 sce->saveState = state;
115 "multiple specular colors not supported");
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
static void post(const char *methodName, const char *formatString ...)
Posts an error.
static SbColor getDefaultSpecular()
static void setSpecular(SoState *state, const SbColor *color)
static const SbColor & getSpecular(SoState *)
Abstract base class for all database nodes.
This class is being superceded by the SoLazyElement class.
static SbColor getDefault()
Returns the default specular color.
const SbColor & get(int index) const
Returns the current specular color.
static const SoSpecularColorElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
static void set(SoState *state, SoNode *, int32_t numColors, const SbColor *colors)
Sets the current specular color(s)
int32_t getNum() const
Returns the number of specular colors in any instance.
An SoState collects and holds state while traversing a scene graph.