Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Base class for most of the OpenGL render state wrapper classes. More...
#include <RenderState.hpp>
Public Member Functions | |
RenderState () | |
virtual ERenderState | type () const |
virtual void | apply (int index, const Camera *camera, OpenGLContext *ctx) const =0 |
The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it. | |
virtual ref< RenderState > | clone () const =0 |
Base class for most of the OpenGL render state wrapper classes.
Definition at line 50 of file RenderState.hpp.
vl::RenderState::RenderState | ( | ) | [inline] |
Definition at line 55 of file RenderState.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
virtual ERenderState vl::RenderState::type | ( | ) | const [inline, virtual] |
Reimplemented in vl::ClipPlane, vl::GLSLProgram, vl::Light, vl::VertexAttrib, vl::Color, vl::SecondaryColor, vl::Normal, vl::PixelTransfer, vl::Hint, vl::CullFace, vl::FrontFace, vl::DepthFunc, vl::DepthMask, vl::PolygonMode, vl::ShadeModel, vl::BlendFunc, vl::BlendEquation, vl::SampleCoverage, vl::AlphaFunc, vl::Material, vl::LightModel, vl::Fog, vl::PolygonOffset, vl::LogicOp, vl::DepthRange, vl::LineWidth, vl::PointSize, vl::PolygonStipple, vl::LineStipple, vl::PointParameter, vl::StencilFunc, vl::StencilOp, vl::StencilMask, vl::BlendColor, vl::ColorMask, vl::TextureMatrix, vl::TexEnv, vl::TexGen, and vl::TextureSampler.
Definition at line 59 of file RenderState.hpp.
References vl::RS_NONE.
Referenced by vl::ShaderNode::eraseRenderState(), vl::Shader::eraseRenderState(), vl::ShaderNode::setRenderState(), and vl::RenderStateSet::setRenderState().
virtual void vl::RenderState::apply | ( | int | index, |
const Camera * | camera, | ||
OpenGLContext * | ctx | ||
) | const [pure virtual] |
The parameter cameara is NULL if we are disabling the state, non-NULL if we are enabling it.
Implemented in vl::ClipPlane, vl::GLSLProgram, vl::Light, vl::VertexAttrib, vl::Color, vl::SecondaryColor, vl::Normal, vl::PixelTransfer, vl::Hint, vl::CullFace, vl::FrontFace, vl::DepthFunc, vl::DepthMask, vl::PolygonMode, vl::ShadeModel, vl::BlendFunc, vl::BlendEquation, vl::SampleCoverage, vl::AlphaFunc, vl::Material, vl::LightModel, vl::Fog, vl::PolygonOffset, vl::LogicOp, vl::DepthRange, vl::LineWidth, vl::PointSize, vl::PolygonStipple, vl::LineStipple, vl::PointParameter, vl::StencilFunc, vl::StencilOp, vl::StencilMask, vl::BlendColor, vl::ColorMask, vl::TextureMatrix, vl::TexEnv, vl::TexGen, and vl::TextureSampler.
virtual ref<RenderState> vl::RenderState::clone | ( | ) | const [pure virtual] |
Implemented in vl::ClipPlane, vl::GLSLProgram, vl::Light, vl::VertexAttrib, vl::Color, vl::SecondaryColor, vl::Normal, vl::PixelTransfer, vl::Hint, vl::CullFace, vl::FrontFace, vl::DepthFunc, vl::DepthMask, vl::PolygonMode, vl::ShadeModel, vl::BlendFunc, vl::BlendEquation, vl::SampleCoverage, vl::AlphaFunc, vl::Material, vl::LightModel, vl::Fog, vl::PolygonOffset, vl::LogicOp, vl::DepthRange, vl::LineWidth, vl::PointSize, vl::PolygonStipple, vl::LineStipple, vl::PointParameter, vl::StencilFunc, vl::StencilOp, vl::StencilMask, vl::BlendColor, vl::ColorMask, vl::TextureMatrix, vl::TexEnv, vl::TexGen, and vl::TextureSampler.