GLRenderbufferHandle manages RAII ownership for GL renderbuffer object.
More...
#include <kanzi/core.ui/platform/graphics_backend/gl/gl_renderbuffer_handle.hpp>
GLRenderbufferHandle manages RAII ownership for GL renderbuffer object.
kanzi::GLRenderbufferHandle::GLRenderbufferHandle |
( |
| ) |
|
|
explicit |
kanzi::GLRenderbufferHandle::GLRenderbufferHandle |
( |
Renderer * |
renderer | ) |
|
|
explicit |
Creates a new GL renderbuffer object with renderer and constructs a GLRenderbufferHandle which owns it.
- Parameters
-
kanzi::GLRenderbufferHandle::~GLRenderbufferHandle |
( |
| ) |
|
unsigned int kanzi::GLRenderbufferHandle::release |
( |
| ) |
|
Releases the ownership of the GL renderbuffer if any.
get() returns 0 after the call.
- Returns
- Handle to the GL renderbuffer object
unsigned int kanzi::GLRenderbufferHandle::get |
( |
| ) |
const |
|
inline |
Returns GL handle to the renderbuffer object, or 0 if no GL renderbuffer is owned.
void kanzi::GLRenderbufferHandle::reset |
( |
| ) |
|
kanzi::GLRenderbufferHandle::operator bool_type |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: