A class that specifies how blending should be performed between a source and destination fragment.
More...
#include <omGraphicsBlendMode.h>
A class that specifies how blending should be performed between a source and destination fragment.
om::graphics::base::BlendMode::BlendMode |
( |
| ) |
|
|
inline |
Create a new blend mode with the default blending parameters.
The default blend mode is SOURCE_ALPHA for the source factor, INVERSE_SOURCE_ALPHA for the destination factor, and a blend function of ADD.
Create a new blend mode with the given source and destination blend factors and blend function.
Create a new blend mode with the given source and destination blend factors, blend function, and color.
const BlendFactor& om::graphics::base::BlendMode::getSource |
( |
| ) |
const |
|
inline |
Return an object that describes the source color blend factor for this blend mode.
void om::graphics::base::BlendMode::setSource |
( |
const BlendFactor & |
newSource | ) |
|
|
inline |
Set the source color blend factor for this blend mode.
const BlendFactor& om::graphics::base::BlendMode::getDestination |
( |
| ) |
const |
|
inline |
Return an object that describes the destination color blend factor for this blend mode.
void om::graphics::base::BlendMode::setDestination |
( |
const BlendFactor & |
newDestination | ) |
|
|
inline |
Set the destination color blend factor for this blend mode.
const BlendFunction& om::graphics::base::BlendMode::getFunction |
( |
| ) |
const |
|
inline |
Return an object that describes the blending function used by this blend mode.
void om::graphics::base::BlendMode::setFunction |
( |
const BlendFunction & |
newFunction | ) |
|
|
inline |
Set the blending function used by this blend mode.
const Color4f& om::graphics::base::BlendMode::getConstantColor |
( |
| ) |
const |
|
inline |
Return a constant color value that may be used as a blending factor in some operations.
void om::graphics::base::BlendMode::setConstantColor |
( |
const Color4f & |
newConstantColor | ) |
|
|
inline |
Set a constant color value that may be used as a blending factor in some operations.
Bool om::graphics::base::BlendMode::operator== |
( |
const BlendMode & |
other | ) |
const |
|
inline |
Return whether or not this blend mode is equal to another blend mode.
Bool om::graphics::base::BlendMode::operator!= |
( |
const BlendMode & |
other | ) |
const |
|
inline |
Return whether or not this blend mode is not equal to another blend mode.
The documentation for this class was generated from the following file: