diff options
Diffstat (limited to 'include/interface.h')
| -rwxr-xr-x | include/interface.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/interface.h b/include/interface.h new file mode 100755 index 0000000..abd37f3 --- /dev/null +++ b/include/interface.h @@ -0,0 +1,42 @@ + +#ifndef INTERFACE_H + +#define INTERFACE_H + +#include <stdio.h> +#include <string.h> +#include <time.h> + +#include <SDL.h> +#include <SDL_image.h> +#include <SDL_thread.h> +#include "main.h" + +/* +#include <SDL_net.h> +*/ + +#define SDL_SUBSYSTEMS SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_DOUBLEBUF + +//rozlisenie obrazovky +#define WINDOW_SIZE_X 800 +#define WINDOW_SIZE_Y 600 + +//napis na okne +#define WINDOW_TITLE "RPG engine" +#define WIN_BPP 0 +#define USR_EVT_TIMER 0 + +//interval pri ktorom sa spusta akcia(); +#define INTERVAL 25 + +extern bool_t isInterfaceInicialized(); +extern int initSDL(); +extern SDL_Surface* getSDL_Screen(); +extern void getMousePosition(int *x, int *y); +extern int isMouseClicked(); +extern void eventSDL(); +extern void quitSDL(); + + +#endif |