diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-10-05 17:44:50 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-10-05 17:44:50 +1000 |
commit | 8ce117f0b3fd4ceeb1d7058dde8793e4421ec076 (patch) | |
tree | afb228582dbceb6d9271b0dbd365223119f59d35 /src | |
parent | 2c1a7d7f293c26d631e15cf4cbec542ac50994aa (diff) |
trying to get rust bindgen working
Diffstat (limited to 'src')
-rw-r--r-- | src/core.c | 10 | ||||
-rw-r--r-- | src/log.c | 7 |
2 files changed, 14 insertions, 3 deletions
@@ -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; } @@ -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); +} |