Class ShaderController
#include <ShaderController.h>
Inherits the following classes: Controllers
Public Functions
| Type | Name |
|---|---|
| virtual void | bind (EventPool & pool) override Subscribe to relevant events in the EventPool . |
Public Functions inherited from Controllers
See Controllers
| Type | Name |
|---|---|
| virtual void | bind (EventPool & pool) = 0 Subscribe to relevant events in the EventPool . |
Public Functions Documentation
function bind
Subscribe to relevant events in the EventPool .
virtual void ShaderController::bind (
EventPool & pool
) override
This method is called once during controller initialization to establish event subscriptions. Controllers should subscribe to all events they need to handle their domain logic (e.g., CameraController subscribes to mouse drag).
Event handlers typically: * Validate event data * Update scene objects (Transform, Material, etc.) * Emit secondary events to notify other systems
Parameters:
poolThe EventPool to bind subscriptions to
Note:
This is called before any events are emitted, ensuring handlers are ready.
Note:
Subscriptions persist for the lifetime of the controller.
Implements Controllers::bind
The documentation for this class was generated from the following file src/editor/controllers/ShaderController.h