Turned on warnings and fixed

This commit is contained in:
2022-02-06 16:14:57 +00:00
parent 76985519f1
commit 87df6921e8
50 changed files with 570 additions and 4246 deletions

View File

@@ -1,18 +1,20 @@
#ifndef SPRITE_H
#define SPRITE_H
#include <SDL2/SDL_timer.h>
#include "timer.h"
#include "mathc.h"
struct datastream;
struct mGameObject;
struct Texture;
struct timer;
struct Anim2D {
int frames;
int frame;
int dimensions[2];
SDL_TimerID timer;
struct timer *timer;
int ms;
};
@@ -36,12 +38,12 @@ void sprite_loadtex(struct mSprite *sprite, const char *path);
void sprite_loadanim(struct mSprite *sprite, const char *path,
struct Anim2D anim);
void sprite_settex(struct mSprite *sprite, struct Texture *tex);
void sprite_initalize();
void sprite_initialize();
void sprite_draw(struct mSprite *sprite);
void spriteanim_draw(struct mSprite *sprite);
void video_draw(struct datastream *ds, mfloat_t pos[2], mfloat_t size[2],
float rotate, mfloat_t color[3]);
Uint32 incrementAnimFrame(Uint32 interval, struct mSprite *sprite);
unsigned int incrementAnimFrame(unsigned int interval, struct mSprite *sprite);
struct mSprite *gui_makesprite();
void gui_init();