| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/opengl/lightmodelgl.h>

Public Types | |
| enum | Operations { EnableLighting = 1, DisableLighting = 2, EnableTwoSided = 4, DisableTwoSided = 8, EnableLocalViewer = 16, DisableLocalViewer = 32, SetAmbientLight = 64 } |
Public Member Functions | |
| VRS_SERIALIZABLE_CLASS_ENUM (Operations) | |
| LightModelGL (int ops, const Color &ambient=Color::black) | |
| LightModelGL (bool lightingOn) | |
| bool | operator== (const LightModelGL &other) const |
| void | enableOperation (int flagToBeAdded) |
| void | disableOperation (int flagToBeRemoved) |
| int | getOperations () const |
| void | setAmbientLight (const Color &color) |
| Color | getAmbientLight () const |
| Set/get the ambient light of a scene. | |
| VRS_TYPEINFO (LightModelGL, MonoAttribute) | |
| VRS::LightModelGL::LightModelGL | ( | int | ops, | |
| const Color & | ambient = Color::black | |||
| ) |
| VRS::LightModelGL::LightModelGL | ( | bool | lightingOn | ) |
Attribute to switch lighting on or off, set whether front and backfacing faces should be lightened, and set the color of the ambient light. For convenience, an ctor for disabling/enabling lighting is provided.
| VRS::LightModelGL::VRS_SERIALIZABLE_CLASS_ENUM | ( | Operations | ) |
| bool VRS::LightModelGL::operator== | ( | const LightModelGL & | other | ) | const |
| void VRS::LightModelGL::enableOperation | ( | int | flagToBeAdded | ) |
| void VRS::LightModelGL::disableOperation | ( | int | flagToBeRemoved | ) |
| int VRS::LightModelGL::getOperations | ( | ) | const [inline] |
Set/get operations to be performed when the attribute is pushed to an engine.
| void VRS::LightModelGL::setAmbientLight | ( | const Color & | color | ) |
| Color VRS::LightModelGL::getAmbientLight | ( | ) | const [inline] |
Set/get the ambient light of a scene.
| VRS::LightModelGL::VRS_TYPEINFO | ( | LightModelGL | , | |
| MonoAttribute | ||||
| ) |