$#! | |
__FullscreenMode, D3DInterface | |
__Resize, D3DInterface | |
__WindowedMode, D3DInterface | |
A | |
AquireAndLoad, Resource | |
C | |
CheckoutDevice, D3DInterface | |
CloseFile, FileLogger | |
CompleteUnload, RSRC | |
Create, VertexBufferResource | |
CreateBlankSurface, SurfaceResource | |
CreateClipper, DDrawInterface | |
CreateFromFile, SurfaceResource | |
CreateSurface, DDrawInterface | |
CStartup, CStartup | |
~ | CStartup, CStartup |
D | |
D3DDevice, D3DDevice | |
~ | D3DDevice, D3DDevice |
D3DInterface, D3DInterface | |
~ | D3DInterface, D3DInterface |
DDrawInterface, DDrawInterface | |
~ | DDrawInterface, DDrawInterface |
Detach, Resource | |
DisplayModeShift, CStartup | |
E | |
EnumDisplayModes | |
F | |
FileLogger, FileLogger | |
~ | FileLogger, FileLogger |
G | |
getBackBuffer, DDrawInterface | |
getBackBufferFormat, CStartup | |
getBpp, CStartup | |
getDDraw, DDrawInterface | |
getFlags | |
getFSHeight, CStartup | |
getFSWidth, CStartup | |
getHeight, CStartup | |
getHz, CStartup | |
getMode, CStartup | |
getPrimaryBuffer, DDrawInterface | |
getState | |
getType, Resource | |
getVSync, CStartup | |
getWidth, CStartup | |
I | |
Init | |
InitDevice, D3DInterface | |
InitDevices, CStartup | |
InitDisplay, DDrawInterface | |
L | |
Lock, Resource | |
O | |
OpenFile, FileLogger | |
operator, D3DDevice | |
operator LPDIRECT3DDEVICE9, D3DDevice | |
operator!, D3DDevice | |
operator<<, FileLogger | |
P | |
ProcessState, CStartup | |
R | |
Reload, RSRC | |
ResetDevice, D3DInterface | |
ResetUnload, RSRC | |
ResizeBackBuffer, DDrawInterface | |
ResizeWindow, CStartup | |
Resource, Resource | |
~ | Resource, Resource |
RestoreDisplay, DDrawInterface | |
ReturnDevice | |
S | |
ShowStartupDialog, CStartup | |
Shutdown | |
ShutdownDevice, D3DInterface | |
ShutdownInterface, DDrawInterface | |
T | |
TestState | |
TriggerTestState, CStartup |
Get the ResetDevice ready fullscreen mode
static int __FullscreenMode()
Resizes the backbuffer from a window size change
static int __Resize()
Get the ResetDevice ready windowed mode
static int __WindowedMode()
The Object its attached to aquires any needed interfaces and loads the data into memory based on the initialization settings.
int AquireAndLoad()
Use the D3DDevice for using these functions to stay exception safe.
const LPDIRECT3DDEVICE9 CheckoutDevice( int & ID )
Closes up the opened file and puts the class into an invalid state
void CloseFile()
Unloads all resources regardless of flags.
void CompleteUnload()
Creates a vertex buffer with the specified parameters
int Create( int size, DWORD vertex_type, DWORD RSrc_Flags )
Uses parameters to create a blank surface and optionally allows to fill the surface using a fuction pointer.
int CreateBlankSurface( LPRECT rcSize, DWORD RSrc_Flags, int (*Reset_Func)(RSRC_LOCKINFO_PTR LockInfo) = NULL, int AlphaEnabled = true, int NewBpp = 0 )
Creates a clipper object using the provided parameters.
LPDIRECTDRAWCLIPPER CreateClipper( const int num_rects, const LPRECT clip_list ) const
Uses provided options to create an object.
int CreateFromFile( IMAGE_OPTIONS_PTR Options, DWORD RSrc_Flags )
Creates a surface using the provided parameters.
LPDIRECTDRAWSURFACE7 CreateSurface( const int width, const int height, const DWORD mem_flag = DDRAW_SURFACEFLAG_SYSMEM, const int bpp = 0 ) const
Simply increases the internal reference count
CStartup()
Simply decreases the internal reference count
~CStartup()
Grabs a Direct3DDevice9 from the D3D Interface and stores the ID.
D3DDevice( ) : d3ddev(NULL), id3d(), ID(0)
If there is a device attached, it returns it with the ID saved in the constructor
~D3DDevice()
Gets a handle to the DIRECT3D9 Interface if there is none already
D3DInterface()
Closes the interface, but does not shutdown the handle unless explicitely told to.
~D3DInterface()
Attempts to query an IDirectDraw7 interface and initialize it for use.
DDrawInterface()
Does nothing except keep track of an internal count of created classes
~DDrawInterface()
Detaches itself from the Object it was pointing to.
void Detach()
Puts the startup into a state to change the display mode from Fullscreen or Windowed.
STATE_TYP DisplayModeShift( HWND LogWindow )
Fills the windows control with all the available display modes.
int EnumDisplayModes ( const HWND hwnd, const int rcResource ) const
Enumerates the valid display modes for the device
int EnumDisplayModes( const HWND hwnd, const int rcResource ) const
Just initializes the class into an invalid state
FileLogger( ) : Valid(false)
Closes the file.
~FileLogger()
Get the interface to the main BackBuffer.
const LPDIRECTDRAWSURFACE7 getBackBuffer( void ) const
Specifies the exact type of the pixel format of the back buffer.
UINT getBackBufferFormat() const // Specifies the exact type of the back buffer
The bits per pixel for the current display mode.
UINT getBpp() const // Stores the bits per pixel
Grabs the main DDraw inerface pointer.
const LPDIRECTDRAW7 getDDraw( void ) const
Gets the current flags of the D3DInterface
static DWORD getFlags()
Gets the current flags of the resource.
DWORD getFlags()
The stored fullscreen height of the backbuffer
UINT getFSHeight() const
The stored fullscreen width of the backbuffer
UINT getFSWidth() const
The current height of the window or back buffer
UINT getHeight() const
The current HZ the monitor is sync at.
UINT getHz() const // The hz the screen updates at
The current MODE_TYP
MODE_TYP getMode() const
Get the interface to the Primary Buffer.
const LPDIRECTDRAWSURFACE7 getPrimaryBuffer( void ) const
Retrieves the state of the interface
static STATE_TYP getState()
Gets the current state of the D3DInterface
static D3D_STATE_TYP getState()
Returns the current state of the interface
static DDRAW_STATE_TYP getState()
Gets the current state of the resource.
RSRC_STATE_TYP getState()
Gets the current type of the object the resource is connected to.
RSRC_TYPE_TYP getType()
True if the display refresh rate is in sync with the monitor.
UINT getVSync() const // May not even be an option, but will include anyway
The current width of the window or back buffer
UINT getWidth() const
Initializes GDI+ for use.
static int Init()
Initializes the resource interfaces to use the specified mode
int Init( MODE_TYP Interface )
Uses the startup settings from CStartup to setup the display mode
static int InitDevice( const HWND hwnd )
Initializes devices for the desired running mode.
int InitDevices()
Initializes the display for rendering.
int InitDisplay()
Locks a resource and locks the objects mutex.
int Lock( RSRC_LOCKINFO_PTR LockInfo )
Opens a file for input
int OpenFile( char * logName, std::ios:: openmode mode )
Indirection operator so you can use this class as if its the device.
const LPDIRECT3DDEVICE9 operator->() const
Used to provide the class directly whenever a function needs a D3DDevice pointer
operator LPDIRECT3DDEVICE9() const
Polls wether a D3DDevice has been checkout or not
BOOL operator!() const
Processes the current state of the interface.
STATE_TYP ProcessState()
Reloads all resources that have are in state RSRC_STATE_PENDING.
int Reload()
Uses the previous init settings to recreate a lost device
static int ResetDevice()
Unloads all resource that have RSRC_RESET set.
void ResetUnload()
Resizes the back buffer in the interface to match the window after a resize.
static int ResizeBackBuffer()
Resizes the back buffer to match a resized window.
static STATE_TYP ResizeWindow( int width, int height )
Creates an empty resource class.
Resource( ) : Flags(0), State(RSRC_STATE_CLEAN), Type(RSRC_TYPE_NONE), pObject(NULL)
Detaches itself with the Object.
virtual ~Resource()
Restores the display back to initialized settings.
int RestoreDisplay()
Returns the device before the class goes out of scope
void ReturnDevice( void )
Use the D3DDevice for using these functions to stay exception safe.
void ReturnDevice( int & ID )
Show the main startup dialog and save the results into the class.
int ShowStartupDialog( HINSTANCE hinstance )
Shutdown all the interfaces.
static void Shutdown()
Shutsdown GDI+.
static void Shutdown()
Shuts down the resource interface
void Shutdown()
Shutsdown all the D3D Interfaces.
static void ShutdownDevice()
Shutdown the interface.
static void ShutdownInterface()
Tests the state of the devices for any changes.
STATE_TYP TestState()
Tests the coop mode and adjust the state as neccessary
static D3D_STATE_TYP TestState()
Tests the interface and makes adjustments to the state as neccessary
static DDRAW_STATE_TYP TestState()
Tests the state of the Object and copies over all its state information into the resource.
RSRC_STATE_TYP TestState()
If possible, puts the interface into STATE_TEST.
static STATE_TYP TriggerTestState()