Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

wdxGraphicsWindow7.cxx File Reference

#include "wdxGraphicsWindow7.h"
#include "config_dxgsg7.h"
#include "config_windisplay.h"
#include "wdxGraphicsPipe7.h"
#include "dxGraphicsStateGuardian7.h"
#include <wingdi.h>

Go to the source code of this file.

Compounds

struct  DisplayModeInfo

Defines

#define MAX_DX_ZBUF_FMTS   20
#define REGHALIDX   0
#define TNLHALIDX   1
#define SWRASTIDX   2
#define MAX_DISPLAY_MODES   100
#define IS_NVIDIA(DDDEVICEID)   ((DDDEVICEID.dwVendorId==0x10DE) || (DDDEVICEID.dwVendorId==0x12D2))
#define IS_ATI(DDDEVICEID)   (DDDEVICEID.dwVendorId==0x1002)
#define IS_MATROX(DDDEVICEID)   (DDDEVICEID.dwVendorId==0x102B)
#define SET_ZBUF_DEPTH(DEPTH)   { assert(pz##DEPTH != NULL); Display.depth_buffer_bitdepth=DEPTH; ddsd.ddpfPixelFormat = *pz##DEPTH;}
#define LOWVIDMEMTHRESHOLD   5500000
#define CRAPPY_DRIVER_IS_LYING_VIDMEMTHRESHOLD   1000000

Functions

DWORD BitDepth_2_DDBDMask (DWORD iBitDepth)
HRESULT CALLBACK EnumZBufFmtsCallback (LPDDPIXELFORMAT pddpf, VOID *param)
HRESULT CALLBACK EnumDevicesCallback (LPSTR pDeviceDescription, LPSTR pDeviceName, LPD3DDEVICEDESC7 pD3DDeviceDesc, LPVOID pContext)
HRESULT WINAPI EnumDisplayModesCallBack (LPDDSURFACEDESC2 lpDDSurfaceDesc, LPVOID lpContext)

Variables

int cNumZBufFmts


Define Documentation

#define CRAPPY_DRIVER_IS_LYING_VIDMEMTHRESHOLD   1000000
 

#define IS_ATI DDDEVICEID   )     (DDDEVICEID.dwVendorId==0x1002)
 

Definition at line 108 of file wdxGraphicsWindow7.cxx.

#define IS_MATROX DDDEVICEID   )     (DDDEVICEID.dwVendorId==0x102B)
 

Definition at line 109 of file wdxGraphicsWindow7.cxx.

#define IS_NVIDIA DDDEVICEID   )     ((DDDEVICEID.dwVendorId==0x10DE) || (DDDEVICEID.dwVendorId==0x12D2))
 

Definition at line 107 of file wdxGraphicsWindow7.cxx.

Referenced by wdxGraphicsWindow7::create_screen_buffers_and_device(), and wdxGraphicsPipe8::find_best_depth_format().

#define LOWVIDMEMTHRESHOLD   5500000
 

#define MAX_DISPLAY_MODES   100
 

Definition at line 77 of file wdxGraphicsWindow7.cxx.

Referenced by wdxGraphicsWindow7::choose_device(), wdxGraphicsWindow7::do_fullscreen_resize(), and EnumDisplayModesCallBack().

#define MAX_DX_ZBUF_FMTS   20
 

Definition at line 41 of file wdxGraphicsWindow7.cxx.

Referenced by wdxGraphicsWindow7::create_screen_buffers_and_device(), and EnumZBufFmtsCallback().

#define REGHALIDX   0
 

#define SET_ZBUF_DEPTH DEPTH   )     { assert(pz##DEPTH != NULL); Display.depth_buffer_bitdepth=DEPTH; ddsd.ddpfPixelFormat = *pz##DEPTH;}
 

#define SWRASTIDX   2
 

#define TNLHALIDX   1
 


Function Documentation

DWORD BitDepth_2_DDBDMask DWORD  iBitDepth  )  [static]
 

Definition at line 28 of file wdxGraphicsWindow7.cxx.

Referenced by wdxGraphicsWindow7::create_screen_buffers_and_device(), wdxGraphicsWindow7::do_fullscreen_resize(), and EnumDisplayModesCallBack().

HRESULT CALLBACK EnumDevicesCallback LPSTR  pDeviceDescription,
LPSTR  pDeviceName,
LPD3DDEVICEDESC7  pD3DDeviceDesc,
LPVOID  pContext
 

Definition at line 54 of file wdxGraphicsWindow7.cxx.

Referenced by wdxGraphicsWindow7::choose_device().

HRESULT WINAPI EnumDisplayModesCallBack LPDDSURFACEDESC2  lpDDSurfaceDesc,
LPVOID  lpContext
 

Definition at line 86 of file wdxGraphicsWindow7.cxx.

References BitDepth_2_DDBDMask(), DisplayModeInfo::cNumSurfDescs, MAX_DISPLAY_MODES, DisplayModeInfo::maxHeight, DisplayModeInfo::maxWidth, DisplayModeInfo::pDDSD_Arr, and DisplayModeInfo::supportedBitDepths.

Referenced by wdxGraphicsWindow7::choose_device(), and wdxGraphicsWindow7::do_fullscreen_resize().

HRESULT CALLBACK EnumZBufFmtsCallback LPDDPIXELFORMAT  pddpf,
VOID *  param
 

Definition at line 45 of file wdxGraphicsWindow7.cxx.

References cNumZBufFmts, MAX_DX_ZBUF_FMTS, and param.

Referenced by wdxGraphicsWindow7::create_screen_buffers_and_device().


Variable Documentation

int cNumZBufFmts [static]
 

Definition at line 42 of file wdxGraphicsWindow7.cxx.

Referenced by wdxGraphicsWindow7::create_screen_buffers_and_device(), and EnumZBufFmtsCallback().


Generated on Fri Apr 18 00:11:06 2003 for Panda by doxygen1.3