summaryrefslogtreecommitdiffhomepage
path: root/src/debug.c
blob: d981c0f7a17a33555e87cf0697075d78bb733482 (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 "rodeo.h"
#include "enemies.h"
#include "debug.h"

void draw_debug_text(cstr renderer_name, float fps_display)
{
		rodeo_debug_text_draw(
			1,
			1,
			" using %s renderer ",
			cstr_str(
				&renderer_name
			)
		);

		rodeo_debug_text_draw(
			2,
			2,
			" frame count: %"PRIu64" ",
			rodeo_gfx_frame_count_get()
		);

		rodeo_debug_text_draw(
			2,
			3,
			" fps: %.2f ",
			fps_display
		);

		rodeo_debug_text_draw(
			2,
			4,
			" enemy count: %d ",
			get_enemy_count()
		);

		rodeo_debug_text_draw(
			2,
			5,
			" ghost count: %d ",
			get_ghost_count()
		);

		rodeo_debug_text_draw(
			2,
			6,
			" total count: %d ",
			get_ghost_count() + get_enemy_count()
		);

		rodeo_debug_text_draw(
			2,
			7,
			" res: %"PRIu16"x%"PRIu16" ",
			rodeo_window_screen_width_get(),
			rodeo_window_screen_height_get()
		);
}