Public Member Functions

CL_LightModel_GL1 Class Reference
[clanGL1 Display]

Light model description. More...

#include <light_model.h>

List of all members.

Public Member Functions

 CL_LightModel_GL1 ()
 Construction.
 ~CL_LightModel_GL1 ()
void enable_lighting (bool value)
 Operations.
CL_ColorControl_GL1 get_color_control () const
 Returns the current color control being used.
bool get_flat_shading () const
 Returns true if flat shading is enabled.
CL_Colorf get_scene_ambient_light () const
 Returns the scene global ambient light.
bool get_two_sided_materials () const
 Returns true if two sided materials are being used.
bool is_lighting_enabled () const
 Attributes.
bool is_local_viewer () const
 Returns true if local viewer is enabled.
void set_color_control (CL_ColorControl_GL1 value)
 Controls how primary and secondary colors are calculated.
void set_flat_shading (bool value)
 Enables if polygons are to be flat shaded from lighting calculations.
void set_local_viewer (bool value)
 Enables or disables local viewer light model.
void set_scene_ambient_light (CL_Colorf color)
 Sets the scene global ambient light.
void set_two_sided_materials (bool value)
 Controls if the lighting model uses different materials for front and back facing faces.

Detailed Description

Light model description.


Constructor & Destructor Documentation

CL_LightModel_GL1::CL_LightModel_GL1 (  ) 

Construction.

Constructs a light model.

CL_LightModel_GL1::~CL_LightModel_GL1 (  ) 

Member Function Documentation

void CL_LightModel_GL1::enable_lighting ( bool  value  ) 

Operations.

Enables or disables lighting calculations.

CL_ColorControl_GL1 CL_LightModel_GL1::get_color_control (  )  const

Returns the current color control being used.

bool CL_LightModel_GL1::get_flat_shading (  )  const

Returns true if flat shading is enabled.

CL_Colorf CL_LightModel_GL1::get_scene_ambient_light (  )  const

Returns the scene global ambient light.

bool CL_LightModel_GL1::get_two_sided_materials (  )  const

Returns true if two sided materials are being used.

bool CL_LightModel_GL1::is_lighting_enabled (  )  const

Attributes.

Returns true if lighting is enabled.

bool CL_LightModel_GL1::is_local_viewer (  )  const

Returns true if local viewer is enabled.

void CL_LightModel_GL1::set_color_control ( CL_ColorControl_GL1  value  ) 

Controls how primary and secondary colors are calculated.

void CL_LightModel_GL1::set_flat_shading ( bool  value  ) 

Enables if polygons are to be flat shaded from lighting calculations.

void CL_LightModel_GL1::set_local_viewer ( bool  value  ) 

Enables or disables local viewer light model.

void CL_LightModel_GL1::set_scene_ambient_light ( CL_Colorf  color  ) 

Sets the scene global ambient light.

void CL_LightModel_GL1::set_two_sided_materials ( bool  value  ) 

Controls if the lighting model uses different materials for front and back facing faces.


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