]> icculus.org git repositories - divverent/darkplaces.git/blob - vid_null.c
fix very unreliable jumping (it was doing a stepdown back onto the floor instantly...
[divverent/darkplaces.git] / vid_null.c
1 /*
2 Copyright (C) 1996-1997 Id Software, Inc.
3
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.
8
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.
12
13 See the GNU General Public License for more details.
14
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.
18 */
19
20 #include <signal.h>
21 #include "quakedef.h"
22
23 int cl_available = false;
24
25 void VID_Shutdown(void)
26 {
27 }
28
29 void signal_handler(int sig)
30 {
31         printf("Received signal %d, exiting...\n", sig);
32         Sys_Quit();
33         exit(0);
34 }
35
36 void InitSig(void)
37 {
38 #ifndef WIN32
39         signal(SIGHUP, signal_handler);
40         signal(SIGINT, signal_handler);
41         signal(SIGQUIT, signal_handler);
42         signal(SIGILL, signal_handler);
43         signal(SIGTRAP, signal_handler);
44         signal(SIGIOT, signal_handler);
45         signal(SIGBUS, signal_handler);
46         signal(SIGFPE, signal_handler);
47         signal(SIGSEGV, signal_handler);
48         signal(SIGTERM, signal_handler);
49 #endif
50 }
51
52 void VID_GetWindowSize (int *x, int *y, int *width, int *height)
53 {
54         *x = *y = 0;
55         *width = 1;
56         *height = 1;
57 }
58
59 void VID_Finish (void)
60 {
61 }
62
63 int VID_SetGamma(unsigned short *ramps)
64 {
65         return FALSE;
66 }
67
68 int VID_GetGamma(unsigned short *ramps)
69 {
70         return FALSE;
71 }
72
73 void VID_Init(void)
74 {
75         InitSig(); // trap evil signals
76 }
77
78 int VID_InitMode(int fullscreen, int width, int height, int bpp)
79 {
80         return false;
81 }
82
83 int GL_OpenLibrary(const char *name)
84 {
85         return false;
86 }
87
88 void GL_CloseLibrary(void)
89 {
90 }
91
92 void *GL_GetProcAddress(const char *name)
93 {
94         return NULL;
95 }
96
97 void Sys_SendKeyEvents(void)
98 {
99 }
100
101 void IN_Commands(void)
102 {
103 }
104
105 void IN_Move(usercmd_t *cmd)
106 {
107 }