GLShaderHandle manages RAII ownership for GL shader object.
More...
#include <kanzi/core.ui/platform/graphics_backend/gl/gl_shader_handle.hpp>
GLShaderHandle manages RAII ownership for GL shader object.
◆ GLShaderHandle() [1/3]
kanzi::GLShaderHandle::GLShaderHandle |
( |
| ) |
|
|
explicit |
Constructs an empty GLShaderHandle which does not own any GL shader object.
◆ GLShaderHandle() [2/3]
Creates a new GL shader object with renderer and constructs a GLShaderHandle which owns it.
- Parameters
-
renderer | Renderer |
type | Type of GL shader to create |
◆ ~GLShaderHandle()
kanzi::GLShaderHandle::~GLShaderHandle |
( |
| ) |
|
◆ GLShaderHandle() [3/3]
◆ release()
Releases the ownership of the GL shader if any.
get() returns 0 after the call.
- Returns
- Handle to the GL shader object
◆ operator=()
◆ get()
Returns GL handle to the shader object or 0 if no GL shader is owned.
◆ getType()
ShaderType kanzi::GLShaderHandle::getType |
( |
| ) |
const |
|
inline |
◆ reset()
void kanzi::GLShaderHandle::reset |
( |
| ) |
|
Destroys the GL shader object currently managed by the GLShaderHandle (if any)
◆ operator bool_type()
kanzi::GLShaderHandle::operator bool_type |
( |
| ) |
const |
|
inline |
◆ swap
The documentation for this class was generated from the following file: