55 #error SoAmbientColorElement is obsolete. See SoLazyElement.h instead.
57 #ifndef _SO_AMBIENT_COLOR_ELEMENT
58 #define _SO_AMBIENT_COLOR_ELEMENT
91 "multiple ambient colors not supported");
101 ace->saveState = state;
115 "multiple ambient 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.
This class is being superceded by the SoLazyElement class.
const SbColor & get(int index) const
Returns the current ambient color.
int32_t getNum() const
Returns the number of ambient colors in any instance.
static SbColor getDefault()
Returns the default ambient color.
static const SoAmbientColorElement * 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 ambient color(s)
static void post(const char *methodName, const char *formatString ...)
Posts an error.
static SbColor getDefaultAmbient()
static void setAmbient(SoState *state, const SbColor *color)
static const SbColor & getAmbient(SoState *)
Abstract base class for all database nodes.
An SoState collects and holds state while traversing a scene graph.