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 --- include/isogfx/backend.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/isogfx/backend.h b/include/isogfx/backend.h index 172991d..76ee13d 100644 --- a/include/isogfx/backend.h +++ b/include/isogfx/backend.h @@ -8,21 +8,22 @@ typedef struct IsoGfx IsoGfx; typedef struct IsoBackend IsoBackend; /// Initialize the backend. -IsoBackend* IsoBackendInit(const IsoGfx*); +IsoBackend* iso_backend_init(const IsoGfx*); /// Shut down the backend. -void IsoBackendShutdown(IsoBackend**); +void iso_backend_shutdown(IsoBackend**); /// Notify the backend of a window resize event. /// This allows the backend to determine how to position and scale the iso /// screen buffer on the graphics window. -void IsoBackendResizeWindow(IsoBackend*, const IsoGfx*, int width, int height); +void iso_backend_resize_window( + IsoBackend*, const IsoGfx*, int width, int height); /// Render the iso screen to the graphics window. -void IsoBackendRender(const IsoBackend*, const IsoGfx*); +void iso_backend_render(const IsoBackend*, const IsoGfx*); /// Map window coordinates to iso space coordinates. /// This takes into account any possible resizing done by the backend in -/// response to calls to IsoBackendResizeWindow(). -bool IsoBackendGetMousePosition( +/// response to calls to iso_backend_resize_window(). +bool iso_backend_get_mouse_position( const IsoBackend*, double window_x, double window_y, double* x, double* y); -- cgit v1.2.3