summaryrefslogtreecommitdiff
path: root/include/interface.h
blob: c0311eef2605c9d4bf006bb54b171024de4964cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

#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

//napis na okne
#define WINDOW_TITLE "Tuxanci next generation " TUXANCI_NG_VERSION
#define WIN_BPP 0
#define USR_EVT_TIMER 0

//interval pri ktorom sa spusta akcia();
#define INTERVAL 50

extern bool_t isInterfaceInicialized();
extern int initSDL();
extern SDL_Surface* getSDL_Screen();
extern void getMousePosition(int *x, int *y);
extern int isMouseClicked();
extern int isPessAnyKey();
extern void interfaceRefresh();
extern void eventSDL();
extern void quitSDL();


#endif