Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]

vl::RenderState Class Reference

Base class for most of the OpenGL render state wrapper classes. More...

#include <RenderState.hpp>

Inheritance diagram for vl::RenderState:

vl::Object vl::AlphaFunc vl::BlendColor vl::BlendEquation vl::BlendFunc vl::ClipPlane vl::ColorMask vl::CullFace vl::DepthFunc vl::DepthMask vl::DepthRange vl::Fog vl::FrontFace vl::GLSLProgram vl::Hint vl::Light vl::LightModel vl::LineStipple vl::LineWidth vl::LogicOp vl::Material vl::PixelTransfer vl::PointParameter vl::PointSize vl::PolygonMode vl::PolygonOffset vl::PolygonStipple vl::SampleCoverage vl::ShadeModel vl::StencilFunc vl::StencilMask vl::StencilOp vl::TexEnv vl::TexGen vl::TextureMatrix vl::TextureUnit

List of all members.

Public Member Functions

virtual const char * className ()
 Returns the name of the class.
 RenderState ()
virtual ~RenderState ()
virtual ERenderState type () const
virtual void apply (const Camera *) const =0
virtual void disable () const
virtual void enable () const
virtual void initResources ()
int textureUnit () const
void setUnitIndex (int unit_index)

Protected Attributes

int mTextureUnit


Detailed Description

Base class for most of the OpenGL render state wrapper classes.

See also:
Shader, Effect, Actor

Constructor & Destructor Documentation

vl::RenderState::RenderState (  )  [inline]

virtual vl::RenderState::~RenderState (  )  [inline, virtual]


Member Function Documentation

virtual const char* vl::RenderState::className (  )  [inline, virtual]

virtual ERenderState vl::RenderState::type (  )  const [inline, virtual]

virtual void vl::RenderState::apply ( const Camera  )  const [pure virtual]

virtual void vl::RenderState::disable (  )  const [inline, virtual]

Reimplemented in vl::ClipPlane, vl::Light, and vl::TextureUnit.

virtual void vl::RenderState::enable (  )  const [inline, virtual]

Reimplemented in vl::ClipPlane, vl::Light, and vl::TextureUnit.

virtual void vl::RenderState::initResources (  )  [inline, virtual]

Reimplemented in vl::GLSLProgram, and vl::TextureUnit.

int vl::RenderState::textureUnit (  )  const [inline]

void vl::RenderState::setUnitIndex ( int  unit_index  )  [inline]


Member Data Documentation


The documentation for this class was generated from the following file:

Visualization Library v2009.08 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Tue Dec 29 13:56:59 2009.
Permission is granted to use this page to write and publish articles regarding Visualization Library.