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.
kanzi::GLFramebufferHandle::GLFramebufferHandle |
( |
| ) |
|
|
explicit |
kanzi::GLFramebufferHandle::GLFramebufferHandle |
( |
Renderer * |
renderer | ) |
|
|
explicit |
Creates a new GL framebuffer object with renderer and constructs a GLFramebufferHandle which owns it.
- Parameters
-
renderer | Renderer to use for allocating the handle. |
Move constructor.
- Parameters
-
other | Source framebuffer handle. |
kanzi::GLFramebufferHandle::~GLFramebufferHandle |
( |
| ) |
|
unsigned int kanzi::GLFramebufferHandle::release |
( |
| ) |
|
Releases the ownership of the GL framebuffer if any.
get() returns 0 after the call.
- Returns
- Handle to the GL framebuffer object.
void kanzi::GLFramebufferHandle::reset |
( |
| ) |
|
unsigned int kanzi::GLFramebufferHandle::get |
( |
| ) |
const |
|
inline |
Returns GL handle to the framebuffer object.
- Returns
- GL framebuffer handle or 0 if no GL framebuffer is owned.
Move operator.
- Parameters
-
other | Source framebuffer handle. |
- Returns
- This object.
kanzi::GLFramebufferHandle::operator bool_type |
( |
| ) |
const |
|
inline |
void kanzi::GLFramebufferHandle::deleteInternalHandle |
( |
| ) |
|
|
protected |
Deletes the internal framebuffer handle.
Called other functions in the framebuffer handle.
The documentation for this class was generated from the following file: