Specialized property state and value container for render state. More...
#include <kanzi/core.ui/platform/graphics_backend/gl/render_state_property_notification_handler.hpp>
Public Member Functions | |
TypedRenderStatePropertyNotificationHandler () | |
Empty constructor. More... | |
TypedRenderStatePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node) | |
Constructor Has no handle. More... | |
TypedRenderStatePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node, GlRenderState::HandleType handle, ShaderProgram::UniformTransformation transformation) | |
Constructor. More... | |
![]() | |
int | getHandle () const |
Access handle. More... | |
void | update (GlRenderState &renderState, PropertyObject *object, Material &material) |
Update render state with new values acquirable from this. More... | |
![]() | |
bool | isDirty () const |
Is the container dirty? More... | |
RenderValuePropertyNotificationHandlerBase & | operator= (RenderValuePropertyNotificationHandlerBase &&other) |
Assignment operator. More... | |
void | setDirty (bool enabled) |
Set dirty flag state. More... | |
![]() | |
Node * | getNode () const |
Access the node. More... | |
void | invalidate () |
Invalidates the state of the notification handler. More... | |
bool | isValid () const |
Tell if this notification handler is valid. More... | |
![]() | |
AbstractPropertyType | getPropertyType () const |
Get the property type this handler is listening. More... | |
Static Public Member Functions | |
static RenderStatePropertyNotificationHandlerPtr | create (AbstractPropertyType propertyType, Node *node, GlRenderState::HandleType handle, ShaderProgram::UniformTransformation transformation) |
Create a new render state property notification handler. More... | |
Specialized property state and value container for render state.
|
inlineexplicit |
Empty constructor.
|
inlineexplicit |
Constructor Has no handle.
Should only used for blend mode.
propertyType | Property type to listen on. |
node | Node to listen for changes on. |
|
inlineexplicit |
Constructor.
propertyType | Property type to listen on. |
node | Node to listen for changes on. |
handle | Handle into the render state. |
transformation | Uniform transformation. |
|
inlinestatic |
Create a new render state property notification handler.
propertyType | Property type to listen on. |
node | Node to listen for changes on. |
handle | Handle into the render state. |
transformation | Uniform transformation. |
|
inlineoverrideprotectedvirtual |
RenderStatePropertyNotificationHandler::updateOverride() implementation.
Implements kanzi::RenderStatePropertyNotificationHandler.