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()
boost::recursive_mutex that protects the class from multiple threads accessing the _Stream at the same time.
boost::recursive_mutex _Mutex
std::fstream The stream that links to the filename for logging
std::fstream _Stream
The Object its attached to aquires any needed interfaces and loads the data into memory based on the initialization settings.
int AquireAndLoad()
UINT Specifies the exact type of the back buffer for D3D objects to know
UINT BackBufferFormat
INT The bits per pxiel.
int bpp
UINT The Bits per Pixel of the display
UINT bpp
INT Specifies a different bpp to convert the image to
int Bpp
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
Interface to control and query the running state of the program.
class CStartup
Simply increases the internal reference count
CStartup()
Simply decreases the internal reference count
~CStartup()
This will grab the D3D Device in an exception-safe way.
class D3DDevice : public boost::noncopyable
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()
This is the main interface into Direct3D.
class D3DInterface
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()
Controls DirectDraw and provides a common interface to all of its functions.
class DDrawInterface
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 )
DWORD Some options for the D3DInterface to use.
DWORD dwD3DInitMode