/* ** GLW_IMP.C ** ** This file contains ALL Linux specific stuff having to do with the ** OpenGL refresh. When a port is being made the following functions ** must be implemented by the port: ** ** GLimp_EndFrame ** GLimp_Init ** GLimp_Shutdown ** GLimp_SwitchFullscreen ** */ #include #include #include #include #include #include #include #include "../ref_gl/gl_local.h" #include "../client/keys.h" #include "../linux/rw_linux.h" #include /*****************************************************************************/ static qboolean GLimp_SwitchFullscreen( int width, int height ); qboolean GLimp_InitGL (void); extern cvar_t *vid_fullscreen; extern cvar_t *vid_ref; static fxMesaContext fc = NULL; #define NUM_RESOLUTIONS 3 static resolutions[NUM_RESOLUTIONS][3]={ { 512, 384, GR_RESOLUTION_512x384 }, { 640, 400, GR_RESOLUTION_640x400 }, { 640, 480, GR_RESOLUTION_640x480 } }; static int findres(int *width, int *height) { int i; for(i=0;i