2024-03-18 15:41:46 -03:00
|
|
|
#ifndef XNA_GRAPHICS_DISPLAYMODE_HPP
|
|
|
|
#define XNA_GRAPHICS_DISPLAYMODE_HPP
|
|
|
|
|
2024-04-21 19:55:50 -03:00
|
|
|
#include "../default.hpp"
|
2024-03-18 15:41:46 -03:00
|
|
|
|
|
|
|
namespace xna {
|
2024-04-21 19:55:50 -03:00
|
|
|
struct DisplayModeDescription;
|
2024-03-18 15:41:46 -03:00
|
|
|
|
2024-04-21 19:55:50 -03:00
|
|
|
class IDisplayMode {
|
2024-03-18 15:41:46 -03:00
|
|
|
public:
|
2024-04-21 19:55:50 -03:00
|
|
|
virtual ~IDisplayMode() {}
|
|
|
|
virtual float AspectRatio() const = 0;
|
|
|
|
virtual Int Width() const = 0;
|
|
|
|
virtual Int Height() const = 0;
|
|
|
|
virtual SurfaceFormat Format() const = 0;
|
|
|
|
virtual std::vector<DisplayModeDescription> Descriptions() const = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
class IDisplayModeCollection {
|
2024-03-24 16:12:17 -03:00
|
|
|
public:
|
2024-04-21 19:55:50 -03:00
|
|
|
virtual ~IDisplayModeCollection() {}
|
|
|
|
virtual size_t SurfaceCount(SurfaceFormat format) const = 0;
|
2024-03-18 15:41:46 -03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|