ClanLib
2.3.7
|
Light model description. More...
#include <light_model.h>
Public Member Functions | |
CL_LightModel_GL1 () | |
Construction. More... | |
~CL_LightModel_GL1 () | |
void | enable_lighting (bool value) |
Operations. More... | |
CL_ColorControl_GL1 | get_color_control () const |
Returns the current color control being used. More... | |
bool | get_flat_shading () const |
Returns true if flat shading is enabled. More... | |
CL_Colorf | get_scene_ambient_light () const |
Returns the scene global ambient light. More... | |
bool | get_two_sided_materials () const |
Returns true if two sided materials are being used. More... | |
bool | is_lighting_enabled () const |
Attributes. More... | |
bool | is_local_viewer () const |
Returns true if local viewer is enabled. More... | |
void | set_color_control (CL_ColorControl_GL1 value) |
Controls how primary and secondary colors are calculated. More... | |
void | set_flat_shading (bool value) |
Enables if polygons are to be flat shaded from lighting calculations. More... | |
void | set_local_viewer (bool value) |
Enables or disables local viewer light model. More... | |
void | set_scene_ambient_light (CL_Colorf color) |
Sets the scene global ambient light. More... | |
void | set_two_sided_materials (bool value) |
Controls if the lighting model uses different materials for front and back facing faces. More... | |
Light model description.
CL_LightModel_GL1::CL_LightModel_GL1 | ( | ) |
Construction.
Constructs a light model.
CL_LightModel_GL1::~CL_LightModel_GL1 | ( | ) |
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.