mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2025-05-31 00:41:30 +00:00
Initial revision
This commit is contained in:
commit
2124958581
366 changed files with 219164 additions and 0 deletions
68
win32/rw_win.h
Normal file
68
win32/rw_win.h
Normal file
|
@ -0,0 +1,68 @@
|
|||
/*
|
||||
Copyright (C) 1997-2001 Id Software, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
*/
|
||||
#ifndef __RW_WIN_H__
|
||||
#define __RW_WIN_H__
|
||||
|
||||
#include <windows.h>
|
||||
#include <ddraw.h>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
HINSTANCE hInstance;
|
||||
void *wndproc;
|
||||
HDC hDC; // global DC we're using
|
||||
HWND hWnd; // HWND of parent window
|
||||
|
||||
HDC hdcDIBSection; // DC compatible with DIB section
|
||||
HBITMAP hDIBSection; // DIB section
|
||||
unsigned char *pDIBBase; // DIB base pointer, NOT used directly for rendering!
|
||||
|
||||
HPALETTE hPal; // palette we're using
|
||||
HPALETTE hpalOld; // original system palette
|
||||
COLORREF oldsyscolors[20]; // original system colors
|
||||
|
||||
HINSTANCE hinstDDRAW; // library instance for DDRAW.DLL
|
||||
LPDIRECTDRAW lpDirectDraw; // pointer to DirectDraw object
|
||||
|
||||
LPDIRECTDRAWSURFACE lpddsFrontBuffer; // video card display memory front buffer
|
||||
LPDIRECTDRAWSURFACE lpddsBackBuffer; // system memory backbuffer
|
||||
LPDIRECTDRAWSURFACE lpddsOffScreenBuffer; // system memory backbuffer
|
||||
LPDIRECTDRAWPALETTE lpddpPalette; // DirectDraw palette
|
||||
|
||||
qboolean palettized; // true if desktop is paletted
|
||||
qboolean modex;
|
||||
|
||||
qboolean initializing;
|
||||
} swwstate_t;
|
||||
|
||||
extern swwstate_t sww_state;
|
||||
|
||||
/*
|
||||
** DIB code
|
||||
*/
|
||||
qboolean DIB_Init( unsigned char **ppbuffer, int *ppitch );
|
||||
void DIB_Shutdown( void );
|
||||
void DIB_SetPalette( const unsigned char *palette );
|
||||
|
||||
qboolean DDRAW_Init( unsigned char **ppbuffer, int *ppitch );
|
||||
void DDRAW_Shutdown( void );
|
||||
void DDRAW_SetPalette( const unsigned char *palette );
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue