]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - vid_null.c
matchpattern can now be case insensitive if desired
[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 <signal.h>
21 #include <dlfcn.h>
22 #include "quakedef.h"
23
24 int cl_available = false;
25
26 // global video state
27 viddef_t vid;
28
29 void VID_Shutdown(void)
30 {
31 }
32
33 void signal_handler(int sig)
34 {
35         printf("Received signal %d, exiting...\n", sig);
36         Sys_Quit();
37         exit(0);
38 }
39
40 void InitSig(void)
41 {
42         signal(SIGHUP, signal_handler);
43         signal(SIGINT, signal_handler);
44         signal(SIGQUIT, signal_handler);
45         signal(SIGILL, signal_handler);
46         signal(SIGTRAP, signal_handler);
47         signal(SIGIOT, signal_handler);
48         signal(SIGBUS, signal_handler);
49         signal(SIGFPE, signal_handler);
50         signal(SIGSEGV, signal_handler);
51         signal(SIGTERM, signal_handler);
52 }
53
54 void VID_GetWindowSize (int *x, int *y, int *width, int *height)
55 {
56         *x = *y = 0;
57         *width = 1;
58         *height = 1;
59 }
60
61 void VID_Finish (void)
62 {
63 }
64
65 int VID_SetGamma(float prescale, float gamma, float scale, float base)
66 {
67         return FALSE;
68 }
69
70 void VID_Init(int fullscreen, int width, int height)
71 {
72         InitSig(); // trap evil signals
73 }
74
75 int GL_OpenLibrary(const char *name)
76 {
77         return false;
78 }
79
80 void GL_CloseLibrary(void)
81 {
82 }
83
84 void *GL_GetProcAddress(const char *name)
85 {
86         return NULL;
87 }
88
89 void Sys_SendKeyEvents(void)
90 {
91 }
92
93 void IN_Commands(void)
94 {
95 }
96
97 void IN_Init(void)
98 {
99 }
100
101 void IN_Shutdown(void)
102 {
103 }
104
105 void IN_Move(usercmd_t *cmd)
106 {
107 }