#ifndef SPRITE_H #define SPRITE_H #include #include #include "opengl.h" #include struct SpriteManager { // Table *sprite_names; struct Sprite **sprites; // array of sprite pointers? }; struct Sprite { int width; int height; GLuint texture; }; struct Sprite *createSpriteFromFile(char *name, char *file); // TODO: move this int renderSprite(struct Sprite *sprite, int x, int y); int freeSprite(struct Sprite *sprite); GLuint createTexture(SDL_Surface *surface); #endif