Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
foray_animationmanager.hpp
Go to the documentation of this file.
1#pragma once
2#include "../../foray_glm.hpp"
3#include "../foray_animation.hpp"
4#include "../foray_component.hpp"
5#include <vector>
6
7namespace foray::scene::gcomp {
8
11 {
12 public:
13 FORAY_PROPERTY_R(Animations)
15
16 virtual void Update(SceneUpdateInfo&) override;
17
18 virtual int32_t GetOrder() const override { return 0; }
19
20 protected:
21 std::vector<Animation> mAnimations;
23 };
24} // namespace foray
Base class for implementing the update callback.
Definition foray_component.hpp:19
Definition foray_component.hpp:95
Handles storage and playback of animations.
Definition foray_animationmanager.hpp:11
virtual int32_t GetOrder() const override
Definition foray_animationmanager.hpp:18
std::vector< Animation > mAnimations
Definition foray_animationmanager.hpp:21
virtual void Update(SceneUpdateInfo &) override
PlaybackConfig mPlaybackConfig
Definition foray_animationmanager.hpp:22
#define FORAY_PROPERTY_R(member)
Getter+Setter shorthand for reference types.
Definition foray_basics.hpp:86
Definition foray_scene_declares.hpp:16
Definition foray_animation.hpp:78
Temporary type passed to components when updating the scene.
Definition foray_scenedrawing.hpp:49