summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-05 17:44:50 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-10-05 17:44:50 +1000
commit8ce117f0b3fd4ceeb1d7058dde8793e4421ec076 (patch)
treeafb228582dbceb6d9271b0dbd365223119f59d35 /src
parent2c1a7d7f293c26d631e15cf4cbec542ac50994aa (diff)
trying to get rust bindgen working
Diffstat (limited to 'src')
-rw-r--r--src/core.c10
-rw-r--r--src/log.c7
2 files changed, 14 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index 88979bb..79b9d6e 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2,10 +2,14 @@
#include <celeritas.h>
-void Core_Bringup(const char* window_name) {
+NAMESPACED_LOGGER(core);
+
+void Core_Bringup(const char* window_name, struct GLFWwindow* optional_window) {
// INFO("Initiate Core bringup");
- printf("Initiate core bringup\n");
+ INFO("Initiate Core bringup");
- printf("Create GLFW window\n");
+ INFO("Create GLFW window");
}
void Core_Shutdown() {}
+
+bool AppShouldExit() { return true; }
diff --git a/src/log.c b/src/log.c
index e69de29..f0dfd87 100644
--- a/src/log.c
+++ b/src/log.c
@@ -0,0 +1,7 @@
+#include <celeritas.h>
+
+void log_output(char* module, LogLevel level, const char* message, ...) {
+ char out_msg[4096];
+
+ printf("Msg: %s\n", message);
+}