summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-10-25 23:19:09 -0500
committerDanny Holman <dholman@gymli.org>2024-10-25 23:19:09 -0500
commitb13c7d59a91fa1790f132e08791c31940b475426 (patch)
tree976adf75517abf5cbec6a567f73ed786f50029d8
parente879c0388fd9ebb6272eee9c12027f7637efbffc (diff)
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_<object>`. Signed-off-by: Danny Holman <dholman@gymli.org>
-rw-r--r--include/rune/ui/window.h2
-rw-r--r--ui/window.c2
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 <rune/util/types.h>
#include <string.h>
-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);