Render value information. More...
#include <kanzi/core.ui/platform/graphics_backend/gl/gl_render_state.hpp>
Public Member Functions | |
| unsigned int | getElementCount () const |
| Gets the number of elements in this render value. More... | |
| PropertyDataType | getType () const |
| Gets the property type of the render value. More... | |
| template<typename T > | |
| T | getValue (const RenderValueUnion *valueArray, size_t index) const |
| Converts a value from a value array into a value that can be uploaded into the renderer. More... | |
| template<> | |
| bool | getValue (const RenderValueUnion *valueArray, size_t index) const |
| getValue() specialization. More... | |
| template<> | |
| int | getValue (const RenderValueUnion *valueArray, size_t index) const |
| getValue() specialization. More... | |
| template<> | |
| float | getValue (const RenderValueUnion *valueArray, size_t index) const |
| getValue() specialization. More... | |
| template<> | |
| ColorRGBA | getValue (const RenderValueUnion *valueArray, size_t index) const |
| getValue() specialization. More... | |
| template<> | |
| Vector2 | getValue (const RenderValueUnion *valueArray, size_t index) const |
| getValue() specialization. More... | |
| template<> | |
| Vector3 | getValue (const RenderValueUnion *valueArray, size_t index) const |
| getValue() specialization. More... | |
| template<> | |
| Vector4 | getValue (const RenderValueUnion *valueArray, size_t index) const |
| getValue() specialization. More... | |
| template<> | |
| Matrix3x3 | getValue (const RenderValueUnion *valueArray, size_t index) const |
| getValue() specialization. More... | |
| template<> | |
| Matrix4x4 | getValue (const RenderValueUnion *valueArray, size_t index) const |
| getValue() specialization. More... | |
| size_t | getValueIndex () const |
| Gets the value index. More... | |
| template<typename T > | |
| const T * | getValuePointer (const RenderValueUnion *valueArray) const |
| Converts a value array to given pointer value. More... | |
| template<> | |
| const int * | getValuePointer (const RenderValueUnion *valueArray) const |
| getValuePointer() specialization. More... | |
| template<> | |
| const float * | getValuePointer (const RenderValueUnion *valueArray) const |
| getValuePointer() specialization. More... | |
| template<> | |
| const ColorRGBA * | getValuePointer (const RenderValueUnion *valueArray) const |
| getValuePointer() specialization. More... | |
| template<> | |
| const Vector2 * | getValuePointer (const RenderValueUnion *valueArray) const |
| getValuePointer() specialization. More... | |
| template<> | |
| const Vector3 * | getValuePointer (const RenderValueUnion *valueArray) const |
| getValuePointer() specialization. More... | |
| template<> | |
| const Vector4 * | getValuePointer (const RenderValueUnion *valueArray) const |
| getValuePointer() specialization. More... | |
| template<> | |
| const Matrix3x3 * | getValuePointer (const RenderValueUnion *valueArray) const |
| getValuePointer() specialization. More... | |
| template<> | |
| const Matrix4x4 * | getValuePointer (const RenderValueUnion *valueArray) const |
| getValuePointer() specialization. More... | |
| bool | matches (PropertyDataType type, string_view name) const |
| Tells if this render value info matches given parameters. More... | |
| RenderValueInfo & | operator= (RenderValueInfo &&other)=default |
| Move operator. More... | |
| RenderValueInfo (size_t index, PropertyDataType type, unsigned int elementCount, int uniformLocation, string_view name) | |
| Constructor. More... | |
| RenderValueInfo (RenderValueInfo &&other)=default | |
| Move constructor. More... | |
| void | update (Renderer &renderer, const RenderValueUnion *valueArray) |
| Update this render value to renderer. More... | |
Public Member Functions inherited from kanzi::GlRenderValueBase | |
| const char * | getName () const |
| Access name. More... | |
| int | getUniformLocation () const |
| Gets uniform location. More... | |
| GlRenderValueBase ()=default | |
| Constructor. More... | |
| GlRenderValueBase (Material &material, string_view name) | |
| Constructor. More... | |
| GlRenderValueBase (int uniformLocation, string_view name) | |
| Constructor. More... | |
| GlRenderValueBase (GlRenderValueBase &&other)=default | |
| Move constructor. More... | |
| bool | isDirty () const |
| Tells if this value is dirty. More... | |
| bool | isNamed (string_view name) const |
| Tells if the render value has given name. More... | |
| bool | isValid () const |
| Tells if this value information is valid. More... | |
| GlRenderValueBase & | operator= (GlRenderValueBase &&other)=default |
| Move operator. More... | |
| void | setDirty (bool enabled) |
| Sets dirty status. More... | |
| void | setUniformLocation (int uniformLocation) |
| Sets uniform location. More... | |
Additional Inherited Members | |
Protected Attributes inherited from kanzi::GlRenderValueBase | |
| bool | m_dirty |
| Is this value dirty and needs updating? More... | |
| ImmutableString | m_name |
| Name of the render value. More... | |
| int | m_uniformLocation |
| Uniform location. More... | |
Render value information.
Points to the render value union array.
|
inlineexplicit |
Constructor.
| index | Index into the value array. |
| type | Data type of the value. |
| elementCount | Number of elements associated with this render value. |
| uniformLocation | Uniform location. |
| name | Name of the uniform. |
|
default |
Move constructor.
| other | Source object. |
|
inline |
Tells if this render value info matches given parameters.
|
inline |
Gets the property type of the render value.
|
inline |
Gets the number of elements in this render value.
|
inline |
Gets the value index.
| void kanzi::GlRenderState::RenderValueInfo::update | ( | Renderer & | renderer, |
| const RenderValueUnion * | valueArray | ||
| ) |
Update this render value to renderer.
| renderer | Renderer to use. |
| valueArray | Pointer to render value array. |
|
default |
Move operator.
| other | Source object. |
| const T* kanzi::GlRenderState::RenderValueInfo::getValuePointer | ( | const RenderValueUnion * | valueArray | ) | const |
Converts a value array to given pointer value.
| valueArray | The render state value array. |
| T kanzi::GlRenderState::RenderValueInfo::getValue | ( | const RenderValueUnion * | valueArray, |
| size_t | index | ||
| ) | const |
Converts a value from a value array into a value that can be uploaded into the renderer.
| valueArray | The render state value array. |
| index | Index of the value. The index must be smaller than element count of the render value. |
| const int* kanzi::GlRenderState::RenderValueInfo::getValuePointer | ( | const RenderValueUnion * | valueArray | ) | const |
getValuePointer() specialization.
| const float* kanzi::GlRenderState::RenderValueInfo::getValuePointer | ( | const RenderValueUnion * | valueArray | ) | const |
getValuePointer() specialization.
| const ColorRGBA* kanzi::GlRenderState::RenderValueInfo::getValuePointer | ( | const RenderValueUnion * | valueArray | ) | const |
getValuePointer() specialization.
| const Vector2* kanzi::GlRenderState::RenderValueInfo::getValuePointer | ( | const RenderValueUnion * | valueArray | ) | const |
getValuePointer() specialization.
| const Vector3* kanzi::GlRenderState::RenderValueInfo::getValuePointer | ( | const RenderValueUnion * | valueArray | ) | const |
getValuePointer() specialization.
| const Vector4* kanzi::GlRenderState::RenderValueInfo::getValuePointer | ( | const RenderValueUnion * | valueArray | ) | const |
getValuePointer() specialization.
| const Matrix3x3* kanzi::GlRenderState::RenderValueInfo::getValuePointer | ( | const RenderValueUnion * | valueArray | ) | const |
getValuePointer() specialization.
| const Matrix4x4* kanzi::GlRenderState::RenderValueInfo::getValuePointer | ( | const RenderValueUnion * | valueArray | ) | const |
getValuePointer() specialization.
| bool kanzi::GlRenderState::RenderValueInfo::getValue | ( | const RenderValueUnion * | valueArray, |
| size_t | index | ||
| ) | const |
getValue() specialization.
| int kanzi::GlRenderState::RenderValueInfo::getValue | ( | const RenderValueUnion * | valueArray, |
| size_t | index | ||
| ) | const |
getValue() specialization.
| float kanzi::GlRenderState::RenderValueInfo::getValue | ( | const RenderValueUnion * | valueArray, |
| size_t | index | ||
| ) | const |
getValue() specialization.
| ColorRGBA kanzi::GlRenderState::RenderValueInfo::getValue | ( | const RenderValueUnion * | valueArray, |
| size_t | index | ||
| ) | const |
getValue() specialization.
| Vector2 kanzi::GlRenderState::RenderValueInfo::getValue | ( | const RenderValueUnion * | valueArray, |
| size_t | index | ||
| ) | const |
getValue() specialization.
| Vector3 kanzi::GlRenderState::RenderValueInfo::getValue | ( | const RenderValueUnion * | valueArray, |
| size_t | index | ||
| ) | const |
getValue() specialization.
| Vector4 kanzi::GlRenderState::RenderValueInfo::getValue | ( | const RenderValueUnion * | valueArray, |
| size_t | index | ||
| ) | const |
getValue() specialization.
| Matrix3x3 kanzi::GlRenderState::RenderValueInfo::getValue | ( | const RenderValueUnion * | valueArray, |
| size_t | index | ||
| ) | const |
getValue() specialization.
| Matrix4x4 kanzi::GlRenderState::RenderValueInfo::getValue | ( | const RenderValueUnion * | valueArray, |
| size_t | index | ||
| ) | const |
getValue() specialization.