| icculus quake2 doxygen
    1.0 dev
    |  | 
 
 
 
Go to the documentation of this file.
   32 #include "..\ref_soft\r_local.h" 
   43 #define WINDOW_CLASS_NAME "Quake 2" 
   58         exstyle = WS_EX_TOPMOST;
 
   69     wc.hCursor       = LoadCursor (
NULL,IDC_ARROW);
 
   70     wc.hbrBackground = (
void *)COLOR_GRAYTEXT;
 
   74     if (!RegisterClass (&wc) )
 
   82     AdjustWindowRect (&
r, stylebits, FALSE);
 
  219                                                                     DDBLTFAST_WAIT ) ) == DDERR_SURFACELOST )
 
  230                                                              NULL, DDFLIP_WAIT ) ) == DDERR_SURFACELOST )
 
  242                                                                     DDBLTFAST_WAIT ) ) == DDERR_SURFACELOST )
 
  253         memset( &ddsd, 0, 
sizeof( ddsd ) );
 
  254         ddsd.dwSize = 
sizeof( ddsd );
 
  268     const char *win_fs[] = { 
"W", 
"FS" };
 
  314              ( retval == 
rserr_ok && !fullscreen ) )
 
  412     if (!VirtualProtect((LPVOID)startaddr, length, PAGE_READWRITE, &flOldProtect))
 
  441 unsigned fpu_ceil_cw, fpu_chop_cw, fpu_full_cw, fpu_cw, fpu_pushed_cw;
 
  442 unsigned fpu_sp24_cw, fpu_sp24_ceil_cw;
 
  448     __asm fnstcw  word ptr fpu_cw
 
  449     __asm mov 
ax, word ptr fpu_cw
 
  452     __asm or  ah, 003h          ; round to nearest 
mode, extended precision
 
  453     __asm mov fpu_full_cw, eax
 
  456     __asm or  ah, 00fh          ; RTZ/truncate/chop 
mode, extended precision
 
  457     __asm mov fpu_chop_cw, eax
 
  460     __asm or  ah, 00bh          ; ceil 
mode, extended precision
 
  461     __asm mov fpu_ceil_cw, eax
 
  463     __asm and ah, 0f0h          ; round to nearest, 24-bit single precision
 
  464     __asm mov fpu_sp24_cw, eax
 
  466     __asm and ah, 0f0h          ; ceil 
mode, 24-bit single precision
 
  468     __asm mov fpu_sp24_ceil_cw, eax
 
  
 
qboolean DIB_Init(unsigned char **ppbuffer, int *ppitch)
void DIB_SetPalette(const unsigned char *_pal)
#define WINDOW_CLASS_NAME
void Sys_MakeCodeWriteable(unsigned long startaddr, unsigned long length)
void R_GammaCorrectAndSetPalette(const unsigned char *pal)
void DDRAW_Shutdown(void)
void(* Vid_NewWindow)(int width, int height)
LPDIRECTDRAWSURFACE lpddsFrontBuffer
cvar_t *(* Cvar_Get)(char *name, char *value, int flags)
void SWimp_AppActivate(qboolean active)
LPDIRECTDRAWSURFACE lpddsOffScreenBuffer
void SWimp_Shutdown(void)
void SWimp_SetPalette(const unsigned char *palette)
qboolean(* Vid_GetModeInfo)(int *width, int *height, int mode)
void(* Con_Printf)(int print_level, char *str,...)
static qboolean SWimp_InitGraphics(qboolean fullscreen)
void SWimp_EndFrame(void)
void(* Sys_Error)(int err_level, char *str,...)
void DDRAW_SetPalette(const unsigned char *pal)
rserr_t SWimp_SetMode(int *pwidth, int *pheight, int mode, qboolean fullscreen)
void VID_CreateWindow(int width, int height, int stylebits)
unsigned d_8to24table[256]
int SWimp_Init(void *hInstance, void *wndProc)
GLdouble GLdouble GLdouble w
qboolean DDRAW_Init(unsigned char **ppbuffer, int *ppitch)
byte currentpalette[1024]
LEnter16_16 al cl movb ah addl edx movb ch esi ax edx movw ax
@ rserr_invalid_fullscreen
HRESULT(WINAPI *pDirectSoundCreate)(GUID FAR *lpGUID
LPDIRECTDRAWSURFACE lpddsBackBuffer