Changeset 2527 for trunk/src/gdi32/opengl.cpp
- Timestamp:
- Jan 27, 2000, 12:48:03 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/opengl.cpp
r2526 r2527 1 /* $Id: opengl.cpp,v 1. 5 2000-01-26 23:19:55sandervl Exp $ */1 /* $Id: opengl.cpp,v 1.6 2000-01-26 23:48:03 sandervl Exp $ */ 2 2 3 3 /* … … 33 33 typedef BOOL (* WIN32API SETPIXELFMT) (HDC, int, CONST PIXELFORMATDESCRIPTOR *); 34 34 typedef BOOL (* WIN32API SWAPBUFFERS) (HDC hdc); 35 // JVDH MOD STARTS36 35 typedef int (* WIN32API DESCRIBEPIXELFMT) (HDC, int, UINT, LPPIXELFORMATDESCRIPTOR); 37 // JVDH MOD ENDS 36 typedef int (* WIN32API GETPIXELFMT) (HDC); 38 37 39 38 … … 45 44 static SETPIXELFMT glSetPixelFormat = NULL; 46 45 static SWAPBUFFERS glSwapBuffers = NULL; 47 // JVDH MOD STARTS48 46 static DESCRIBEPIXELFMT glDescribePixelFormat = NULL; 49 // JVDH MOD ENDS 47 static GETPIXELFMT glGetPixelFormat = NULL; 50 48 static HINSTANCE hOpenGL = NULL; 51 49 … … 90 88 } 91 89 92 // JVDH MOD STARTS93 90 if(glDescribePixelFormat == NULL) { 94 91 glDescribePixelFormat = (DESCRIBEPIXELFMT)O32_GetProcAddress(hOpenGL, "OS2wglDescribePixelFormat"); … … 96 93 return(FALSE); 97 94 } 98 // JVDH MOD ENDS 95 96 if(glGetPixelFormat == NULL) { 97 glGetPixelFormat = (GETPIXELFMT)O32_GetProcAddress(hOpenGL, "OS2wglGetPixelFormat"); 98 if(glGetPixelFormat == NULL) 99 return(FALSE); 100 } 99 101 100 102 return(TRUE); /* OpenGL is initialized and enabled*/ … … 117 119 CONST PIXELFORMATDESCRIPTOR*,pformat) 118 120 { 119 //@@@PH: ?? return(1);120 121 121 if (glChoosePixelFormat == NULL) 122 122 if (internalOpenGLEnable() == FALSE) … … 138 138 } 139 139 140 ODINFUNCTION1(int,GetPixelFormat,HDC,hdc) 141 { 142 if (glGetPixelFormat == NULL) 143 if (internalOpenGLEnable() == FALSE) 144 return(0); 145 146 return(glGetPixelFormat(hdc)); 147 } 140 148 141 149 /*****************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.