MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ compute_view_transform()

MAYAFLUX_API ViewTransform MayaFlux::Kinesis::compute_view_transform ( NavigationState state,
float  aspect 
)

Compute a ViewTransform from the current NavigationState.

Computes dt from state.last_tick, advances eye position by held movement flags scaled by move_speed * dt, updates last_tick, then constructs view and projection matrices.

Parameters
stateNavigation state (eye and last_tick mutated by this call)
aspectFramebuffer width / height
Returns
ViewTransform ready for push constant upload

Definition at line 23 of file NavigationState.cpp.

24{
26 return build_view_transform(st, aspect);
27}
void advance_navigation(NavigationState &st)
Advance eye position by held movement flags against elapsed time.
ViewTransform build_view_transform(const NavigationState &st, float aspect)
Build a ViewTransform from the current NavigationState without mutating it.

References advance_navigation(), and build_view_transform().

Referenced by MayaFlux::bind_fly_preset(), MayaFlux::Nexus::Locus::Locus(), and MayaFlux::Nexus::Locus::Locus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: