Composition requirements represents the required buffers for composition.
More...
#include <kanzi/core.ui/graphics2d/composition_requirements.hpp>
Composition requirements represents the required buffers for composition.
CompositionRequirements is used by Node2D and RenderPass classes.
Distinct flags for composition buffer requirements and buffer clears.
Enumerator |
---|
AlphaRequired |
Alpha buffer requested.
|
DepthRequired |
Depth buffer requested.
|
StencilRequired |
Stencil buffer requested.
|
ColorCleared |
Color buffer cleared.
|
DepthCleared |
Depth buffer cleared.
|
StencilCleared |
Stencil buffer cleared.
|
CompositionFlagsBitCount |
Bit count for the bitset.
|
kanzi::CompositionRequirements::CompositionRequirements |
( |
| ) |
|
|
inlineexplicit |
kanzi::CompositionRequirements::CompositionRequirements |
( |
unsigned long |
mask | ) |
|
|
inlineexplicit |
Constructor with bitmask.
- Parameters
-
mask | Mash to use for initialization. |
unsigned long kanzi::CompositionRequirements::getMask |
( |
| ) |
const |
|
inline |
Gets the unsigned long bitmask representation of the composition requirements.
- Returns
- Bit mask of requirements.
bool kanzi::CompositionRequirements::isAlphaRequired |
( |
| ) |
const |
|
inline |
Is alpha channel required.
- Returns
- True if flag set, false otherwise.
void kanzi::CompositionRequirements::setAlphaRequired |
( |
bool |
flag | ) |
|
|
inline |
Sets alpha channel requirement flag.
- Parameters
-
flag | New color clear flag. |
bool kanzi::CompositionRequirements::isDepthRequired |
( |
| ) |
const |
|
inline |
Is depth buffer required.
- Returns
- True if flag set, false otherwise.
void kanzi::CompositionRequirements::setDepthRequired |
( |
bool |
flag | ) |
|
|
inline |
Sets depth buffer requirement flag.
- Parameters
-
flag | New color clear flag. |
bool kanzi::CompositionRequirements::isStencilRequired |
( |
| ) |
const |
|
inline |
Is stencil buffer required.
- Returns
- True if flag set, false otherwise.
void kanzi::CompositionRequirements::setStencilRequired |
( |
bool |
flag | ) |
|
|
inline |
Sets stencil buffer requirement flag.
- Parameters
-
flag | New color clear flag. |
bool kanzi::CompositionRequirements::hasColorClear |
( |
| ) |
const |
|
inline |
Is color clear flag set?
- Returns
- True if flag set, false otherwise.
void kanzi::CompositionRequirements::setColorClear |
( |
bool |
flag | ) |
|
|
inline |
Sets the color clear flag.
- Parameters
-
flag | New color clear flag. |
bool kanzi::CompositionRequirements::hasDepthClear |
( |
| ) |
const |
|
inline |
Is depth clear flag set?
- Returns
- True if flag set, false otherwise.
void kanzi::CompositionRequirements::setDepthClear |
( |
bool |
flag | ) |
|
|
inline |
Sets the depth clear flag.
- Parameters
-
flag | New color clear flag. |
bool kanzi::CompositionRequirements::hasStencilClear |
( |
| ) |
const |
|
inline |
Is stencil clear flag set?
- Returns
- True if flag set, false otherwise.
void kanzi::CompositionRequirements::setStencilClear |
( |
bool |
flag | ) |
|
|
inline |
Sets the stencil clear flag.
- Parameters
-
flag | New color clear flag. |
The documentation for this class was generated from the following file: