kanzi::CompositionRequirements Class Reference

Composition requirements represents the required buffers for composition. More...

#include <kanzi/core.ui/graphics2d/composition_requirements.hpp>

Public Types

enum  CompositionFlags {
  AlphaRequired, DepthRequired, StencilRequired, ColorCleared,
  DepthCleared, StencilCleared, CompositionFlagsBitCount
}
 Distinct flags for composition buffer requirements and buffer clears. More...
 

Public Member Functions

 CompositionRequirements ()
 Constructor. More...
 
 CompositionRequirements (unsigned long mask)
 Constructor with bitmask. More...
 
unsigned long getMask () const
 Gets the unsigned long bitmask representation of the composition requirements. More...
 
bool isAlphaRequired () const
 Is alpha channel required. More...
 
void setAlphaRequired (bool flag)
 Sets alpha channel requirement flag. More...
 
bool isDepthRequired () const
 Is depth buffer required. More...
 
void setDepthRequired (bool flag)
 Sets depth buffer requirement flag. More...
 
bool isStencilRequired () const
 Is stencil buffer required. More...
 
void setStencilRequired (bool flag)
 Sets stencil buffer requirement flag. More...
 
bool hasColorClear () const
 Is color clear flag set? More...
 
void setColorClear (bool flag)
 Sets the color clear flag. More...
 
bool hasDepthClear () const
 Is depth clear flag set? More...
 
void setDepthClear (bool flag)
 Sets the depth clear flag. More...
 
bool hasStencilClear () const
 Is stencil clear flag set? More...
 
void setStencilClear (bool flag)
 Sets the stencil clear flag. More...
 

Detailed Description

Composition requirements represents the required buffers for composition.

CompositionRequirements is used by Node2D and RenderPass classes.

Member Enumeration Documentation

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.

Constructor & Destructor Documentation

kanzi::CompositionRequirements::CompositionRequirements ( )
inlineexplicit

Constructor.

kanzi::CompositionRequirements::CompositionRequirements ( unsigned long  mask)
inlineexplicit

Constructor with bitmask.

Parameters
maskMash to use for initialization.

Member Function Documentation

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
flagNew 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
flagNew 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
flagNew 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
flagNew 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
flagNew 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
flagNew color clear flag.

The documentation for this class was generated from the following file: