|
coastline 0.0.4
|
What the game draws through: the renderer of the main window. More...
#include <renderer.h>
Public Member Functions | |
| DirectDrawRenderer * | GetRenderer () const |
| RenderHost () | |
| Start without a renderer. | |
| int | OnDestroyDevice () |
| Prepare for the device of the renderer to go. | |
| int | ReloadTextureSurfacesAfterRestore () |
| Load the textures again after the surfaces of the renderer were restored. | |
| HRESULT | SetRenderer (DirectDrawRenderer *pNewRenderer) |
| Draw through a renderer. | |
| HRESULT | RenderLoadingScreen (DirectDrawRenderer *pWindowRenderer, const char *pszImage, unsigned nImageKey) |
| Show an image of the game while the game loads. | |
| HRESULT | ValidateRenderDeviceState () |
| Whether the renderer is ready and has its Direct3D objects. | |
What the game draws through: the renderer of the main window.
| RenderHost::RenderHost | ( | ) |
Start without a renderer.
|
inline |
| int RenderHost::OnDestroyDevice | ( | ) |
Prepare for the device of the renderer to go.
| int RenderHost::ReloadTextureSurfacesAfterRestore | ( | ) |
Load the textures again after the surfaces of the renderer were restored.
| HRESULT RenderHost::SetRenderer | ( | DirectDrawRenderer * | pNewRenderer | ) |
Draw through a renderer.
| pNewRenderer | The renderer. |
| HRESULT RenderHost::RenderLoadingScreen | ( | DirectDrawRenderer * | pWindowRenderer, |
| const char * | pszImage, | ||
| unsigned | nImageKey ) |
Show an image of the game while the game loads.
The image is drawn as a 256 by 256 texture in the centre of the screen, and the frame is drawn and flipped twice.
| pWindowRenderer | The renderer of the window. |
| pszImage | The name of the image. |
| nImageKey | The Adler-32 checksum the image must have, 0x2ac7e58b for the splash. |
| HRESULT RenderHost::ValidateRenderDeviceState | ( | ) |
Whether the renderer is ready and has its Direct3D objects.