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

51 lines
1.7 KiB
C++
Raw Normal View History

2024-03-18 15:41:46 -03:00
#ifndef XNA_GRAPHICS_ADAPTER_HPP
#define XNA_GRAPHICS_ADAPTER_HPP
2024-04-24 11:44:41 -03:00
#include "../default.hpp"
2024-03-18 15:41:46 -03:00
namespace xna {
2024-06-22 22:05:35 -03:00
//Provides methods to retrieve and manipulate graphics adapters.
2024-05-19 17:52:27 -03:00
class GraphicsAdapter {
2024-03-18 15:41:46 -03:00
public:
2024-05-19 17:52:27 -03:00
GraphicsAdapter();
2024-03-18 15:41:46 -03:00
2024-06-22 22:05:35 -03:00
//Retrieves a string used for presentation to the user.
2024-05-19 17:52:27 -03:00
String Description() const;
2024-06-22 22:05:35 -03:00
//Retrieves a value that is used to help identify a particular chip set.
2024-05-19 17:52:27 -03:00
Uint DeviceId() const;
2024-06-22 22:05:35 -03:00
//Retrieves a string that contains the device name.
2024-05-19 17:52:27 -03:00
String DeviceName() const;
2024-06-22 22:05:35 -03:00
//Determines if this instance of GraphicsAdapter is the default adapter.
2024-05-19 17:52:27 -03:00
bool IsDefaultAdapter() const;
2024-06-22 22:05:35 -03:00
//Retrieves the handle of the monitor
2024-05-19 17:52:27 -03:00
intptr_t MonitorHandle() const;
2024-06-22 22:05:35 -03:00
//Retrieves a value used to help identify the revision level of a particular chip set.
2024-05-19 17:52:27 -03:00
Uint Revision() const;
2024-06-22 22:05:35 -03:00
//Retrieves a value used to identify the subsystem.
2024-05-19 17:52:27 -03:00
Uint SubSystemId() const;
2024-06-22 22:05:35 -03:00
//Retrieves a value used to identify the manufacturer.
2024-05-19 17:52:27 -03:00
Uint VendorId() const;
2024-06-22 22:05:35 -03:00
2024-06-23 23:14:06 -03:00
//Returns a collection of supported display modes for the current adapter.
2024-05-19 17:52:27 -03:00
uptr<DisplayModeCollection> SupportedDisplayModes() const;
2024-06-23 23:14:06 -03:00
//Returns a collection of supported display modes for the current adapter.
2024-05-19 17:52:27 -03:00
uptr<DisplayModeCollection> SupportedDisplayModes(SurfaceFormat surfaceFormat) const;
2024-06-22 22:05:35 -03:00
//Gets the current display mode.
2024-05-19 17:52:27 -03:00
sptr<DisplayMode> CurrentDisplayMode();
2024-06-22 22:05:35 -03:00
//Gets the current display mode.
2024-05-19 17:52:27 -03:00
void CurrentDisplayMode(SurfaceFormat surfaceFormat, Uint width, Uint height);
2024-04-21 16:06:22 -03:00
2024-06-22 22:05:35 -03:00
//Gets the default adapter.
2024-04-26 11:35:59 -03:00
static uptr<GraphicsAdapter> DefaultAdapter();
2024-06-22 22:05:35 -03:00
//Collection of available adapters on the system.
2024-04-26 11:35:59 -03:00
static void Adapters(std::vector<uptr<GraphicsAdapter>>& adapters);
2024-05-19 17:52:27 -03:00
public:
struct PlatformImplementation;
uptr<PlatformImplementation> impl = nullptr;
2024-03-18 15:41:46 -03:00
};
}
#endif