#include <ivf/IvfBlending.h>
Inheritance diagram for CIvfBlending:
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 CIvfBlending * | getInstance () |
Protected Member Functions | |
CIvfBlending () | |
Friends | |
class | CIvfSingletonDestroyer< CIvfBlending > |
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); ...
Definition at line 49 of file IvfBlending.h.
|
Protected constructor (do not use) |
|
Disable blending |
|
Enable blending |
|
Returns the blending singleton |
|
Returns true if blending is enabled |
|
Restores the saved blend state |
|
Saves the current blending state |
|
Sets the blend function |