summaryrefslogtreecommitdiffhomepage
path: root/src/rodeo.h
blob: e468c11d49d6f548906997b20342c70ebb28c965 (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
41
42
#include <stdbool.h>
#include "SDL2/SDL.h"
#include "SDL2/SDL_syswm.h"

typedef
struct
Rodeo__\
Data_t
{
	SDL_Window* window;
	SDL_Surface* screen_surface;
	SDL_SysWMinfo wmi;
	int screen_width;
	int screen_height;
	SDL_Event sdl_event;
	bool quit;
} Rodeo__Data_t;

void
Rodeo__\
init_window(
		Rodeo__Data_t* state,
		int screen_height,
		int screen_width,
		char* title
		);

void
Rodeo__\
deinit_window(Rodeo__Data_t* state);

void
Rodeo__\
quit();

void
Rodeo__\
begin(Rodeo__Data_t* state);

void
Rodeo__\
end(Rodeo__Data_t* state);