Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
AnimationBindings.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
18#pragma once
19
20#include "../core/Types.hpp"
21#include "../ecs/Registry.hpp"
22
23namespace esengine {
24
27u32 anim_createTween(ecs::Registry& registry, u32 entity, u32 targetProp,
28 f32 from, f32 to, f32 duration,
29 u32 easing, f32 delay,
30 u32 loopMode, i32 loopCount);
31void anim_cancelTween(ecs::Registry& registry, u32 tweenEntity);
32void anim_cancelAllTweens(ecs::Registry& registry, u32 targetEntity);
33void anim_pauseTween(ecs::Registry& registry, u32 tweenEntity);
34void anim_resumeTween(ecs::Registry& registry, u32 tweenEntity);
35void anim_setTweenBezier(ecs::Registry& registry, u32 tweenEntity,
36 f32 p1x, f32 p1y, f32 p2x, f32 p2y);
38void anim_setSequenceNext(ecs::Registry& registry, u32 tweenEntity, u32 nextEntity);
39void anim_updateTweens(ecs::Registry& registry, f32 deltaTime);
41i32 anim_getTweenState(ecs::Registry& registry, u32 tweenEntity);
42
43} // namespace esengine
Central ECS registry for entity and component management.
Core type definitions and utilities for ESEngine.
Central container for all entities and components.
Definition Registry.hpp:73
void anim_resumeTween(ecs::Registry &registry, u32 tweenEntity)
std::int32_t i32
Signed 32-bit integer.
Definition Types.hpp:54
void anim_updateTweens(ecs::Registry &registry, f32 deltaTime)
i32 anim_getTweenState(ecs::Registry &registry, u32 tweenEntity)
void anim_setSequenceNext(ecs::Registry &registry, u32 tweenEntity, u32 nextEntity)
void anim_cancelTween(ecs::Registry &registry, u32 tweenEntity)
void anim_setTweenBezier(ecs::Registry &registry, u32 tweenEntity, f32 p1x, f32 p1y, f32 p2x, f32 p2y)
std::uint32_t u32
Unsigned 32-bit integer.
Definition Types.hpp:45
void anim_cancelAllTweens(ecs::Registry &registry, u32 targetEntity)
u32 anim_createTween(ecs::Registry &registry, u32 entity, u32 targetProp, f32 from, f32 to, f32 duration, u32 easing, f32 delay, u32 loopMode, i32 loopCount)
void anim_pauseTween(ecs::Registry &registry, u32 tweenEntity)
float f32
32-bit floating point
Definition Types.hpp:59