|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
The tween entry points the SDK's Tween API drives. More...
#include "AnimationBindings.hpp"#include "ActiveContext.hpp"#include "../animation/TweenSystem.hpp"
Go to the source code of this file.
Namespaces | |
| namespace | esengine |
Functions | |
| static EstellaContext & | esengine::ctx () |
| u32 | esengine::anim_createTween (ecs::Registry ®istry, u32 entity, u32 targetProp, f32 from, f32 to, f32 duration, u32 easing, f32 delay, u32 loopMode, i32 loopCount) |
| void | esengine::anim_cancelTween (ecs::Registry ®istry, u32 tweenEntity) |
| void | esengine::anim_cancelAllTweens (ecs::Registry ®istry, u32 targetEntity) |
| void | esengine::anim_pauseTween (ecs::Registry ®istry, u32 tweenEntity) |
| void | esengine::anim_resumeTween (ecs::Registry ®istry, u32 tweenEntity) |
| void | esengine::anim_setTweenBezier (ecs::Registry ®istry, u32 tweenEntity, f32 p1x, f32 p1y, f32 p2x, f32 p2y) |
| void | esengine::anim_setSequenceNext (ecs::Registry ®istry, u32 tweenEntity, u32 nextEntity) |
| void | esengine::anim_updateTweens (ecs::Registry ®istry, f32 deltaTime) |
| i32 | esengine::anim_getTweenState (ecs::Registry ®istry, u32 tweenEntity) |
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.
Definition in file AnimationBindings.cpp.