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

Corrige Interfaces

This commit is contained in:
Danilo 2024-04-02 09:32:06 -03:00
parent 092a15ee2f
commit 321d8f2a3a
6 changed files with 7 additions and 3 deletions

View File

@ -7,6 +7,7 @@
namespace xna {
class IGraphicsDeviceInformation {
public:
virtual ~IGraphicsDeviceInformation(){}
virtual PGraphicsAdapter Adapter() const = 0;
virtual void Adapter(PGraphicsAdapter const& value) = 0;
virtual xna::PresentationParameters PresentationParameters() const = 0;

View File

@ -8,6 +8,7 @@
namespace xna {
class IGraphicsDeviceManager {
public:
virtual ~IGraphicsDeviceManager(){}
virtual void ApplyChanges() = 0;
virtual void ToggleFullScreen() = 0;
virtual Int PreferredBackBufferWidth() const = 0;

View File

@ -10,9 +10,6 @@ namespace xna {
virtual ~IRenderTarget2D(){}
virtual bool Apply() = 0;
protected:
GraphicsDevice* _device{nullptr};
};
}

View File

@ -8,6 +8,8 @@
namespace xna {
class GraphicsDeviceInformation : public IGraphicsDeviceInformation {
public:
virtual ~GraphicsDeviceInformation() override {}
inline virtual PGraphicsAdapter Adapter() const override {
return _adapter;
};

View File

@ -8,6 +8,8 @@ namespace xna {
public:
GraphicsDeviceManager(Game* game);
virtual ~GraphicsDeviceManager() override{}
virtual void ApplyChanges() override;
virtual void ToggleFullScreen() override;

View File

@ -22,6 +22,7 @@ namespace xna {
public:
ID3D11RenderTargetView* _renderTargetView = nullptr;
GraphicsDevice* _device{ nullptr };
};
}