Skip to content

Commit

Permalink
log renderer specific information from engine to channel
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCandianVendingMachine committed Sep 16, 2023
1 parent 4eabc5f commit dc49859
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ void graphics_init(void) {
if (!glfwInit()) {
engine_crash(SHUTDOWN_CANT_INIT_GLFW);
}
log_info("GLFW initialised");
log_info_to_channel(LOG_CHANNEL_RENDERER, "GLFW initialised");

if (!create_window(&ENGINE->window)) {
engine_crash(SHUTDOWN_CANT_INIT_WINDOW);
}
log_info("Window created");
log_info_to_channel(LOG_CHANNEL_RENDERER, "Window created");

glfwMakeContextCurrent(ENGINE->window.window);

Expand All @@ -115,14 +115,14 @@ void graphics_init(void) {

glfwSwapInterval(0);

log_info("Graphics initalised");
log_info_to_channel(LOG_CHANNEL_RENDERER, "Graphics initalised");
}

void graphics_deinit(void) {
destroy_window(&ENGINE->window);
log_info("Window destroyed");
log_info_to_channel(LOG_CHANNEL_RENDERER, "Window destroyed");
glfwTerminate();
log_info("Graphics deinitialised");
log_info_to_channel(LOG_CHANNEL_RENDERER, "Graphics deinitialised");
}

void engine_start(void) {
Expand Down

0 comments on commit dc49859

Please sign in to comment.