Browse Source

Remove WGL function pointers, remove HDC

pull/2/head
Alibek Omarov 7 years ago
parent
commit
8e508cf065
  1. 21
      engine/client/gl_export.h
  2. 5
      engine/client/gl_local.h

21
engine/client/gl_export.h

@ -1279,24 +1279,5 @@ void ( APIENTRY *pglGenVertexArrays )( GLsizei n, const GLuint *arrays ); @@ -1279,24 +1279,5 @@ void ( APIENTRY *pglGenVertexArrays )( GLsizei n, const GLuint *arrays );
GLboolean ( APIENTRY *pglIsVertexArray )( GLuint array );
void ( APIENTRY * pglSwapInterval) ( int interval );
extern void *pglGetProcAddress( const GLubyte * );
BOOL ( WINAPI * pwglSwapBuffers)(HDC);
BOOL ( WINAPI * pwglCopyContext)(HGLRC, HGLRC, UINT);
HGLRC ( WINAPI * pwglCreateContext)(HDC);
HGLRC ( WINAPI * pwglCreateLayerContext)(HDC, int);
BOOL ( WINAPI * pwglDeleteContext)(HGLRC);
HGLRC ( WINAPI * pwglGetCurrentContext)(VOID);
PROC ( WINAPI * pwglGetProcAddress)(LPCSTR);
BOOL ( WINAPI * pwglMakeCurrent)(HDC, HGLRC);
BOOL ( WINAPI * pwglShareLists)(HGLRC, HGLRC);
BOOL ( WINAPI * pwglUseFontBitmaps)(HDC, DWORD, DWORD, DWORD);
BOOL ( WINAPI * pwglUseFontOutlines)(HDC, DWORD, DWORD, DWORD, FLOAT, FLOAT, int, LPGLYPHMETRICSFLOAT);
BOOL ( WINAPI * pwglDescribeLayerPlane)(HDC, int, int, UINT, LPLAYERPLANEDESCRIPTOR);
int ( WINAPI * pwglSetLayerPaletteEntries)(HDC, int, int, int, CONST COLORREF *);
int ( WINAPI * pwglGetLayerPaletteEntries)(HDC, int, int, int, COLORREF *);
BOOL ( WINAPI * pwglRealizeLayerPalette)(HDC, int, BOOL);
BOOL ( WINAPI * pwglSwapLayerBuffers)(HDC, UINT);
BOOL ( WINAPI * pwglSwapIntervalEXT)( int interval );
HGLRC ( WINAPI * pwglCreateContextAttribsARB)( HDC hDC, HGLRC hShareContext, const int *attribList );
const char *( WINAPI * pwglGetExtensionsStringEXT)( void );
#endif//GL_EXPORT_H
#endif//GL_EXPORT_H

5
engine/client/gl_local.h

@ -616,8 +616,7 @@ typedef struct @@ -616,8 +616,7 @@ typedef struct
typedef struct
{
HDC hDC; // handle to device context
HGLRC hGLRC; // handle to GL rendering context
void* context; // handle to GL rendering context
int desktopBitsPixel;
int desktopWidth;
@ -674,4 +673,4 @@ extern convar_t *vid_brightness; @@ -674,4 +673,4 @@ extern convar_t *vid_brightness;
extern convar_t *vid_gamma;
extern convar_t *vid_mode;
#endif//GL_LOCAL_H
#endif//GL_LOCAL_H

Loading…
Cancel
Save