From b13c7d59a91fa1790f132e08791c31940b475426 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Fri, 25 Oct 2024 23:19:09 -0500 Subject: ui: make initialization functions more consistent Make the initialization functions more consistent with the rest of the engine. Init functions should have the format `rune_init_`. Signed-off-by: Danny Holman --- include/rune/ui/window.h | 2 +- ui/window.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/rune/ui/window.h b/include/rune/ui/window.h index 42bb8b9..bd12fb9 100644 --- a/include/rune/ui/window.h +++ b/include/rune/ui/window.h @@ -32,7 +32,7 @@ struct rune_window { GLFWwindow *window; }; -RAPI struct rune_window* rune_create_window(uint32_t width, uint32_t height, const char *title); +RAPI struct rune_window* rune_init_window(uint32_t width, uint32_t height, const char *title); RAPI void rune_destroy_window(struct rune_window *window); #endif diff --git a/ui/window.c b/ui/window.c index a15a45b..37c32c6 100644 --- a/ui/window.c +++ b/ui/window.c @@ -6,7 +6,7 @@ #include #include -struct rune_window* rune_create_window(uint32_t width, uint32_t height, const char *title) { +struct rune_window* rune_init_window(uint32_t width, uint32_t height, const char *title) { glfwInit(); glfwSetErrorCallback(error_callback); glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API); -- cgit v1.2.3