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