Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::EnableSet Class Reference

A set of enables managed by Shader. More...

#include <EnableSet.hpp>

Inheritance diagram for vl::EnableSet:
vl::Object

List of all members.

Public Member Functions

 EnableSet ()
virtual const char * className ()
 Returns the name of the class.
void enable (EEnable capability)
void disable (EEnable capability)
const std::vector< EEnable > & enables () const
int isEnabled (EEnable capability) const
void disableAll ()
bool blendingEnabled () const

Protected Attributes

std::vector< EEnablemEnables
bool mBlendingEnabled

Detailed Description

A set of enables managed by Shader.

This class substitutes for the most part the OpenGL functions glEnable() and glDisable().

See also:
Shader, Effect, Actor

Definition at line 47 of file EnableSet.hpp.


Constructor & Destructor Documentation

vl::EnableSet::EnableSet (  ) [inline]

Definition at line 50 of file EnableSet.hpp.

References VL_DEBUG_SET_OBJECT_NAME.


Member Function Documentation

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

Returns the name of the class.

Reimplemented from vl::Object.

Definition at line 55 of file EnableSet.hpp.

void vl::EnableSet::enable ( EEnable  capability ) [inline]

Definition at line 59 of file EnableSet.hpp.

References vl::EN_BLEND, mBlendingEnabled, and mEnables.

void vl::EnableSet::disable ( EEnable  capability ) [inline]

Definition at line 69 of file EnableSet.hpp.

References vl::EN_BLEND, mBlendingEnabled, and mEnables.

const std::vector<EEnable>& vl::EnableSet::enables (  ) const [inline]

Definition at line 83 of file EnableSet.hpp.

References mEnables.

Referenced by vl::OpenGLContext::applyEnables().

int vl::EnableSet::isEnabled ( EEnable  capability ) const [inline]

Definition at line 85 of file EnableSet.hpp.

References mEnables.

void vl::EnableSet::disableAll (  ) [inline]

Definition at line 93 of file EnableSet.hpp.

References mBlendingEnabled, and mEnables.

bool vl::EnableSet::blendingEnabled (  ) const [inline]

Definition at line 95 of file EnableSet.hpp.

References mBlendingEnabled.


Member Data Documentation

std::vector<EEnable> vl::EnableSet::mEnables [protected]

Definition at line 98 of file EnableSet.hpp.

Referenced by disable(), disableAll(), enable(), enables(), and isEnabled().

Definition at line 99 of file EnableSet.hpp.

Referenced by blendingEnabled(), disable(), disableAll(), and enable().


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

Visualization Library v2011.05.1142 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 26 2011 22:51:40.
Permission is granted to use this page to write and publish articles regarding Visualization Library.