AttachmentPoint.
More...
#include <kanzi/core.ui/graphics2d/framebuffer.hpp>
AttachmentPoint.
Controls single attachment point within the framebuffer.
- Since
- Kanzi 3.9.0
◆ AttachmentPoint() [1/3]
kanzi::Framebuffer::AttachmentPoint::AttachmentPoint |
( |
| ) |
|
|
explicitdefault |
◆ AttachmentPoint() [2/3]
◆ AttachmentPoint() [3/3]
kanzi::Framebuffer::AttachmentPoint::AttachmentPoint |
( |
TextureSharedPtr | texture | ) |
|
|
inlineexplicit |
◆ getTexture()
Texture * kanzi::Framebuffer::AttachmentPoint::getTexture |
( |
| ) |
const |
|
inline |
Gets the texture in this attachment point.
- Returns
- Pointer to texture.
◆ getRenderbuffer()
Renderbuffer * kanzi::Framebuffer::AttachmentPoint::getRenderbuffer |
( |
| ) |
const |
|
inline |
Gets the renderbuffer in this attachment point.
- Returns
- Pointer to renderbuffer.
◆ clear()
void kanzi::Framebuffer::AttachmentPoint::clear |
( |
| ) |
|
|
inline |
Clears the internal state of the handle.
After calling this function, the attachment point does not own any GPU resources.
◆ update()
Updates the renderbuffer/texture state.
Renderbuffer is favored over texture.
- Parameters
-
- Returns
- If the state was changed true, otherwise false.
◆ setTexture()
Sets this attachment point to texture status.
- Parameters
-
◆ setRenderbuffer()
Sets this attachment point to texture status.
- Parameters
-
The documentation for this struct was generated from the following file: