Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoShininessElement Class Reference

Stores shininess of current material (mostly superseded by SoMaterialElement). More...

#include <Inventor/elements/SoShininessElement.h>

Public Member Functions

int32_t getNum () const
 Returns the number of shininess values in an instance.
 
float get (int index) const
 Returns the indexed shininess from an element.
 

Static Public Member Functions

static void set (SoState *state, SoNode *, int32_t numShininesses, const float *shininesses)
 Sets the current shininess(es).
 
static const SoShininessElementgetInstance (SoState *state)
 Returns the top (current) instance of the element in the state.
 
static float getDefault ()
 Returns the default shininess.
 

Detailed Description

Stores shininess of current material (mostly superseded by SoMaterialElement).

Mostly superseded by SoMaterialElement. get() and set() methods retained for compatibility

SEE ALSO

Definition at line 71 of file SoShininessElement.h.

Member Function Documentation

◆ get()

float SoShininessElement::get ( int  index) const
inline

Returns the indexed shininess from an element.

Definition at line 139 of file SoShininessElement.h.

◆ getDefault()

static float SoShininessElement::getDefault ( )
inlinestatic

Returns the default shininess.

Definition at line 101 of file SoShininessElement.h.

◆ getInstance()

const SoShininessElement * SoShininessElement::getInstance ( SoState state)
inlinestatic

Returns the top (current) instance of the element in the state.

Definition at line 128 of file SoShininessElement.h.

◆ getNum()

int32_t SoShininessElement::getNum ( ) const
inline

Returns the number of shininess values in an instance.

Definition at line 90 of file SoShininessElement.h.

◆ set()

void SoShininessElement::set ( SoState state,
SoNode node,
int32_t  numShininesses,
const float *  shininesses 
)
inlinestatic

Sets the current shininess(es).

Definition at line 114 of file SoShininessElement.h.


The documentation for this class was generated from the following file: