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

sglAntiAliasLine Class Reference

#include <sglStatelet.hpp>

Inheritance diagram for sglAntiAliasLine::

sglBooleanStatelet sglStatelet sglObject List of all members.

Public Methods

 sglAntiAliasLine (bool on=false)
virtual ~sglAntiAliasLine ()
void apply (sglCurrState *curr_state) const

Detailed Description

Enables/disables the OpenGL state needed to anti-alias lines.

Example:

   sglAntiAliasLine *statelet = new sglAntiAliasLine(true);  // enable it
   statelet->enable(false);                                  // disable it

Definition at line 472 of file sglStatelet.hpp.


Constructor & Destructor Documentation

sglAntiAliasLine::sglAntiAliasLine ( bool on = false ) [inline]
 

Constructor (also default constructor)

Parameters:
on   Enables line anti-aliasing if true, otherwise it is disabled (the default).

Definition at line 479 of file sglStatelet.hpp.

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

virtual destructor.

Definition at line 483 of file sglStatelet.hpp.


Member Function Documentation

void sglAntiAliasLine::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:06 2002 for SGL by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001