summaryrefslogtreecommitdiff
path: root/main.c
blob: 1483f8950199c6aacc2d15a2495c584d36b6b172 (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 "./structs.h"
#include "./constants.h"
#include "./input.h"
#include "./initialize.h"
#include "./tennis.h"
#include "./title.h"

App app;

int main(int argc, char* argv[]) {

	memset(&app, 0, sizeof(app));

	initialize_window(&app);

	init_pong();

	while(app.input ^ INPUT_RESET) {
		process_input();
		app.update();
		app.render();
	}
	destroy_window(&app);
	return 0;
}