![]() |
gdk-graphics 0b051eb9b5c1eaa0658babaa4463dd7a80aa9d2c
|
non-interpolated 2d sprite animation More...
#include <sprite_animation.h>
Classes | |
struct | frame |
animation frame position and size in texels More... | |
struct | normalized_frame |
animation frame position and size in normalized texture coordinate space More... | |
Public Types | |
using | normalized_texture_coordinate_type = float |
using | normalized_time_type = float |
using | texel_coordinate_type = int |
using | frame_collection_type = std::map<normalized_time_type, frame> |
Public Member Functions | |
normalized_frame | at (const normalized_time_type aNormalizedTime, const texel_coordinate_type aTextureWidth, const texel_coordinate_type aTextureHeight) const |
gets the active frame at the given time in normalized texture coordinates | |
sprite_animation (frame_collection_type aFrameData) | |
non-interpolated 2d sprite animation