OpenGL render state.
More...
#include <kanzi/core.ui/platform/graphics_backend/gl/gl_render_state.hpp>
|
typedef int | HandleType |
| Type for handle identifiers into values in the render state. More...
|
|
Type for handle identifiers into values in the render state.
kanzi::GlRenderState::GlRenderState |
( |
| ) |
|
|
inlineexplicit |
int kanzi::GlRenderState::acquireUniformLocation |
( |
string_view |
name | ) |
const |
Acquire uniform location based on data in this container.
- Parameters
-
- Returns
- Uniform location integer.
Acquire uniform location wrapper.
- Parameters
-
propertyType | Property type to query. |
- Returns
- Uniform location integer.
void kanzi::GlRenderState::bind |
( |
Renderer3D & |
renderer | ) |
|
Apply the render state and be ready for rendering.
- Parameters
-
Attach to a certain material/node combination.
- Parameters
-
void kanzi::GlRenderState::applyTextureProperty |
( |
Renderer * |
renderer, |
|
|
Texture * |
texture, |
|
|
int |
textureUniformLocation |
|
) |
| |
Apply a texture property.
Will use render state internal state information.
- Parameters
-
renderer | Renderer to use. |
texture | Texture to apply. |
textureUniformLocation | Location of texture uniform. |
void kanzi::GlRenderState::reattach |
( |
| ) |
|
Reattach already-attached material.
Does nothing if no material attached.
Access material.
- Returns
- Pointer to material.
template<typename T >
void kanzi::GlRenderState::setValue |
( |
int |
handle, |
|
|
T |
value |
|
) |
| |
|
inline |
Set a render value identified by handle.
The handle may be invalid (negative), in which case this function does nothing.
- Parameters
-
handle | Identifying handle. |
value | Value to set. |
Get blend mode value.
- Returns
- Optional blend mode value.
Set blend mode value.
- Parameters
-
template<typename T >
HandleType kanzi::GlRenderState::getHandle |
( |
string_view |
name | ) |
|
|
inline |
Access handle by type.
- Parameters
-
- Returns
- Handle (index) to info array.
template<typename T >
T kanzi::GlRenderState::getValue |
( |
HandleType |
handle | ) |
const |
|
inline |
Access value by handle.
Handle must be valid, access with invalid handle is undefined behavior.
- Parameters
-
- Returns
- Value previously stored with the handle.
template<>
KANZI_API int kanzi::GlRenderState::getHandle |
( |
string_view |
name | ) |
|
The documentation for this class was generated from the following file: