SoLightModelElement Class Reference
[Elements]

Stores the current lighting model (superseded by SoLazyElement). More...

#include <Inventor/elements/SoLightModelElement.h>

List of all members.

Public Types

enum  Model {
  BASE_COLOR,
  PHONG
}

Static Public Member Functions

static void set (SoState *state, Model model)
static void set (SoState *state, SoNode *, Model model)
static Model get (SoState *state)
static Model getDefault ()

Detailed Description

Stores the current lighting model (superseded by SoLazyElement).

This element stores the current lighting model. This element has been superseded by SoLazyElement. Methods are included for compatibility.

SEE ALSO


Member Enumeration Documentation

These are the available lighting models.

Enumerator:
BASE_COLOR 

No lighting; just use base color.

PHONG 

Phong lighting.


Member Function Documentation

static Model SoLightModelElement::get ( SoState state  )  [static]

Returns current lighting model from the state.

static Model SoLightModelElement::getDefault (  )  [static]

Returns the default lighting model.

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

Sets the current lighting model in the state.

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

Sets the current lighting model in the state.


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

Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/