proj home

Files   Classes   Functions   Hierarchy  

myLightingTurnOff Class Reference

Turn the lighting off. More...

#include <graphmisc.h>

List of all members.

Public Member Functions

 myLightingTurnOff ()
 Push the current lighting state and disable lighting.
 ~myLightingTurnOff ()
 Restore the previous lighting state.


Detailed Description

Turn the lighting off.

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

Definition at line 185 of file graphmisc.h.


Constructor & Destructor Documentation

myLightingTurnOff::myLightingTurnOff (  )  [inline]

Push the current lighting state and disable lighting.

Definition at line 190 of file graphmisc.h.

00191   {     
00192     glPushAttrib(GL_CURRENT_BIT);
00193     glPushAttrib(GL_LIGHTING_BIT);
00194     glDisable(GL_LIGHTING);
00195   }

myLightingTurnOff::~myLightingTurnOff (  )  [inline]

Restore the previous lighting state.

Definition at line 198 of file graphmisc.h.

00199     { glPopAttrib(); glPopAttrib(); }


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