summaryrefslogtreecommitdiffhomepage
path: root/include/rodeo.h
blob: 4686cb58116f177b1be1eac4b5c6c157a30a8467 (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
59
60
61
62
63
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>

#include "SDL2/SDL.h"
#include "SDL2/SDL_syswm.h"
#include "bgfx/c99/bgfx.h"

#include "rodeo_types.h"


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, ...);

const char *
Rodeo__\
get_renderer_name_as_string();

void
Rodeo__\
flush_batch(Rodeo__data_t *state);

void
Rodeo__\
draw_rectangle(
	Rodeo__data_t *state,
	u_int16_t x,
	u_int16_t y,
	u_int16_t width,
	u_int16_t height,
	struct Rodeo__color_rgba_t color
);

bgfx_shader_handle_t
Rodeo__\
load_shader(const char* path);