From 3c49b42b23c17a976bb9827d95d8564cfd575c1c Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Sat, 16 Jul 2022 13:06:24 +0200 Subject: [PATCH] Improved crosshair slightly and added more debug statements. --- .../aos2_client/render/GameRenderer.java | 3 +- design/crosshair.svg | 77 +++++++++++++++++++ 2 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 design/crosshair.svg diff --git a/client/src/main/java/nl/andrewl/aos2_client/render/GameRenderer.java b/client/src/main/java/nl/andrewl/aos2_client/render/GameRenderer.java index 296a6ec..49b875a 100644 --- a/client/src/main/java/nl/andrewl/aos2_client/render/GameRenderer.java +++ b/client/src/main/java/nl/andrewl/aos2_client/render/GameRenderer.java @@ -8,7 +8,6 @@ import nl.andrewl.aos_core.model.World; import org.joml.Matrix4f; import org.lwjgl.glfw.*; import org.lwjgl.opengl.GL; -import org.lwjgl.opengl.GLUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -89,6 +88,7 @@ public class GameRenderer { log.debug("Initialized OpenGL context."); chunkRenderer.setupShaderProgram(); + log.debug("Initialized chunk renderer."); guiRenderer.setup(); // TODO: More organized way to load textures for GUI. try { @@ -99,6 +99,7 @@ public class GameRenderer { } catch (IOException e) { throw new RuntimeException(e); } + log.debug("Initialized GUI renderer."); updatePerspective(); } diff --git a/design/crosshair.svg b/design/crosshair.svg new file mode 100644 index 0000000..0ddbaa7 --- /dev/null +++ b/design/crosshair.svg @@ -0,0 +1,77 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + +