Sprite Animation Manager 0.1.0
Sprite animation manager using the citro2d library.
Data Structures | Macros | Functions
sprite_animation_manager.h File Reference

2D object initialization and drawing on the screen More...

#include <citro2d.h>
#include <3ds/svc.h>
#include <3ds/types.h>

Go to the source code of this file.

Data Structures

struct  sprite_velocity_t
 
struct  sprite_pivot_t
 
struct  sprite_position_t
 
struct  sprite_refresh_info_t
 
struct  sprite_frame_info_t
 
struct  object_2d_info_t
 

Macros

#define ANIMATION_REFRESH_TIME_MIN   17
 

Functions

void initialize_object (object_2d_info_t *object, C2D_Sprite *sprites, const char *filename, const sprite_pivot_t pivot, const sprite_position_t position, const float rotation, uint64_t animation_refresh_time)
 Initialize 2D object. More...
 
void deinitialize_object (object_2d_info_t *object)
 Deinitialize 2D object. More...
 
void draw_sprite_animation (object_2d_info_t *object)
 Draw sprite animation from the 2D object. More...
 

Detailed Description

2D object initialization and drawing on the screen