kanzi::CompositionManager::Request Class Reference

Composition request class. More...

#include <kanzi/core.ui/platform/graphics_backend/gl/composition_manager.hpp>

Public Member Functions

 Request (unsigned int width, unsigned int height, GraphicsFormat colorFormat, GraphicsFormat depthStencilFormat)
 Constructor. More...
 
 Request (unsigned int width, unsigned int height, GraphicsFormat colorFormat, unsigned int samples)
 Constructor. More...
 
 Request (unsigned int width, unsigned int height, GraphicsFormat colorFormat, GraphicsFormat depthStencilFormat, unsigned int samples)
 Constructor. More...
 
 Request (unsigned int width, unsigned int height, GraphicsFormatFeature colorFeatures, GraphicsFormat colorFormat, GraphicsFormatFeature depthFeatures, GraphicsFormat depthStencilFormat, unsigned int samples)
 Constructor. More...
 
 Request (unsigned int width, unsigned int height, GraphicsFormat colorFormat, Sampler::AddressingMode addressingMode, Sampler::Filter filterMode, Sampler::MipmapMode mipmapMode)
 Constructor. More...
 
 Request (unsigned int width, unsigned int height, GraphicsFormat colorFormat, GraphicsFormat depthStencilFormat, Sampler::AddressingMode addressingMode)
 Constructor. More...
 
 Request (unsigned int width, unsigned int height, GraphicsFormat colorFormat, GraphicsFormat depthStencilFormat, Sampler::AddressingMode addressingMode, Sampler::MipmapMode mipmapMode, unsigned int samples)
 Constructor. More...
 
unsigned int getWidth () const
 Gets required width. More...
 
unsigned int getHeight () const
 Gets required height. More...
 
unsigned int getSamples () const
 Gets required samples. More...
 
void setSamples (unsigned int samples)
 Sets required samples. More...
 
GraphicsFormat getColorFormat () const
 Gets required color format. More...
 
GraphicsFormat getDepthStencilFormat () const
 Gets required depth/stencil format. More...
 
bool isColorTextureRequired () const
 Tells if color texture is required. More...
 
bool isColorRenderbufferRequired () const
 Tells if color render buffer is required. More...
 
bool isDepthTextureRequired () const
 Tells if depth texture is required. More...
 
bool isDepthRenderbufferRequired () const
 Tells if depth render buffer is required. More...
 
Sampler::AddressingMode getAddressingMode () const
 Gets required addressing mode. More...
 
Sampler::Filter getFilterMode () const
 Gets the required filter mode. More...
 
Sampler::MipmapMode getMipmapMode () const
 Gets required mipmap mode. More...
 
void setColorRenderbufferFormat (GraphicsFormat colorFormat)
 Sets color renderbuffer format. More...
 
void setColorTextureFormat (GraphicsFormat colorFormat)
 Sets color texture format. More...
 
void setDepthStencilRenderbufferFormat (GraphicsFormat depthStencilFormat)
 Sets depth/stencil renderbuffer format. More...
 
void setDepthStencilTextureFormat (GraphicsFormat depthStencilFormat)
 Sets depth/stencil texture format. More...
 

Detailed Description

Composition request class.

Packs all attributes of a composition request.

Constructor & Destructor Documentation

kanzi::CompositionManager::Request::Request ( unsigned int  width,
unsigned int  height,
GraphicsFormat  colorFormat,
GraphicsFormat  depthStencilFormat 
)
inlineexplicit

Constructor.

Parameters
widthRequested width.
heightRequested height.
colorFormatColor buffer format.
depthStencilFormatDepth/stencil buffer format.
kanzi::CompositionManager::Request::Request ( unsigned int  width,
unsigned int  height,
GraphicsFormat  colorFormat,
unsigned int  samples 
)
inlineexplicit

Constructor.

Parameters
widthRequested width.
heightRequested height.
colorFormatColor buffer format.
samplesRequested multisample level.
kanzi::CompositionManager::Request::Request ( unsigned int  width,
unsigned int  height,
GraphicsFormat  colorFormat,
GraphicsFormat  depthStencilFormat,
unsigned int  samples 
)
inlineexplicit

Constructor.

Parameters
widthRequested width.
heightRequested height.
colorFormatColor buffer format.
depthStencilFormatDepth/stencil buffer format.
samplesRequested multisample level.
kanzi::CompositionManager::Request::Request ( unsigned int  width,
unsigned int  height,
GraphicsFormatFeature  colorFeatures,
GraphicsFormat  colorFormat,
GraphicsFormatFeature  depthFeatures,
GraphicsFormat  depthStencilFormat,
unsigned int  samples 
)
inlineexplicit

Constructor.

Parameters
widthRequested width.
heightRequested height.
colorFeaturesRequested color features.
colorFormatColor buffer format.
depthFeaturesRequested depth features.
depthStencilFormatDepth/stencil buffer format.
samplesRequested multisample level.
kanzi::CompositionManager::Request::Request ( unsigned int  width,
unsigned int  height,
GraphicsFormat  colorFormat,
Sampler::AddressingMode  addressingMode,
Sampler::Filter  filterMode,
Sampler::MipmapMode  mipmapMode 
)
inlineexplicit

Constructor.

Parameters
widthRequested width.
heightRequested height.
colorFormatColor buffer format.
addressingModeAddressing mode used.
mipmapModeMipmap mode used.
kanzi::CompositionManager::Request::Request ( unsigned int  width,
unsigned int  height,
GraphicsFormat  colorFormat,
GraphicsFormat  depthStencilFormat,
Sampler::AddressingMode  addressingMode 
)
inlineexplicit

Constructor.

Parameters
widthRequested width.
heightRequested height.
colorFormatColor buffer format.
depthStencilFormatDepth/stencil buffer format.
addressingModeAddressing mode used.
kanzi::CompositionManager::Request::Request ( unsigned int  width,
unsigned int  height,
GraphicsFormat  colorFormat,
GraphicsFormat  depthStencilFormat,
Sampler::AddressingMode  addressingMode,
Sampler::MipmapMode  mipmapMode,
unsigned int  samples 
)
inlineexplicit

Constructor.

Parameters
widthRequested width.
heightRequested height.
colorFormatColor buffer format.
depthStencilFormatDepth/stencil buffer format.
addressingModeAddressing mode used.
mipmapModeMipmap mode used.
samplesRequested multisample level.

Member Function Documentation

unsigned int kanzi::CompositionManager::Request::getWidth ( ) const
inline

Gets required width.

Returns
Width.
unsigned int kanzi::CompositionManager::Request::getHeight ( ) const
inline

Gets required height.

Returns
Height.
unsigned int kanzi::CompositionManager::Request::getSamples ( ) const
inline

Gets required samples.

Returns
Samples.
void kanzi::CompositionManager::Request::setSamples ( unsigned int  samples)
inline

Sets required samples.

Parameters
samplesSample count.
GraphicsFormat kanzi::CompositionManager::Request::getColorFormat ( ) const
inline

Gets required color format.

Returns
Color format.
GraphicsFormat kanzi::CompositionManager::Request::getDepthStencilFormat ( ) const
inline

Gets required depth/stencil format.

Returns
Depth/stencil format.
bool kanzi::CompositionManager::Request::isColorTextureRequired ( ) const
inline

Tells if color texture is required.

Returns
True if yes, false if not.
bool kanzi::CompositionManager::Request::isColorRenderbufferRequired ( ) const
inline

Tells if color render buffer is required.

Returns
True if yes, false if not.
bool kanzi::CompositionManager::Request::isDepthTextureRequired ( ) const
inline

Tells if depth texture is required.

Returns
True if yes, false if not.
bool kanzi::CompositionManager::Request::isDepthRenderbufferRequired ( ) const
inline

Tells if depth render buffer is required.

Returns
True if yes, false if not.
Sampler::AddressingMode kanzi::CompositionManager::Request::getAddressingMode ( ) const
inline

Gets required addressing mode.

Returns
Addressing mode.
Sampler::Filter kanzi::CompositionManager::Request::getFilterMode ( ) const
inline

Gets the required filter mode.

Returns
Filter mode.
Sampler::MipmapMode kanzi::CompositionManager::Request::getMipmapMode ( ) const
inline

Gets required mipmap mode.

Returns
Mipmap mode.
void kanzi::CompositionManager::Request::setColorRenderbufferFormat ( GraphicsFormat  colorFormat)
inline

Sets color renderbuffer format.

Color features will be set to renderbuffer mask.

Parameters
colorFormatColor format.
void kanzi::CompositionManager::Request::setColorTextureFormat ( GraphicsFormat  colorFormat)
inline

Sets color texture format.

Color features will be set to texture mask.

Parameters
colorFormatColor format.
void kanzi::CompositionManager::Request::setDepthStencilRenderbufferFormat ( GraphicsFormat  depthStencilFormat)
inline

Sets depth/stencil renderbuffer format.

Depth features will be set to renderbuffer mask.

Parameters
depthStencilFormatDepth/stencil format.
void kanzi::CompositionManager::Request::setDepthStencilTextureFormat ( GraphicsFormat  depthStencilFormat)
inline

Sets depth/stencil texture format.

Depth features will be set to texture mask.

Parameters
depthStencilFormatDepth/stencil format.

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