2024-03-30 14:25:08 -03:00
|
|
|
#ifndef XNA_PLATFORM_GDEVICEINFOR_DX_HPP
|
|
|
|
#define XNA_PLATFORM_GDEVICEINFOR_DX_HPP
|
|
|
|
|
|
|
|
#include "../game/gdeviceinfo.hpp"
|
|
|
|
#include "adapter-dx.hpp"
|
2024-04-01 11:29:32 -03:00
|
|
|
#include "window-dx.hpp"
|
2024-03-30 14:25:08 -03:00
|
|
|
|
|
|
|
namespace xna {
|
|
|
|
class GraphicsDeviceInformation : public IGraphicsDeviceInformation {
|
|
|
|
public:
|
2024-04-02 09:32:06 -03:00
|
|
|
virtual ~GraphicsDeviceInformation() override {}
|
|
|
|
|
2024-03-30 14:25:08 -03:00
|
|
|
inline virtual PGraphicsAdapter Adapter() const override {
|
|
|
|
return _adapter;
|
|
|
|
};
|
|
|
|
|
|
|
|
inline virtual void Adapter(PGraphicsAdapter const& value) override {
|
|
|
|
_adapter = value;
|
|
|
|
}
|
|
|
|
|
2024-04-01 11:29:32 -03:00
|
|
|
constexpr virtual xna::PresentationParameters PresentationParameters() const override{
|
2024-03-30 14:25:08 -03:00
|
|
|
return _parameters;
|
|
|
|
};
|
|
|
|
|
2024-04-01 11:29:32 -03:00
|
|
|
constexpr virtual void PresentationParameters(xna::PresentationParameters const& value) override{
|
2024-03-30 14:25:08 -03:00
|
|
|
_parameters = value;
|
|
|
|
};
|
|
|
|
|
2024-04-01 11:29:32 -03:00
|
|
|
constexpr virtual xna::GraphicsProfile GraphicsProfile() const override {
|
2024-03-30 14:25:08 -03:00
|
|
|
return _profile;
|
|
|
|
};
|
|
|
|
|
2024-04-01 11:29:32 -03:00
|
|
|
constexpr virtual void GraphicsProfile(xna::GraphicsProfile value) override {
|
2024-03-30 14:25:08 -03:00
|
|
|
_profile = value;
|
|
|
|
};
|
|
|
|
|
2024-04-01 11:29:32 -03:00
|
|
|
inline virtual PGameWindow Window() const override {
|
|
|
|
return _window;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline virtual void Window(PGameWindow const& window) override {
|
|
|
|
_window = window;
|
|
|
|
}
|
|
|
|
|
2024-03-30 14:25:08 -03:00
|
|
|
private:
|
|
|
|
PGraphicsAdapter _adapter{ nullptr };
|
|
|
|
xna::GraphicsProfile _profile{xna::GraphicsProfile::Reach};
|
|
|
|
xna::PresentationParameters _parameters{};
|
2024-04-01 11:29:32 -03:00
|
|
|
PGameWindow _window{ nullptr };
|
2024-03-30 14:25:08 -03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|