GLProgramHandle manages RAII ownership for GL program object.
More...
#include <kanzi/core.ui/platform/graphics_backend/gl/gl_program_handle.hpp>
GLProgramHandle manages RAII ownership for GL program object.
kanzi::GLProgramHandle::GLProgramHandle |
( |
| ) |
|
|
explicit |
Creates an empty GL program handle which does not own anything.
Creates a new GL program object with renderer and constructs a GLProgramHandle which owns it.
kanzi::GLProgramHandle::~GLProgramHandle |
( |
| ) |
|
unsigned int kanzi::GLProgramHandle::release |
( |
| ) |
|
Releases the ownership of the GL program if any.
get() returns 0 after the call.
- Returns
- Handle to the GL program object
unsigned int kanzi::GLProgramHandle::get |
( |
| ) |
const |
|
inline |
Returms GL handle to the program object or 0 if no GL program is owned.
void kanzi::GLProgramHandle::reset |
( |
| ) |
|
Destroys the GL program object currently managed by the GLProgramHandle (if any)
kanzi::GLProgramHandle::operator bool_type |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: