Add asset saving

This commit is contained in:
2022-08-24 17:24:21 +00:00
parent dc82da6982
commit 3040dc1f7f
6 changed files with 91 additions and 17 deletions

View File

@@ -41,11 +41,11 @@ struct TextureOptions {
struct Texture {
int type;
unsigned int id;
char *path;
//char *path;
int width;
int height;
short flipy;
unsigned char *data;
unsigned char *data; // Pixel data of the texture, loaded in at runtime
struct TextureOptions opts;
struct TexAnim anim;
@@ -63,6 +63,8 @@ void tex_bind(struct Texture *tex);
unsigned int powof2(unsigned int num);
int ispow2(int num);
char * tex_get_path(struct Texture *tex);
void anim_play(struct TexAnimation *anim);
void anim_stop(struct TexAnimation *anim);
void anim_pause(struct TexAnimation *anim);