#include "wcrGraphicsWindow.h"
#include "wcrGraphicsPipe.h"
#include "config_wcrdisplay.h"
#include <keyboardButton.h>
#include <mouseButton.h>
#include "crGraphicsStateGuardian.h"
#include <errno.h>
#include <time.h>
#include <mmsystem.h>
#include <tchar.h>
#include <map>
#include <throw_event.h>
#include <string.h>
#include "../wgldisplay/Win32Defs.h"
#include "wcrext.h"
Go to the source code of this file.
Defines | |
#define | WCR_WCREXT_PROTOTYPES |
#define | MOUSE_ENTERED 0 |
#define | MOUSE_EXITED 1 |
#define | FONT_BITMAP_OGLDISPLAYLISTNUM 1000 |
#define | LAST_ERROR 0 |
#define | ERRORBOX_TITLE "Panda3D Error" |
#define | WCR_WINDOWCLASSNAME "wcrDisplay" |
#define | PAUSED_TIMER_ID 7 |
#define | NUM_MODIFIER_KEYS 16 |
#define | MIN_REFRESH_RATE 60 |
#define | ACCEPTABLE_REFRESH_RATE(RATE) ((RATE >= MIN_REFRESH_RATE) || (RATE==0) || (RATE==1)) |
#define | SET_MOUSE_COORD(iVal, VAL) |
Typedefs | |
typedef map< HWND, wcrGraphicsWindow * > | HWND_PANDAWIN_MAP |
Enumerations | |
enum | OGLDriverType { Software, MCD, ICD } |
Functions | |
LONG WINAPI | static_window_proc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) |
void | PrintErrorMessage (DWORD msgID) |
void | DestroyAllWindows (bool bAtExitFnCalled) |
void | AtExitFn () |
bool | find_acceptable_display_mode (DWORD dwWidth, DWORD dwHeight, DWORD bpp, DEVMODE &dm) |
void INLINE | process_1_event () |
Variables | |
bool | wc_registered = false |
HWND_PANDAWIN_MAP | hwnd_pandawin_map |
wcrGraphicsWindow * | global_wcrwinptr = NULL |
char * | OGLDrvStrings [3] = {"Software","MCD","ICD"} |
unsigned int | hardcoded_modifier_buttons [NUM_MODIFIER_KEYS] |
|
Definition at line 82 of file wcrGraphicsWindow.cxx. Referenced by WinGraphicsWindow::find_acceptable_display_mode(), and find_acceptable_display_mode(). |
|
Definition at line 57 of file wcrGraphicsWindow.cxx. Referenced by PrintErrorMessage(). |
|
Definition at line 54 of file wcrGraphicsWindow.cxx. Referenced by wcrGraphicsWindow::DestroyMe(), and wcrGraphicsWindow::end_frame(). |
|
Definition at line 56 of file wcrGraphicsWindow.cxx. Referenced by wcrGraphicsWindow::config(), wcrGraphicsWindow::DestroyMe(), wcrGraphicsWindow::make_current(), PrintErrorMessage(), and wcrGraphicsWindow::unmake_current(). |
|
Definition at line 80 of file wcrGraphicsWindow.cxx. |
|
Definition at line 51 of file wcrGraphicsWindow.cxx. Referenced by wcrGraphicsWindow::window_proc(). |
|
Definition at line 52 of file wcrGraphicsWindow.cxx. Referenced by wcrGraphicsWindow::handle_mouse_entry(), and wcrGraphicsWindow::window_proc(). |
|
Definition at line 74 of file wcrGraphicsWindow.cxx. Referenced by wcrGraphicsWindow::window_proc(). |
|
Definition at line 60 of file wcrGraphicsWindow.cxx. |
|
Value: { \
iVal = VAL; \
if (iVal & 0x8000) \
iVal -= 0x10000; \
}
|
|
Definition at line 41 of file wcrGraphicsWindow.cxx. |
|
Definition at line 58 of file wcrGraphicsWindow.cxx. Referenced by wcrGraphicsWindow::config(). |
|
Definition at line 62 of file wcrGraphicsWindow.cxx. |
|
Definition at line 67 of file wcrGraphicsWindow.cxx. Referenced by wcrGraphicsWindow::choose_visual(), and wglGraphicsPipe::find_pixfmtnum(). |
|
Definition at line 203 of file wcrGraphicsWindow.cxx. References DestroyAllWindows(). Referenced by init_libwcrdisplay(). |
|
Definition at line 193 of file wcrGraphicsWindow.cxx. References hwnd_pandawin_map, and NULL. Referenced by AtExitFn(), and process_1_event(). |
|
Definition at line 210 of file wcrGraphicsWindow.cxx. References ACCEPTABLE_REFRESH_RATE, and NULL. Referenced by wcrGraphicsWindow::config(), wcrGraphicsWindow::resize(), and wcrGraphicsWindow::verify_window_sizes(). |
|
Definition at line 84 of file wcrGraphicsWindow.cxx. |
|
Definition at line 1170 of file wcrGraphicsWindow.cxx. References DestroyAllWindows(), and NULL. Referenced by wcrGraphicsWindow::process_events(). |
|
|
|
Definition at line 65 of file wcrGraphicsWindow.cxx. Referenced by wcrGraphicsWindow::config(), and static_window_proc(). |
|
Initial value: {VK_SHIFT,VK_MENU,VK_CONTROL,VK_SPACE,VK_TAB, VK_UP,VK_DOWN,VK_LEFT,VK_RIGHT,VK_PRIOR,VK_NEXT,VK_HOME,VK_END, VK_INSERT,VK_DELETE,VK_ESCAPE} Definition at line 75 of file wcrGraphicsWindow.cxx. Referenced by wcrGraphicsWindow::window_proc(). |
|
Definition at line 64 of file wcrGraphicsWindow.cxx. |
|
Definition at line 68 of file wcrGraphicsWindow.cxx. |
|
Definition at line 49 of file wcrGraphicsWindow.cxx. Referenced by wcrGraphicsWindow::config(). |