AttachmentPoint.
More...
#include <kanzi/core.ui/graphics2d/framebuffer.hpp>
AttachmentPoint.
Controls single attachment point within the framebuffer.
- Since
- Kanzi 3.9.0
kanzi::Framebuffer::AttachmentPoint::AttachmentPoint |
( |
| ) |
|
|
explicitdefault |
kanzi::Framebuffer::AttachmentPoint::AttachmentPoint |
( |
TextureSharedPtr |
texture | ) |
|
|
inlineexplicit |
Texture* kanzi::Framebuffer::AttachmentPoint::getTexture |
( |
| ) |
const |
|
inline |
Gets the texture in this attachment point.
- Returns
- Pointer to texture.
Renderbuffer* kanzi::Framebuffer::AttachmentPoint::getRenderbuffer |
( |
| ) |
const |
|
inline |
Gets the renderbuffer in this attachment point.
- Returns
- Pointer to renderbuffer.
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.
Updates the renderbuffer/texture state.
Renderbuffer is favored over texture.
- Parameters
-
- Returns
- If the state was changed true, otherwise false.
void kanzi::Framebuffer::AttachmentPoint::setTexture |
( |
TextureSharedPtr |
texture | ) |
|
Sets this attachment point to texture status.
- Parameters
-
Sets this attachment point to texture status.
- Parameters
-
The documentation for this struct was generated from the following file: