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

panda/src/wcrdisplay/wcrGraphicsWindow.cxx File Reference

#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 process_1_event ()

Variables

bool wc_registered = false
HWND_PANDAWIN_MAP hwnd_pandawin_map
wcrGraphicsWindowglobal_wcrwinptr = NULL
char * OGLDrvStrings [3] = {"Software","MCD","ICD"}
unsigned int hardcoded_modifier_buttons [16]


Detailed Description

Definition in file wcrGraphicsWindow.cxx.


Define Documentation

#define ACCEPTABLE_REFRESH_RATE RATE   )     ((RATE >= MIN_REFRESH_RATE) || (RATE==0) || (RATE==1))
 

Definition at line 87 of file wcrGraphicsWindow.cxx.

#define ERRORBOX_TITLE   "Panda3D Error"
 

Definition at line 62 of file wcrGraphicsWindow.cxx.

#define FONT_BITMAP_OGLDISPLAYLISTNUM   1000
 

Definition at line 59 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::DestroyMe().

#define LAST_ERROR   0
 

Definition at line 61 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::DestroyMe(), wcrGraphicsWindow::enable_mouse_input(), and wcrGraphicsWindow::enable_mouse_passive_motion().

#define MIN_REFRESH_RATE   60
 

Definition at line 85 of file wcrGraphicsWindow.cxx.

#define MOUSE_ENTERED   0
 

Definition at line 56 of file wcrGraphicsWindow.cxx.

#define MOUSE_EXITED   1
 

Definition at line 57 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::handle_reshape().

#define NUM_MODIFIER_KEYS   16
 

Definition at line 79 of file wcrGraphicsWindow.cxx.

#define PAUSED_TIMER_ID   7
 

Definition at line 65 of file wcrGraphicsWindow.cxx.

#define SET_MOUSE_COORD iVal,
VAL   ) 
 

Value:

{ \
            iVal = VAL;                   \
            if (iVal & 0x8000)             \
              iVal -= 0x10000;            \
      }

#define WCR_WCREXT_PROTOTYPES
 

Definition at line 44 of file wcrGraphicsWindow.cxx.

#define WCR_WINDOWCLASSNAME   "wcrDisplay"
 

Definition at line 63 of file wcrGraphicsWindow.cxx.


Typedef Documentation

typedef map<HWND,wcrGraphicsWindow *> HWND_PANDAWIN_MAP
 

Definition at line 67 of file wcrGraphicsWindow.cxx.


Enumeration Type Documentation

enum OGLDriverType
 

Enumeration values:
Software 
MCD 
ICD 

Definition at line 72 of file wcrGraphicsWindow.cxx.

Referenced by wglGraphicsWindow::setup_colormap().


Function Documentation

void AtExitFn  ) 
 

Definition at line 210 of file wcrGraphicsWindow.cxx.

void DestroyAllWindows bool  bAtExitFnCalled  ) 
 

Definition at line 200 of file wcrGraphicsWindow.cxx.

bool find_acceptable_display_mode DWORD  dwWidth,
DWORD  dwHeight,
DWORD  bpp,
DEVMODE &  dm
 

Definition at line 217 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::verify_window_sizes().

void PrintErrorMessage DWORD  msgID  ) 
 

Definition at line 89 of file wcrGraphicsWindow.cxx.

void process_1_event  )  [inline]
 

Definition at line 1203 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::handle_keyrelease().

LONG WINAPI static_window_proc HWND  hwnd,
UINT  msg,
WPARAM  wparam,
LPARAM  lparam
 


Variable Documentation

wcrGraphicsWindow* global_wcrwinptr = NULL
 

Definition at line 70 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::get_depth_bitwidth().

unsigned int hardcoded_modifier_buttons[ 16 ]
 

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 80 of file wcrGraphicsWindow.cxx.

HWND_PANDAWIN_MAP hwnd_pandawin_map
 

Definition at line 69 of file wcrGraphicsWindow.cxx.

char* OGLDrvStrings[3] = {"Software","MCD","ICD"} [static]
 

Definition at line 73 of file wcrGraphicsWindow.cxx.

bool wc_registered = false [static]
 

Definition at line 54 of file wcrGraphicsWindow.cxx.


Generated on Fri May 2 00:46:19 2003 for Panda by doxygen1.3