1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00

Merge pull request #4 from borgesdan/feature/platform

Implementações em Texture2DReader
This commit is contained in:
Danilo Borges 2024-05-25 11:45:59 -03:00 committed by GitHub
commit b3473d414c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View File

@ -5,7 +5,7 @@
### Adjustments and improvements ### Adjustments and improvements
The project is still under development and the next updates will focus on the following tasks: 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 - [ ] Code refactoring and cleaning
- [ ] 3D support - [ ] 3D support
- [ ] Content Pipeline - [ ] Content Pipeline

View File

@ -27,7 +27,7 @@ namespace xna {
void LoadContent() override { void LoadContent() override {
spriteBatch = New<SpriteBatch>(*graphicsDevice); spriteBatch = New<SpriteBatch>(*graphicsDevice);
texture = Content()->Load<sptr<Texture2D>>("idle"); texture = Content()->Load<PTexture2D>("idle");
Game::LoadContent(); Game::LoadContent();
} }

View File

@ -88,9 +88,6 @@ namespace xna {
struct GamePadState; struct GamePadState;
struct KeyboardState; struct KeyboardState;
struct MouseState; struct MouseState;
//Pointer
using PTexture2D = std::shared_ptr<Texture2D>;
} }
#endif #endif

View File

@ -32,6 +32,10 @@ namespace xna {
struct PlatformImplementation; struct PlatformImplementation;
uptr<PlatformImplementation> impl = nullptr; uptr<PlatformImplementation> impl = nullptr;
}; };
using PTexture2D = sptr<Texture2D>;
using UTexture2D = uptr<Texture2D>;
} }
#endif #endif