From 39ab6c2bce7434e45c3957168278cacf9dcd19f5 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Mon, 14 Jul 2025 08:15:24 -0700 Subject: Rename backend functions to snake case --- demos/isomap/isomap.c | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) (limited to 'demos/isomap/isomap.c') diff --git a/demos/isomap/isomap.c b/demos/isomap/isomap.c index a233659..5adf6f1 100644 --- a/demos/isomap/isomap.c +++ b/demos/isomap/isomap.c @@ -49,7 +49,7 @@ static bool init(GfxAppState* state, int argc, const char** argv) { state->stag = isogfx_make_sprite(iso, state->stag_sheet); isogfx_set_sprite_position(iso, state->stag, 5, 4); - if (!(state->backend = IsoBackendInit(iso))) { + if (!(state->backend = iso_backend_init(iso))) { return false; } @@ -74,32 +74,31 @@ static void render(GfxAppState* state) { IsoGfx* iso = state->iso; isogfx_render(iso); - IsoBackendRender(state->backend, iso); + iso_backend_render(state->backend, iso); } static void resize(GfxAppState* state, int width, int height) { assert(state); - IsoBackendResizeWindow(state->backend, state->iso, width, height); + iso_backend_resize_window(state->backend, state->iso, width, height); } int main(int argc, const char** argv) { GfxAppState state = {0}; gfx_app_run( - &(GfxAppDesc){ - .argc = argc, - .argv = argv, - .width = WINDOW_WIDTH, - .height = WINDOW_HEIGHT, - .max_fps = MAX_FPS, - .update_delta_time = MAX_FPS > 0 ? 1.0 / (double)MAX_FPS : 0.0, - .title = "Isometric Renderer", - .app_state = &state}, - &(GfxAppCallbacks){ - .init = init, - .update = update, - .render = render, - .resize = resize, - .shutdown = shutdown}); + &(GfxAppDesc){.argc = argc, + .argv = argv, + .width = WINDOW_WIDTH, + .height = WINDOW_HEIGHT, + .max_fps = MAX_FPS, + .update_delta_time = + MAX_FPS > 0 ? 1.0 / (double)MAX_FPS : 0.0, + .title = "Isometric Renderer", + .app_state = &state}, + &(GfxAppCallbacks){.init = init, + .update = update, + .render = render, + .resize = resize, + .shutdown = shutdown}); return 0; } -- cgit v1.2.3