diff options
author | quou <quou@disroot.org> | 2023-05-02 21:02:04 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-02 21:02:04 +1000 |
commit | c1efdf9b0875f2a39488a86cd838947a24fab9fc (patch) | |
tree | b459d024fa99029758f8d2f8630470fe6060122e /main.c |
Initial commit.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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() { + +} |