#include <GameDX.h>
Public Methods | |
GameDX () | |
Constructor. | |
~GameDX () | |
Destructor. | |
HRESULT | setupD3D () |
Sets up Direct3D. | |
HRESULT | setupDI () |
Sets up DirectInput. | |
LPDIRECT3DDEVICE8 & | getDeviceHandle () |
Gets a handle to the Direct3D device. | |
LPDIRECT3D8 & | getD3D () |
Gets a reference to the Direct3D object. | |
D3DRECT & | getClientSurfaceCoords () |
Gets a reference to the client surface coordinates. | |
LPD3DXFONT & | getFont () |
Gets a reference to a DirectX Font object. | |
LPDIRECTINPUT8 & | getDirectInput () |
Gets a reference to the DirectInput object. | |
void | releaseD3D () |
Releases all objects created for Direct3D. | |
HRESULT | resetD3D () |
After setting up the D3D device, this resets the device, picking up the windowed mode from the global window. | |
void | releaseDI () |
Releases all objects created for DirectInput. | |
void | registerListener (GameDXListener &listener) |
Ensures that the listener given is registered. | |
void | removeListener (GameDXListener &listener) |
Removes the given listener from the list of registered listeners, so that it will no longer receive events. |
|
Constructor. Authors: Jim Clase, Jonathan Hilliker, Jason Winnebeck |
|
Destructor.
|
|
Gets a reference to the client surface coordinates.
|
|
Gets a reference to the Direct3D object.
|
|
Gets a handle to the Direct3D device.
|
|
Gets a reference to the DirectInput object.
|
|
Gets a reference to a DirectX Font object.
|
|
Ensures that the listener given is registered. If the given listener has already registered, this method has no effect. |
|
Releases all objects created for Direct3D.
|
|
Releases all objects created for DirectInput.
|
|
Removes the given listener from the list of registered listeners, so that it will no longer receive events. If the given listener is not in the list, this method will have no effect. |
|
After setting up the D3D device, this resets the device, picking up the windowed mode from the global window. This works essentially the same as setupD3D, except that it allows re-initialization after a setupD3D call. D3DPOOL_MANAGED textures and objects will remain between resets, but not between a release/setup call pair. |
|
Sets up Direct3D.
|
|
Sets up DirectInput.
|