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:
commit
b3473d414c
@ -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
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user