]> git.xonotic.org Git - xonotic/darkplaces.git/blob - vid_null.c
vpk: Include stdint.h only
[xonotic/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 "quakedef.h"
21
22 #include <signal.h>
23
24 int cl_available = false;
25
26 qbool vid_supportrefreshrate = false;
27
28 void VID_Shutdown(void)
29 {
30 }
31
32 static void signal_handler(int sig)
33 {
34         Con_Printf("Received signal %d, exiting...\n", sig);
35         Sys_Quit(1);
36 }
37
38 static void InitSig(void)
39 {
40 #ifndef WIN32
41         signal(SIGHUP, signal_handler);
42         signal(SIGINT, signal_handler);
43         signal(SIGQUIT, signal_handler);
44         signal(SIGILL, signal_handler);
45         signal(SIGTRAP, signal_handler);
46         signal(SIGIOT, signal_handler);
47         signal(SIGBUS, signal_handler);
48         signal(SIGFPE, signal_handler);
49         signal(SIGSEGV, signal_handler);
50         signal(SIGTERM, signal_handler);
51 #endif
52 }
53
54 void VID_SetMouse (qbool fullscreengrab, qbool relative, qbool hidecursor)
55 {
56 }
57
58 void VID_Finish (void)
59 {
60 }
61
62 void VID_Init(void)
63 {
64         InitSig(); // trap evil signals
65 }
66
67 qbool VID_InitMode(viddef_mode_t *mode)
68 {
69         return false;
70 }
71
72 void *GL_GetProcAddress(const char *name)
73 {
74         return NULL;
75 }
76
77 void Sys_SendKeyEvents(void)
78 {
79 }
80
81 void VID_BuildJoyState(vid_joystate_t *joystate)
82 {
83 }
84
85 void IN_Move(void)
86 {
87 }
88
89 vid_mode_t *VID_GetDesktopMode(void)
90 {
91         return NULL;
92 }
93
94 size_t VID_ListModes(vid_mode_t *modes, size_t maxcount)
95 {
96         return 0;
97 }
98
99 qbool GL_ExtensionSupported(const char *name)
100 {
101         return false;
102 }