Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

sglPolyFrontStyle Class Reference

#include <sglStatelet.hpp>

Inheritance diagram for sglPolyFrontStyle::

sglPolyStyle sglStatelet sglObject List of all members.

Public Methods

 sglPolyFrontStyle (StyleEnum style=eFILLED)
virtual ~sglPolyFrontStyle ()
void apply (sglCurrState *curr_state) const

Detailed Description

This statelet encapsulates OpenGL's glPolygonMode(GL_FRONT,..) function which controls the drawing style for the front faces of polygons. The polygons can be rendered as either filled (the default), wireframe (LINE), or points.

Example:

   sglPolyFrontStyle *pfs = new sglPolyFrontStyle;  // filled by default
   pfs->setStyle(sglPolyStyle::eLINE);          // set front face to wireframe

Definition at line 1868 of file sglStatelet.hpp.


Constructor & Destructor Documentation

sglPolyFrontStyle::sglPolyFrontStyle ( StyleEnum style = eFILLED ) [inline]
 

Constructor (also the default constructor).

Parameters:
style   The drawing mode which is one of the three tokens from sglPolyStyle::StyleEnum. The default is eFILLED.

Definition at line 1875 of file sglStatelet.hpp.

sglPolyFrontStyle::~sglPolyFrontStyle ( ) [inline, virtual]
 

virtual destructor.

Definition at line 1879 of file sglStatelet.hpp.


Member Function Documentation

void sglPolyFrontStyle::apply ( sglCurrState * curr_state ) const [virtual]
 

Apply this state change to the current rendering state.

Parameters:
curr_state   Required for statelets that affect one another. For example the sglTransparency sets up depth mask and blending modes which interact with the sglBlending and sglDepthMask statelets, and the curr_state object is used to resolve these internal issues.

Reimplemented from sglStatelet.


The documentation for this class was generated from the following file:
Generated at Mon Jul 1 18:00:09 2002 for SGL by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001