#include <windows.h>
#include <ddraw.h>
#include <d3d.h>
#include "pandabase.h"
Go to the source code of this file.
Compounds | |
struct | DXScreenData |
Defines | |
#define | _WIN32_WINNT 0x0502 |
#define | WIN32_LEAN_AND_MEAN |
#define | D3D_OVERLOADS |
#define | MAX_DX_TEXPIXFMTS 20 |
#define | ISPOW2(X) (((X) & ((X)-1))==0) |
#define | DX_DECLARE_CLEAN(type, var) |
#define | SAFE_DELETE(p) { if(p) { delete (p); (p)=NULL; } } |
#define | SAFE_DELETE_ARRAY(p) { if(p) { delete[] (p); (p)=NULL; } } |
#define | SAFE_FREELIB(hDLL) { if(hDLL!=NULL) { FreeLibrary(hDLL); hDLL = NULL; } } |
#define | IS_VALID_PTR(PTR) (!IsBadWritePtr(PTR,sizeof(void*))) |
#define | RELEASE_DOWN_TO_ZERO true |
#define | RELEASE_ONCE false |
#define | DEBUG_RELEASES |
#define | RELEASE(OBJECT, MODULE, DBGSTR, bDoDownToZero) |
#define | PRINTREFCNT(OBJECT, STR) { (OBJECT)->AddRef(); dxgsg7_cat.debug() << STR << " refcnt = " << (OBJECT)->Release() << endl; } |
#define | DO_PSTATS_STUFF(XX) |
Functions | |
const char * | ConvD3DErrorToString (HRESULT error) |
Definition in file dxgsg7base.h.
|
Definition at line 27 of file dxgsg7base.h. |
|
Definition at line 38 of file dxgsg7base.h. |
|
Definition at line 76 of file dxgsg7base.h. |
|
Definition at line 114 of file dxgsg7base.h. |
|
Value: type var; \ ZeroMemory(&var, sizeof(type)); \ var.dwSize = sizeof(type); Definition at line 62 of file dxgsg7base.h. |
|
Definition at line 70 of file dxgsg7base.h. |
|
Definition at line 60 of file dxgsg7base.h. |
|
Definition at line 57 of file dxgsg7base.h. Referenced by DXGraphicsStateGuardian7::dx_init(). |
|
Definition at line 94 of file dxgsg7base.h. |
|
Value: if(((OBJECT)!=NULL)&&(!IsBadWritePtr((OBJECT),4))) { \ refcnt = (OBJECT)->Release(); \ MODULE##_cat.debug() << DBGSTR << " released, refcnt = " << refcnt << endl; \ if((bDoDownToZero) && (refcnt>0)) { \ MODULE##_cat.warning() << DBGSTR << " released but still has a non-zero refcnt(" << refcnt << "), multi-releasing it down to zero!\n"; \ do { \ refcnt = (OBJECT)->Release(); \ } while(refcnt>0); \ } \ (OBJECT) = NULL; \ } else { \ MODULE##_cat.debug() << DBGSTR << " not released, ptr == NULL" << endl; \ } Definition at line 79 of file dxgsg7base.h. Referenced by wdxGraphicsPipe8::wdxGraphicsPipe8(). |
|
Definition at line 73 of file dxgsg7base.h. Referenced by wdxGraphicsPipe8::wdxGraphicsPipe8(). |
|
Definition at line 74 of file dxgsg7base.h. |
|
Definition at line 67 of file dxgsg7base.h. |
|
Definition at line 68 of file dxgsg7base.h. |
|
Definition at line 69 of file dxgsg7base.h. Referenced by wdxGraphicsPipe7::wdxGraphicsPipe7(), and wdxGraphicsPipe8::wdxGraphicsPipe8(). |
|
Definition at line 29 of file dxgsg7base.h. |
|
return "case";//D3DERR_COMMAND_UNPARSED : // (3000) Definition at line 27 of file dxgsg7base.cxx. Referenced by ConvertPixBuftoDDSurf(). |