|
coastline 0.0.4
|
A display mode of a driver. More...
#include <renderer.h>
Public Member Functions | |
| void | SetDescription (const DDSURFACEDESC &description) |
| Replace the mode's DirectDraw surface description. | |
| DisplayMode * | GetPrevious () const |
| DisplayMode * | GetNext () const |
| void | SetPrevious (DisplayMode *mode) |
Link the preceding mode. | |
| void | SetNext (DisplayMode *mode) |
Link the following mode. | |
| DisplayMode () | |
| Start an empty mode. | |
| HRESULT | GetSurfaceDescDimensions (int *pnWidth, int *pnHeight, int *pnBitDepth, int *pnRefreshRate) |
| The size and the bits of a pixel of the mode. | |
| bool | IsDisplayModeSupportedByDevice (D3DDeviceNode *pDevice) |
| Whether a device can draw in the depth of the mode. | |
| bool | IsDisplayModeMatch (int nWidth, int nHeight, int nBitDepth) |
| Whether the mode has a size and a depth. | |
A display mode of a driver.
The layout after desc is not recovered yet.
|
inline |
Start an empty mode.
|
inline |
Replace the mode's DirectDraw surface description.
|
inline |
|
inline |
|
inline |
Link the preceding mode.
|
inline |
Link the following mode.
| HRESULT DisplayMode::GetSurfaceDescDimensions | ( | int * | pnWidth, |
| int * | pnHeight, | ||
| int * | pnBitDepth, | ||
| int * | pnRefreshRate ) |
The size and the bits of a pixel of the mode.
| pnWidth | Receives the width. |
| pnHeight | Receives the height. |
| pnBitDepth | Receives the bits of a pixel. |
| pnRefreshRate | Receives the refresh rate, 0 for the default. |
| bool DisplayMode::IsDisplayModeSupportedByDevice | ( | D3DDeviceNode * | pDevice | ) |
Whether a device can draw in the depth of the mode.
| pDevice | The device, or nullptr. |
| bool DisplayMode::IsDisplayModeMatch | ( | int | nWidth, |
| int | nHeight, | ||
| int | nBitDepth ) |
Whether the mode has a size and a depth.
| nWidth | The width. |
| nHeight | The height. |
| nBitDepth | The bits of a pixel. |