From 3e0a9c8673561b284a5183d6679de32846bcb375 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Dec 2023 22:41:31 -0500 Subject: [PATCH] Revert "Revert "Revert "Revert "Fix Vix's gooey sins"""" This reverts commit ae145b1cd916f5bbbf742705201794886aef091d. --- .../{Gui/GuiRenderer.cs => GUI/GUIRenderer.cs} | 8 ++++---- Client/Rendering/GameRenderer.cs | 12 ++++++------ .../VertexTypes/{GuiVertex.cs => GUIVertex.cs} | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) rename Client/Rendering/{Gui/GuiRenderer.cs => GUI/GUIRenderer.cs} (90%) rename Client/Rendering/VertexTypes/{GuiVertex.cs => GUIVertex.cs} (78%) diff --git a/Client/Rendering/Gui/GuiRenderer.cs b/Client/Rendering/GUI/GUIRenderer.cs similarity index 90% rename from Client/Rendering/Gui/GuiRenderer.cs rename to Client/Rendering/GUI/GUIRenderer.cs index 3957822..d2a1fd1 100644 --- a/Client/Rendering/Gui/GuiRenderer.cs +++ b/Client/Rendering/GUI/GUIRenderer.cs @@ -2,12 +2,12 @@ using Veldrid; using Voxel.Client.Rendering.VertexTypes; -namespace Voxel.Client.Rendering.Gui; +namespace Voxel.Client.Rendering.GUI; -public class GuiRenderer : Renderer, IDisposable { - public Pipeline GuiPipeline; +public class GUIRenderer : Renderer, IDisposable { + public Pipeline GUIPipeline; - public GuiRenderer(VoxelClient client) : base(client) { + public GUIRenderer(VoxelClient client) : base(client) { } diff --git a/Client/Rendering/GameRenderer.cs b/Client/Rendering/GameRenderer.cs index 9896d5b..71a43b4 100644 --- a/Client/Rendering/GameRenderer.cs +++ b/Client/Rendering/GameRenderer.cs @@ -2,7 +2,7 @@ using ImGuiNET; using Veldrid; using Voxel.Client.Rendering.Debug; -using Voxel.Client.Rendering.Gui; +using Voxel.Client.Rendering.GUI; using Voxel.Client.Rendering.World; using Voxel.Common.Util; @@ -23,7 +23,7 @@ public class GameRenderer : Renderer { public readonly WorldRenderer WorldRenderer; - public readonly GuiRenderer GuiRenderer; + public readonly GUIRenderer GUIRenderer; public readonly BlitRenderer BlitRenderer; public readonly DebugRenderer DebugRenderer; @@ -37,7 +37,7 @@ public GameRenderer(VoxelClient client) : base(client) { CameraStateManager = new(client.RenderSystem); WorldRenderer = new(client); - GuiRenderer = new(client); + GUIRenderer = new(client); BlitRenderer = new(client); DebugRenderer = new(client); @@ -45,7 +45,7 @@ public GameRenderer(VoxelClient client) : base(client) { public override void CreatePipeline(MainFramebuffer framebuffer) { WorldRenderer.CreatePipeline(framebuffer); - GuiRenderer.CreatePipeline(framebuffer); + GUIRenderer.CreatePipeline(framebuffer); BlitRenderer.CreatePipeline(framebuffer); DebugRenderer.CreatePipeline(framebuffer); @@ -72,7 +72,7 @@ public override void Render(double delta) { CameraStateManager.SetToCamera(MainCamera, Client.timeSinceLastTick); WorldRenderer.Render(delta); - GuiRenderer.Render(delta); + GUIRenderer.Render(delta); DebugRenderer.Render(delta); @@ -98,7 +98,7 @@ public void SetMSAA(uint value) { public override void Dispose() { WorldRenderer.Dispose(); - GuiRenderer.Dispose(); + GUIRenderer.Dispose(); BlitRenderer.Dispose(); DebugRenderer.Dispose(); diff --git a/Client/Rendering/VertexTypes/GuiVertex.cs b/Client/Rendering/VertexTypes/GUIVertex.cs similarity index 78% rename from Client/Rendering/VertexTypes/GuiVertex.cs rename to Client/Rendering/VertexTypes/GUIVertex.cs index 6a5ee30..e3050b9 100644 --- a/Client/Rendering/VertexTypes/GuiVertex.cs +++ b/Client/Rendering/VertexTypes/GUIVertex.cs @@ -5,7 +5,7 @@ namespace Voxel.Client.Rendering.VertexTypes; -public class GuiVertex { +public class GUIVertex { public static readonly VertexLayoutDescription Layout = new( new VertexElementDescription("Position", VertexElementFormat.Float2, VertexElementSemantic.Position), @@ -15,9 +15,9 @@ public class GuiVertex { public vec2 position; public vec2 uv; - public GuiVertex() {} - public GuiVertex(vec2 pos) : this(pos, vec2.Zero) {} - public GuiVertex(vec2 pos, vec2 uv) { + public GUIVertex() {} + public GUIVertex(vec2 pos) : this(pos, vec2.Zero) {} + public GUIVertex(vec2 pos, vec2 uv) { position = pos; this.uv = uv; }