From c1efdf9b0875f2a39488a86cd838947a24fab9fc Mon Sep 17 00:00:00 2001 From: quou Date: Tue, 2 May 2023 21:02:04 +1000 Subject: Initial commit. --- main.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 main.c (limited to 'main.c') diff --git a/main.c b/main.c new file mode 100644 index 0000000..c9cede7 --- /dev/null +++ b/main.c @@ -0,0 +1,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() { + +} -- cgit v1.2.3-54-g00ecf