From 48a2671b95fc213c31b6afe44a6a86eb851ec763 Mon Sep 17 00:00:00 2001 From: Harrison Date: Sat, 28 Dec 2019 17:06:04 -0600 Subject: [PATCH] Reorganized and added TODOs for the 31st. --- RecrownedAthenaeum/Game.cs | 7 +++++++ RecrownedAthenaeum/{Types => Graphics}/NinePatch.cs | 2 +- RecrownedAthenaeum/Graphics/Render/Batch.cs | 2 +- RecrownedAthenaeum/{Types => Graphics}/Texture.cs | 3 ++- RecrownedAthenaeum/{Types => Graphics}/TextureAtlas.cs | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 RecrownedAthenaeum/Game.cs rename RecrownedAthenaeum/{Types => Graphics}/NinePatch.cs (99%) rename RecrownedAthenaeum/{Types => Graphics}/Texture.cs (87%) rename RecrownedAthenaeum/{Types => Graphics}/TextureAtlas.cs (99%) diff --git a/RecrownedAthenaeum/Game.cs b/RecrownedAthenaeum/Game.cs new file mode 100644 index 0000000..d4fe1a9 --- /dev/null +++ b/RecrownedAthenaeum/Game.cs @@ -0,0 +1,7 @@ +namespace RecrownedAthenaeum { + public class Game { + public Game() { + //TODO Implement interface that calls the users created game files. + } + } +} \ No newline at end of file diff --git a/RecrownedAthenaeum/Types/NinePatch.cs b/RecrownedAthenaeum/Graphics/NinePatch.cs similarity index 99% rename from RecrownedAthenaeum/Types/NinePatch.cs rename to RecrownedAthenaeum/Graphics/NinePatch.cs index b8d7410..338063f 100644 --- a/RecrownedAthenaeum/Types/NinePatch.cs +++ b/RecrownedAthenaeum/Graphics/NinePatch.cs @@ -3,7 +3,7 @@ using System; using OpenTK; using OpenTK.Graphics; -namespace RecrownedAthenaeum.Types +namespace RecrownedAthenaeum.Graphics { /// /// An object that represents a ninepatch. diff --git a/RecrownedAthenaeum/Graphics/Render/Batch.cs b/RecrownedAthenaeum/Graphics/Render/Batch.cs index e8e6843..529aeea 100644 --- a/RecrownedAthenaeum/Graphics/Render/Batch.cs +++ b/RecrownedAthenaeum/Graphics/Render/Batch.cs @@ -3,7 +3,7 @@ namespace RecrownedAthenaeum.Graphics.Render { public class Batch { private bool begun; public Batch() { - + //TODO Finish batch. } public void Begin() { if (begun) throw new InvalidOperationException("This batch has already been started."); diff --git a/RecrownedAthenaeum/Types/Texture.cs b/RecrownedAthenaeum/Graphics/Texture.cs similarity index 87% rename from RecrownedAthenaeum/Types/Texture.cs rename to RecrownedAthenaeum/Graphics/Texture.cs index 2fc350e..1f62274 100644 --- a/RecrownedAthenaeum/Types/Texture.cs +++ b/RecrownedAthenaeum/Graphics/Texture.cs @@ -1,8 +1,9 @@ using System.Drawing; using System.IO; -namespace RecrownedAthenaeum.Types { +namespace RecrownedAthenaeum.Graphics { public class Texture : IRectangleDrawable { + //TODO Complete a basic texture capable of being rendered by a batch. byte[] textureData; public byte[] ColorData { get { diff --git a/RecrownedAthenaeum/Types/TextureAtlas.cs b/RecrownedAthenaeum/Graphics/TextureAtlas.cs similarity index 99% rename from RecrownedAthenaeum/Types/TextureAtlas.cs rename to RecrownedAthenaeum/Graphics/TextureAtlas.cs index 62b2604..8d90d84 100644 --- a/RecrownedAthenaeum/Types/TextureAtlas.cs +++ b/RecrownedAthenaeum/Graphics/TextureAtlas.cs @@ -5,7 +5,7 @@ using System.Linq; using OpenTK; using OpenTK.Graphics; -namespace RecrownedAthenaeum.Types +namespace RecrownedAthenaeum.Graphics { /// /// Holds information about an image file that contains various textures in various regions in the file.