From 81b21ff7ce249cda63ff6e118bf1cebdf19185a2 Mon Sep 17 00:00:00 2001 From: Quinn Date: Mon, 15 Dec 2025 10:02:54 +0100 Subject: [PATCH] move windowing code into `io/win` --- src/io/{ => win}/input.c | 0 src/io/{ => win}/input.h | 0 src/io/{ => win}/render.c | 4 ++-- src/io/{ => win}/render.h | 0 src/io/{ => win}/shader.c | 2 +- src/io/{ => win}/shader.h | 0 src/io/{ => win}/window.c | 4 ++-- src/io/{ => win}/window.h | 0 src/main.c | 2 +- 9 files changed, 6 insertions(+), 6 deletions(-) rename src/io/{ => win}/input.c (100%) rename src/io/{ => win}/input.h (100%) rename src/io/{ => win}/render.c (97%) rename src/io/{ => win}/render.h (100%) rename src/io/{ => win}/shader.c (98%) rename src/io/{ => win}/shader.h (100%) rename src/io/{ => win}/window.c (97%) rename src/io/{ => win}/window.h (100%) diff --git a/src/io/input.c b/src/io/win/input.c similarity index 100% rename from src/io/input.c rename to src/io/win/input.c diff --git a/src/io/input.h b/src/io/win/input.h similarity index 100% rename from src/io/input.h rename to src/io/win/input.h diff --git a/src/io/render.c b/src/io/win/render.c similarity index 97% rename from src/io/render.c rename to src/io/win/render.c index 97b7ed8..2adb7d0 100644 --- a/src/io/render.c +++ b/src/io/win/render.c @@ -7,8 +7,8 @@ #include #include -#include "../types.h" -#include "../util/error.h" +#include "../../types.h" +#include "../../util/error.h" #include "shader.h" #define VERTC 3 diff --git a/src/io/render.h b/src/io/win/render.h similarity index 100% rename from src/io/render.h rename to src/io/win/render.h diff --git a/src/io/shader.c b/src/io/win/shader.c similarity index 98% rename from src/io/shader.c rename to src/io/win/shader.c index 8239ff2..909f609 100644 --- a/src/io/shader.c +++ b/src/io/win/shader.c @@ -7,7 +7,7 @@ #include #include -#include "../util/error.h" +#include "../../util/error.h" // NOTE: we are currently just sucking up the memory costs for ease. We can either include the source files themselves. Or use compression, where I'd prefer the latter for ease of installation. diff --git a/src/io/shader.h b/src/io/win/shader.h similarity index 100% rename from src/io/shader.h rename to src/io/win/shader.h diff --git a/src/io/window.c b/src/io/win/window.c similarity index 97% rename from src/io/window.c rename to src/io/win/window.c index 7f5027b..e164411 100644 --- a/src/io/window.c +++ b/src/io/win/window.c @@ -7,8 +7,8 @@ #include #include -#include "../types.h" -#include "../util/error.h" +#include "../../types.h" +#include "../../util/error.h" #include "input.h" #include "render.h" diff --git a/src/io/window.h b/src/io/win/window.h similarity index 100% rename from src/io/window.h rename to src/io/win/window.h diff --git a/src/main.c b/src/main.c index 90bd923..4f735ca 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ #include #include -#include "io/window.h" +#include "io/win/window.h" #include "util/error.h" /* reroutes GLFW errors to our logging system. */