From 2aeed41283b39098bf54ddbca989f0834e88bf72 Mon Sep 17 00:00:00 2001 From: William Kendrick Date: Thu, 5 Jul 2007 19:22:26 +0000 Subject: [PATCH] Forgot to add tp_magic_api header. --- src/tp_magic_api.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/tp_magic_api.h diff --git a/src/tp_magic_api.h b/src/tp_magic_api.h new file mode 100644 index 000000000..ce51bb41b --- /dev/null +++ b/src/tp_magic_api.h @@ -0,0 +1,24 @@ +#ifndef TP_MAGIC_API_H +#define TP_MAGIC_API_H + +#include "SDL.h" +#include "SDL_mixer.h" + +#define SPECIAL_MIRROR 0x0001 +#define SPECIAL_FLIP 0x0002 + +typedef struct magic_api_t { + char * tp_version; + char * data_directory; + void (*update_progress_bar)(void); + void (*special_notify)(int); + float sRGB_to_linear_table[256]; + unsigned char (*linear_to_sRGB)(float); + int (*in_circle)(int,int,int); + Uint32 (*getpixel)(SDL_Surface *, int, int); + void (*putpixel)(SDL_Surface *, int, int, Uint32); + void (*playsound)(Mix_Chunk *, int, int); + void (*line)(int, SDL_Surface *, SDL_Surface *, int, int, int, int, int, void (*)(void *, int, SDL_Surface *, SDL_Surface *, int, int)); +} magic_api; + +#endif