Stores the current lighting model. More...
#include <Inventor/elements/SoLightModelElement.h>
Public Types | |
enum | Model { BASE_COLOR, PHONG, PER_VERTEX_PHONG, PER_PIXEL_PHONG } |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | set (SoState *state, Model model) |
static void | set (SoState *state, SoNode *, Model model) |
static Model | get (SoState *state) |
static Model | getDefault () |
Stores the current lighting model.
This element stores the current lighting model.
These are the available lighting models.
BASE_COLOR |
No lighting; just use base color. |
PHONG |
Phong lighting.
|
PER_VERTEX_PHONG |
Per-vertex Phong lighting. |
PER_PIXEL_PHONG |
Per-pixel Phong lighting. |
Returns current lighting model from the state.
static int SoLightModelElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoElement.
static SoType SoLightModelElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoElement.
static Model SoLightModelElement::getDefault | ( | ) | [static] |
Returns the default lighting model.
Sets the current lighting model in the state.
Sets the current lighting model in the state.