]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_null.c
implemented vid_samples cvar (antialiasing samples per pixel)
[xonotic/darkplaces.git] / vid_null.c
index ad2881ebdadf1022c151c69c8ff811a76cb6070a..a7c18f977d95c363131a536a02028aad276ce33d 100644 (file)
@@ -17,25 +17,27 @@ along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 
-#include <signal.h>
-#include <dlfcn.h>
 #include "quakedef.h"
 
+#include <signal.h>
+
 int cl_available = false;
 
+qboolean vid_supportrefreshrate = false;
+
 void VID_Shutdown(void)
 {
 }
 
 void signal_handler(int sig)
 {
-       printf("Received signal %d, exiting...\n", sig);
-       Sys_Quit();
-       exit(0);
+       Con_Printf("Received signal %d, exiting...\n", sig);
+       Sys_Quit(1);
 }
 
 void InitSig(void)
 {
+#ifndef WIN32
        signal(SIGHUP, signal_handler);
        signal(SIGINT, signal_handler);
        signal(SIGQUIT, signal_handler);
@@ -46,20 +48,19 @@ void InitSig(void)
        signal(SIGFPE, signal_handler);
        signal(SIGSEGV, signal_handler);
        signal(SIGTERM, signal_handler);
+#endif
 }
 
-void VID_GetWindowSize (int *x, int *y, int *width, int *height)
+void VID_Finish (qboolean allowmousegrab)
 {
-       *x = *y = 0;
-       *width = 1;
-       *height = 1;
 }
 
-void VID_Finish (void)
+int VID_SetGamma(unsigned short *ramps, int rampsize)
 {
+       return FALSE;
 }
 
-int VID_SetGamma(float prescale, float gamma, float scale, float base)
+int VID_GetGamma(unsigned short *ramps, int rampsize)
 {
        return FALSE;
 }
@@ -69,19 +70,11 @@ void VID_Init(void)
        InitSig(); // trap evil signals
 }
 
-int VID_InitMode(int fullscreen, int width, int height, int bpp)
-{
-}
-
-int GL_OpenLibrary(const char *name)
+int VID_InitMode(int fullscreen, int width, int height, int bpp, int refreshrate, int stereobuffer, int samples)
 {
        return false;
 }
 
-void GL_CloseLibrary(void)
-{
-}
-
 void *GL_GetProcAddress(const char *name)
 {
        return NULL;
@@ -91,18 +84,6 @@ void Sys_SendKeyEvents(void)
 {
 }
 
-void IN_Commands(void)
-{
-}
-
-void IN_Init(void)
-{
-}
-
-void IN_Shutdown(void)
-{
-}
-
-void IN_Move(usercmd_t *cmd)
+void IN_Move(void)
 {
 }