EntropyCanvas::IExternalTransformSource
EntropyCanvas::IExternalTransformSource
Section titled “EntropyCanvas::IExternalTransformSource”Interface for external transform sources. More…
#include <ExternalTransformSource.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| virtual | ~IExternalTransformSource() =default |
| virtual void | sample(glm::vec3 & outPosition, glm::quat & outRotation) const =0 Sample the current transform from the external source. |
Detailed Description
Section titled “Detailed Description”class EntropyCanvas::IExternalTransformSource;Interface for external transform sources.
Implement this for systems that own transforms externally:
- Input-driven cameras (FPS controller)
- XR tracking (headset, controllers, hands)
- Motion capture systems
- Network-predicted transforms
Thread safety: sample() must be safe to call from any thread.
Public Functions Documentation
Section titled “Public Functions Documentation”function ~IExternalTransformSource
Section titled “function ~IExternalTransformSource”virtual ~IExternalTransformSource() =defaultfunction sample
Section titled “function sample”virtual void sample( glm::vec3 & outPosition, glm::quat & outRotation) const =0Sample the current transform from the external source.
Parameters:
- outPosition Output position
- outRotation Output rotation
Called by:
- Render thread (for low-latency camera updates)
- Simulation thread (for syncing to ECS)
Updated on 2026-01-26 at 17:14:35 -0500