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

wdxGraphicsPipe8 Class Reference

#include <wdxGraphicsPipe8.h>

Inheritance diagram for wdxGraphicsPipe8:

WinGraphicsPipe GraphicsPipe TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Member Functions

 wdxGraphicsPipe8 ()
virtual ~wdxGraphicsPipe8 ()
virtual string get_interface_name () const
virtual PT (GraphicsStateGuardian) make_gsg(const FrameBufferProperties &properties)
bool find_best_depth_format (DXScreenData &Display, D3DDISPLAYMODE &TestDisplayMode, D3DFORMAT *pBestFmt, bool bWantStencil, bool bForce16bpp, bool bVerboseMode=false) const
void search_for_valid_displaymode (DXScreenData &scrn, UINT RequestedX_Size, UINT RequestedY_Size, bool bWantZBuffer, bool bWantStencil, UINT *pSupportedScreenDepthsMask, bool *pCouldntFindAnyValidZBuf, D3DFORMAT *pSuggestedPixFmt, bool bForce16bppZBuffer, bool bVerboseMode=false)
bool special_check_fullscreen_resolution (DXScreenData &scrn, UINT x_size, UINT y_size)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

 PT (GraphicsPipe) pipe_ const ructor()
TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

virtual PT (GraphicsWindow) make_window(GraphicsStateGuardian *gsg)

Private Types

typedef LPDIRECT3D8(WINAPI * Direct3DCreate8_ProcPtr )(UINT SDKVersion)
typedef HRESULT(WINAPI * LPDIRECTDRAWCREATEEX )(GUID FAR *lpGuid, LPVOID *lplpDD, REFIID iid, IUnknown FAR *pUnkOuter)
typedef pvector< CardIDCardIDs

Private Member Functions

bool init ()
bool find_all_card_memavails ()

Static Private Member Functions

BOOL WINAPI dx7_driver_enum_callback (GUID *pGUID, TCHAR *strDesc, TCHAR *strName, VOID *argptr, HMONITOR hm)

Private Attributes

HINSTANCE _hDDrawDLL
HINSTANCE _hD3D8_DLL
LPDIRECT3D8 _pD3D8
LPDIRECTDRAWCREATEEX _DirectDrawCreateEx
LPDIRECTDRAWENUMERATEEX _DirectDrawEnumerateExA
Direct3DCreate8_ProcPtr _Direct3DCreate8
CardIDs _card_ids
bool _bIsDX81

Static Private Attributes

TypeHandle _type_handle

Friends

class wdxGraphicsWindow8

Member Typedef Documentation

typedef pvector<CardID> wdxGraphicsPipe8::CardIDs [private]
 

Definition at line 103 of file wdxGraphicsPipe8.h.

typedef LPDIRECT3D8(WINAPI * wdxGraphicsPipe8::Direct3DCreate8_ProcPtr)(UINT SDKVersion) [private]
 

Definition at line 85 of file wdxGraphicsPipe8.h.

typedef HRESULT(WINAPI * wdxGraphicsPipe8::LPDIRECTDRAWCREATEEX)(GUID FAR * lpGuid, LPVOID *lplpDD, REFIID iid, IUnknown FAR *pUnkOuter) [private]
 

Definition at line 86 of file wdxGraphicsPipe8.h.


Constructor & Destructor Documentation

wdxGraphicsPipe8::wdxGraphicsPipe8  ) 
 

Definition at line 36 of file wdxGraphicsPipe8.cxx.

References _hD3D8_DLL, _hDDrawDLL, GraphicsPipe::_is_valid, _pD3D8, init(), and NULL.

wdxGraphicsPipe8::~wdxGraphicsPipe8  )  [virtual]
 

Definition at line 49 of file wdxGraphicsPipe8.cxx.

References _hD3D8_DLL, _hDDrawDLL, _pD3D8, RELEASE, RELEASE_DOWN_TO_ZERO, and SAFE_FREELIB.


Member Function Documentation

BOOL WINAPI wdxGraphicsPipe8::dx7_driver_enum_callback GUID *  pGUID,
TCHAR *  strDesc,
TCHAR *  strName,
VOID *  argptr,
HMONITOR  hm
[static, private]
 

Definition at line 349 of file wdxGraphicsPipe8.cxx.

References _card_ids, wdxGraphicsPipe8::CardID::DX7_DeviceGUID, wdxGraphicsPipe8::CardID::hMon, wdxGraphicsPipe8::CardID::MaxAvailVidMem, NULL, and UNKNOWN_VIDMEM_SIZE.

Referenced by find_all_card_memavails().

bool wdxGraphicsPipe8::find_all_card_memavails  )  [private]
 

Definition at line 186 of file wdxGraphicsPipe8.cxx.

References _card_ids, count, D3DERRORSTRING, dx7_driver_enum_callback(), dx_do_vidmemsize_check, ISPOW2, NULL, and UNKNOWN_VIDMEM_SIZE.

Referenced by init().

bool wdxGraphicsPipe8::find_best_depth_format DXScreenData Display,
D3DDISPLAYMODE &  TestDisplayMode,
D3DFORMAT *  pBestFmt,
bool  bWantStencil,
bool  bForce16bpp,
bool  bVerboseMode = false
const
 

Definition at line 382 of file wdxGraphicsPipe8.cxx.

References DXScreenData::CardIDNum, D3DERRORSTRING, D3DFormatStr(), DXScreenData::DXDeviceID, IS_16BPP_DISPLAY_FORMAT, IS_16BPP_ZBUFFER, IS_NVIDIA, and DXScreenData::pD3D8.

Referenced by wdxGraphicsWindow8::create_screen_buffers_and_device(), and search_for_valid_displaymode().

virtual TypeHandle wdxGraphicsPipe8::force_init_type void   )  [inline, virtual]
 

Reimplemented from WinGraphicsPipe.

Definition at line 119 of file wdxGraphicsPipe8.h.

References WinGraphicsPipe::get_class_type(), and WinGraphicsPipe::init_type().

TypeHandle wdxGraphicsPipe8::get_class_type void   )  [inline, static]
 

Reimplemented from WinGraphicsPipe.

Definition at line 108 of file wdxGraphicsPipe8.h.

Referenced by init_libdxgsg8().

string wdxGraphicsPipe8::get_interface_name  )  const [virtual]
 

Implements GraphicsPipe.

Definition at line 67 of file wdxGraphicsPipe8.cxx.

virtual TypeHandle wdxGraphicsPipe8::get_type void   )  const [inline, virtual]
 

Reimplemented from WinGraphicsPipe.

Definition at line 116 of file wdxGraphicsPipe8.h.

References WinGraphicsPipe::get_class_type().

bool wdxGraphicsPipe8::init  )  [private]
 

Definition at line 109 of file wdxGraphicsPipe8.cxx.

References _bIsDX81, _Direct3DCreate8, _DirectDrawCreateEx, _DirectDrawEnumerateExA, _hD3D8_DLL, _hDDrawDLL, _pD3D8, find_all_card_memavails(), HANDLE(), Init_D3DFORMAT_map(), MyGetProcAddr(), MyLoadLib(), and NULL.

Referenced by wdxGraphicsPipe8().

void wdxGraphicsPipe8::init_type void   )  [inline, static]
 

Reimplemented from WinGraphicsPipe.

Definition at line 111 of file wdxGraphicsPipe8.h.

References WinGraphicsPipe::get_class_type(), WinGraphicsPipe::init_type(), and register_type().

Referenced by init_libdxgsg8().

virtual wdxGraphicsPipe8::PT GraphicsWindow   )  [protected, virtual]
 

Implements GraphicsPipe.

virtual wdxGraphicsPipe8::PT GraphicsStateGuardian   )  const [virtual]
 

Reimplemented from GraphicsPipe.

wdxGraphicsPipe8::PT GraphicsPipe   )  const [static]
 

void wdxGraphicsPipe8::search_for_valid_displaymode DXScreenData scrn,
UINT  RequestedX_Size,
UINT  RequestedY_Size,
bool  bWantZBuffer,
bool  bWantStencil,
UINT *  pSupportedScreenDepthsMask,
bool *  pCouldntFindAnyValidZBuf,
D3DFORMAT *  pSuggestedPixFmt,
bool  bForce16bppZBuffer,
bool  bVerboseMode = false
 

Definition at line 512 of file wdxGraphicsPipe8.cxx.

References DXScreenData::CardIDNum, D3DERRORSTRING, D3DFormatStr(), DISPLAY_16BPP_REQUIRES_16BPP_ZBUFFER_FLAG, DISPLAY_32BPP_REQUIRES_16BPP_ZBUFFER_FLAG, find_best_depth_format(), IS_16BPP_DISPLAY_FORMAT, IS_16BPP_ZBUFFER, IS_VALID_PTR, DXScreenData::MaxAvailVidMem, DXScreenData::pD3D8, R5G6B5_FLAG, R8G8B8_FLAG, special_check_fullscreen_resolution(), UNKNOWN_VIDMEM_SIZE, X1R5G5B5_FLAG, and X8R8G8B8_FLAG.

Referenced by wdxGraphicsWindow8::do_fullscreen_resize(), wdxGraphicsWindow8::search_for_device(), and wdxGraphicsWindow8::verify_window_sizes().

bool wdxGraphicsPipe8::special_check_fullscreen_resolution DXScreenData scrn,
UINT  x_size,
UINT  y_size
 

Definition at line 478 of file wdxGraphicsPipe8.cxx.

References DXScreenData::DXDeviceID.

Referenced by wdxGraphicsWindow8::do_fullscreen_resize(), search_for_valid_displaymode(), and wdxGraphicsWindow8::verify_window_sizes().


Friends And Related Function Documentation

friend class wdxGraphicsWindow8 [friend]
 

Definition at line 124 of file wdxGraphicsPipe8.h.


Member Data Documentation

bool wdxGraphicsPipe8::_bIsDX81 [private]
 

Definition at line 105 of file wdxGraphicsPipe8.h.

Referenced by wdxGraphicsWindow8::choose_device(), init(), and wdxGraphicsWindow8::search_for_device().

CardIDs wdxGraphicsPipe8::_card_ids [private]
 

Definition at line 104 of file wdxGraphicsPipe8.h.

Referenced by dx7_driver_enum_callback(), find_all_card_memavails(), and wdxGraphicsWindow8::search_for_device().

Direct3DCreate8_ProcPtr wdxGraphicsPipe8::_Direct3DCreate8 [private]
 

Definition at line 90 of file wdxGraphicsPipe8.h.

Referenced by init().

LPDIRECTDRAWCREATEEX wdxGraphicsPipe8::_DirectDrawCreateEx [private]
 

Definition at line 88 of file wdxGraphicsPipe8.h.

Referenced by init().

LPDIRECTDRAWENUMERATEEX wdxGraphicsPipe8::_DirectDrawEnumerateExA [private]
 

Definition at line 89 of file wdxGraphicsPipe8.h.

Referenced by init().

HINSTANCE wdxGraphicsPipe8::_hD3D8_DLL [private]
 

Definition at line 81 of file wdxGraphicsPipe8.h.

Referenced by init(), wdxGraphicsPipe8(), and ~wdxGraphicsPipe8().

HINSTANCE wdxGraphicsPipe8::_hDDrawDLL [private]
 

Definition at line 80 of file wdxGraphicsPipe8.h.

Referenced by init(), wdxGraphicsPipe8(), and ~wdxGraphicsPipe8().

LPDIRECT3D8 wdxGraphicsPipe8::_pD3D8 [private]
 

Definition at line 82 of file wdxGraphicsPipe8.h.

Referenced by wdxGraphicsWindow8::choose_device(), init(), wdxGraphicsWindow8::search_for_device(), wdxGraphicsPipe8(), and ~wdxGraphicsPipe8().

TypeHandle wdxGraphicsPipe8::_type_handle [static, private]
 

Reimplemented from WinGraphicsPipe.

Definition at line 23 of file wdxGraphicsPipe8.cxx.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:14:03 2003 for Panda by doxygen1.3