Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
E
 EnumDisplayModes
 Enumerations
 ERR_D3DENUM_ENUMMODES
 ERR_D3DINIT_DEVICE
 ERR_D3DINIT_INTERFACE
 ERR_D3DINIT_NOTVALID
 ERR_D3DINIT_NOVALIDBPP
 ERR_D3DINIT_NOVALIDFORMAT
 ERR_D3DINIT_NOVALIDPIXELFORMAT
 ERR_DDRAWINIT_CC
 ERR_DDRAWINIT_CSBACK
 ERR_DDRAWINIT_CSPRIM
 ERR_DDRAWINIT_GDM
 ERR_DDRAWINIT_GSD
 ERR_DDRAWINIT_SCL
 ERR_DDRAWINIT_SDM
 ERR_DDRAWINIT_SETCLIP
 ERR_DDRAWINIT_SETHWND
 ERR_DDRAWRESIZE_CC
 ERR_DDRAWRESIZE_CSBACK
 ERR_DDRAWRESIZE_SETCLIP
 ERR_DDRAWRESTORE_CC
 ERR_DDRAWRESTORE_CSBACK
 ERR_DDRAWRESTORE_GSD
 ERR_DDRAWRESTORE_SDM
 ERR_DDRAWRESTORE_SETCLIP
 ERR_DDRAWRESTORE_SETHWND
 ERR_END_THREADTERMINATION
 ERR_GAMEINIT_NOTREADY
 ERR_GAMEMAIN_NOTREADY
 ERR_GDI_FATALDEBUG
 ERR_RESOURCE_INVALIDCALL
 ERR_STARTUP_D3DFAILED
 ERR_STARTUP_DDRAWFAILED
 ERR_STARTUP_NOMEMORY
 ERR_TOP
 ERR_TOP_LOGFILE
 ERR_TOP_THREAD_GAMEINIT
 ERR_UNDEFINED
 ERRLVL_DEBUG
 ERRLVL_ERROR
 ERRLVL_FATAL
 ERRLVL_INFO
 ERRLVL_WARNING
 Error Definitions
 Error Handling
 Error Levels
 ERROR_FILENAME
 Errors
 Exception Classes
 External Variables, Logger
F
 Fatal Error Codes
 FileLogger
~FileLogger, FileLogger
 Flags
 Functions
G
 GDI Interface
 GDIInterface
 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
H
 height, RSRC_LOCKINFO_TYP
 Height
 hwndMain, SETTINGS_TYP
 hz, SETTINGS_TYP
I
 IMAGE_FLAG_ALPHA, RSRC
 IMAGE_FLAG_MIPMAP, RSRC
 IMAGE_FLAG_NEWBPP, RSRC
 IMAGE_FLAG_OVERRIDE, RSRC
 IMAGE_FLAG_RECT, RSRC
 IMAGE_FLAG_SRCKEY, RSRC
 IMAGE_FLAG_STRETCH, RSRC
 Image_Flags, IMAGE_OPTIONS_TYP
 IMAGE_FLAGS_TYP, RSRC
 IMAGE_OPTIONS, RSRC
 IMAGE_OPTIONS_PTR, RSRC
 IMAGE_OPTIONS_TYP
 Init
 InitDevice, D3DInterface
 InitDevices, CStartup
 InitDisplay, DDrawInterface
 IsActive, SETTINGS_TYP
 IsDebugWindow, SETTINGS_TYP
 IsLogWindow, SETTINGS_TYP
 IsWindowed, SETTINGS_TYP
L
 Left, ViewInit2D_TYP
 LINE_MAX
 LoadFunc, IMAGE_OPTIONS_TYP
 LoadRect, IMAGE_OPTIONS_TYP
 Lock, Resource
 LOG, Logger
 LOG_FATAL
 LOG_WINDOW
 Logger
int EnumDisplayModes (const HWND hwnd,
const int rcResource) const
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
1300.
1250.
1200.
1290.
1220.
1260.
1210.
1530.
1560.
1520.
1500.
1580.
1510.
1570.
1550.
1540.
1600.
1620.
1610.
1530.
1560.
1580.
1570.
1550.
1540.
300.
1050.
1100.
2300.
2500.
2100.
2200.
2000.
100.
110.
120.
1000.
Debug is fine grained information for debugger application behavior
Errors that can still alow the application to run
Fatal errors cause an application to abort.
Info describes the progress of the application with coarse information
Warnings are potential problems that don’t cause errors
Contains all the error codes and macros to control error logging and return values.
Define these in the top of your program before errdef.h to control what types of errors are logged and what aren’t.
”runlog.txt” Filename for the logfile to save to
namespace Errors
Contains only a single variable responsible for returning and signaling a fatal error
All of the fatal errors send an error code into Errors::tError that are defined by one of these definitions.
class FileLogger
Used to log everything during the runtime of the program.
FileLogger() : Valid(false)
Just initializes the class into an invalid state
~FileLogger()
Closes the file.
Used to keep track of the valid modes in D3DInterface
DWORD Flags
DWORD This is a RSRC::RSRC_FLAG_TYP
unsigned int Flags
UINT These are flags from RNDR::ViewInit2D_Flag_TYP.
Contains only the Interface class.
class GDIInterface
Provides an interface to startup and shutdown the GDI+ Interface
const LPDIRECTDRAWSURFACE7 getBackBuffer(void) const
Get the interface to the main BackBuffer.
UINT getBackBufferFormat() const // Specifies the exact type of the back buffer
Specifies the exact type of the pixel format of the back buffer.
UINT getBpp() const // Stores the bits per pixel
The bits per pixel for the current display mode.
const LPDIRECTDRAW7 getDDraw(void) const
Grabs the main DDraw inerface pointer.
static DWORD getFlags()
Gets the current flags of the D3DInterface
DWORD getFlags()
Gets the current flags of the resource.
UINT getFSHeight() const
The stored fullscreen height of the backbuffer
UINT getFSWidth() const
The stored fullscreen width of the backbuffer
UINT getHeight() const
The current height of the window or back buffer
UINT getHz() const // The hz the screen updates at
The current HZ the monitor is sync at.
MODE_TYP getMode() const
The current MODE_TYP
const LPDIRECTDRAWSURFACE7 getPrimaryBuffer(void) const
Get the interface to the Primary Buffer.
static STATE_TYP getState()
Retrieves the state of the interface
static D3D_STATE_TYP getState()
Gets the current state of the D3DInterface
static DDRAW_STATE_TYP getState()
Returns the current state of the interface
RSRC_STATE_TYP getState()
Gets the current state of the resource.
RSRC_TYPE_TYP getType()
Gets the current type of the object the resource is connected to.
UINT getVSync() const // May not even be an option, but will include anyway
True if the display refresh rate is in sync with the monitor.
UINT getWidth() const
The current width of the window or back buffer
int height
INT Height of the resource.
UINT Height
UINT The height of the display surface
unsigned short Height
USHORT This is the height of the View in either pixels or percentage of total window size
HWND hwndMain
HWND The main window
UINT hz
UINT The Hertz the screen updates at.
Used to specify if a alpha enabled surface is needed or not
Specifies that mipmaps should be generated TODO: Only D3D for now.
Used to create the new surface with a different bpp than back buffer
This flag specifies that the file settings should be ignored and only options that are set in these flags should be used Without this setting, these flags are used IN ADDITION TO the file settings from the image.
Uses the RECT to specify a specific size for the image or blank surface
Uses the Src Key Color for a srckey
Tells the load function that its OK to stretch to preserve texture coords.
DWORD Image_Flags
DWORD RSRC::IMAGE_FLAGS_TYP that help setup options for loading the image
Helps specify loading options for IMAGE_OPTIONS_TYP
Alias for IMAGE_OPTIONS_TYP
Alias for a pointer to IMAGE_OPTIONS_TYP
typedef struct IMAGE_OPTIONS_TYP
Used to describe how to open and load an image from disk.
static int Init()
Initializes GDI+ for use.
int Init(MODE_TYP Interface)
Initializes the resource interfaces to use the specified mode
static int InitDevice(const HWND hwnd)
Uses the startup settings from CStartup to setup the display mode
int InitDevices()
Initializes devices for the desired running mode.
int InitDisplay()
Initializes the display for rendering.
UINT IsActive
UINT Specifies wether the program is still active or not
UINT IsDebugWindow
UINT Specifies wether a debug control panel window exists or not
UINT IsLogWindow
UINT Specifies wether a log window exists or not
UINT IsWindowed
UINT Specifies whether the program is windowed or not
unsigned short Left
USHORT This specifies where the top of the View should start.
1000 Maximum size of a line to read at one time
int (*LoadFunc)(RSRC_LOCKINFO_PTR)
*(LoadFunc)(RSRC::RSRC_LOCKINFO_PTR) Pointer to a function to load data to.
RECT LoadRect
RECT Size of the image or surface to create
int Lock(RSRC_LOCKINFO_PTR LockInfo)
Locks a resource and locks the objects mutex.
FileLogger type that’s used for all the logging during the running of the program
Used to log a fatal error into the static FileLogger Logger::LOG.
Define this to write errors to a dedicated log window
namespace Logger
Contains the FileLogger class and the static log file that is opened at the beginning of the program
Close