|
coastline 0.0.4
|
A DirectDraw driver the game found. More...
#include <renderer.h>
Public Member Functions | |
| unsigned | GetFlags () const |
| const GUID * | GetGuid () const |
| const char * | GetName () const |
| unsigned | GetDisplayModeCount () const |
| DisplayMode * | GetDisplayModesHead () const |
| DirectDrawDriver * | GetPrevious () const |
| DirectDrawDriver * | GetNext () const |
| void | SetPrevious (DirectDrawDriver *driver) |
Link the preceding driver. | |
| void | SetNext (DirectDrawDriver *driver) |
Link the following driver. | |
| DirectDrawDriver () | |
| Start a driver that is not usable, with empty abilities. | |
| HRESULT | EnqueueDirectDrawModeNode (DisplayMode *pMode) |
| Add a display mode to the end of the modes of the driver. | |
| HRESULT | AppendDirect3DDeviceNode (D3DDeviceNode *pDevice) |
| Add a Direct3D device to the end of the devices of the driver. | |
| DisplayMode * | FindDisplayMode (int nWidth, int nHeight, int nBitDepth, void *pUnused, DisplayMode **ppFallback, DisplayMode *pFirst) |
| Find a display mode of a size and a depth. | |
| D3DDeviceNode * | SelectPreferredD3DDevice (GUID *pGuid, D3DDeviceNode **ppPreferred, D3DDeviceNode *pFirst) |
| Select the device a GUID names, or report the device the game prefers: a device of the hardware, then the emulation of RGB, then that of MMX, then the first device. | |
| D3DDeviceNode * | FindRenderDevice (GUID *pGuid, DisplayMode *pMode, D3DDeviceNode **ppFallback, D3DDeviceNode *pFirst) |
| Find the device a GUID names that supports a display mode. | |
| DisplayMode * | FindDisplayModeForDevice (int nWidth, int nHeight, int nBitDepth, void *pUnused, D3DDeviceNode *pDevice, DisplayMode **ppFallback, DisplayMode *pFirst) |
| Find a display mode of a size and a depth that a device supports. | |
| HRESULT | InitializeDirectDrawDriver (GUID *pGuid, LPSTR pszName, LPSTR pszDescription) |
| Read a driver DirectDraw reports, with its devices and its modes. | |
| void | ShutdownDirectDrawDriver () |
| Free the devices and the modes of the driver. | |
| bool | CompareDirectDrawDriverGuid (const GUID *pGuid) |
| Whether a GUID selects the driver, a usable driver alone. | |
| GUID * | GetDirectDrawDriverGuid () |
| The GUID that selects the driver. | |
A DirectDraw driver the game found.
|
inline |
Start a driver that is not usable, with empty abilities.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Link the preceding driver.
|
inline |
Link the following driver.
| HRESULT DirectDrawDriver::EnqueueDirectDrawModeNode | ( | DisplayMode * | pMode | ) |
Add a display mode to the end of the modes of the driver.
| pMode | The mode. |
| HRESULT DirectDrawDriver::AppendDirect3DDeviceNode | ( | D3DDeviceNode * | pDevice | ) |
Add a Direct3D device to the end of the devices of the driver.
| pDevice | The device. |
| DisplayMode * DirectDrawDriver::FindDisplayMode | ( | int | nWidth, |
| int | nHeight, | ||
| int | nBitDepth, | ||
| void * | pUnused, | ||
| DisplayMode ** | ppFallback, | ||
| DisplayMode * | pFirst ) |
Find a display mode of a size and a depth.
| nWidth | The width of the mode. |
| nHeight | The height of the mode. |
| nBitDepth | The bits of a pixel of the mode. |
| pUnused | Not read. |
| ppFallback | Receives the last mode of 640 by 480 at 8 bits on the way, or the first mode searched, unless nullptr. |
| pFirst | The mode the search starts at, or nullptr for the first. |
| D3DDeviceNode * DirectDrawDriver::SelectPreferredD3DDevice | ( | GUID * | pGuid, |
| D3DDeviceNode ** | ppPreferred, | ||
| D3DDeviceNode * | pFirst ) |
Select the device a GUID names, or report the device the game prefers: a device of the hardware, then the emulation of RGB, then that of MMX, then the first device.
| pGuid | The GUID of the device, or nullptr. |
| ppPreferred | Receives the device the game prefers, unless nullptr. |
| pFirst | The device the search starts at, or nullptr for the first. |
| D3DDeviceNode * DirectDrawDriver::FindRenderDevice | ( | GUID * | pGuid, |
| DisplayMode * | pMode, | ||
| D3DDeviceNode ** | ppFallback, | ||
| D3DDeviceNode * | pFirst ) |
Find the device a GUID names that supports a display mode.
| pGuid | The GUID of the device. |
| pMode | The mode. |
| ppFallback | Receives the last device on the way that supports the mode, unless nullptr. |
| pFirst | The device the search starts at, or nullptr for the first. |
| DisplayMode * DirectDrawDriver::FindDisplayModeForDevice | ( | int | nWidth, |
| int | nHeight, | ||
| int | nBitDepth, | ||
| void * | pUnused, | ||
| D3DDeviceNode * | pDevice, | ||
| DisplayMode ** | ppFallback, | ||
| DisplayMode * | pFirst ) |
Find a display mode of a size and a depth that a device supports.
| nWidth | The width of the mode. |
| nHeight | The height of the mode. |
| nBitDepth | The bits of a pixel of the mode. |
| pUnused | Not read. |
| pDevice | The device. |
| ppFallback | Receives the last mode on the way that the device supports, unless nullptr. |
| pFirst | The mode the search starts at, or nullptr for the first. |
| void DirectDrawDriver::ShutdownDirectDrawDriver | ( | ) |
Free the devices and the modes of the driver.
| bool DirectDrawDriver::CompareDirectDrawDriverGuid | ( | const GUID * | pGuid | ) |
| GUID * DirectDrawDriver::GetDirectDrawDriverGuid | ( | ) |