Composition target. More...
#include <kanzi/core.ui/graphics2d/composition_manager.hpp>
Public Member Functions | |
void | generateMipmaps () |
Generate mipmaps for all textures in the composition target. | |
Sampler::AddressingMode | getAddressingMode () const |
Gets the addressing mode of the composition target. | |
TextureSharedPtr | getAttachmentPointTexture (FramebufferAttachmentPoint attachmentPoint) const |
Gets the texture corresponding to a given attachment point. | |
GraphicsFormat | getColorFormat () const |
Gets the color format. | |
RenderbufferSharedPtr | getColorRenderbuffer () const |
Gets the color renderbuffer. | |
TextureSharedPtr | getCompositionTexture () const |
Gets the texture used for composition. | |
GraphicsFormat | getDepthStencilFormat () const |
Gets the depth and/or stencil format. | |
RenderbufferSharedPtr | getDepthStencilRenderbuffer () const |
Gets the depth/stencil renderbuffer. | |
TextureSharedPtr | getDepthTexture () const |
Gets the depth texture. | |
Sampler::Filter | getFilterMode () const |
Gets the filter mode of the composition target. | |
unsigned int | getHeight () const |
Gets the height of the texture that has the framebuffer. | |
Sampler::MipmapMode | getMipmapMode () const |
Gets the mipmap mode of the composition target. | |
tuple< TextureSharedPtr, bool, bool > | getResolveSettings () const |
Get the information for resolve target. | |
unsigned int | getSampleCount () const |
Gets the sample count for the composition target. | |
TextureSharedPtr | getTexture () const |
Gets the main texture. | |
unsigned int | getWidth () const |
Gets the width of the texture that has the framebuffer. | |
operator bool_type () const | |
void | reset () |
Clear all memory used by the composition target. | |
void | setColorTexture (TextureSharedPtr colorTexture) |
Sets the color texture. | |
void | setDepthTexture (TextureSharedPtr depthTexture) |
Sets the depth texture. | |
Target () | |
Empty constructor. | |
Target (TextureSharedPtr texture) | |
Constructor. | |
Target (TextureSharedPtr texture, RenderbufferSharedPtr colorRenderBuffer, TextureSharedPtr depthTexture) | |
Constructor. | |
Composition target.
Collection of different elements managed by the composition manager.
|
inlineexplicit |
Empty constructor.
Target created in this way is not valid.
|
inlineexplicit |
Constructor.
Only texture is defined.
|
inlineexplicit |
Constructor.
Specify all components and reattach framebuffers.
texture | Main texture. |
colorRenderBuffer | Color render buffer. |
depthTexture | Depth texture. |
|
inline |
Gets the main texture.
Main texture may exist even if its graphics format is GraphicsFormatNone.
|
inline |
Sets the color texture.
Kanzi uses this function internally. You do not need to manually modify the composition targets.
colorTexture | Color texture to set. |
|
inline |
Gets the color renderbuffer.
|
inline |
Gets the depth/stencil renderbuffer.
|
inline |
Gets the depth texture.
|
inline |
Sets the depth texture.
Kanzi uses this function internally. You do not need to manually modify the composition targets.
depthTexture | Depth texture to set. |
Gets the width of the texture that has the framebuffer.
Gets the height of the texture that has the framebuffer.
Gets the sample count for the composition target.
This is either the sample count for the texture with the framebuffer or for the color render buffer.
|
inline |
Gets the addressing mode of the composition target.
All textures in the composition target have the same sampling mode.
|
inline |
Gets the filter mode of the composition target.
All textures in the composition target have the same filter mode.
|
inline |
Gets the mipmap mode of the composition target.
All textures in the composition target have the same mipmap mode.
|
inline |
Gets the color format.
This is either the color format of the color render buffer, or that of the texture.
|
inline |
Gets the depth and/or stencil format.
Depth and/or stencil format is combined from the format of the texture and potentially of the depth texture.
|
inline |
Gets the texture used for composition.
|
inline |
Get the information for resolve target.
|
inline |
Gets the texture corresponding to a given attachment point.
attachmentPoint | Attachment point to get. |
|
inline |
Generate mipmaps for all textures in the composition target.
|
inline |
Clear all memory used by the composition target.
|
inline |