vkmEngine
1.0.0
A C++ game engine ·
vkmengine.com
Loading...
Searching...
No Matches
animation_system.h
1
#pragma once
2
3
#include "core/system.h"
4
5
namespace
Vkm::Engine {
6
7
struct
Animation
;
8
struct
Transform
;
9
16
class
AnimationSystem :
public
System {
17
public
:
18
AnimationSystem() =
default
;
19
~AnimationSystem()
override
=
default
;
20
21
AnimationSystem(
const
AnimationSystem& other) =
delete
;
22
AnimationSystem& operator=(
const
AnimationSystem& other) =
delete
;
23
24
AnimationSystem(AnimationSystem && other) =
delete
;
25
AnimationSystem& operator=(AnimationSystem && other) =
delete
;
26
27
public
:
28
void
fixedUpdate
(
FrameContext
& ctx)
override
;
29
39
static
void
applyAnimation
(
const
Animation
& animation,
Transform
& transform);
40
};
41
42
}
// namespace Vkm::Engine
Vkm::Engine::AnimationSystem::fixedUpdate
void fixedUpdate(FrameContext &ctx) override
Execute this system at the fixed simulation rate.
Vkm::Engine::AnimationSystem::applyAnimation
static void applyAnimation(const Animation &animation, Transform &transform)
Pose transform as animation stands at its playhead.
Vkm::Engine::Animation
Component representing an animation that can be applied to an entity.
Definition
animation.h:17
Vkm::Engine::FrameContext
Per-frame state bundle passed to every system.
Definition
system.h:55
Vkm::Engine::Transform
Local position, rotation and scale of an entity.
Definition
transform.h:17
system
animation
animation_system.h
Generated by
1.14.0