Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
n_anim.h File Reference

Animations graphics and animations parameters. More...

#include "n_common.h"
#include "n_log.h"
#include "n_str.h"
#include "allegro5/allegro.h"
+ Include dependency graph for n_anim.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ANIM_DATA
 animation properties More...
 
struct  ANIM_FRAME
 struct of the properties of a frame in an animation More...
 
struct  ANIM_GFX
 struct of an animation More...
 
struct  ANIM_LIB
 structure of a library of gfxs More...
 

Functions

int add_bmp_to_lib (ANIM_LIB *lib, unsigned int pos, char *file, char *resfile)
 add a bitmap to the library
 
ANIM_LIBcreate_anim_library (const char *name, unsigned int size)
 create a new animation library
 
int delete_bmp_from_lib (ANIM_LIB *lib, unsigned int id)
 delete a bitmap from the library
 
int destroy_anim_lib (ANIM_LIB **lib)
 destroy an animation library
 
int draw_anim (ANIM_DATA *data, int x, int y)
 draw current animation frame
 
int update_anim (ANIM_DATA *data, unsigned int delta_t)
 update animation frame
 

Detailed Description

Animations graphics and animations parameters.

Author
Castagnier Mickael aka Gull Ra Driel
Version
1.0
Date
30/12/2016

Definition in file n_anim.h.