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.
◆ GLProgramHandle() [1/3]
kanzi::GLProgramHandle::GLProgramHandle |
( |
| ) |
|
|
explicit |
Creates an empty GL program handle which does not own anything.
◆ GLProgramHandle() [2/3]
Creates a new GL program object with renderer and constructs a GLProgramHandle which owns it.
◆ ~GLProgramHandle()
kanzi::GLProgramHandle::~GLProgramHandle |
( |
| ) |
|
◆ GLProgramHandle() [3/3]
◆ release()
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
◆ operator=()
◆ get()
unsigned int kanzi::GLProgramHandle::get |
( |
| ) |
const |
|
inline |
Returms GL handle to the program object or 0 if no GL program is owned.
◆ reset()
void kanzi::GLProgramHandle::reset |
( |
| ) |
|
Destroys the GL program object currently managed by the GLProgramHandle (if any)
◆ operator bool_type()
kanzi::GLProgramHandle::operator bool_type |
( |
| ) |
const |
|
inline |
◆ swap
The documentation for this class was generated from the following file: