|
| | UniformObject (GLint p_uniformLocation=-1) |
| | Creates a uniform wrapper for a specific location.
|
| | UniformObject (const UniformObject &p_other) |
| | Copies uniform location and stored value.
|
| UniformObject & | operator= (const UniformObject &p_other) |
| | Copies uniform location and stored value.
|
| template<typename TType> |
| void | set (TType &&p_value) |
| | Sets the uniform value and schedules synchronization.
|
| template<typename TType> |
| const TType & | get () const |
| | Retrieves the stored uniform value.
|
| bool | hasValue () const |
| | Indicates if a value is currently set.
|
|
| ActivableObject () |
| | Builds a deactivated object.
|
| | ActivableObject (ActivationStatus p_initial) |
| | Builds with a custom initial activation state.
|
|
void | activate () |
| | Sets the state to Activated.
|
|
void | deactivate () |
| | Sets the state to Deactivated.
|
|
void | toggle () |
| | Toggles between activated and deactivated states.
|
| bool | isActive () const |
| | Checks whether the object is currently activated.
|
| Contract | addActivationCallback (const Job &p_callback) |
| | Registers a callback executed when the object activates.
|
| Contract | addDeactivationCallback (const Job &p_callback) |
| | Registers a callback executed when the object deactivates.
|
| | StatefulObject (const ActivationStatus &p_initialState) |
| | Builds with an initial state.
|
|
StatefulObject & | operator= (const StatefulObject &p_other)=delete |
| void | setState (const ActivationStatus &p_newState) |
| | Sets a new state and triggers callbacks registered for it.
|
| ActivationStatus | state () const |
| | Returns the current state.
|
| Contract | addCallback (const ActivationStatus &p_state, const Job &p_callback) |
| | Subscribes a callback for a specific state.
|
|
void | requestSynchronization () noexcept |
| | Marks the object as needing synchronization.
|
| bool | needsSynchronization () const noexcept |
| | Checks if synchronization is pending.
|
|
void | synchronize () |
| | Performs synchronization if requested.
|
|
void | forceSynchronization () |
| | Forces synchronization regardless of current flag.
|
Stores a uniform value and applies it on synchronization.