galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
Frame.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_GRAPHICS_ANIM_FRAME_HPP_
9#define GALAXY_GRAPHICS_ANIM_FRAME_HPP_
10
11#include "galaxy/math/Rect.hpp"
12
13namespace galaxy
14{
15 namespace graphics
16 {
20 struct Frame final
21 {
25 math::fRect m_bounds;
26
30 double m_duration = 200;
31 };
32 } // namespace graphics
33} // namespace galaxy
34
35#endif
Animated.cpp galaxy.
Definition Animated.cpp:16
Single frame of an animation.
Definition Frame.hpp:21
math::fRect m_bounds
Texture bounds.
Definition Frame.hpp:25
double m_duration
Time to spend on this frame in milliseconds.
Definition Frame.hpp:30