proj home

Files   Classes   Functions   Hierarchy  

gobjglEnable Class Reference

Turn on graphics states. More...

#include <gobj.h>

Inheritance diagram for gobjglEnable:
Collaboration diagram for gobjglEnable:

List of all members.

Public Member Functions

 gobjglEnable (GLenum capability_)
 Pass in what switch that you want to turn on.
void draw ()
 Turn the switch on.

Public Attributes

GLenum capability
 The OpenGL capability being enabled.


Detailed Description

Turn on graphics states.

Example
  gobjpush( new gobjglEnable(GL_LIGHTING) );
  ...
  gobjpush( new gobjglDisable(GL_LIGHTING) );

Definition at line 448 of file gobj.h.


Constructor & Destructor Documentation

gobjglEnable::gobjglEnable ( GLenum  capability_  )  [inline]

Pass in what switch that you want to turn on.

Definition at line 456 of file gobj.h.

00457     : capability(capability_) {}


Member Function Documentation

void gobjglEnable::draw (  )  [inline, virtual]

Turn the switch on.

Implements gobj.

Definition at line 460 of file gobj.h.

References capability, and GOBJDEBUGCODE.

00461     { GOBJDEBUGCODE glEnable(capability); }


Member Data Documentation

The OpenGL capability being enabled.

Definition at line 453 of file gobj.h.

Referenced by draw().


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

Generated on Fri Mar 4 00:49:59 2011 for Chelton Evans Source by  doxygen 1.5.8