proj home

Files   Classes   Functions   Hierarchy  

myglCapability Class Reference

Enable and disable an attriub. More...

#include <graphmisc.h>

Collaboration diagram for myglCapability:

List of all members.

Public Member Functions

 myglCapability (GLenum capability_)
 Enable the given capability.
 ~myglCapability ()
 Turn off the capability.

Public Attributes

GLenum capability


Detailed Description

Enable and disable an attriub.

Use with named variables so when the object goes out of scope the destructor is called.

Definition at line 147 of file graphmisc.h.


Constructor & Destructor Documentation

myglCapability::myglCapability ( GLenum  capability_  )  [inline]

Enable the given capability.

Definition at line 155 of file graphmisc.h.

References capability.

00156     : capability(capability_) 
00157     { glEnable(capability); }

myglCapability::~myglCapability (  )  [inline]

Turn off the capability.

Definition at line 160 of file graphmisc.h.

References capability.

00161     { glDisable(capability); }


Member Data Documentation

Definition at line 152 of file graphmisc.h.

Referenced by myglCapability(), and ~myglCapability().


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

Generated on Fri Mar 4 00:50:07 2011 for Chelton Evans Source by  doxygen 1.5.8