You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
625 B
22 lines
625 B
#ifndef ANIMATIONHANDLER_H_
|
|
#define ANIMATIONHANDLER_H_
|
|
#include "raylib.h"
|
|
#include "animation.h"
|
|
#include "stdio.h"
|
|
|
|
typedef struct AnimationHandler AnimationHandler;
|
|
|
|
typedef struct AnimationHandler{
|
|
Animation **animations;
|
|
AnimationFrame *currentFrame;
|
|
int currentAnimation;
|
|
int forward;
|
|
float deltaElapsed;
|
|
} AnimationHandler;
|
|
|
|
AnimationHandler * AnimationHandlerInit(Animation **animations);
|
|
void AnimationUpdate(AnimationHandler *animationHandler);
|
|
void AnimationReset(AnimationHandler *animationHandler);
|
|
void AnimationChangeAnimation(AnimationHandler *animationHandler, int newAnimation);
|
|
|
|
#endif |