54#error SoShininessElement is obsolete. See SoLazyElement.h instead.
56#ifndef _SO_SHININESS_ELEMENT
57#define _SO_SHININESS_ELEMENT
81 int32_t numShininesses,
const float *shininesses)
87 "multiple shininess not supported");
96 se->saveState = state;
104 float get(
int index)
const
109 "multiple shininess values 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 void setShininess(SoState *state, float value)
static float getDefaultShininess()
static float getShininess(SoState *)
Abstract base class for all database nodes.
Mostly superceded by SoLazyElement.
float get(int index) const
Returns the indexed shininess from an element.
static void set(SoState *state, SoNode *, int32_t numShininesses, const float *shininesses)
Sets the current shininess(es)
int32_t getNum() const
Returns the number of shininess values in an instance.
static const SoShininessElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
static float getDefault()
Returns the default shininess.
An SoState collects and holds state while traversing a scene graph.