Composition requirements represent the required buffers for composition.
More...
#include <kanzi/core.ui/graphics2d/composition_requirements.hpp>
Composition requirements represent the required buffers for composition.
CompositionRequirements is used by Node2D and RenderPass classes.
◆ CompositionFlags
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.
|
◆ CompositionRequirements() [1/2]
kanzi::CompositionRequirements::CompositionRequirements |
( |
| ) |
|
|
inlineexplicit |
◆ CompositionRequirements() [2/2]
kanzi::CompositionRequirements::CompositionRequirements |
( |
unsigned long | mask | ) |
|
|
inlineexplicit |
Constructor with bitmask.
- Parameters
-
mask | Mash to use for initialization. |
◆ getMask()
unsigned long kanzi::CompositionRequirements::getMask |
( |
| ) |
const |
|
inline |
Gets the unsigned long bitmask representation of the composition requirements.
- Returns
- Bit mask of requirements.
◆ isAlphaRequired()
bool kanzi::CompositionRequirements::isAlphaRequired |
( |
| ) |
const |
|
inline |
Is alpha channel required.
- Returns
- True if flag set, false otherwise.
◆ setAlphaRequired()
void kanzi::CompositionRequirements::setAlphaRequired |
( |
bool | flag | ) |
|
|
inline |
Sets alpha channel requirement flag.
- Parameters
-
flag | New color clear flag. |
◆ isDepthRequired()
bool kanzi::CompositionRequirements::isDepthRequired |
( |
| ) |
const |
|
inline |
Is depth buffer required.
- Returns
- True if flag set, false otherwise.
◆ setDepthRequired()
void kanzi::CompositionRequirements::setDepthRequired |
( |
bool | flag | ) |
|
|
inline |
Sets depth buffer requirement flag.
- Parameters
-
flag | New color clear flag. |
◆ isStencilRequired()
bool kanzi::CompositionRequirements::isStencilRequired |
( |
| ) |
const |
|
inline |
Is stencil buffer required.
- Returns
- True if flag set, false otherwise.
◆ setStencilRequired()
void kanzi::CompositionRequirements::setStencilRequired |
( |
bool | flag | ) |
|
|
inline |
Sets stencil buffer requirement flag.
- Parameters
-
flag | New color clear flag. |
◆ hasColorClear()
bool kanzi::CompositionRequirements::hasColorClear |
( |
| ) |
const |
|
inline |
Is color clear flag set?
- Returns
- True if flag set, false otherwise.
◆ setColorClear()
void kanzi::CompositionRequirements::setColorClear |
( |
bool | flag | ) |
|
|
inline |
Sets the color clear flag.
- Parameters
-
flag | New color clear flag. |
◆ hasDepthClear()
bool kanzi::CompositionRequirements::hasDepthClear |
( |
| ) |
const |
|
inline |
Is depth clear flag set?
- Returns
- True if flag set, false otherwise.
◆ setDepthClear()
void kanzi::CompositionRequirements::setDepthClear |
( |
bool | flag | ) |
|
|
inline |
Sets the depth clear flag.
- Parameters
-
flag | New color clear flag. |
◆ hasStencilClear()
bool kanzi::CompositionRequirements::hasStencilClear |
( |
| ) |
const |
|
inline |
Is stencil clear flag set?
- Returns
- True if flag set, false otherwise.
◆ setStencilClear()
void kanzi::CompositionRequirements::setStencilClear |
( |
bool | flag | ) |
|
|
inline |
Sets the stencil clear flag.
- Parameters
-
flag | New color clear flag. |
◆ operator==()
Equals operator.
- Parameters
-
other | Other comparison requirements. |
- Returns
- If requirements match, true, otherwise false.
◆ operator!=()
Not equals operator.
- Parameters
-
other | Other comparison requirements. |
- Returns
- If requirements do not match, true, otherwise false.
The documentation for this class was generated from the following file: