Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

GameDX Class Reference

A container that holds and initializes all the DirectX objects. More...

#include <GameDX.h>

List of all members.

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.


Detailed Description

A container that holds and initializes all the DirectX objects.


Constructor & Destructor Documentation

GameDX::GameDX  
 

Constructor.

Authors: Jim Clase, Jonathan Hilliker, Jason Winnebeck

GameDX::~GameDX  
 

Destructor.


Member Function Documentation

D3DRECT & GameDX::getClientSurfaceCoords  
 

Gets a reference to the client surface coordinates.

Returns:
a reference to the client surface coordinates

LPDIRECT3D8 & GameDX::getD3D  
 

Gets a reference to the Direct3D object.

Returns:
a reference to the Direct3D object

LPDIRECT3DDEVICE8 & GameDX::getDeviceHandle  
 

Gets a handle to the Direct3D device.

Returns:
a handle to the Direct3D device

LPDIRECTINPUT8 & GameDX::getDirectInput  
 

Gets a reference to the DirectInput object.

Returns:
a reference to the DirectInput object

LPD3DXFONT & GameDX::getFont  
 

Gets a reference to a DirectX Font object.

Returns:
a reference to a DirectX Font object

void GameDX::registerListener GameDXListener   listener
 

Ensures that the listener given is registered.

If the given listener has already registered, this method has no effect.

void GameDX::releaseD3D  
 

Releases all objects created for Direct3D.

void GameDX::releaseDI  
 

Releases all objects created for DirectInput.

void GameDX::removeListener GameDXListener   listener
 

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.

HRESULT GameDX::resetD3D  
 

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.

HRESULT GameDX::setupD3D  
 

Sets up Direct3D.

Returns:
the result

HRESULT GameDX::setupDI  
 

Sets up DirectInput.

Returns:
the result


The documentation for this class was generated from the following files:
Generated on Tue Mar 4 02:29:26 2003 for SuperIsoBomb by doxygen1.2.18