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
M
 Macros
 Main Program
 Mode, SETTINGS_TYP
 MODE_D3D
 MODE_DDRAW
 MODE_GDI
 MODE_NONE
 MODE_TYP
N
 numMipMaps, IMAGE_OPTIONS_TYP
O
 Object
 OpenFile, FileLogger
 operator, D3DDevice
 operator LPDIRECT3DDEVICE9, D3DDevice
 operator!, D3DDevice
 operator<<, FileLogger
 Operators, D3DDevice
P
 pDest, RSRC_LOCKINFO_TYP
 pFilename, IMAGE_OPTIONS_TYP
 Pitch, RSRC_LOCKINFO_TYP
 Precompiler Options
 ProcessState, CStartup
R
 Reload, RSRC
 ResetDevice, D3DInterface
 ResetUnload, RSRC
 ResizeBackBuffer, DDrawInterface
 ResizeWindow, CStartup
 Resource
~Resource, Resource
 RestoreDisplay, DDrawInterface
 ReturnDevice
 RGB10BIT
 RGB10BIT_STRING
 RNDR
 RNDR_D3D, RNDR
 RNDR_DDRAW, RNDR
 RNDR_GDI, RNDR
 RNDR_INTERFACE_TYP, RNDR
 RNDR_INVALID, RNDR
 RNDR_MANUAL, RNDR
 RNDR_STATE_CLEAN, RNDR
 RNDR_STATE_DESTROY, RNDR
 RNDR_STATE_ERROR, RNDR
 RNDR_STATE_FILL, RNDR
 RNDR_STATE_INIT, RNDR
 RNDR_STATE_LOAD, RNDR
 RNDR_STATE_PENDING, RNDR
 RNDR_STATE_READY, RNDR
 RNDR_STATE_RENDER, RNDR
 RNDR_STATE_TYP, RNDR
 RNDR_VIEW_TYPE_2D_HARDWARE, RNDR
 RNDR_VIEW_TYPE_3D_HARDWARE, RNDR
 RNDR_VIEW_TYPE_3D_SOFTWARE, RNDR
 RNDR_VIEW_TYPE_INVALID, RNDR
 RNDR_VIEW_TYPE_TYP, RNDR
 RNDR_VIEWINIT2D_FLAG_DOUBLEBUFFER, RNDR
 RNDR_VIEWINIT2D_FLAG_HARDWARE, RNDR
 RNDR_VIEWINIT2D_FLAG_MIXED, RNDR
 RNDR_VIEWINIT2D_FLAG_PERCENT_HEIGHT, RNDR
 RNDR_VIEWINIT2D_FLAG_PERCENT_WIDTH, RNDR
 RNDR_VIEWINIT2D_FLAG_SOFTWARE, RNDR
 RSRC
 RSRC_D3D, RSRC
 RSRC_DDRAW, RSRC
 RSRC_DISCARD, RSRC
 RSRC_FLAG_TYP, RSRC
 RSRC_GDI, RSRC
 RSRC_INTERFACE_TYP, RSRC
 RSRC_INVALID, RSRC
 RSRC_LOCKINFO, RSRC
 RSRC_LOCKINFO_PTR, RSRC
 RSRC_LOCKINFO_TYP
 RSRC_MANUAL, RSRC
 RSRC_NOOVERWRITE, RSRC
 RSRC_READONLY, RSRC
 RSRC_RESET, RSRC
 RSRC_RESIZE, RSRC
 RSRC_RNDR_LOCK, RSRC
 RSRC_SOFTWARE, RSRC
 RSRC_STATE_CLEAN, RSRC
 RSRC_STATE_DESTROY, RSRC
 RSRC_STATE_ERROR, RSRC
 RSRC_STATE_INIT, RSRC
 RSRC_STATE_LOAD, RSRC
 RSRC_STATE_LOCK, RSRC
 RSRC_STATE_PENDING, RSRC
 RSRC_STATE_TYP, RSRC
 RSRC_STICKY, RSRC
 RSRC_SYSMEM, RSRC
 RSRC_TYPE_DATABUFFER, RSRC
 RSRC_TYPE_NONE, RSRC
 RSRC_TYPE_RENDERTARGET, RSRC
 RSRC_TYPE_SURFACE, RSRC
 RSRC_TYPE_TYP, RSRC
 RSRC_TYPE_VERTEXBUFFER, RSRC
 RSRC_VIDMEM, RSRC
 RSRC_WRITEONLY, RSRC
MODE_TYP Mode
MODE_TYP The rendering mode requested
Initialized in Direct3D Mode
Initialized in DirectDraw Mode
Initialized in GDI Mode
Uninitialized and not ready for startup
Specifies what mode the program is running in
int numMipMaps
INT Specifies the mipmap level if MIPMAP flag is set (0 for maximum)
class Object
Our abstact geralized object class.
int OpenFile(char *logName,
std::ios::openmode mode)
Opens a file for input
const LPDIRECT3DDEVICE9 operator->() const
Indirection operator so you can use this class as if its the device.
operator LPDIRECT3DDEVICE9() const
Used to provide the class directly whenever a function needs a D3DDevice pointer
BOOL operator!() const
Polls wether a D3DDevice has been checkout or not
void* pDest
VOID* Points to the beginning of the memory block
char *pFilename
char* Null terminated filename to load
int Pitch
INT The amount of bytes between “lines” in the Resource
STATE_TYP ProcessState()
Processes the current state of the interface.
int Reload()
Reloads all resources that have are in state RSRC_STATE_PENDING.
static int ResetDevice()
Uses the previous init settings to recreate a lost device
void ResetUnload()
Unloads all resource that have RSRC_RESET set.
static int ResizeBackBuffer()
Resizes the back buffer in the interface to match the window after a resize.
static STATE_TYP ResizeWindow(int width,
int height)
Resizes the back buffer to match a resized window.
class Resource
Our top level resource class.
Resource(
   
) : Flags(0), State(RSRC_STATE_CLEAN), Type(RSRC_TYPE_NONE), pObject(NULL)
Creates an empty resource class.
virtual ~Resource()
Detaches itself with the Object.
int RestoreDisplay()
Restores the display back to initialized settings.
void ReturnDevice(void)
Returns the device before the class goes out of scope
void ReturnDevice(int &ID)
Use the D3DDevice for using these functions to stay exception safe.
Defaults to 40.
Used to force the compiler to write out the words RGB10BIT
namespace RNDR
Describes everything about rendering to the screen.
Renderer has been initialized into Direct3D mode
Renderer has been initialized into DirectDraw mode
Renderer has been initialized into GDI+ mode
Helps the View keep track of what mode is active
Renderer has not been initialized into a mode yet
Used only to type check Render calls.
View has not been initialized yet
View awaits destruction
View is in an errored state
View is being filled
View has been initialized, but resources are not loaded
View is loaded and ready to fill
View has been unloaded by a reset and awaits reload
View is ready to be rendered
View is being rendered
Describes the state of a View
View is based on 2D Hardware.
View is based on 3D Hardware.
View is based on 3D Software.
View is not a valid type
This is the underlaying type of the view.
Create the view with a double buffer
Tells Direct3D to only use Hardware vertex processors
Tells Direct3D to use both hardware and software vertex processors
Specifies that the height of the view is a percentage of the screen height
Specifies that the width of the view is a percentage of the screen width
Tells Direct3D to only use Software vertex processors
namespace RSRC
Everything related to loading and mantaining a resource is in this namespace
Indicates that this resource is using the D3DInterface
Indicates that this resource is using the DDrawInterface
Data will be completely written over, existing data should be used then discarded when its been used.
Used by the Resource to describe the needs of the lock or the resource
Indicates that this resource is using the GDIInterface
Identifies what kind of interface a resource is using.
This is the default type to signal errors if it stays at this value
Alias for RSRC_LOCKINFO_TYP
Alias for a pointer to RSRC_LOCKINFO_TYP
typedef struct RSRC_LOCKINFO_TYP
This structure is used to request and to process locks made on resources.
Indicates that this resource is not using any interface and created manually
Data will be added, but existing data will not be touched.
Will not need to write to the resource
Set by object to signal a reload required at device reset
Set by object to signal a resize needs to be reset and resized
Uses the RSRC_LOCKINFO_TYP::pDest to point to a shared_ptr to the actual resource.
Do not use hardware resources
Object has not been initialized
Object has been unloaded and awaits destruction
Object is in an errored state
Object has been initialized
Object is loaded and ready
Object is locked by a resource
Object has been unloaded by reset and awaits reload
Describes the state of a resource
Do not unload the resource until Shutdown
Create the resource in system memory
Indicates that the resource is a DataBufferResource
Indicates that the resource has no object created
Indicates that the resource is a RenderTargetResource
Indicates that the resource is a SurfaceResource
Identifies that type of Resource that was created.
Indicates that the resource is a VertexBufferResource
Create the resource in video(device) memory
Will not need to read the resource
Close