Isle
|
[AI] Enumerates DirectDraw/Direct3D drivers, devices, and display modes on the system. More...
#include <mxdirectxinfo.h>
Classes | |
struct | GUID4 |
[AI] Utility structure for GUID comparison. More... | |
Public Member Functions | |
MxDeviceEnumerate () | |
[AI] Constructs an MxDeviceEnumerate object, sets initialized flag to FALSE. More... | |
~MxDeviceEnumerate () | |
[AI] Destructor. More... | |
virtual int | DoEnumerate () |
[AI] Begins enumeration of DirectDraw drivers, their devices, and available display modes. More... | |
BOOL | EnumDirectDrawCallback (LPGUID p_guid, LPSTR p_driverDesc, LPSTR p_driverName) |
[AI] Callback for enumerating a single DirectDraw driver. More... | |
HRESULT | EnumDisplayModesCallback (LPDDSURFACEDESC p_ddsd) |
[AI] Callback for each display mode in a driver. More... | |
HRESULT | EnumDevicesCallback (LPGUID p_guid, LPSTR p_deviceDesc, LPSTR p_deviceName, LPD3DDEVICEDESC p_HWDesc, LPD3DDEVICEDESC p_HELDesc) |
[AI] Callback for enumerating 3D devices on a driver. More... | |
const char * | EnumerateErrorToString (HRESULT p_error) |
[AI] Converts a DirectDraw/Direct3D HRESULT enumeration error to a human-readable string. More... | |
const list< MxDriver > & | GetDriverList () const |
[AI] Returns a const reference to the list of enumerated drivers/devices/modes. More... | |
unsigned char | IsInitialized () const |
[AI] Checks if the enumeration has already been performed. More... | |
Static Public Member Functions | |
static void | BuildErrorString (const char *,...) |
[AI] Utility for formatting and outputting error/debug strings. More... | |
static BOOL CALLBACK | DirectDrawEnumerateCallback (LPGUID p_guid, LPSTR p_driverDesc, LPSTR p_driverName, LPVOID p_context) |
[AI] Static thunk callback suitable for passing to DirectDrawEnumerate. More... | |
static HRESULT CALLBACK | DisplayModesEnumerateCallback (LPDDSURFACEDESC p_ddsd, LPVOID p_context) |
[AI] Static thunk callback for enumerating display modes during driver enumeration. More... | |
static HRESULT CALLBACK | DevicesEnumerateCallback (LPGUID p_guid, LPSTR p_deviceDesc, LPSTR p_deviceName, LPD3DDEVICEDESC p_HWDesc, LPD3DDEVICEDESC p_HELDesc, LPVOID p_context) |
[AI] Static thunk callback for enumerating 3D devices within a driver. More... | |
Protected Attributes | |
list< MxDriver > | m_list |
[AI] List of all discovered DirectDraw drivers and their device/mode info. More... | |
unsigned char | m_initialized |
[AI] Set TRUE after successful enumeration to prevent redundant operations. More... | |
Friends | |
class | MxDirect3D |
[AI] Enumerates DirectDraw/Direct3D drivers, devices, and display modes on the system.
[AI] Used to collect and expose lists of graphics drivers, 3D devices, and supported modes for device selection and initialization.
Definition at line 269 of file mxdirectxinfo.h.
MxDeviceEnumerate::MxDeviceEnumerate | ( | ) |
[AI] Constructs an MxDeviceEnumerate object, sets initialized flag to FALSE.
Definition at line 182 of file mxdirectxinfo.cpp.
MxDeviceEnumerate::~MxDeviceEnumerate | ( | ) |
|
static |
[AI] Utility for formatting and outputting error/debug strings.
... | printf-style format/varargs. [AI] |
Definition at line 260 of file mxdirectxinfo.cpp.
|
static |
[AI] Static thunk callback for enumerating 3D devices within a driver.
p_guid | Device GUID. [AI] |
p_deviceDesc | Device description string. [AI] |
p_deviceName | Device name string. [AI] |
p_HWDesc | Hardware device capabilities. [AI] |
p_HELDesc | Software (HEL) capabilities. [AI] |
p_context | Pointer to this instance. [AI] |
Definition at line 287 of file mxdirectxinfo.cpp.
|
static |
[AI] Static thunk callback suitable for passing to DirectDrawEnumerate.
p_guid | GUID pointer to the driver. [AI] |
p_driverDesc | Description string provided by DirectDraw. [AI] |
p_driverName | Name string provided by DirectDraw. [AI] |
p_context | pointer to this instance. [AI] |
Definition at line 358 of file mxdirectxinfo.cpp.
|
static |
[AI] Static thunk callback for enumerating display modes during driver enumeration.
p_ddsd | Surface description for the display mode. [AI] |
p_context | pointer to this instance. [AI] |
Definition at line 275 of file mxdirectxinfo.cpp.
|
virtual |
[AI] Begins enumeration of DirectDraw drivers, their devices, and available display modes.
[AI] This will populate m_list with all available drivers/devices/modes and set m_initialized to TRUE if successful.
Definition at line 338 of file mxdirectxinfo.cpp.
HRESULT MxDeviceEnumerate::EnumDevicesCallback | ( | LPGUID | p_guid, |
LPSTR | p_deviceDesc, | ||
LPSTR | p_deviceName, | ||
LPD3DDEVICEDESC | p_HWDesc, | ||
LPD3DDEVICEDESC | p_HELDesc | ||
) |
[AI] Callback for enumerating 3D devices on a driver.
p_guid | Device GUID. [AI] |
p_deviceDesc | Description string from the API. [AI] |
p_deviceName | Name string from the API. [AI] |
p_HWDesc | Hardware capabilities. [AI] |
p_HELDesc | HEL (software) capabilities. [AI] |
Definition at line 321 of file mxdirectxinfo.cpp.
BOOL MxDeviceEnumerate::EnumDirectDrawCallback | ( | LPGUID | p_guid, |
LPSTR | p_driverDesc, | ||
LPSTR | p_driverName | ||
) |
[AI] Callback for enumerating a single DirectDraw driver.
p_guid | GUID of driver. [AI] |
p_driverDesc | Description string from DirectDraw. [AI] |
p_driverName | Name string from DirectDraw. [AI] |
Definition at line 197 of file mxdirectxinfo.cpp.
HRESULT MxDeviceEnumerate::EnumDisplayModesCallback | ( | LPDDSURFACEDESC | p_ddsd | ) |
[AI] Callback for each display mode in a driver.
p_ddsd | Surface description structure for the display mode. [AI] |
Definition at line 307 of file mxdirectxinfo.cpp.
const char * MxDeviceEnumerate::EnumerateErrorToString | ( | HRESULT | p_error | ) |
[AI] Converts a DirectDraw/Direct3D HRESULT enumeration error to a human-readable string.
p_error | HRESULT error value returned during enumeration. [AI] |
Definition at line 370 of file mxdirectxinfo.cpp.
[AI] Returns a const reference to the list of enumerated drivers/devices/modes.
Definition at line 377 of file mxdirectxinfo.h.
|
inline |
[AI] Checks if the enumeration has already been performed.
Definition at line 407 of file mxdirectxinfo.h.
|
friend |
Definition at line 371 of file mxdirectxinfo.h.
|
protected |
[AI] Set TRUE after successful enumeration to prevent redundant operations.
Definition at line 411 of file mxdirectxinfo.h.
[AI] List of all discovered DirectDraw drivers and their device/mode info.
Definition at line 410 of file mxdirectxinfo.h.