SoLightModelElement Class Reference
[Elements]

Stores the current lighting model. More...

#include <Inventor/elements/SoLightModelElement.h>

Inheritance diagram for SoLightModelElement:
SoElement SoTypedObject

List of all members.

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 ()

Detailed Description

Stores the current lighting model.

This element stores the current lighting model.

SEE ALSO


Member Enumeration Documentation

These are the available lighting models.

Enumerator:
BASE_COLOR 

No lighting; just use base color.

PHONG 

Phong lighting.

Deprecated:

Deprecated since Open Inventor 10000
PHONG is replaced by PER_VERTEX_PHONG to avoid ambiguities with PER_PIXEL_PHONG
PER_VERTEX_PHONG 

Per-vertex Phong lighting.

PER_PIXEL_PHONG 

Per-pixel Phong lighting.


Member Function Documentation

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

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.

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 Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/