aboutsummaryrefslogtreecommitdiff
path: root/main.c
blob: c9cede7beb0333892607097db51acbc17ec560a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "asset.h"
#include "render.h"

void on_init(int argc, char** argv) {
	init_renderer();

	load_assets();
}

void on_update() {
	const Bitmap* b = get_bitmap(asset_id_usr);
	Rectangle r;

	r = make_rect(0, 0, 189, 89);

	renderer_begin_frame();
	render_bitmap(b, 0, 0, &r);
}

void on_deinit() {

}