Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
RenderState wrapping the OpenGL function glSecondaryColor(), see also http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml for more information. More...
#include <Shader.hpp>
Public Member Functions | |
SecondaryColor () | |
virtual ERenderState | type () const |
virtual void | apply (int index, const Camera *, OpenGLContext *ctx) const |
The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it. | |
void | setValue (const fvec3 &color) |
const fvec3 & | value () const |
virtual ref< RenderState > | clone () const |
Protected Attributes | |
fvec3 | mSecondaryColor |
RenderState wrapping the OpenGL function glSecondaryColor(), see also http://www.opengl.org/sdk/docs/man/xhtml/glSecondaryColor.xml for more information.
Definition at line 128 of file Shader.hpp.
vl::SecondaryColor::SecondaryColor | ( | ) | [inline] |
Definition at line 133 of file Shader.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
virtual ERenderState vl::SecondaryColor::type | ( | ) | const [inline, virtual] |
Reimplemented from vl::RenderState.
Definition at line 138 of file Shader.hpp.
References vl::RS_SecondaryColor.
void SecondaryColor::apply | ( | int | index, |
const Camera * | camera, | ||
OpenGLContext * | ctx | ||
) | const [virtual] |
The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it.
Implements vl::RenderState.
Definition at line 707 of file Shader.cpp.
References vl::Vector3< T_Scalar >::b(), vl::Vector3< T_Scalar >::g(), vl::OpenGLContext::mSecondaryColor, mSecondaryColor, vl::Vector3< T_Scalar >::r(), and VL_CHECK_OGL.
void vl::SecondaryColor::setValue | ( | const fvec3 & | color ) | [inline] |
Definition at line 142 of file Shader.hpp.
Referenced by vl::VLXClassWrapper_SecondaryColor::importSecondaryColor().
const fvec3& vl::SecondaryColor::value | ( | ) | const [inline] |
Definition at line 144 of file Shader.hpp.
Referenced by vl::VLXClassWrapper_SecondaryColor::exportSecondaryColor().
virtual ref<RenderState> vl::SecondaryColor::clone | ( | ) | const [inline, virtual] |
Implements vl::RenderState.
Definition at line 146 of file Shader.hpp.
fvec3 vl::SecondaryColor::mSecondaryColor [protected] |
Definition at line 154 of file Shader.hpp.
Referenced by apply().