Interface DynamicVisual
- All Superinterfaces:
Visual
- All Known Subinterfaces:
SimpleDynamicVisual
- All Known Implementing Classes:
ComponentEntityVisual,LightStorage.DebugVisual
An interface giving
Visuals a hook to have a function called at
the start of a frame. By implementing DynamicVisual, an Visual
can animate its models in ways that could not be easily achieved by shader attribute
parameterization.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe context passed to the frame plan. -
Method Summary
-
Method Details
-
planFrame
Plan<DynamicVisual.Context> planFrame()Invoked every frame.
The implementation is free to parallelize the invocation of this plan. You must ensure proper synchronization if you need to mutate anything outside this visual.
This plan and the one returned byTickableVisual.planTick()will never be invoked simultaneously.
Instancer/Instancecreation/acquisition is safe here.
-