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

wdxGraphicsWindow8 Class Reference

#include <wdxGraphicsWindow8.h>

Inheritance diagram for wdxGraphicsWindow8:

WinGraphicsWindow GraphicsWindow TypedReferenceCount ClearableRegion TypedObject ReferenceCount List of all members.

Public Member Functions

 wdxGraphicsWindow8 (GraphicsPipe *pipe, GraphicsStateGuardian *gsg)
virtual ~wdxGraphicsWindow8 ()
virtual bool open_window (void)
virtual int verify_window_sizes (int numsizes, int *dimen)
virtual bool begin_frame ()
virtual void end_flip ()
virtual LONG window_proc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
virtual bool handle_mouse_motion (int x, int y)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()
virtual void make_current (void)

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

void create_screen_buffers_and_device (DXScreenData &Display, bool force_16bpp_zbuffer)
bool choose_device (void)
bool search_for_device (wdxGraphicsPipe8 *dxpipe, DXDeviceInfo *device_info)
bool reset_device_resize_window (UINT new_xsize, UINT new_ysize)
void init_resized_window ()

Static Private Member Functions

int D3DFMT_to_DepthBits (D3DFORMAT fmt)
bool is_badvidmem_card (D3DADAPTER_IDENTIFIER8 *pDevID)

Private Attributes

DXGraphicsStateGuardian8_dxgsg
DXScreenData _wcontext
int _depth_buffer_bpp
bool _awaiting_restore

Static Private Attributes

TypeHandle _type_handle

Friends

class wdxGraphicsPipe8

Constructor & Destructor Documentation

wdxGraphicsWindow8::wdxGraphicsWindow8 GraphicsPipe pipe,
GraphicsStateGuardian gsg
 

Definition at line 76 of file wdxGraphicsWindow8.cxx.

References _awaiting_restore, _depth_buffer_bpp, _dxgsg, _wcontext, and DCAST.

wdxGraphicsWindow8::~wdxGraphicsWindow8  )  [virtual]
 

Definition at line 94 of file wdxGraphicsWindow8.cxx.


Member Function Documentation

bool wdxGraphicsWindow8::begin_frame  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 223 of file wdxGraphicsWindow8.cxx.

References _awaiting_restore, _dxgsg, GraphicsWindow::begin_frame(), DXGraphicsStateGuardian8::CheckCooperativeLevel(), and init_resized_window().

bool wdxGraphicsWindow8::choose_device void   )  [private]
 

Definition at line 869 of file wdxGraphicsWindow8.cxx.

References wdxGraphicsPipe8::_bIsDX81, wdxGraphicsPipe8::_pD3D8, DXDeviceInfo::cardID, D3DERRORSTRING, DCAST_INTO_R, DXDeviceInfo::DeviceID, dx_preferred_device_id, DXDeviceInfoVec, DXDeviceInfo::guidDeviceIdentifier, DXDeviceInfo::hMon, NULL, search_for_device(), DXDeviceInfo::szDescription, DXDeviceInfo::szDriver, and DXDeviceInfo::VendorID.

Referenced by open_window().

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

Definition at line 633 of file wdxGraphicsWindow8.cxx.

References GraphicsStateGuardian::_buffer_mask, _depth_buffer_bpp, _dxgsg, WinGraphicsWindow::_hWnd, _wcontext, DXScreenData::bIsTNLDevice, DXScreenData::CardIDNum, ClearToBlack(), DXScreenData::d3dcaps, D3DERRORSTRING, D3DFMT_to_DepthBits(), D3DFormatStr(), DCAST_INTO_V, DXScreenData::DisplayMode, dx_multisample_antialiasing_level, dx_pick_best_screenres, dx_sync_video, wdxGraphicsPipe8::find_best_depth_format(), FrameBufferProperties::FM_stencil, DXScreenData::hWnd, init_resized_window(), IS_16BPP_DISPLAY_FORMAT, GraphicsWindow::is_fullscreen(), IS_STENCIL_FORMAT, NULL, DXScreenData::pD3D8, DXScreenData::pD3DDevice, DXScreenData::PresParams, PRINT_REFCNT, R5G6B5_FLAG, DXScreenData::SupportedScreenDepthsMask, RenderBuffer::T_depth, RenderBuffer::T_stencil, and X1R5G5B5_FLAG.

Referenced by open_window().

int wdxGraphicsWindow8::D3DFMT_to_DepthBits D3DFORMAT  fmt  )  [static, private]
 

Definition at line 1623 of file wdxGraphicsWindow8.cxx.

Referenced by create_screen_buffers_and_device().

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

Reimplemented from WinGraphicsWindow.

Definition at line 321 of file wdxGraphicsWindow8.cxx.

References _wcontext, DXScreenData::bIsLowVidMemCard, DXScreenData::CardIDNum, DCAST_INTO_R, DXScreenData::DisplayMode, dx_force_16bpp_zbuffer, IS_16BPP_DISPLAY_FORMAT, IS_STENCIL_FORMAT, DXScreenData::PresParams, R5G6B5_FLAG, reset_device_resize_window(), wdxGraphicsPipe8::search_for_valid_displaymode(), wdxGraphicsPipe8::special_check_fullscreen_resolution(), DXScreenData::SupportedScreenDepthsMask, and X1R5G5B5_FLAG.

void wdxGraphicsWindow8::end_flip  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 250 of file wdxGraphicsWindow8.cxx.

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

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

Reimplemented from WinGraphicsWindow.

Definition at line 98 of file wdxGraphicsWindow8.h.

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

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

Reimplemented from WinGraphicsWindow.

Definition at line 266 of file wdxGraphicsWindow8.cxx.

References _awaiting_restore, _dxgsg, and NULL.

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

Reimplemented from WinGraphicsWindow.

Definition at line 87 of file wdxGraphicsWindow8.h.

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

Reimplemented from WinGraphicsWindow.

Definition at line 95 of file wdxGraphicsWindow8.h.

References WinGraphicsWindow::get_class_type().

bool wdxGraphicsWindow8::handle_mouse_motion int  x,
int  y
[virtual]
 

Reimplemented from WinGraphicsWindow.

Definition at line 1687 of file wdxGraphicsWindow8.cxx.

References _wcontext, dx_use_dx_cursor, WinGraphicsWindow::handle_mouse_motion(), GraphicsWindow::is_fullscreen(), NULL, DXScreenData::pD3DDevice, x, and y.

void wdxGraphicsWindow8::handle_reshape  )  [protected, virtual]
 

Reimplemented from WinGraphicsWindow.

Definition at line 285 of file wdxGraphicsWindow8.cxx.

References _dxgsg, GraphicsWindow::get_properties(), WindowProperties::get_x_origin(), WindowProperties::get_x_size(), WindowProperties::get_y_origin(), WindowProperties::get_y_size(), WinGraphicsWindow::handle_reshape(), NULL, and reset_device_resize_window().

void wdxGraphicsWindow8::init_resized_window  )  [private]
 

Definition at line 1541 of file wdxGraphicsWindow8.cxx.

References _dxgsg, WinGraphicsWindow::_mouse_cursor, _wcontext, DXScreenData::CardIDNum, ClearToBlack(), CreateDX8Cursor(), D3DERRORSTRING, DXGraphicsStateGuardian8::dx_init(), dx_show_cursor_watermark, dx_use_dx_cursor, DXScreenData::hWnd, GraphicsWindow::is_fullscreen(), NULL, DXScreenData::pD3DDevice, DXScreenData::PresParams, and DXGraphicsStateGuardian8::set_context().

Referenced by begin_frame(), create_screen_buffers_and_device(), and reset_device_resize_window().

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

Reimplemented from WinGraphicsWindow.

Definition at line 90 of file wdxGraphicsWindow8.h.

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

Referenced by init_libdxgsg8().

bool wdxGraphicsWindow8::is_badvidmem_card D3DADAPTER_IDENTIFIER8 *  pDevID  )  [static, private]
 

Definition at line 1654 of file wdxGraphicsWindow8.cxx.

Referenced by search_for_device().

void wdxGraphicsWindow8::make_current void   )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 98 of file wdxGraphicsWindow8.cxx.

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

bool wdxGraphicsWindow8::open_window void   )  [virtual]
 

Reimplemented from WinGraphicsWindow.

Definition at line 1671 of file wdxGraphicsWindow8.cxx.

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

bool wdxGraphicsWindow8::reset_device_resize_window UINT  new_xsize,
UINT  new_ysize
[private]
 

Definition at line 1493 of file wdxGraphicsWindow8.cxx.

References _dxgsg, _wcontext, D3DERRORSTRING, init_resized_window(), DXScreenData::PresParams, and DXGraphicsStateGuardian8::reset_d3d_device().

Referenced by do_fullscreen_resize(), and handle_reshape().

bool wdxGraphicsWindow8::search_for_device wdxGraphicsPipe8 dxpipe,
DXDeviceInfo device_info
[private]
 

Definition at line 1188 of file wdxGraphicsWindow8.cxx.

References wdxGraphicsPipe8::_bIsDX81, wdxGraphicsPipe8::_card_ids, _dxgsg, wdxGraphicsPipe8::_pD3D8, GraphicsWindow::_properties, _wcontext, WindowProperties::add_properties(), DXScreenData::bCanUseHWVertexShaders, DXScreenData::bCanUsePixelShaders, DXScreenData::bIsDX81, DXScreenData::bIsLowVidMemCard, DXScreenData::bIsTNLDevice, DXDeviceInfo::cardID, DXScreenData::CardIDNum, DXScreenData::d3dcaps, D3DERRORSTRING, DXDeviceInfo::DeviceID, DXScreenData::DisplayMode, dx_force_16bpp_zbuffer, dx_force_16bpptextures, dx_pick_best_screenres, DXScreenData::DXDeviceID, FrameBufferProperties::FM_depth, FrameBufferProperties::FM_stencil, GraphicsWindow::get_properties(), WindowProperties::get_x_size(), WindowProperties::get_y_size(), DXScreenData::hMon, DXDeviceInfo::hMon, is_badvidmem_card(), GraphicsWindow::is_fullscreen(), DXScreenData::MaxAvailVidMem, NULL, DXScreenData::pD3D8, DXScreenData::PresParams, R5G6B5_FLAG, wdxGraphicsPipe8::search_for_valid_displaymode(), WindowProperties::set_size(), DXScreenData::SupportedScreenDepthsMask, GraphicsWindow::system_changed_size(), DXDeviceInfo::szDescription, UNKNOWN_VIDMEM_SIZE, DXDeviceInfo::VendorID, and X1R5G5B5_FLAG.

Referenced by choose_device().

int wdxGraphicsWindow8::verify_window_sizes int  numsizes,
int *  dimen
[virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 156 of file wdxGraphicsWindow8.cxx.

References _dxgsg, _wcontext, DXScreenData::bIsLowVidMemCard, DCAST_INTO_R, dx_force_16bpp_zbuffer, IS_STENCIL_FORMAT, IS_VALID_PTR, DXScreenData::PresParams, wdxGraphicsPipe8::search_for_valid_displaymode(), wdxGraphicsPipe8::special_check_fullscreen_resolution(), and DXScreenData::SupportedScreenDepthsMask.

LONG wdxGraphicsWindow8::window_proc HWND  hwnd,
UINT  msg,
WPARAM  wparam,
LPARAM  lparam
[virtual]
 

Reimplemented from WinGraphicsWindow.

Definition at line 401 of file wdxGraphicsWindow8.cxx.

References WinGraphicsWindow::window_proc().


Friends And Related Function Documentation

friend class wdxGraphicsPipe8 [friend]
 

Definition at line 103 of file wdxGraphicsWindow8.h.


Member Data Documentation

bool wdxGraphicsWindow8::_awaiting_restore [private]
 

Definition at line 84 of file wdxGraphicsWindow8.h.

Referenced by begin_frame(), fullscreen_restored(), and wdxGraphicsWindow8().

int wdxGraphicsWindow8::_depth_buffer_bpp [private]
 

Definition at line 83 of file wdxGraphicsWindow8.h.

Referenced by create_screen_buffers_and_device(), and wdxGraphicsWindow8().

DXGraphicsStateGuardian8* wdxGraphicsWindow8::_dxgsg [private]
 

Definition at line 80 of file wdxGraphicsWindow8.h.

Referenced by begin_frame(), create_screen_buffers_and_device(), end_flip(), fullscreen_restored(), handle_reshape(), init_resized_window(), reset_device_resize_window(), search_for_device(), verify_window_sizes(), and wdxGraphicsWindow8().

TypeHandle wdxGraphicsWindow8::_type_handle [static, private]
 

Reimplemented from WinGraphicsWindow.

Definition at line 38 of file wdxGraphicsWindow8.cxx.

DXScreenData wdxGraphicsWindow8::_wcontext [private]
 

Definition at line 81 of file wdxGraphicsWindow8.h.

Referenced by create_screen_buffers_and_device(), do_fullscreen_resize(), handle_mouse_motion(), init_resized_window(), make_current(), open_window(), reset_device_resize_window(), search_for_device(), verify_window_sizes(), and wdxGraphicsWindow8().


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