Forgot to add tp_magic_api header.
This commit is contained in:
parent
47e44cb80f
commit
2aeed41283
1 changed files with 24 additions and 0 deletions
24
src/tp_magic_api.h
Normal file
24
src/tp_magic_api.h
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue