Property state and value container for render state. More...
#include <kanzi/rendering/render_state_property_notification_handler.hpp>
Public Member Functions | |
RenderStatePropertyNotificationHandler () | |
Empty constructor. More... | |
RenderStatePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node) | |
Constructor. More... | |
RenderStatePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node, size_t handle) | |
Constructor. More... | |
template<typename T > | |
T | acquirePropertyValue (Object &object, Material &material) const |
Acquire default value for this handler. More... | |
virtual void | onPropertyChanged (KzuPropertyNotificationReason) KZ_OVERRIDE |
AbstractPropertyNotificationHandler::onPropertyChanged() implementation. More... | |
void | clearDirtyFlag () |
Clear dirty flag. More... | |
bool | isDirty () const |
Is the container dirty? More... | |
size_t | getHandle () const |
Access handle. More... | |
void | setDirtyFlag () |
Set dirty flag. More... | |
template<> | |
bool | acquirePropertyValue (Object &object, Material &material) const |
template<> | |
GraphicsBlendMode | acquirePropertyValue (Object &object, Material &material) const |
template<> | |
int | acquirePropertyValue (Object &object, Material &material) const |
template<> | |
float | acquirePropertyValue (Object &object, Material &material) const |
template<> | |
KzcColorRGBA | acquirePropertyValue (Object &object, Material &material) const |
template<> | |
KzcVector2 | acquirePropertyValue (Object &object, Material &material) const |
template<> | |
KzcVector3 | acquirePropertyValue (Object &object, Material &material) const |
template<> | |
KzcVector4 | acquirePropertyValue (Object &object, Material &material) const |
template<> | |
KzcMatrix3x3 | acquirePropertyValue (Object &object, Material &material) const |
template<> | |
KzcMatrix4x4 | acquirePropertyValue (Object &object, Material &material) const |
template<> | |
RenderStateResourceContainer | acquirePropertyValue (Object &object, Material &material) const |
![]() | |
bool | isValid () const |
Tell if this notification handler is valid. More... | |
![]() | |
AbstractPropertyType | getPropertyType () const |
Get the property type this handler is listening. More... | |
Additional Inherited Members | |
![]() | |
NodePropertyNotificationHandler () | |
Empty constructor. More... | |
NodePropertyNotificationHandler (const NodePropertyNotificationHandler &rhs) | |
Copy constructor. More... | |
NodePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node) | |
Constructor. More... | |
virtual | ~NodePropertyNotificationHandler () |
Destructor. More... | |
NodePropertyNotificationHandler & | operator= (const NodePropertyNotificationHandler &rhs) |
Assignment operator. More... | |
Node * | getNode () const |
Access the node. More... | |
![]() | |
AbstractPropertyNotificationHandler () | |
Empty constructor. More... | |
AbstractPropertyNotificationHandler (AbstractPropertyType propertyType) | |
Constructor. More... | |
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. |
renderState | Render state to extract extra information from. |
T kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue | ( | Object & | object, |
Material & | material | ||
) | const |
Acquire default value for this handler.
object | Fallback object for property value. |
material | Fallback material for property value. |
|
virtual |
AbstractPropertyNotificationHandler::onPropertyChanged() implementation.
Implements kanzi::AbstractPropertyNotificationHandler.
|
inline |
Clear dirty flag.
|
inline |
Is the container dirty?
|
inline |
Access handle.
|
inline |
Set dirty flag.
bool kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue | ( | Object & | object, |
Material & | material | ||
) | const |
GraphicsBlendMode kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue | ( | Object & | object, |
Material & | material | ||
) | const |
int kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue | ( | Object & | object, |
Material & | material | ||
) | const |
float kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue | ( | Object & | object, |
Material & | material | ||
) | const |
KzcColorRGBA kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue | ( | Object & | object, |
Material & | material | ||
) | const |
KzcVector2 kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue | ( | Object & | object, |
Material & | material | ||
) | const |
KzcVector3 kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue | ( | Object & | object, |
Material & | material | ||
) | const |
KzcVector4 kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue | ( | Object & | object, |
Material & | material | ||
) | const |
KzcMatrix3x3 kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue | ( | Object & | object, |
Material & | material | ||
) | const |
KzcMatrix4x4 kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue | ( | Object & | object, |
Material & | material | ||
) | const |
RenderStateResourceContainer kanzi::RenderStatePropertyNotificationHandler::acquirePropertyValue | ( | Object & | object, |
Material & | material | ||
) | const |