Draw sprite to GUI

This commit is contained in:
2022-12-24 19:18:06 +00:00
parent 06b8bba27f
commit 147cf1b05d
12 changed files with 99 additions and 61 deletions

View File

@@ -29,7 +29,7 @@ struct Texture *texture_pullfromfile(const char *path)
tex->anim.ms = 1;
int n;
stbi_set_flip_vertically_on_load(0);
stbi_set_flip_vertically_on_load(1);
unsigned char *data = stbi_load(path, &tex->width, &tex->height, &n, 4);
while (data == NULL) {
@@ -250,3 +250,5 @@ void anim_bkwd(struct TexAnimation *anim)
{
anim_decr(anim);
}