2 Copyright (C) 1996-1997 Id Software, Inc.
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 See the GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 int cl_available = false;
25 void VID_Shutdown(void)
29 void signal_handler(int sig)
31 printf("Received signal %d, exiting...\n", sig);
38 signal(SIGHUP, signal_handler);
39 signal(SIGINT, signal_handler);
40 signal(SIGQUIT, signal_handler);
41 signal(SIGILL, signal_handler);
42 signal(SIGTRAP, signal_handler);
43 signal(SIGIOT, signal_handler);
44 signal(SIGBUS, signal_handler);
45 signal(SIGFPE, signal_handler);
46 signal(SIGSEGV, signal_handler);
47 signal(SIGTERM, signal_handler);
50 void VID_GetWindowSize (int *x, int *y, int *width, int *height)
57 void VID_Finish (void)
61 int VID_SetGamma(float prescale, float gamma, float scale, float base)
68 InitSig(); // trap evil signals
71 int VID_InitMode(int fullscreen, int width, int height, int bpp, int stencil)
76 int GL_OpenLibrary(const char *name)
81 void GL_CloseLibrary(void)
85 void *GL_GetProcAddress(const char *name)
90 void Sys_SendKeyEvents(void)
94 void IN_Commands(void)
98 void IN_Move(usercmd_t *cmd)