Information for a display device. More...
Public Member Functions | |
AdapterInfo (uint_t uAdapterOrdinal) | |
Create a default AdapterInfo. | |
~AdapterInfo () | |
Dispose of an AdapterInfo class. | |
const _D3DADAPTER_IDENTIFIER9 * | GetAdapterIdentifier (void) const |
Get pointer to D3DADAPTER_IDENTIFIER9 record for this adapter. | |
uint_t | GetAdapterOrdinal (void) const |
Get ordinal index for the adapter this class describes. | |
uintptr_t | GetDisplayModeListSize (void) const |
Get number of entries in the display mode list. | |
const DisplayMode_t * | GetDisplayModeList (void) const |
Get the pointer to the base of the DisplayMode_t array. | |
void | AddToList (const DisplayMode_t *pDisplayMode) |
Add a copy of a DisplayMode_t to the end of the list. | |
uintptr_t | GetDisplayInfoListSize (void) const |
Get number of entries in the display info list. | |
DeviceInfo *const * | GetDisplayInfoList (void) const |
Get the pointer to the base of the DeviceInfo * array. | |
void | AddToList (DeviceInfo *pDisplayInfo) |
Add a DeviceInfo * to the end of the list. | |
const DeviceInfo * | Find (uint_t uDeviceType) const |
Find a DeviceInfo * in the list. | |
Private Attributes | |
SimpleArray< DisplayMode_t > | m_DisplayModeList |
Array of display modes. | |
SimpleArray< DeviceInfo * > | m_DeviceInfoList |
Array of DeviceInfo* with pixel formats supported for rendering. | |
uint32_t | m_AdapterIdentifier [276] |
D3DADAPTER_IDENTIFIER9 record. | |
uint_t | m_uAdapterOrdinal |
DirectX 9 ordinal value for this device. | |
Information for a display device.
For each display device, this class contains a list of every supported pixel resolution and a array of DeviceInfo classes describing every GPU/software renderer that is attached to it. Contained in this class is a copy of the D3DADAPTER_IDENTIFIER9 structure obtained from the adapter.
https://msdn.microsoft.com/en-us/library/windows/desktop/bb172505(v=vs.85).aspx
Burger::DisplayDirectX9::AdapterInfo::AdapterInfo | ( | uint_t | uAdapterOrdinal | ) |
Create a default AdapterInfo.
All lists are empty on creation
uAdapterOrdinal | Adapter ordinal index |
Burger::DisplayDirectX9::AdapterInfo::~AdapterInfo | ( | ) |
Dispose of an AdapterInfo class.
void BURGER_API Burger::DisplayDirectX9::AdapterInfo::AddToList | ( | const DisplayMode_t * | pDisplayMode | ) |
Add a copy of a DisplayMode_t to the end of the list.
Make a copy of the passed DisplayMode_t and append the copy to the end of the array contained in this class.
pDisplayMode | Pointer to the DisplayMode_t to copy. |
void BURGER_API Burger::DisplayDirectX9::AdapterInfo::AddToList | ( | DeviceInfo * | pDisplayInfo | ) |
Add a DeviceInfo * to the end of the list.
Append a pointer to the DeviceInfo pointer array. This class takes ownership of the pointer and will dispose of it when the class is destructed.
pDisplayInfo | Pointer to the DeviceInfo to take ownership and append to the pointer array. |
const Burger::DisplayDirectX9::DeviceInfo *BURGER_API Burger::DisplayDirectX9::AdapterInfo::Find | ( | uint_t | uDeviceType | ) | const |
Find a DeviceInfo * in the list.
Iterate over the DeviceInfo pointer array and return the entry that matches the passed device type.
uDeviceType | Type of device to locate |
|
inline |
Get pointer to D3DADAPTER_IDENTIFIER9 record for this adapter.
Get ordinal index for the adapter this class describes.
|
inline |
Get the pointer to the base of the DeviceInfo * array.
Get number of entries in the display info list.
|
inline |
Get the pointer to the base of the DisplayMode_t array.
Get number of entries in the display mode list.
|
private |
D3DADAPTER_IDENTIFIER9 record.
|
private |
Array of DeviceInfo* with pixel formats supported for rendering.
|
private |
Array of display modes.
|
private |
DirectX 9 ordinal value for this device.