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

wdxGraphicsWindow7 Class Reference

#include <wdxGraphicsWindow7.h>

Inheritance diagram for wdxGraphicsWindow7:

WinGraphicsWindow GraphicsWindow TypedReferenceCount ClearableRegion TypedObject ReferenceCount List of all members.

Public Member Functions

 wdxGraphicsWindow7 (GraphicsPipe *pipe, GraphicsStateGuardian *gsg)
virtual ~wdxGraphicsWindow7 ()
virtual void end_flip ()
virtual void make_current (void)
virtual bool open_window (void)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

virtual void fullscreen_restored (WindowProperties &properties)
virtual void handle_reshape ()
virtual bool do_fullscreen_resize (int x_size, int y_size)

Private Member Functions

bool set_to_temp_rendertarget ()
void create_screen_buffers_and_device (DXScreenData &Display, bool force_16bpp_zbuffer)
bool choose_device (int devnum, DXDeviceInfo *pDevinfo)
void set_coop_levels_and_display_modes ()

Private Attributes

DXGraphicsStateGuardian7_dxgsg
DXScreenData _wcontext

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

wdxGraphicsWindow7::wdxGraphicsWindow7 GraphicsPipe pipe,
GraphicsStateGuardian gsg
 

Definition at line 119 of file wdxGraphicsWindow7.cxx.

References _dxgsg, _wcontext, and DCAST.

wdxGraphicsWindow7::~wdxGraphicsWindow7  )  [virtual]
 

Definition at line 132 of file wdxGraphicsWindow7.cxx.


Member Function Documentation

bool wdxGraphicsWindow7::choose_device int  devnum,
DXDeviceInfo pDevinfo
[private]
 

Definition at line 989 of file wdxGraphicsWindow7.cxx.

References wdxGraphicsPipe7::_DirectDrawCreateEx, _dxgsg, _wcontext, DXScreenData::bIsLowVidMemCard, DXScreenData::bIsSWRast, DXScreenData::bIsTNLDevice, DXScreenData::CardIDNum, ConvD3DErrorToString(), DXScreenData::D3DDevDesc, DCAST_INTO_R, DXScreenData::dwFullScreenBitDepth, DXScreenData::dwRenderHeight, DXScreenData::dwRenderWidth, dx_allow_software_renderer, DX_DECLARE_CLEAN, dx_do_vidmemsize_check, dx_force_16bpp_zbuffer, dx_force_16bpptextures, dx_force_software_renderer, DXScreenData::DXDeviceID, EnumDevicesCallback(), EnumDisplayModesCallBack(), GraphicsWindow::get_properties(), WindowProperties::get_x_size(), WindowProperties::get_y_size(), DXDeviceInfo::guidDeviceIdentifier, DXDeviceInfo::hMon, DXScreenData::hMon, GraphicsWindow::is_fullscreen(), MAX_DISPLAY_MODES, DXScreenData::MaxAvailVidMem, DisplayModeInfo::maxHeight, DisplayModeInfo::maxWidth, NULL, DXScreenData::pD3D, DXScreenData::pDD, DisplayModeInfo::pDDSD_Arr, DisplayModeInfo::supportedBitDepths, and VOID().

Referenced by open_window().

void wdxGraphicsWindow7::create_screen_buffers_and_device DXScreenData Display,
bool  force_16bpp_zbuffer
[private]
 

Definition at line 490 of file wdxGraphicsWindow7.cxx.

References _dxgsg, _wcontext, DXScreenData::bIsFullScreen, DXScreenData::bIsSWRast, DXScreenData::bIsTNLDevice, BitDepth_2_DDBDMask(), BOOL(), DXScreenData::CardIDNum, cNumZBufFmts, ConvD3DErrorToString(), DXScreenData::D3DDevDesc, DXScreenData::dwFullScreenBitDepth, DXScreenData::dwRenderHeight, DXScreenData::dwRenderWidth, DX_DECLARE_CLEAN, DXGraphicsStateGuardian7::dx_init(), DXScreenData::DXDeviceID, EnumZBufFmtsCallback(), FrameBufferProperties::FM_depth, FrameBufferProperties::FM_stencil, get_client_rect_screen(), DXScreenData::hWnd, GraphicsWindow::is_fullscreen(), IS_NVIDIA, MAX_DX_ZBUF_FMTS, NULL, DXScreenData::pD3D, DXScreenData::pD3DDevice, DXScreenData::pDD, DXScreenData::pddsBack, DXScreenData::pddsPrimary, DXScreenData::pddsZBuf, PRINTVIDMEM, RELEASE, DXGraphicsStateGuardian7::set_context(), WindowProperties::set_origin(), WindowProperties::set_size(), DXGraphicsStateGuardian7::SetDXReady(), GraphicsWindow::system_changed_properties(), DXScreenData::view_rect, and VOID().

Referenced by do_fullscreen_resize(), and open_window().

bool wdxGraphicsWindow7::do_fullscreen_resize int  x_size,
int  y_size
[protected, virtual]
 

Reimplemented from WinGraphicsWindow.

Definition at line 303 of file wdxGraphicsWindow7.cxx.

References _dxgsg, _wcontext, BitDepth_2_DDBDMask(), ConvD3DErrorToString(), create_screen_buffers_and_device(), DXScreenData::D3DDevDesc, DXScreenData::dwRenderHeight, DXScreenData::dwRenderWidth, DX_DECLARE_CLEAN, dx_force_16bpp_zbuffer, EnumDisplayModesCallBack(), DXGraphicsStateGuardian7::free_dxgsg_objects(), MAX_DISPLAY_MODES, DisplayModeInfo::maxHeight, DisplayModeInfo::maxWidth, DXScreenData::pDD, DisplayModeInfo::pDDSD_Arr, DXGraphicsStateGuardian7::RecreateAllVideoSurfaces(), DXGraphicsStateGuardian7::SetDXReady(), and DisplayModeInfo::supportedBitDepths.

void wdxGraphicsWindow7::end_flip  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 214 of file wdxGraphicsWindow7.cxx.

References _dxgsg, GraphicsWindow::is_active(), NULL, and DXGraphicsStateGuardian7::show_frame().

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

Reimplemented from WinGraphicsWindow.

Definition at line 79 of file wdxGraphicsWindow7.h.

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

void wdxGraphicsWindow7::fullscreen_restored WindowProperties properties  )  [protected, virtual]
 

Reimplemented from WinGraphicsWindow.

Definition at line 230 of file wdxGraphicsWindow7.cxx.

References WindowProperties::set_minimized().

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

Reimplemented from WinGraphicsWindow.

Definition at line 68 of file wdxGraphicsWindow7.h.

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

Reimplemented from WinGraphicsWindow.

Definition at line 76 of file wdxGraphicsWindow7.h.

References WinGraphicsWindow::get_class_type().

void wdxGraphicsWindow7::handle_reshape  )  [protected, virtual]
 

Reimplemented from WinGraphicsWindow.

Definition at line 249 of file wdxGraphicsWindow7.cxx.

References _dxgsg, _wcontext, ConvD3DErrorToString(), DX_DECLARE_CLEAN, DXGraphicsStateGuardian7::dx_setup_after_resize(), get_client_rect_screen(), WinGraphicsWindow::handle_reshape(), DXScreenData::hWnd, NULL, DXScreenData::pDD, DXScreenData::pddsBack, DXScreenData::pddsPrimary, DXGraphicsStateGuardian7::RestoreAllVideoSurfaces(), and set_to_temp_rendertarget().

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

Reimplemented from WinGraphicsWindow.

Definition at line 71 of file wdxGraphicsWindow7.h.

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

Referenced by init_libdxgsg7().

void wdxGraphicsWindow7::make_current void   )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 136 of file wdxGraphicsWindow7.cxx.

References _wcontext, DCAST_INTO_V, GraphicsStateGuardian::reset_if_new(), and DXGraphicsStateGuardian7::set_context().

bool wdxGraphicsWindow7::open_window void   )  [virtual]
 

Reimplemented from WinGraphicsWindow.

Definition at line 157 of file wdxGraphicsWindow7.cxx.

References WinGraphicsWindow::_hWnd, _wcontext, choose_device(), create_screen_buffers_and_device(), dx_force_16bpp_zbuffer, DXScreenData::hWnd, NULL, WinGraphicsWindow::open_window(), and set_coop_levels_and_display_modes().

void wdxGraphicsWindow7::set_coop_levels_and_display_modes  )  [private]
 

Definition at line 1239 of file wdxGraphicsWindow7.cxx.

References WinGraphicsWindow::_hWnd, _wcontext, DXScreenData::CardIDNum, ConvD3DErrorToString(), DXScreenData::dwFullScreenBitDepth, DXScreenData::dwRenderHeight, DXScreenData::dwRenderWidth, DX_DECLARE_CLEAN, DXScreenData::hWnd, GraphicsWindow::is_fullscreen(), and DXScreenData::pDD.

Referenced by open_window().

bool wdxGraphicsWindow7::set_to_temp_rendertarget  )  [private]
 

Definition at line 418 of file wdxGraphicsWindow7.cxx.

References _wcontext, ConvD3DErrorToString(), DX_DECLARE_CLEAN, NULL, DXScreenData::pD3DDevice, DXScreenData::pDD, DXScreenData::pddsBack, DXScreenData::pddsZBuf, PRINTVIDMEM, and RELEASE.

Referenced by handle_reshape().


Member Data Documentation

DXGraphicsStateGuardian7* wdxGraphicsWindow7::_dxgsg [private]
 

Definition at line 64 of file wdxGraphicsWindow7.h.

Referenced by choose_device(), create_screen_buffers_and_device(), do_fullscreen_resize(), end_flip(), handle_reshape(), and wdxGraphicsWindow7().

TypeHandle wdxGraphicsWindow7::_type_handle [static, private]
 

Reimplemented from WinGraphicsWindow.

Definition at line 111 of file wdxGraphicsWindow7.cxx.

DXScreenData wdxGraphicsWindow7::_wcontext [private]
 

Definition at line 65 of file wdxGraphicsWindow7.h.

Referenced by choose_device(), create_screen_buffers_and_device(), do_fullscreen_resize(), handle_reshape(), make_current(), open_window(), set_coop_levels_and_display_modes(), set_to_temp_rendertarget(), and wdxGraphicsWindow7().


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