Open Inventor Reference
SoLightModelElement Class Reference

Element that stores the current lighting model. More...

#include <Inventor/elements/SoLightModelElement.h>

Public Types

enum  Model { BASE_COLOR , PHONG }
 These are the available lighting models: More...
 

Static Public Member Functions

static void set (SoState *state, Model model)
 Sets the current lighting model in the state.
 
static void set (SoState *state, SoNode *, Model model)
 
static Model get (SoState *state)
 Returns current lighting model from the state.
 
static Model getDefault ()
 Returns the default lighting model.
 

Detailed Description

This element has been superceded by SoLazyElement. Methods included for compatibility.

Definition at line 71 of file SoLightModelElement.h.

Member Enumeration Documentation

◆ Model

Enumerator
BASE_COLOR 

No lighting; just use base color.

PHONG 

Phong lighting.

Definition at line 75 of file SoLightModelElement.h.

Member Function Documentation

◆ get()

static Model SoLightModelElement::get ( SoState state)
inlinestatic

Definition at line 90 of file SoLightModelElement.h.

References SoLazyElement::getLightModel().

◆ getDefault()

static Model SoLightModelElement::getDefault ( )
inlinestatic

Definition at line 94 of file SoLightModelElement.h.

References SoLazyElement::getDefaultLightModel().

◆ set() [1/2]

static void SoLightModelElement::set ( SoState state,
Model  model 
)
inlinestatic

Definition at line 81 of file SoLightModelElement.h.

References SoLazyElement::setLightModel().

◆ set() [2/2]

static void SoLightModelElement::set ( SoState state,
SoNode ,
Model  model 
)
inlinestatic

Definition at line 85 of file SoLightModelElement.h.


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