Stores specular color of current material (superseded by SoMaterialElement). More...
#include <Inventor/elements/SoSpecularColorElement.h>
Public Member Functions | |
int32_t | getNum () const |
const SbColor & | get (int index) const |
Static Public Member Functions | |
static void | set (SoState *state, SoNode *, int32_t numColors, const SbColor *colors) |
static const SoSpecularColorElement * | getInstance (SoState *state) |
static SbColor | getDefault () |
Stores specular color of current material (superseded by SoMaterialElement).
This class is superseded by the SoMaterialElement class. All methods are converted inline to SoMaterialElement methods for compatibility. This only uses the first specular color, not an array of them.
const SbColor & SoSpecularColorElement::get | ( | int | index | ) | const [inline] |
Returns the current specular color.
static SbColor SoSpecularColorElement::getDefault | ( | ) | [inline, static] |
Returns the default specular color.
const SoSpecularColorElement * SoSpecularColorElement::getInstance | ( | SoState * | state | ) | [inline, static] |
Returns the top (current) instance of the element in the state.
int32_t SoSpecularColorElement::getNum | ( | ) | const [inline] |
Returns the number of specular colors in any instance.
void SoSpecularColorElement::set | ( | SoState * | state, | |
SoNode * | node, | |||
int32_t | numColors, | |||
const SbColor * | colors | |||
) | [inline, static] |
Sets the current specular color(s).