GLFramebufferHandle manages RAII ownership for GL framebuffer object.
More...
#include <kanzi/core.ui/platform/graphics_backend/gl/gl_framebuffer_handle.hpp>
GLFramebufferHandle manages RAII ownership for GL framebuffer object.
◆ GLFramebufferHandle() [1/3]
kanzi::GLFramebufferHandle::GLFramebufferHandle |
( |
| ) |
|
|
explicit |
◆ GLFramebufferHandle() [2/3]
kanzi::GLFramebufferHandle::GLFramebufferHandle |
( |
Renderer * | renderer | ) |
|
|
explicit |
Creates a new GL framebuffer object with renderer and constructs a GLFramebufferHandle which owns it.
- Parameters
-
◆ ~GLFramebufferHandle()
kanzi::GLFramebufferHandle::~GLFramebufferHandle |
( |
| ) |
|
◆ GLFramebufferHandle() [3/3]
Move constructor.
- Parameters
-
other | Source framebuffer handle. |
◆ release()
Releases the ownership of the GL framebuffer if any.
get() returns 0 after the call.
- Returns
- Handle to the GL framebuffer object
◆ operator=()
Move operator.
- Parameters
-
other | Source framebuffer handle. |
- Returns
- This handle.
◆ get()
Returns GL handle to the framebuffer object, or 0 if no GL framebuffer is owned.
◆ reset()
void kanzi::GLFramebufferHandle::reset |
( |
| ) |
|
◆ operator bool_type()
kanzi::GLFramebufferHandle::operator bool_type |
( |
| ) |
const |
|
inline |
◆ swap
The documentation for this class was generated from the following file: