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

wcrGraphicsWindow Class Reference

#include <wcrGraphicsWindow.h>

Inheritance diagram for wcrGraphicsWindow:

GraphicsWindow TypedReferenceCount ClearableRegion TypedObject ReferenceCount List of all members.

Public Member Functions

 wcrGraphicsWindow (GraphicsPipe *pipe)
 wcrGraphicsWindow (GraphicsPipe *pipe, const GraphicsWindow::Properties &props)
virtual ~wcrGraphicsWindow ()
virtual bool supports_update () const
virtual void update ()
virtual void end_frame ()
virtual void swap ()
virtual int get_depth_bitwidth ()
virtual TypeHandle get_gsg_type () const
virtual void make_current ()
virtual void unmake_current ()
INLINE bool mouse_entry_enabled ()
INLINE bool mouse_motion_enabled ()
INLINE bool mouse_passive_motion_enabled ()
void handle_mouse_motion (int x, int y)
void handle_mouse_entry (int state)
void handle_keypress (ButtonHandle key, int x, int y)
void handle_keyrelease (ButtonHandle key)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()
LONG WINAPI window_proc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
ButtonHandle lookup_key (WPARAM wparam) const
void DestroyMe (bool bAtExitFnCalled)
virtual void deactivate_window ()
virtual void reactivate_window ()
virtual bool resize (unsigned int xsize, unsigned int ysize)
virtual unsigned int verify_window_sizes (unsigned int numsizes, unsigned int *dimen)

Static Public Member Functions

GraphicsWindowmake_wcrGraphicsWindow (const FactoryParams &params)
TypeHandle get_class_type ()
void init_type ()

Public Attributes

HWND _mwindow

Protected Member Functions

int choose_visual ()
virtual void config ()
void setup_colormap ()
void enable_mouse_input (bool val)
void enable_mouse_motion (bool val)
void enable_mouse_passive_motion (bool val)
void enable_mouse_entry (bool val)
void handle_reshape ()
void process_events ()
virtual void do_close_window ()
void check_for_color_cursor_support ()

Private Attributes

int _context
HDC _hdc
PIXELFORMATDESCRIPTOR _pixelformat
HPALETTE _colormap
HCURSOR _hMouseCursor
HWND _hOldForegroundWindow
UINT_PTR _PandaPausedTimer
DEVMODE * _pCurrent_display_settings
bool _bIsLowVidMemCard
bool _bLoadedCustomCursor
bool _window_inactive
bool _active_minimized_fullscreen
bool _return_control_to_app
bool _exiting_window
bool _mouse_input_enabled
bool _mouse_motion_enabled
bool _mouse_passive_motion_enabled
bool _mouse_entry_enabled
bool _ime_open
DWORD _start_time
DWORD _start_frame_count
DWORD _cur_frame_count
float _current_fps
string _extensions_str

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

wcrGraphicsWindow::wcrGraphicsWindow GraphicsPipe pipe  ) 
 

Definition at line 651 of file wcrGraphicsWindow.cxx.

References config().

Referenced by make_wcrGraphicsWindow().

wcrGraphicsWindow::wcrGraphicsWindow GraphicsPipe pipe,
const GraphicsWindow::Properties &  props
 

Definition at line 661 of file wcrGraphicsWindow.cxx.

References config().

wcrGraphicsWindow::~wcrGraphicsWindow  )  [virtual]
 

Definition at line 189 of file wcrGraphicsWindow.cxx.

References GraphicsWindow::close_window().


Member Function Documentation

void wcrGraphicsWindow::check_for_color_cursor_support  )  [protected]
 

Definition at line 584 of file wcrGraphicsWindow.cxx.

References _hMouseCursor, _mwindow, chromium, get_color_cursor_filename_2(), and NULL.

Referenced by config().

int wcrGraphicsWindow::choose_visual  )  [protected]
 

Definition at line 708 of file wcrGraphicsWindow.cxx.

References _hdc, _pixelformat, ICD, MCD, OGLDriverType, and Software.

Referenced by config().

void wcrGraphicsWindow::config void   )  [protected, virtual]
 

***/ __asm int 3

Definition at line 236 of file wcrGraphicsWindow.cxx.

References _active_minimized_fullscreen, _bIsLowVidMemCard, _bLoadedCustomCursor, _context, _cur_frame_count, _current_fps, _exiting_window, _extensions_str, _hdc, _hMouseCursor, _hOldForegroundWindow, _ime_open, GraphicsWindow::_input_devices, _mouse_entry_enabled, _mouse_input_enabled, _mouse_motion_enabled, _mouse_passive_motion_enabled, _mwindow, _PandaPausedTimer, _pCurrent_display_settings, _pixelformat, _return_control_to_app, _start_frame_count, _start_time, _window_inactive, BOOL(), check_for_color_cursor_support(), choose_visual(), chromium, enable_mouse_input(), enable_mouse_motion(), enable_mouse_passive_motion(), find_acceptable_display_mode(), get_icon_filename_2(), get_mono_cursor_filename_2(), gl_forced_pixfmt, global_wcrwinptr, HDC(), hwnd_pandawin_map, LAST_ERROR, make_current(), NULL, PFNWCRGETEXTENSIONSSTRINGARBPROC, PFNWCRGETEXTENSIONSSTRINGEXTPROC, GraphicsWindowInputDevice::pointer_and_keyboard(), PrintErrorMessage(), setup_colormap(), static_window_proc(), support_wiregl, wc_registered, and WCR_WINDOWCLASSNAME.

Referenced by wcrGraphicsWindow().

void wcrGraphicsWindow::deactivate_window  )  [virtual]
 

Definition at line 1400 of file wcrGraphicsWindow.cxx.

References _active_minimized_fullscreen, _exiting_window, _mwindow, _PandaPausedTimer, _window_inactive, bResponsive_minimized_fullscreen_window, NULL, PAUSED_TIMER_ID, throw_event(), and unmake_current().

Referenced by window_proc().

void wcrGraphicsWindow::DestroyMe bool  bAtExitFnCalled  ) 
 

Definition at line 101 of file wcrGraphicsWindow.cxx.

References _bLoadedCustomCursor, _context, _exiting_window, _hdc, _hMouseCursor, _hOldForegroundWindow, _mwindow, _pCurrent_display_settings, chromium, FONT_BITMAP_OGLDISPLAYLISTNUM, HDC(), hwnd_pandawin_map, LAST_ERROR, NULL, PrintErrorMessage(), GraphicsWindow::release_gsg(), and unmake_current().

Referenced by do_close_window().

void wcrGraphicsWindow::do_close_window  )  [protected, virtual]
 

Definition at line 179 of file wcrGraphicsWindow.cxx.

References DestroyMe().

void wcrGraphicsWindow::enable_mouse_entry bool  val  )  [protected]
 

void wcrGraphicsWindow::enable_mouse_input bool  val  )  [protected]
 

Definition at line 1258 of file wcrGraphicsWindow.cxx.

References _mouse_input_enabled.

Referenced by config().

void wcrGraphicsWindow::enable_mouse_motion bool  val  )  [protected]
 

Definition at line 1267 of file wcrGraphicsWindow.cxx.

References _mouse_motion_enabled.

Referenced by config().

void wcrGraphicsWindow::enable_mouse_passive_motion bool  val  )  [protected]
 

Definition at line 1276 of file wcrGraphicsWindow.cxx.

References _mouse_passive_motion_enabled.

Referenced by config().

void wcrGraphicsWindow::end_frame  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 919 of file wcrGraphicsWindow.cxx.

References _cur_frame_count, _current_fps, _start_frame_count, _start_time, chromium, DO_PSTATS_STUFF, GraphicsWindow::end_frame(), FONT_BITMAP_OGLDISPLAYLISTNUM, gl_fps_meter_update_interval, GLboolean(), and num_frames.

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

Reimplemented from GraphicsWindow.

Definition at line 128 of file wcrGraphicsWindow.h.

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

TypeHandle wcrGraphicsWindow::get_class_type  )  [static]
 

Reimplemented from GraphicsWindow.

Definition at line 1365 of file wcrGraphicsWindow.cxx.

References _type_handle.

Referenced by get_type(), wcrGraphicsPipe::get_window_type(), and init_libwcrdisplay().

int wcrGraphicsWindow::get_depth_bitwidth  )  [virtual]
 

Definition at line 1331 of file wcrGraphicsWindow.cxx.

References _pixelformat.

TypeHandle wcrGraphicsWindow::get_gsg_type  )  const [virtual]
 

Definition at line 1342 of file wcrGraphicsWindow.cxx.

References CRGraphicsStateGuardian::get_class_type().

TypeHandle wcrGraphicsWindow::get_type  )  const [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 1375 of file wcrGraphicsWindow.cxx.

References get_class_type().

void wcrGraphicsWindow::handle_keypress ButtonHandle  key,
int  x,
int  y
 

Definition at line 1151 of file wcrGraphicsWindow.cxx.

References GraphicsWindow::_input_devices, ButtonHandle::none(), x, and y.

Referenced by window_proc().

void wcrGraphicsWindow::handle_keyrelease ButtonHandle  key  ) 
 

Definition at line 1164 of file wcrGraphicsWindow.cxx.

References GraphicsWindow::_input_devices, and ButtonHandle::none().

Referenced by window_proc().

void wcrGraphicsWindow::handle_mouse_entry int  state  ) 
 

Definition at line 1139 of file wcrGraphicsWindow.cxx.

References GraphicsWindow::_input_devices, and MOUSE_EXITED.

Referenced by window_proc().

void wcrGraphicsWindow::handle_mouse_motion int  x,
int  y
 

Definition at line 1130 of file wcrGraphicsWindow.cxx.

References GraphicsWindow::_input_devices, x, and y.

Referenced by window_proc().

void wcrGraphicsWindow::handle_reshape  )  [protected]
 

Definition at line 1108 of file wcrGraphicsWindow.cxx.

References _mwindow.

Referenced by window_proc().

void wcrGraphicsWindow::init_type  )  [static]
 

Reimplemented from GraphicsWindow.

Definition at line 1369 of file wcrGraphicsWindow.cxx.

References _type_handle, GraphicsWindow::get_class_type(), GraphicsWindow::init_type(), and register_type().

Referenced by init_libwcrdisplay().

ButtonHandle wcrGraphicsWindow::lookup_key WPARAM  wparam  )  const
 

Definition at line 1793 of file wcrGraphicsWindow.cxx.

References KeyboardButton::alt(), KeyboardButton::ascii_key(), KeyboardButton::backspace(), KeyboardButton::caps_lock(), KeyboardButton::control(), KeyboardButton::del(), KeyboardButton::down(), KeyboardButton::end(), KeyboardButton::escape(), KeyboardButton::f1(), KeyboardButton::f10(), KeyboardButton::f11(), KeyboardButton::f12(), KeyboardButton::f2(), KeyboardButton::f3(), KeyboardButton::f4(), KeyboardButton::f5(), KeyboardButton::f6(), KeyboardButton::f7(), KeyboardButton::f8(), KeyboardButton::f9(), KeyboardButton::home(), KeyboardButton::insert(), KeyboardButton::left(), ButtonHandle::none(), KeyboardButton::num_lock(), KeyboardButton::page_down(), KeyboardButton::page_up(), KeyboardButton::print_screen(), KeyboardButton::right(), KeyboardButton::scroll_lock(), KeyboardButton::shift(), KeyboardButton::space(), KeyboardButton::tab(), uchar, and KeyboardButton::up().

Referenced by window_proc().

void wcrGraphicsWindow::make_current  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 1285 of file wcrGraphicsWindow.cxx.

References _context, _hdc, chromium, DO_PSTATS_STUFF, GLint(), HDC(), LAST_ERROR, NULL, and PrintErrorMessage().

Referenced by config(), reactivate_window(), and window_proc().

GraphicsWindow * wcrGraphicsWindow::make_wcrGraphicsWindow const FactoryParams params  )  [static]
 

Definition at line 1347 of file wcrGraphicsWindow.cxx.

References get_param_into(), NULL, params, and wcrGraphicsWindow().

Referenced by init_libwcrdisplay().

INLINE bool wcrGraphicsWindow::mouse_entry_enabled  )  [inline]
 

Definition at line 60 of file wcrGraphicsWindow.h.

INLINE bool wcrGraphicsWindow::mouse_motion_enabled  )  [inline]
 

Definition at line 61 of file wcrGraphicsWindow.h.

Referenced by window_proc().

INLINE bool wcrGraphicsWindow::mouse_passive_motion_enabled  )  [inline]
 

Definition at line 62 of file wcrGraphicsWindow.h.

Referenced by window_proc().

void INLINE wcrGraphicsWindow::process_events  )  [protected, virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 1185 of file wcrGraphicsWindow.cxx.

References _return_control_to_app, _window_inactive, NULL, and process_1_event().

Referenced by update().

void wcrGraphicsWindow::reactivate_window  )  [virtual]
 

Definition at line 1457 of file wcrGraphicsWindow.cxx.

References _active_minimized_fullscreen, _mwindow, _PandaPausedTimer, _pCurrent_display_settings, _window_inactive, make_current(), and NULL.

Referenced by window_proc().

bool wcrGraphicsWindow::resize unsigned int  xsize,
unsigned int  ysize
[virtual]
 

Definition at line 1003 of file wcrGraphicsWindow.cxx.

References _mwindow, _pCurrent_display_settings, find_acceptable_display_mode(), HDC(), and NULL.

void wcrGraphicsWindow::setup_colormap  )  [protected]
 

Definition at line 859 of file wcrGraphicsWindow.cxx.

References _colormap, _hdc, and n.

Referenced by config().

bool wcrGraphicsWindow::supports_update  )  const [virtual]
 

Definition at line 1216 of file wcrGraphicsWindow.cxx.

void wcrGraphicsWindow::swap  )  [virtual]
 

Definition at line 998 of file wcrGraphicsWindow.cxx.

References chromium.

void wcrGraphicsWindow::unmake_current  )  [virtual]
 

Definition at line 1319 of file wcrGraphicsWindow.cxx.

References chromium, LAST_ERROR, NULL, and PrintErrorMessage().

Referenced by deactivate_window(), and DestroyMe().

void wcrGraphicsWindow::update  )  [virtual]
 

Definition at line 1225 of file wcrGraphicsWindow.cxx.

References _window_inactive, and process_events().

unsigned int wcrGraphicsWindow::verify_window_sizes unsigned int  numsizes,
unsigned int *  dimen
[virtual]
 

Definition at line 1045 of file wcrGraphicsWindow.cxx.

References find_acceptable_display_mode(), HDC(), NULL, and uint.

LONG WINAPI wcrGraphicsWindow::window_proc HWND  hwnd,
UINT  msg,
WPARAM  wparam,
LPARAM  lparam
 

Definition at line 1497 of file wcrGraphicsWindow.cxx.

References _ime_open, GraphicsWindow::_input_devices, _mwindow, _PandaPausedTimer, _return_control_to_app, _window_inactive, KeyboardButton::ascii_key(), GraphicsWindow::close_window(), deactivate_window(), handle_keypress(), handle_keyrelease(), handle_mouse_entry(), handle_mouse_motion(), handle_reshape(), hardcoded_modifier_buttons, height, hwnd_pandawin_map, lookup_key(), make_current(), MOUSE_ENTERED, MOUSE_EXITED, mouse_motion_enabled(), mouse_passive_motion_enabled(), NULL, NUM_MODIFIER_KEYS, reactivate_window(), uchar, width, x, and y.

Referenced by static_window_proc().


Member Data Documentation

bool wcrGraphicsWindow::_active_minimized_fullscreen [private]
 

Definition at line 106 of file wcrGraphicsWindow.h.

Referenced by config(), deactivate_window(), and reactivate_window().

bool wcrGraphicsWindow::_bIsLowVidMemCard [private]
 

Definition at line 102 of file wcrGraphicsWindow.h.

Referenced by config().

bool wcrGraphicsWindow::_bLoadedCustomCursor [private]
 

Definition at line 103 of file wcrGraphicsWindow.h.

Referenced by config(), and DestroyMe().

HPALETTE wcrGraphicsWindow::_colormap [private]
 

Definition at line 96 of file wcrGraphicsWindow.h.

Referenced by setup_colormap().

int wcrGraphicsWindow::_context [private]
 

Definition at line 93 of file wcrGraphicsWindow.h.

Referenced by config(), DestroyMe(), and make_current().

DWORD wcrGraphicsWindow::_cur_frame_count [private]
 

Definition at line 119 of file wcrGraphicsWindow.h.

Referenced by config(), and end_frame().

float wcrGraphicsWindow::_current_fps [private]
 

Definition at line 120 of file wcrGraphicsWindow.h.

Referenced by config(), and end_frame().

bool wcrGraphicsWindow::_exiting_window [private]
 

Definition at line 108 of file wcrGraphicsWindow.h.

Referenced by config(), deactivate_window(), and DestroyMe().

string wcrGraphicsWindow::_extensions_str [private]
 

Definition at line 122 of file wcrGraphicsWindow.h.

Referenced by config().

HDC wcrGraphicsWindow::_hdc [private]
 

Definition at line 94 of file wcrGraphicsWindow.h.

Referenced by choose_visual(), config(), DestroyMe(), make_current(), and setup_colormap().

HCURSOR wcrGraphicsWindow::_hMouseCursor [private]
 

Definition at line 97 of file wcrGraphicsWindow.h.

Referenced by check_for_color_cursor_support(), config(), and DestroyMe().

HWND wcrGraphicsWindow::_hOldForegroundWindow [private]
 

Definition at line 98 of file wcrGraphicsWindow.h.

Referenced by config(), and DestroyMe().

bool wcrGraphicsWindow::_ime_open [private]
 

Definition at line 114 of file wcrGraphicsWindow.h.

Referenced by config(), and window_proc().

bool wcrGraphicsWindow::_mouse_entry_enabled [private]
 

Definition at line 113 of file wcrGraphicsWindow.h.

Referenced by config().

bool wcrGraphicsWindow::_mouse_input_enabled [private]
 

Definition at line 110 of file wcrGraphicsWindow.h.

Referenced by config(), and enable_mouse_input().

bool wcrGraphicsWindow::_mouse_motion_enabled [private]
 

Definition at line 111 of file wcrGraphicsWindow.h.

Referenced by config(), and enable_mouse_motion().

bool wcrGraphicsWindow::_mouse_passive_motion_enabled [private]
 

Definition at line 112 of file wcrGraphicsWindow.h.

Referenced by config(), and enable_mouse_passive_motion().

HWND wcrGraphicsWindow::_mwindow
 

Definition at line 89 of file wcrGraphicsWindow.h.

Referenced by check_for_color_cursor_support(), config(), deactivate_window(), DestroyMe(), handle_reshape(), reactivate_window(), resize(), and window_proc().

UINT_PTR wcrGraphicsWindow::_PandaPausedTimer [private]
 

Definition at line 99 of file wcrGraphicsWindow.h.

Referenced by config(), deactivate_window(), reactivate_window(), and window_proc().

DEVMODE* wcrGraphicsWindow::_pCurrent_display_settings [private]
 

Definition at line 101 of file wcrGraphicsWindow.h.

Referenced by config(), DestroyMe(), reactivate_window(), and resize().

PIXELFORMATDESCRIPTOR wcrGraphicsWindow::_pixelformat [private]
 

Definition at line 95 of file wcrGraphicsWindow.h.

Referenced by choose_visual(), config(), and get_depth_bitwidth().

bool wcrGraphicsWindow::_return_control_to_app [private]
 

Definition at line 107 of file wcrGraphicsWindow.h.

Referenced by config(), process_events(), and window_proc().

DWORD wcrGraphicsWindow::_start_frame_count [private]
 

Definition at line 118 of file wcrGraphicsWindow.h.

Referenced by config(), and end_frame().

DWORD wcrGraphicsWindow::_start_time [private]
 

Definition at line 117 of file wcrGraphicsWindow.h.

Referenced by config(), and end_frame().

TypeHandle wcrGraphicsWindow::_type_handle [static, private]
 

Reimplemented from GraphicsWindow.

Definition at line 47 of file wcrGraphicsWindow.cxx.

Referenced by get_class_type(), and init_type().

bool wcrGraphicsWindow::_window_inactive [private]
 

Definition at line 105 of file wcrGraphicsWindow.h.

Referenced by config(), deactivate_window(), process_events(), reactivate_window(), update(), and window_proc().


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