blob: 86505f1dd2566928511130e855286ce59d32788b (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#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;
typedef
struct
Rodeo__\
color_t
{
float red;
float green;
float blue;
float alpha;
} Rodeo__color_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);
void
Rodeo__\
draw_debug_text(u_int16_t x, u_int16_t y, const char *format, ...);
|