49#ifndef _SO_SHININESS_ELEMENT
50#define _SO_SHININESS_ELEMENT
80 int32_t numShininesses,
const float *shininesses);
96 float get(
int index)
const;
119 if(numShininesses>1){
121 "multiple shininess not supported");
131 se->saveState = state;
145 "multiple shininess values not supported");
147 return(SoMaterialElement::getShininess(saveState));
#define SoEXTENDER_Documented
void set(int32_t numNormals, const SbVec3f *normals, const SoNormalBindingElement::Binding binding, const int startIndex=0)
const SbVec3f & get(int index) const
static void post(const char *methodName, const char *formatString ...)
Posts an error.
static float getDefaultShininess()
Specify Open Inventor defaults for colors, etc.
static void setShininess(SoState *state, SoNode *node, float value)
Abstract base class for all database nodes.
Stores shininess of current material (mostly superseded by SoMaterialElement).
float get(int index) const
Returns the indexed shininess from an element.
static const SoShininessElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
int32_t getNum() const
Returns the number of shininess values in an instance.
static void set(SoState *state, SoNode *, int32_t numShininesses, const float *shininesses)
Sets the current shininess(es).
static float getDefault()
Returns the default shininess.