diff options
author | Andrey Nazarov <skuller@skuller.net> | 2009-10-22 18:10:07 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2009-10-22 18:10:07 +0000 |
commit | 3be0c275fc16908908fbd7c141e6ec8fdf91073c (patch) | |
tree | f87a32d8e8b2b2e01424f6caca38a2ed6137afd0 | |
parent | 67741c8e568f256340e132cb3d888365d2f89b4e (diff) |
Removed some unused WGL functions.
-rw-r--r-- | source/win_wgl.c | 104 | ||||
-rw-r--r-- | source/win_wgl.h | 24 |
2 files changed, 51 insertions, 77 deletions
diff --git a/source/win_wgl.c b/source/win_wgl.c index d67108e..410199d 100644 --- a/source/win_wgl.c +++ b/source/win_wgl.c @@ -21,36 +21,26 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "win_glimp.h" #include "win_wgl.h" -void ( APIENTRY * qglDrawBuffer )(GLenum mode); +//void ( APIENTRY * qglDrawBuffer )(GLenum mode); const GLubyte * ( APIENTRY * qglGetString )(GLenum name); int ( WINAPI * qwglChoosePixelFormat )(HDC, CONST PIXELFORMATDESCRIPTOR *); int ( WINAPI * qwglDescribePixelFormat) (HDC, int, UINT, LPPIXELFORMATDESCRIPTOR); -int ( WINAPI * qwglGetPixelFormat)(HDC); +//int ( WINAPI * qwglGetPixelFormat)(HDC); BOOL ( WINAPI * qwglSetPixelFormat)(HDC, int, CONST PIXELFORMATDESCRIPTOR *); BOOL ( WINAPI * qwglSwapBuffers)(HDC); -BOOL ( WINAPI * qwglSwapIntervalEXT)( int interval ); -BOOL ( WINAPI * qwglCopyContext)(HGLRC, HGLRC, UINT); +//BOOL ( WINAPI * qwglCopyContext)(HGLRC, HGLRC, UINT); HGLRC ( WINAPI * qwglCreateContext)(HDC); -HGLRC ( WINAPI * qwglCreateLayerContext)(HDC, int); BOOL ( WINAPI * qwglDeleteContext)(HGLRC); -HGLRC ( WINAPI * qwglGetCurrentContext)(VOID); -HDC ( WINAPI * qwglGetCurrentDC)(VOID); +//HGLRC ( WINAPI * qwglGetCurrentContext)(VOID); +//HDC ( WINAPI * qwglGetCurrentDC)(VOID); PROC ( WINAPI * qwglGetProcAddress)(LPCSTR); BOOL ( WINAPI * qwglMakeCurrent)(HDC, HGLRC); -BOOL ( WINAPI * qwglShareLists)(HGLRC, HGLRC); -BOOL ( WINAPI * qwglDescribeLayerPlane)(HDC, int, int, UINT, - LPLAYERPLANEDESCRIPTOR); -int ( WINAPI * qwglSetLayerPaletteEntries)(HDC, int, int, int, - CONST COLORREF *); -int ( WINAPI * qwglGetLayerPaletteEntries)(HDC, int, int, int, - COLORREF *); -BOOL ( WINAPI * qwglRealizeLayerPalette)(HDC, int, BOOL); -BOOL ( WINAPI * qwglSwapLayerBuffers)(HDC, UINT); - -BOOL ( WINAPI * qwglGetDeviceGammaRampEXT)( unsigned char *, unsigned char *, unsigned char * ); -BOOL ( WINAPI * qwglSetDeviceGammaRampEXT)( const unsigned char *, const unsigned char *, const unsigned char * ); + +BOOL ( WINAPI * qwglSwapIntervalEXT)( int interval ); +//BOOL ( WINAPI * qwglGetDeviceGammaRampEXT)( unsigned char *, unsigned char *, unsigned char * ); +//BOOL ( WINAPI * qwglSetDeviceGammaRampEXT)( const unsigned char *, const unsigned char *, const unsigned char * ); void WGL_Shutdown( void ) { if( glw.hinstOpenGL ) { @@ -58,39 +48,33 @@ void WGL_Shutdown( void ) { glw.hinstOpenGL = NULL; } - qglDrawBuffer = NULL; - qglGetString = NULL; - - qwglCopyContext = NULL; - qwglCreateContext = NULL; - qwglCreateLayerContext = NULL; - qwglDeleteContext = NULL; - qwglDescribeLayerPlane = NULL; - qwglGetCurrentContext = NULL; - qwglGetCurrentDC = NULL; - qwglGetLayerPaletteEntries = NULL; - qwglGetProcAddress = NULL; - qwglMakeCurrent = NULL; - qwglRealizeLayerPalette = NULL; - qwglSetLayerPaletteEntries = NULL; - qwglShareLists = NULL; - qwglSwapLayerBuffers = NULL; - - qwglChoosePixelFormat = NULL; - qwglDescribePixelFormat = NULL; - qwglGetPixelFormat = NULL; - qwglSetPixelFormat = NULL; - qwglSwapBuffers = NULL; - - qwglSwapIntervalEXT = NULL; - qwglGetDeviceGammaRampEXT = NULL; - qwglSetDeviceGammaRampEXT = NULL; + //qglDrawBuffer = NULL; + qglGetString = NULL; + + qwglChoosePixelFormat = NULL; + qwglDescribePixelFormat = NULL; + //qwglGetPixelFormat = NULL; + qwglSetPixelFormat = NULL; + qwglSwapBuffers = NULL; + + //qwglCopyContext = NULL; + qwglCreateContext = NULL; + qwglDeleteContext = NULL; + //qwglGetCurrentContext = NULL; + //qwglGetCurrentDC = NULL; + qwglGetProcAddress = NULL; + qwglMakeCurrent = NULL; + + qwglSwapIntervalEXT = NULL; + //qwglGetDeviceGammaRampEXT = NULL; + //qwglSetDeviceGammaRampEXT = NULL; } #define GPA( x ) do { \ q ## x = ( void * )GetProcAddress( glw.hinstOpenGL, #x ); \ if( !q ## x ) { \ + Com_DPrintf( " %s ", #x ); \ return qfalse; \ } \ } while( 0 ) @@ -100,33 +84,33 @@ qboolean WGL_Init( const char *dllname ) { return qfalse; } - GPA( glDrawBuffer ); + //GPA( glDrawBuffer ); GPA( glGetString ); - GPA( wglCopyContext ); + //GPA( wglCopyContext ); GPA( wglCreateContext ); - GPA( wglCreateLayerContext ); + //GPA( wglCreateLayerContext ); GPA( wglDeleteContext ); - GPA( wglDescribeLayerPlane ); - GPA( wglGetCurrentContext ); - GPA( wglGetCurrentDC ); - GPA( wglGetLayerPaletteEntries ); + //GPA( wglDescribeLayerPlane ); + //GPA( wglGetCurrentContext ); + //GPA( wglGetCurrentDC ); + //GPA( wglGetLayerPaletteEntries ); GPA( wglGetProcAddress ); GPA( wglMakeCurrent ); - GPA( wglRealizeLayerPalette ); - GPA( wglSetLayerPaletteEntries ); - GPA( wglShareLists ); - GPA( wglSwapLayerBuffers ); + //GPA( wglRealizeLayerPalette ); + //GPA( wglSetLayerPaletteEntries ); + //GPA( wglShareLists ); + //GPA( wglSwapLayerBuffers ); GPA( wglChoosePixelFormat ); GPA( wglDescribePixelFormat ); - GPA( wglGetPixelFormat ); + //GPA( wglGetPixelFormat ); GPA( wglSetPixelFormat ); GPA( wglSwapBuffers ); qwglSwapIntervalEXT = NULL; - qwglGetDeviceGammaRampEXT = NULL; - qwglSetDeviceGammaRampEXT = NULL; + //qwglGetDeviceGammaRampEXT = NULL; + //qwglSetDeviceGammaRampEXT = NULL; return qtrue; } diff --git a/source/win_wgl.h b/source/win_wgl.h index 682ba07..b69f8be 100644 --- a/source/win_wgl.h +++ b/source/win_wgl.h @@ -26,37 +26,27 @@ qboolean WGL_Init( const char *dllname ); void WGL_Shutdown( void ); void *WGL_GetProcAddress( const char *symbol ); -extern void ( APIENTRY * qglDrawBuffer )(GLenum mode); +//extern void ( APIENTRY * qglDrawBuffer )(GLenum mode); extern const GLubyte * ( APIENTRY * qglGetString )(GLenum name); extern int ( WINAPI * qwglChoosePixelFormat )(HDC, CONST PIXELFORMATDESCRIPTOR *); extern int ( WINAPI * qwglDescribePixelFormat) (HDC, int, UINT, LPPIXELFORMATDESCRIPTOR); -extern int ( WINAPI * qwglGetPixelFormat)(HDC); +//extern int ( WINAPI * qwglGetPixelFormat)(HDC); extern BOOL ( WINAPI * qwglSetPixelFormat)(HDC, int, CONST PIXELFORMATDESCRIPTOR *); extern BOOL ( WINAPI * qwglSwapBuffers)(HDC); -extern BOOL ( WINAPI * qwglCopyContext)(HGLRC, HGLRC, UINT); +//extern BOOL ( WINAPI * qwglCopyContext)(HGLRC, HGLRC, UINT); extern HGLRC ( WINAPI * qwglCreateContext)(HDC); -extern HGLRC ( WINAPI * qwglCreateLayerContext)(HDC, int); extern BOOL ( WINAPI * qwglDeleteContext)(HGLRC); -extern HGLRC ( WINAPI * qwglGetCurrentContext)(VOID); -extern HDC ( WINAPI * qwglGetCurrentDC)(VOID); +//extern HGLRC ( WINAPI * qwglGetCurrentContext)(VOID); +//extern HDC ( WINAPI * qwglGetCurrentDC)(VOID); extern PROC ( WINAPI * qwglGetProcAddress)(LPCSTR); extern BOOL ( WINAPI * qwglMakeCurrent)(HDC, HGLRC); -extern BOOL ( WINAPI * qwglShareLists)(HGLRC, HGLRC); -extern BOOL ( WINAPI * qwglDescribeLayerPlane)(HDC, int, int, UINT, - LPLAYERPLANEDESCRIPTOR); -extern int ( WINAPI * qwglSetLayerPaletteEntries)(HDC, int, int, int, - CONST COLORREF *); -extern int ( WINAPI * qwglGetLayerPaletteEntries)(HDC, int, int, int, - COLORREF *); -extern BOOL ( WINAPI * qwglRealizeLayerPalette)(HDC, int, BOOL); -extern BOOL ( WINAPI * qwglSwapLayerBuffers)(HDC, UINT); typedef BOOL ( WINAPI * PFNWGLSWAPINTERWALEXTPROC )( int ); extern BOOL ( WINAPI * qwglSwapIntervalEXT)( int interval ); -extern BOOL ( WINAPI * qwglGetDeviceGammaRampEXT ) ( unsigned char *pRed, unsigned char *pGreen, unsigned char *pBlue ); -extern BOOL ( WINAPI * qwglSetDeviceGammaRampEXT ) ( const unsigned char *pRed, const unsigned char *pGreen, const unsigned char *pBlue ); +//extern BOOL ( WINAPI * qwglGetDeviceGammaRampEXT ) ( unsigned char *pRed, unsigned char *pGreen, unsigned char *pBlue ); +//extern BOOL ( WINAPI * qwglSetDeviceGammaRampEXT ) ( const unsigned char *pRed, const unsigned char *pGreen, const unsigned char *pBlue ); |