From 5510ed8ee23fe46097891b53f85a14f45e6dce6b Mon Sep 17 00:00:00 2001 From: Danilo Date: Sat, 25 May 2024 11:39:32 -0300 Subject: [PATCH] =?UTF-8?q?Implementa=C3=A7=C3=B5es=20em=20Texture2DReader?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- framework/xna.cpp | 2 +- inc/forward.hpp | 3 --- inc/graphics/texture.hpp | 4 ++++ 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 481e91e..34cc16c 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ### Adjustments and improvements The project is still under development and the next updates will focus on the following tasks: -- [ ] Finish basic classes +- [x] Finish basic classes - [ ] Code refactoring and cleaning - [ ] 3D support - [ ] Content Pipeline diff --git a/framework/xna.cpp b/framework/xna.cpp index 672ad61..0f74d87 100644 --- a/framework/xna.cpp +++ b/framework/xna.cpp @@ -27,7 +27,7 @@ namespace xna { void LoadContent() override { spriteBatch = New(*graphicsDevice); - texture = Content()->Load>("idle"); + texture = Content()->Load("idle"); Game::LoadContent(); } diff --git a/inc/forward.hpp b/inc/forward.hpp index a42ed22..5247bd2 100644 --- a/inc/forward.hpp +++ b/inc/forward.hpp @@ -88,9 +88,6 @@ namespace xna { struct GamePadState; struct KeyboardState; struct MouseState; - - //Pointer - using PTexture2D = std::shared_ptr; } #endif \ No newline at end of file diff --git a/inc/graphics/texture.hpp b/inc/graphics/texture.hpp index 26ea477..c9a6206 100644 --- a/inc/graphics/texture.hpp +++ b/inc/graphics/texture.hpp @@ -32,6 +32,10 @@ namespace xna { struct PlatformImplementation; uptr impl = nullptr; }; + + + using PTexture2D = sptr; + using UTexture2D = uptr; } #endif \ No newline at end of file