The Blend class inherits from the State class, describing the blending operation during rendering transparent objects. More...
#include <state.h>
Public Types | |
| enum class | Function { ZERO , ONE , SRC_COLOR , ONE_MINUS_SRC_COLOR , DST_COLOR , ONE_MINUS_DST_COLOR , SRC_ALPHA , ONE_MINUS_SRC_ALPHA , DST_ALPHA , ONE_MINUS_DST_ALPHA , CONSTANT_COLOR , ONE_MINUS_CONSTANT_COLOR , CONSTANT_ALPHA , ONE_MINUS_CONSTANT_ALPHA , SRC_ALPHA_SATURATE } |
| The factors in this enumeration specify how the source and destination color values are combined during rendring. More... | |
| enum class | Equation { FUNC_ADD , FUNC_SUBTRACT , FUNC_REVERSE_SUBTRACT , MIN , MAX } |
| This enumeration defines different operations used in the blend equation. These operations determine how the source and destination factors are combined. More... | |
Public Member Functions | |
| Blend (bool enabled=false, Blend::Function srcFunc=Blend::Function::SRC_ALPHA, Blend::Function dstFunc=Blend::Function::ONE_MINUS_SRC_ALPHA, Blend::Equation equation=Blend::Equation::FUNC_ADD) | |
Public Member Functions inherited from cil::State | |
| State () | |
| const std::string & | className () const |
Public Member Functions inherited from cil::Object | |
| Object () | |
| virtual | ~Object () |
Public Attributes | |
| bool | enabled |
| This member allows you to enable/diable blending. | |
| Function | srcFunc |
| Function | dstFunc |
| Equation | equation |
Additional Inherited Members | |
Protected Attributes inherited from cil::State | |
| std::string | m_className |
The Blend class inherits from the State class, describing the blending operation during rendering transparent objects.
|
strong |
|
strong |
The factors in this enumeration specify how the source and destination color values are combined during rendring.
| cil::Blend::Blend | ( | bool | enabled = false, |
| Blend::Function | srcFunc = Blend::Function::SRC_ALPHA, | ||
| Blend::Function | dstFunc = Blend::Function::ONE_MINUS_SRC_ALPHA, | ||
| Blend::Equation | equation = Blend::Equation::FUNC_ADD ) |
| Function cil::Blend::dstFunc |
| bool cil::Blend::enabled |
This member allows you to enable/diable blending.
| Equation cil::Blend::equation |
| Function cil::Blend::srcFunc |