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

osg::AlphaFunc Class Reference

Encapsulate OpenGL glAlphaFunc. More...

Inheritance diagram for osg::AlphaFunc:

Inheritance graph
[legend]
List of all members.

Public Types

enum  ComparisonFunction {
  NEVER = GL_NEVER, LESS = GL_LESS, EQUAL = GL_EQUAL, LEQUAL = GL_LEQUAL,
  GREATER = GL_GREATER, NOTEQUAL = GL_NOTEQUAL, GEQUAL = GL_GEQUAL, ALWAYS = GL_ALWAYS
}

Public Methods

 AlphaFunc ()
 AlphaFunc (const AlphaFunc &af, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.

 META_StateAttribute (osg, AlphaFunc, ALPHAFUNC)
virtual int compare (const StateAttribute &sa) const
 return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

virtual void getAssociatedModes (std::vector< GLMode > &modes) const
 return the modes associated with this StateSet

void setFunction (const ComparisonFunction func, const float ref)
const ComparisonFunction getFunction () const
const float getReferenceValue () const
virtual void apply (State &state) const
 apply the OpenGL state attributes.


Protected Methods

virtual ~AlphaFunc ()

Protected Attributes

ComparisonFunction _comparisonFunc
float _referenceValue

Detailed Description

Encapsulate OpenGL glAlphaFunc.


Member Enumeration Documentation

enum osg::AlphaFunc::ComparisonFunction
 

Enumeration values:
NEVER 
LESS 
EQUAL 
LEQUAL 
GREATER 
NOTEQUAL 
GEQUAL 
ALWAYS 


Constructor & Destructor Documentation

osg::AlphaFunc::AlphaFunc  
 

osg::AlphaFunc::AlphaFunc const AlphaFunc &    af,
const CopyOp   copyop = CopyOp::SHALLOW_COPY
[inline]
 

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osg::AlphaFunc::~AlphaFunc   [protected, virtual]
 


Member Function Documentation

virtual void osg::AlphaFunc::apply State   state const [virtual]
 

apply the OpenGL state attributes.

The global state for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.

Implements osg::StateAttribute.

virtual int osg::AlphaFunc::compare const StateAttribute   sa const [inline, virtual]
 

return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

Implements osg::StateAttribute.

virtual void osg::AlphaFunc::getAssociatedModes std::vector< GLMode > &    modes const [inline, virtual]
 

return the modes associated with this StateSet

Reimplemented from osg::StateAttribute.

const ComparisonFunction osg::AlphaFunc::getFunction   const [inline]
 

const float osg::AlphaFunc::getReferenceValue   const [inline]
 

osg::AlphaFunc::META_StateAttribute osg   ,
AlphaFunc   ,
ALPHAFUNC   
 

void osg::AlphaFunc::setFunction const ComparisonFunction    func,
const float    ref
[inline]
 


Member Data Documentation

ComparisonFunction osg::AlphaFunc::_comparisonFunc [protected]
 

float osg::AlphaFunc::_referenceValue [protected]
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:25 2002 for the Open Scene Graph by doxygen 1.2.16.