Depth Class Reference
[Advanced]

Modifies the depth function. More...

#include <Depth.hpp>

Inheritance diagram for Depth:
Node Applicable

List of all members.

Public Member Functions

 Depth (const Tag &tag)
virtual void apply ()
virtual void remove ()
virtual string toString () const

Private Attributes

GLenum mode
float clear

Detailed Description

Modifies the depth function.

XML Name

XML attributes

mode Comparison to determine if incoming fragment passes depth test.

mode values

OpenGL Functions

Example

   <depth mode="gequal">
     <cube />
   </depth>
 

Constructor & Destructor Documentation

Depth ( const Tag tag  ) 

Initializes mode and clear.

Exceptions:
NodeException if value for mode unrecognized.

Member Function Documentation

void apply (  )  [virtual]

Changes the depth function to mode and clears the depth buffer.

Implements Applicable.

void remove (  )  [virtual]

Restores the default depth function.

Implements Applicable.

string toString (  )  const [virtual]

Adds mode to the node description.

Reimplemented from Node.


The documentation for this class was generated from the following files:
Generated on Wed Jun 9 01:36:35 2010 for Gander by  doxygen 1.6.3