CIvfBlending Class Reference

#include <ivf/IvfBlending.h>

Inheritance diagram for CIvfBlending:

CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

Public Types

enum  TBlendFactor {
  BF_ZERO, BF_ONE, BF_DST_COLOR, BF_SRC_COLOR,
  BF_ONE_MINUS_DST_COLOR, BF_ONE_MINUS_SRC_COLOR, BF_SRC_ALPHA, BF_ONE_MINUS_SRC_ALPHA,
  BF_DST_ALPHA, BF_ONE_MINUS_DST_ALPHA, BF_SRC_ALPHA_SATURATE
}

Public Member Functions

 IvfClassInfo ("CIvfBlending", CIvfBase)
void enable ()
void disable ()
bool isEnabled ()
void setFunction (TBlendFactor src, TBlendFactor dst)
void saveState ()
void restoreState ()
void defineAlphaBlendFunction ()
void defineAddFunction ()

Static Public Member Functions

static CIvfBlendinggetInstance ()

Protected Member Functions

 CIvfBlending ()

Friends

class CIvfSingletonDestroyer< CIvfBlending >

Detailed Description

Blending singleton

The CIvfBlending singleton encapsulates OpenGL blending. An instance of the CIvfBlending class is retrieved using the getInstance() method. See the following code:

 CIvfBlendingPtr blending = CIvfBlending::getInstance();
 blending->enable();
 blending->setFunction(CIvfBlending::BF_SRC_ALPHA, CIvfBlending::BF_ONE_MINUS_SRC_ALPHA);
 ...

Author:
Jonas Lindemann

Definition at line 49 of file IvfBlending.h.


Constructor & Destructor Documentation

CIvfBlending::CIvfBlending  )  [protected]
 

Protected constructor (do not use)


Member Function Documentation

void CIvfBlending::disable  ) 
 

Disable blending

void CIvfBlending::enable  ) 
 

Enable blending

static CIvfBlending* CIvfBlending::getInstance  )  [static]
 

Returns the blending singleton

bool CIvfBlending::isEnabled  ) 
 

Returns true if blending is enabled

void CIvfBlending::restoreState  ) 
 

Restores the saved blend state

void CIvfBlending::saveState  ) 
 

Saves the current blending state

void CIvfBlending::setFunction TBlendFactor  src,
TBlendFactor  dst
 

Sets the blend function


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:36:48 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO