Container for data related to rendering into a single mipmap attachment. More...
#include <kanzi/core.ui/graphics3d/mipmap_generation_concept_impl.hpp>
Public Member Functions | |
| void | clearFramebuffers () |
| Clears the framebuffer setup. | |
| MaterialBrush * | getBrush () const |
| Gets the brush owned by this attachment. | |
| BrushRenderer * | getBrushRenderer () const |
| Gets the brush renderer owned by this attachment. | |
| TextureSharedPtr | getColorTexture () const |
| Gets the color texture associated with the framebuffer stack. | |
| TextureSharedPtr | getDepthTexture () const |
| Gets the depth texture associated with the framebuffer stack. | |
| MipmapFramebufferLevel * | getFramebufferLevel (size_t index) |
| Gets the framebuffer at given level. | |
| MaterialSharedPtr | getMaterial () const |
| Gets the material currently associated with the contained brush. | |
| constexpr bool | isInitalized () const |
| Indicates whether or not this attachment has been initialized. | |
| MipmapAttachment ()=default | |
| Default constructor. | |
| MipmapAttachment (const MipmapAttachment &)=delete | |
| Deleted copy constructor. | |
| MipmapAttachment (Domain *domain, const MaterialSharedPtr &material) | |
| Constructor for a material. | |
| MipmapAttachment (MipmapAttachment &&other) | |
| Move constructor. | |
| constexpr | operator bool () const |
| Bool operator. | |
| MipmapAttachment & | operator= (const MipmapAttachment &)=delete |
| Deleted copy operator. | |
| MipmapAttachment & | operator= (MipmapAttachment &&other) |
| Move operator. | |
| void | setMaterial (const MaterialSharedPtr &material) |
| Sets the material for the material brush. | |
| void | setupFramebuffers (Renderer &renderer, size_t attachmentIndex, const TextureSharedPtr &texture) |
| Sets up the framebuffer chain intended for rendering into mipmap levels of given texture. | |
Protected Attributes | |
| MaterialBrushSharedPtr | m_brush |
| Brush. | |
| BrushRendererPtr | m_brushRenderer |
| Brush renderer. | |
| vector< MipmapFramebufferLevel > | m_framebuffers |
| Framebuffers for rendering into successive levels of mipmaps. | |
Container for data related to rendering into a single mipmap attachment.
Instantiated per attachment.
|
explicitdefault |
Default constructor.
|
explicit |
|
inline |
Move constructor.
| other | Source object. |
|
delete |
Deleted copy constructor.
|
inline |
Move operator.
| other | Source object. |
|
delete |
Deleted copy operator.
|
inline |
Clears the framebuffer setup.
Kanzi calls this function when there is texture associated with the attachment slot.
|
inline |
Gets the color texture associated with the framebuffer stack.
|
inline |
Gets the depth texture associated with the framebuffer stack.
|
inline |
Gets the framebuffer at given level.
| index | Index of level to get. |
|
inline |
Gets the brush owned by this attachment.
|
inline |
Gets the brush renderer owned by this attachment.
|
inlineconstexpr |
Indicates whether or not this attachment has been initialized.
| MaterialSharedPtr kanzi::MipmapGenerationConceptImpl< TBaseClass, TDerivedClass, FaceCount >::MipmapAttachment::getMaterial | ( | ) | const |
Gets the material currently associated with the contained brush.
| void kanzi::MipmapGenerationConceptImpl< TBaseClass, TDerivedClass, FaceCount >::MipmapAttachment::setMaterial | ( | const MaterialSharedPtr & | material | ) |
Sets the material for the material brush.
| material | Material to use. |
| void kanzi::MipmapGenerationConceptImpl< TBaseClass, TDerivedClass, FaceCount >::MipmapAttachment::setupFramebuffers | ( | Renderer & | renderer, |
| size_t | attachmentIndex, | ||
| const TextureSharedPtr & | texture ) |
Sets up the framebuffer chain intended for rendering into mipmap levels of given texture.
This function must be ran every time the texture is modified. Framebuffers are created and destroyed as needed.
|
inlineconstexpr |
Bool operator.
Wraps around to initialization check.
|
protected |
Framebuffers for rendering into successive levels of mipmaps.
|
protected |
|
protected |
Brush renderer.