Individual render value container. More...
#include <kanzi/core.ui/platform/graphics_backend/gl/gl_render_value.hpp>
Public Member Functions | |
T | get () const |
Get the value contained in this object. | |
GlRenderValue ()=default | |
Empty constructor. | |
GlRenderValue (GlRenderValue &&other)=default | |
Move constructor. | |
GlRenderValue (int uniformLocation, string_view name) | |
Constructor. | |
GlRenderValue (Material &material, string_view name) | |
Constructor. | |
GlRenderValue & | operator= (GlRenderValue &&other)=default |
Move operator. | |
void | set (T value) |
Set value. | |
![]() | |
const char * | getName () const |
Access name. | |
int | getUniformLocation () const |
Gets uniform location. | |
GlRenderValueBase ()=default | |
Constructor. | |
GlRenderValueBase (GlRenderValueBase &&other)=default | |
Move constructor. | |
GlRenderValueBase (int uniformLocation, string_view name) | |
Constructor. | |
GlRenderValueBase (Material &material, string_view name) | |
Constructor. | |
bool | isDirty () const |
Tells if this value is dirty. | |
bool | isNamed (string_view name) const |
Tells if the render value has given name. | |
bool | isValid () const |
Tells if this value information is valid. | |
GlRenderValueBase & | operator= (GlRenderValueBase &&other)=default |
Move operator. | |
void | setDirty (bool enabled) |
Sets dirty status. | |
void | setUniformLocation (int uniformLocation) |
Sets uniform location. | |
Additional Inherited Members | |
![]() | |
bool | m_dirty |
Is this value dirty and needs updating? | |
ImmutableString | m_name |
Name of the render value. | |
int | m_uniformLocation |
Uniform location. | |
Individual render value container.
Use this class to store render values in classes that do not want a complete render state.
|
explicitdefault |
Empty constructor.
|
inlineexplicit |
Constructor.
material | Material to acquire uniform location from. |
name | Name of the render value. |
|
inlineexplicit |
Constructor.
uniformLocation | Uniform location already acquired from shader. |
name | Name of the render value. |
|
default |
Move constructor.
other | Source object. |
|
inline |
Get the value contained in this object.
Set value.
value | New value. |
|
default |
Move operator.
other | Source object. |