Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
AnimationBindings.cpp File Reference

The tween entry points the SDK's Tween API drives. More...

Include dependency graph for AnimationBindings.cpp:

Go to the source code of this file.

Namespaces

namespace  esengine

Functions

static EstellaContext & esengine::ctx ()
u32 esengine::anim_createTween (ecs::Registry &registry, u32 entity, u32 targetProp, f32 from, f32 to, f32 duration, u32 easing, f32 delay, u32 loopMode, i32 loopCount)
void esengine::anim_cancelTween (ecs::Registry &registry, u32 tweenEntity)
void esengine::anim_cancelAllTweens (ecs::Registry &registry, u32 targetEntity)
void esengine::anim_pauseTween (ecs::Registry &registry, u32 tweenEntity)
void esengine::anim_resumeTween (ecs::Registry &registry, u32 tweenEntity)
void esengine::anim_setTweenBezier (ecs::Registry &registry, u32 tweenEntity, f32 p1x, f32 p1y, f32 p2x, f32 p2y)
void esengine::anim_setSequenceNext (ecs::Registry &registry, u32 tweenEntity, u32 nextEntity)
void esengine::anim_updateTweens (ecs::Registry &registry, f32 deltaTime)
i32 esengine::anim_getTweenState (ecs::Registry &registry, u32 tweenEntity)

Detailed Description

The tween entry points the SDK's Tween API drives.

Moved out of WebSDKEntry.cpp — the emscripten entry TU — which is the only reason they were web-only: the bodies just reach the engine through activeCtx() and the registry, both portable. A device now compiles this TU and registers the same functions from generated QuickJS wrappers, so tweens run there on the same implementation.

Author
ESEngine Team
Date
2026

Definition in file AnimationBindings.cpp.