diff options
author | Kenneth Russel <[email protected]> | 2001-11-11 21:30:13 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2001-11-11 21:30:13 +0000 |
commit | f610ac01f50165b2ea6bc4a81d02abf2e222d876 (patch) | |
tree | 2b54144d82803e6665a371b6eeeae6812a16e3ac /C2J/manual/wgl-disp-fetch.hc | |
parent | 3b0e7fd364c6d61b97f4f2daf405b30e662fddc7 (diff) |
Support for NVidia AllocateMemoryNV extension and fixed problem with extensions not being loaded
Diffstat (limited to 'C2J/manual/wgl-disp-fetch.hc')
-rwxr-xr-x | C2J/manual/wgl-disp-fetch.hc | 55 |
1 files changed, 30 insertions, 25 deletions
diff --git a/C2J/manual/wgl-disp-fetch.hc b/C2J/manual/wgl-disp-fetch.hc index 4a84ecc..049ca18 100755 --- a/C2J/manual/wgl-disp-fetch.hc +++ b/C2J/manual/wgl-disp-fetch.hc @@ -1,26 +1,31 @@ -
- disp__wglCopyContext = (BOOL (CALLBACK *)(HGLRC, HGLRC, UINT))
- GET_GL_PROCADDRESS("wglCopyContext");
-
- disp__wglCreateContext = (HGLRC (CALLBACK *)(HDC))
- GET_GL_PROCADDRESS("wglCreateContext");
- - disp__wglCreateLayerContext = (HGLRC (CALLBACK *)(HDC, int))
- GET_GL_PROCADDRESS("wglCreateLayerContext");
-
- disp__wglDeleteContext = (BOOL (CALLBACK *)(HGLRC))
- GET_GL_PROCADDRESS("wglDeleteContext");
-
- disp__wglGetCurrentContext = (HGLRC (CALLBACK *)(VOID))
- GET_GL_PROCADDRESS("wglGetCurrentContext");
-
- disp__wglGetCurrentDC = (HDC (CALLBACK *)(VOID))
- GET_GL_PROCADDRESS("wglGetCurrentDC");
-
- disp__wglMakeCurrent = (BOOL (CALLBACK *)(HDC, HGLRC))
- GET_GL_PROCADDRESS("wglMakeCurrent");
-
- disp__wglShareLists = (BOOL (CALLBACK *)(HGLRC, HGLRC))
- GET_GL_PROCADDRESS("wglShareLists");
-
+ disp__wglCopyContext = (BOOL (CALLBACK *)(HGLRC, HGLRC, UINT)) + GET_GL_PROCADDRESS("wglCopyContext"); + + disp__wglCreateContext = (HGLRC (CALLBACK *)(HDC)) + GET_GL_PROCADDRESS("wglCreateContext"); + + disp__wglCreateLayerContext = (HGLRC (CALLBACK *)(HDC, int)) + GET_GL_PROCADDRESS("wglCreateLayerContext"); + + disp__wglDeleteContext = (BOOL (CALLBACK *)(HGLRC)) + GET_GL_PROCADDRESS("wglDeleteContext"); + + disp__wglGetCurrentContext = (HGLRC (CALLBACK *)(VOID)) + GET_GL_PROCADDRESS("wglGetCurrentContext"); + + disp__wglGetCurrentDC = (HDC (CALLBACK *)(VOID)) + GET_GL_PROCADDRESS("wglGetCurrentDC"); + + disp__wglMakeCurrent = (BOOL (CALLBACK *)(HDC, HGLRC)) + GET_GL_PROCADDRESS("wglMakeCurrent"); + + disp__wglShareLists = (BOOL (CALLBACK *)(HGLRC, HGLRC)) + GET_GL_PROCADDRESS("wglShareLists"); + + /* NVidia support */ + disp__wglAllocateMemoryNV = (void* (CALLBACK * )(int, float, float, float)) + GET_GL_PROCADDRESS("wglAllocateMemoryNV"); + + disp__wglFreeMemoryNV = (void (CALLBACK * )(void*)) + GET_GL_PROCADDRESS("wglFreeMemoryNV"); |