PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
#include "pandabase.h"
#include "graphicsWindow.h"
#include "pmap.h"
#include <windows.h>
#include <d3d9.h>
#include <d3dx9.h>
#include <dxerr9.h>
Go to the source code of this file.
Classes | |
struct | DXScreenData |
Macros | |
#define | D3D_MAXTEXTURESTAGES 8 |
#define | D3D_OVERLOADS |
#define | D3DERRORSTRING(HRESULT) " at (" << __FILE__ << ":" << __LINE__ << "), hr=" << DX_GET_ERROR_STRING_FUNC(HRESULT) << ": " << DX_GET_ERROR_DESCRIPTION_FUNC(HRESULT) << std::endl |
#define | D3DFMT_ATI1 ((D3DFORMAT)MAKEFOURCC('A', 'T', 'I', '1')) |
#define | D3DFMT_ATI2 ((D3DFORMAT)MAKEFOURCC('A', 'T', 'I', '2')) |
#define | D3DFMT_INTZ ((D3DFORMAT)MAKEFOURCC('I', 'N', 'T', 'Z')) |
#define | DISPLAY_16BPP_REQUIRES_16BPP_ZBUFFER_FLAG DXT2_FLAG |
#define | DISPLAY_32BPP_REQUIRES_16BPP_ZBUFFER_FLAG DXT1_FLAG |
#define | DO_PSTATS_STUFF(XX) |
#define | DX_DECLARE_CLEAN(type, var) |
#define | DX_GET_ERROR_DESCRIPTION_FUNC DXGetErrorDescription9 |
#define | DX_GET_ERROR_STRING_FUNC DXGetErrorString9 |
#define | FLG(NN) (1<<NN) |
#define | IS_16BPP_DISPLAY_FORMAT(FMT) (((FMT)==D3DFMT_R5G6B5)||((FMT)==D3DFMT_X1R5G5B5)||((FMT)==D3DFMT_A1R5G5B5)) |
#define | IS_16BPP_ZBUFFER(FMT) ((FMT==D3DFMT_D16)||(FMT==D3DFMT_D15S1)) |
#define | IS_ATI(DDDEVICEID) (DDDEVICEID.VendorId==0x1002) |
#define | IS_MATROX(DDDEVICEID) (DDDEVICEID.VendorId==0x102B) |
#define | IS_NVIDIA(DDDEVICEID) ((DDDEVICEID.VendorId==0x10DE) || (DDDEVICEID.VendorId==0x12D2)) |
#define | IS_STENCIL_FORMAT(FMT) (((FMT)==D3DFMT_D24S8) || ((FMT)==D3DFMT_D15S1) || ((FMT)==D3DFMT_D24X4S4)) |
#define | IS_VALID_PTR(PTR) (!IsBadWritePtr(PTR,sizeof(void*))) |
#define | ISPOW2(X) (((X) & ((X)-1))==0) |
#define | MAX_POSSIBLE_TEXFMTS 32 |
#define | PANDA_MAXNUMVERTS 0xFFFF |
#define | PRINT_REFCNT(MODULE, p) |
#define | RECT_XSIZE(REC) (REC.right-REC.left) |
#define | RECT_YSIZE(REC) (REC.bottom-REC.top) |
#define | RELEASE(OBJECT, MODULE, DBGSTR, bDoDownToZero) |
#define | RELEASE_DOWN_TO_ZERO true |
#define | RELEASE_ONCE false |
#define | SAFE_DELETE(p) { if(p) { assert(IS_VALID_PTR(p)); delete (p); (p)=nullptr; } } |
#define | SAFE_DELETE_ARRAY(p) { if(p) { assert(IS_VALID_PTR(p)); delete [] (p); (p)=nullptr; } } |
#define | SAFE_DELSHADER(TYPE, HANDLE, PDEVICE) if((HANDLE!=nullptr)&&IS_VALID_PTR(PDEVICE)) { PDEVICE->Delete##TYPE##Shader(HANDLE); HANDLE=nullptr; } |
#define | SAFE_FREELIB(hDLL) { if(hDLL!=nullptr) { FreeLibrary(hDLL);hDLL = nullptr; } } |
#define | SAFE_RELEASE(p) { if(p) { assert(IS_VALID_PTR(p)); (p)->Release(); (p)=nullptr; } } |
#define | STRICT |
#define | WIN32_LEAN_AND_MEAN 1 |
Typedefs | |
typedef DWORD | DXShaderHandle |
Functions | |
const char * | D3DFormatStr (D3DFORMAT fmt) |
void | Init_D3DFORMAT_map () |
Variables | |
pmap< D3DFORMAT_FLAG, D3DFORMAT > | g_D3DFORMATmap |
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Definition in file dxgsg9base.h.
#define DX_DECLARE_CLEAN | ( | type, | |
var | |||
) |
Definition at line 79 of file dxgsg9base.h.
#define RELEASE | ( | OBJECT, | |
MODULE, | |||
DBGSTR, | |||
bDoDownToZero | |||
) |
Definition at line 122 of file dxgsg9base.h.