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

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 INLINE 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 [NUM_MODIFIER_KEYS]


Define Documentation

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

Definition at line 82 of file wcrGraphicsWindow.cxx.

Referenced by WinGraphicsWindow::find_acceptable_display_mode(), and find_acceptable_display_mode().

#define ERRORBOX_TITLE   "Panda3D Error"
 

Definition at line 57 of file wcrGraphicsWindow.cxx.

Referenced by PrintErrorMessage().

#define FONT_BITMAP_OGLDISPLAYLISTNUM   1000
 

Definition at line 54 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::DestroyMe(), and wcrGraphicsWindow::end_frame().

#define LAST_ERROR   0
 

Definition at line 56 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::config(), wcrGraphicsWindow::DestroyMe(), wcrGraphicsWindow::make_current(), PrintErrorMessage(), and wcrGraphicsWindow::unmake_current().

#define MIN_REFRESH_RATE   60
 

Definition at line 80 of file wcrGraphicsWindow.cxx.

#define MOUSE_ENTERED   0
 

Definition at line 51 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::window_proc().

#define MOUSE_EXITED   1
 

Definition at line 52 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::handle_mouse_entry(), and wcrGraphicsWindow::window_proc().

#define NUM_MODIFIER_KEYS   16
 

Definition at line 74 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::window_proc().

#define PAUSED_TIMER_ID   7
 

Definition at line 60 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 41 of file wcrGraphicsWindow.cxx.

#define WCR_WINDOWCLASSNAME   "wcrDisplay"
 

Definition at line 58 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::config().


Typedef Documentation

typedef map<HWND,wcrGraphicsWindow *> HWND_PANDAWIN_MAP
 

Definition at line 62 of file wcrGraphicsWindow.cxx.


Enumeration Type Documentation

enum OGLDriverType
 

Enumeration values:
Software 
MCD 
ICD 

Definition at line 67 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::choose_visual(), and wglGraphicsPipe::find_pixfmtnum().


Function Documentation

void AtExitFn  ) 
 

Definition at line 203 of file wcrGraphicsWindow.cxx.

References DestroyAllWindows().

Referenced by init_libwcrdisplay().

void DestroyAllWindows bool  bAtExitFnCalled  ) 
 

Definition at line 193 of file wcrGraphicsWindow.cxx.

References hwnd_pandawin_map, and NULL.

Referenced by AtExitFn(), and process_1_event().

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

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().

void PrintErrorMessage DWORD  msgID  ) 
 

Definition at line 84 of file wcrGraphicsWindow.cxx.

void INLINE process_1_event  ) 
 

Definition at line 1170 of file wcrGraphicsWindow.cxx.

References DestroyAllWindows(), and NULL.

Referenced by wcrGraphicsWindow::process_events().

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


Variable Documentation

wcrGraphicsWindow* global_wcrwinptr = NULL
 

Definition at line 65 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::config(), and static_window_proc().

unsigned int hardcoded_modifier_buttons[NUM_MODIFIER_KEYS]
 

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().

HWND_PANDAWIN_MAP hwnd_pandawin_map
 

Definition at line 64 of file wcrGraphicsWindow.cxx.

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

Definition at line 68 of file wcrGraphicsWindow.cxx.

bool wc_registered = false [static]
 

Definition at line 49 of file wcrGraphicsWindow.cxx.

Referenced by wcrGraphicsWindow::config().


Generated on Fri Apr 18 00:11:06 2003 for Panda by doxygen1.3