Information for a display device.
More...
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
- See also
- DeviceInfo or BufferFormatGroup
◆ AdapterInfo()
Burger::DisplayDirectX9::AdapterInfo::AdapterInfo |
( |
uint_t | uAdapterOrdinal | ) |
|
Create a default AdapterInfo.
All lists are empty on creation
- Parameters
-
uAdapterOrdinal | Adapter ordinal index |
◆ ~AdapterInfo()
Burger::DisplayDirectX9::AdapterInfo::~AdapterInfo |
( |
| ) |
|
◆ AddToList() [1/2]
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.
- Note
- This is only available on Windows
- Parameters
-
◆ AddToList() [2/2]
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.
- Note
- This is only available on Windows
- Parameters
-
pDisplayInfo | Pointer to the DeviceInfo to take ownership and append to the pointer array. |
◆ Find()
Find a DeviceInfo * in the list.
Iterate over the DeviceInfo pointer array and return the entry that matches the passed device type.
- Note
- This is only available on Windows
- Parameters
-
uDeviceType | Type of device to locate |
- Returns
- Pointer to the located DeviceInfo or nullptr if not found.
◆ GetAdapterIdentifier()
const _D3DADAPTER_IDENTIFIER9 * Burger::DisplayDirectX9::AdapterInfo::GetAdapterIdentifier |
( |
void | | ) |
const |
|
inline |
Get pointer to D3DADAPTER_IDENTIFIER9 record for this adapter.
- Note
- This is only available on Windows
- Returns
- Pointer to the contained D3DADAPTER_IDENTIFIER9 structure
◆ GetAdapterOrdinal()
uint_t Burger::DisplayDirectX9::AdapterInfo::GetAdapterOrdinal |
( |
void | | ) |
const |
|
inline |
Get ordinal index for the adapter this class describes.
- Note
- This is only available on Windows
- Returns
- Adapter ordinal index
◆ GetDisplayInfoList()
DeviceInfo *const * Burger::DisplayDirectX9::AdapterInfo::GetDisplayInfoList |
( |
void | | ) |
const |
|
inline |
◆ GetDisplayInfoListSize()
uintptr_t Burger::DisplayDirectX9::AdapterInfo::GetDisplayInfoListSize |
( |
void | | ) |
const |
|
inline |
Get number of entries in the display info list.
- Note
- This is only available on Windows
- Returns
- Number of entries in the display info list, zero means the list is empty.
- See also
- GetDisplayInfoList(void) const
◆ GetDisplayModeList()
const DisplayMode_t * Burger::DisplayDirectX9::AdapterInfo::GetDisplayModeList |
( |
void | | ) |
const |
|
inline |
◆ GetDisplayModeListSize()
uintptr_t Burger::DisplayDirectX9::AdapterInfo::GetDisplayModeListSize |
( |
void | | ) |
const |
|
inline |
Get number of entries in the display mode list.
- Note
- This is only available on Windows
- Returns
- Number of entries in the display mode list, zero means the list is empty.
- See also
- GetDisplayModeList(void) const
◆ m_AdapterIdentifier
uint32_t Burger::DisplayDirectX9::AdapterInfo::m_AdapterIdentifier[276] |
|
private |
D3DADAPTER_IDENTIFIER9 record.
◆ m_DeviceInfoList
Array of DeviceInfo* with pixel formats supported for rendering.
◆ m_DisplayModeList
◆ m_uAdapterOrdinal
uint_t Burger::DisplayDirectX9::AdapterInfo::m_uAdapterOrdinal |
|
private |
DirectX 9 ordinal value for this device.