From f1ddc12b68b4e4c8087962de25260470e6df2bea Mon Sep 17 00:00:00 2001 From: Connor Thomson Date: Tue, 8 Sep 2026 18:27:39 -0700 Subject: Add tuxanci2 files --- src/client/image.h | 55 ------------------------------------------------------ 1 file changed, 55 deletions(-) delete mode 100644 src/client/image.h (limited to 'src/client/image.h') diff --git a/src/client/image.h b/src/client/image.h deleted file mode 100644 index 9f225c6..0000000 --- a/src/client/image.h +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef IMAGE_H -#define IMAGE_H - -#include "main.h" -#include "interface.h" - -#define IMAGE_NO_ALPHA 0 -#define IMAGE_ALPHA 1 - -#define IMAGE_GROUP_BASE "base" -#define IMAGE_GROUP_EXTENDSIO "extension" -#define IMAGE_GROUP_USER "user" -#define IMAGE_GROUP_OTHER "other" - -#ifdef SUPPORT_OPENGL -#include -#endif - -/* -typedef struct image_struct { - char *name; - char *group; - SDL_Surface *image; -} image_data_t; -*/ - -#ifndef SUPPORT_OPENGL -typedef struct image_struct { - int w; - int h; - SDL_Surface *image; -} image_t; -#else /* SUPPORT_OPENGL */ -typedef struct image_struct { - int w; /* width of actual picture */ - int h; /* height of actual picture */ - SDL_Surface *image; - GLuint tw; /* width of allocated texture */ - GLuint th; /* height of allocated texture */ - GLuint tex_id; /* texture id */ -} image_t; -#endif /* SUPPORT_OPENGL */ - -extern bool_t image_is_inicialized(); -extern void image_init(); -extern image_t *image_new(SDL_Surface *surface); -extern void image_destroy(image_t * p); -extern image_t *image_add(char *file, int alpha, char *name, char *group); -extern image_t *image_get(char *group, char *name); -extern void image_del(char *group, char *name); -extern void image_del_all_image_in_group(char *group); -extern void image_draw(image_t * p, int x, int y, int px, int py, int w, int h); -extern void image_quit(); - -#endif /* IMAGE_H */ -- cgit v1.2.3