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.
◆ GLRenderbufferHandle() [1/3]
kanzi::GLRenderbufferHandle::GLRenderbufferHandle |
( |
| ) |
|
|
explicit |
◆ GLRenderbufferHandle() [2/3]
kanzi::GLRenderbufferHandle::GLRenderbufferHandle |
( |
Renderer * |
renderer | ) |
|
|
explicit |
Creates a new GL renderbuffer object with renderer and constructs a GLRenderbufferHandle which owns it.
- Parameters
-
◆ ~GLRenderbufferHandle()
kanzi::GLRenderbufferHandle::~GLRenderbufferHandle |
( |
| ) |
|
◆ GLRenderbufferHandle() [3/3]
◆ release()
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
◆ operator=()
◆ get()
unsigned int kanzi::GLRenderbufferHandle::get |
( |
| ) |
const |
|
inline |
Returns GL handle to the renderbuffer object, or 0 if no GL renderbuffer is owned.
◆ reset()
void kanzi::GLRenderbufferHandle::reset |
( |
| ) |
|
◆ operator bool_type()
kanzi::GLRenderbufferHandle::operator bool_type |
( |
| ) |
const |
|
inline |
◆ swap
The documentation for this class was generated from the following file: