summaryrefslogtreecommitdiff
path: root/win/win_gl.h
diff options
context:
space:
mode:
authorleo2000-12-18 12:42:31 +0000
committerleo2000-12-18 12:42:31 +0000
commit9f945b3fe2361205ba6a58f92dc976ded7bccb60 (patch)
tree54db9efd1c083ac06128e4f9d8f1f4e2044d832c /win/win_gl.h
parente679694a7bcb61ffee8351bad0396944716b81d4 (diff)
Fixes for win2k crash
git-svn-id: http://svn.leocad.org/trunk@183 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/win_gl.h')
-rwxr-xr-xwin/win_gl.h27
1 files changed, 17 insertions, 10 deletions
diff --git a/win/win_gl.h b/win/win_gl.h
index 891361c..8a707d2 100755
--- a/win/win_gl.h
+++ b/win/win_gl.h
@@ -4,6 +4,13 @@
// ============================================================================
// WGL functions typedefs
+// these functions depend on the driver loaded
+BOOL OpenGLSwapBuffers (HDC hdc);
+int OpenGLChoosePixelFormat(HDC hdc, CONST PIXELFORMATDESCRIPTOR * ppfd);
+int OpenGLDescribePixelFormat(HDC hdc, int iPixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR ppfd);
+BOOL OpenGLSetPixelFormat(HDC hdc, int iPixelFormat, CONST PIXELFORMATDESCRIPTOR * ppfd);
+int OpenGLGetPixelFormat(HDC hdc);
+
typedef int (WINAPI* WGLCHOOSEPIXELFORMAT) (HDC, CONST PIXELFORMATDESCRIPTOR *);
typedef int (WINAPI* WGLDESCRIBEPIXELFORMAT) (HDC, int, UINT, LPPIXELFORMATDESCRIPTOR);
typedef int (WINAPI* WGLGETPIXELFORMAT)(HDC);
@@ -33,11 +40,11 @@ typedef BOOL (WINAPI* WGLSETDEVICEGAMMARAMPEXT) (const unsigned char *pRed, con
// ============================================================================
// WGL extern declarations
-extern WGLCHOOSEPIXELFORMAT pfnwglChoosePixelFormat;
-extern WGLDESCRIBEPIXELFORMAT pfnwglDescribePixelFormat;
-extern WGLGETPIXELFORMAT pfnwglGetPixelFormat;
-extern WGLSETPIXELFORMAT pfnwglSetPixelFormat;
-extern WGLSWAPBUFFERS pfnwglSwapBuffers;
+//extern WGLCHOOSEPIXELFORMAT pfnwglChoosePixelFormat;
+//extern WGLDESCRIBEPIXELFORMAT pfnwglDescribePixelFormat;
+//extern WGLGETPIXELFORMAT pfnwglGetPixelFormat;
+//extern WGLSETPIXELFORMAT pfnwglSetPixelFormat;
+//extern WGLSWAPBUFFERS pfnwglSwapBuffers;
extern WGLCOPYCONTEXT pfnwglCopyContext;
extern WGLCREATECONTEXT pfnwglCreateContext;
extern WGLCREATELAYERCONTEXT pfnwglCreateLayerContext;
@@ -65,11 +72,11 @@ extern WGLSETDEVICEGAMMARAMPEXT pfnwglSetDeviceGammaRampEXT;
#undef wglUseFontBitmaps
#undef wglUseFontOutlines
-#define wglChoosePixelFormat pfnwglChoosePixelFormat;
-#define wglDescribePixelFormat pfnwglDescribePixelFormat;
-#define wglGetPixelFormat pfnwglGetPixelFormat;
-#define wglSetPixelFormat pfnwglSetPixelFormat;
-#define wglSwapBuffers pfnwglSwapBuffers;
+//#define wglChoosePixelFormat pfnwglChoosePixelFormat;
+//#define wglDescribePixelFormat pfnwglDescribePixelFormat;
+//#define wglGetPixelFormat pfnwglGetPixelFormat;
+//#define wglSetPixelFormat pfnwglSetPixelFormat;
+//#define wglSwapBuffers pfnwglSwapBuffers;
#define wglCopyContext pfnwglCopyContext;
#define wglCreateContext pfnwglCreateContext;
#define wglCreateLayerContext pfnwglCreateLayerContext;