49#ifndef _SO_SPECULAR_COLOR_ELEMENT
50#define _SO_SPECULAR_COLOR_ELEMENT
53#include <Inventor/SbColor.h>
54#include <Inventor/misc/SoState.h>
55#include <Inventor/elements/SoMaterialElement.h>
56#include <Inventor/errors/SoDebugError.h>
84 int32_t numColors,
const SbColor *colors);
100 const SbColor & get(
int index)
const;
123 "multiple specular colors not supported");
133 sce->saveState = state;
147 "multiple specular colors not supported");
static void post(const char *methodName, const char *formatString ...)
Posts an error.
static const SbColor & getSpecular(SoState *state, Face face)
static SbColor getDefaultSpecular()
Specify Open Inventor defaults for colors, etc.
static void setSpecular(SoState *state, Face face, SoNode *node, const SbColor &color)
Abstract base class for all database nodes.
Stores specular color of current material (superseded by SoMaterialElement).
static SbColor getDefault()
Returns the default 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.
const SbColor & get(int index) const
Returns the current specular color.