Kanzi 4.0.0-beta2
kanzi::Framebuffer::ResolveTarget Class Reference

Resolve target. More...

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

Public Member Functions

TextureSharedPtr getSharedTexture () const
 Gets a shared reference to the referred texture.
 
bool isValid () const
 Indicates whether this resolve target is valid.
 
 operator bool () const
 Bool operator.
 
const ResolveTargetoperator= (const ResolveTarget &)=delete
 Deleted assignment operator.
 
ResolveTargetoperator= (ResolveTarget &&other)
 Move operator.
 
 ResolveTarget ()=default
 Default constructor.
 
 ResolveTarget (const ResolveTarget &)=delete
 Deleted copy constructor.
 
 ResolveTarget (const TextureSharedPtr &texture)
 Constructor.
 
 ResolveTarget (ResolveTarget &&other)
 Move constructor.
 
bool setTexture (const TextureSharedPtr &texture)
 Updates the texture.
 

Protected Attributes

TextureWeakPtr m_texture
 Texture to resolve to.
 

Detailed Description

Resolve target.

Denotes textures to resolve. Each multisampled attachment point resolves to the corresponding resolve target.

Since
Kanzi 4.0.0

Constructor & Destructor Documentation

◆ ResolveTarget() [1/4]

kanzi::Framebuffer::ResolveTarget::ResolveTarget ( )
explicitdefault

Default constructor.

◆ ResolveTarget() [2/4]

kanzi::Framebuffer::ResolveTarget::ResolveTarget ( const TextureSharedPtr & texture)
inlineexplicit

Constructor.

Parameters
textureTexture to resolve to.

◆ ResolveTarget() [3/4]

kanzi::Framebuffer::ResolveTarget::ResolveTarget ( ResolveTarget && other)
inline

Move constructor.

Parameters
otherSource object.

◆ ResolveTarget() [4/4]

kanzi::Framebuffer::ResolveTarget::ResolveTarget ( const ResolveTarget & )
delete

Deleted copy constructor.

Member Function Documentation

◆ operator=() [1/2]

const ResolveTarget & kanzi::Framebuffer::ResolveTarget::operator= ( const ResolveTarget & )
delete

Deleted assignment operator.

◆ getSharedTexture()

TextureSharedPtr kanzi::Framebuffer::ResolveTarget::getSharedTexture ( ) const
inline

Gets a shared reference to the referred texture.

Returns
Shared reference to a texture or nullptr.

◆ isValid()

bool kanzi::Framebuffer::ResolveTarget::isValid ( ) const
inline

Indicates whether this resolve target is valid.

Returns
If valid, true, otherwise false.

◆ setTexture()

bool kanzi::Framebuffer::ResolveTarget::setTexture ( const TextureSharedPtr & texture)
inline

Updates the texture.

Parameters
textureInput texture.
Returns
If the texture changed, true, otherwise false.

◆ operator bool()

kanzi::Framebuffer::ResolveTarget::operator bool ( ) const
inline

Bool operator.

Returns
If the resolve target is valid, true, false otherwise.

◆ operator=() [2/2]

ResolveTarget & kanzi::Framebuffer::ResolveTarget::operator= ( ResolveTarget && other)
inline

Move operator.

Parameters
otherSource object.
Returns
This object.

Member Data Documentation

◆ m_texture

TextureWeakPtr kanzi::Framebuffer::ResolveTarget::m_texture
protected

Texture to resolve to.


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