summaryrefslogtreecommitdiff
path: root/main.c
blob: cea5f76a9900c6df7a4e3a0656484e82002ffdf9 (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
#include "TZR.h"

int main(int argc, char **argv)
{
	(void)argc, (void)argv;

	if (TZR_Init(.target_fps=30, .pixel_perfect=false, .title="7DRL 2023"))
		return 1;
	if (atexit(TZR_Quit)) {
		printf("atexit failed\n");
		TZR_Quit();
		return 1;
	}

	while (!TZR_ShouldQuit()) {
		TZR_CycleEvents();

		TZR_DrawBegin();
		TZR_DrawSetColor(0, 0, 0, 1);
		TZR_DrawClear();
		TZR_DrawEnd();
	}

	return 0;
}