mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
Corrige Interfaces
This commit is contained in:
parent
092a15ee2f
commit
321d8f2a3a
@ -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;
|
||||
|
@ -8,6 +8,7 @@
|
||||
namespace xna {
|
||||
class IGraphicsDeviceManager {
|
||||
public:
|
||||
virtual ~IGraphicsDeviceManager(){}
|
||||
virtual void ApplyChanges() = 0;
|
||||
virtual void ToggleFullScreen() = 0;
|
||||
virtual Int PreferredBackBufferWidth() const = 0;
|
||||
|
@ -10,9 +10,6 @@ namespace xna {
|
||||
virtual ~IRenderTarget2D(){}
|
||||
|
||||
virtual bool Apply() = 0;
|
||||
|
||||
protected:
|
||||
GraphicsDevice* _device{nullptr};
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -8,6 +8,8 @@
|
||||
namespace xna {
|
||||
class GraphicsDeviceInformation : public IGraphicsDeviceInformation {
|
||||
public:
|
||||
virtual ~GraphicsDeviceInformation() override {}
|
||||
|
||||
inline virtual PGraphicsAdapter Adapter() const override {
|
||||
return _adapter;
|
||||
};
|
||||
|
@ -8,6 +8,8 @@ namespace xna {
|
||||
public:
|
||||
GraphicsDeviceManager(Game* game);
|
||||
|
||||
virtual ~GraphicsDeviceManager() override{}
|
||||
|
||||
virtual void ApplyChanges() override;
|
||||
virtual void ToggleFullScreen() override;
|
||||
|
||||
|
@ -22,6 +22,7 @@ namespace xna {
|
||||
|
||||
public:
|
||||
ID3D11RenderTargetView* _renderTargetView = nullptr;
|
||||
GraphicsDevice* _device{ nullptr };
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user