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
-
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
unsigned int kanzi::GLFramebufferHandle::get |
( |
| ) |
const |
|
inline |
Returns GL handle to the framebuffer object, or 0 if no GL framebuffer is owned.
void kanzi::GLFramebufferHandle::reset |
( |
| ) |
|
kanzi::GLFramebufferHandle::operator bool_type |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: