GLAD WGL: Update to new version.
This commit is contained in:
parent
a96e78bca5
commit
d8af100691
2 changed files with 232 additions and 209 deletions
|
|
@ -14,6 +14,11 @@
|
||||||
|
|
||||||
#endif /* GLAD_IMPL_UTIL_C_ */
|
#endif /* GLAD_IMPL_UTIL_C_ */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int GLAD_WGL_VERSION_1_0 = 0;
|
int GLAD_WGL_VERSION_1_0 = 0;
|
||||||
int GLAD_WGL_ARB_create_context = 0;
|
int GLAD_WGL_ARB_create_context = 0;
|
||||||
|
|
@ -87,7 +92,6 @@ static int glad_wgl_has_extension(HDC hdc, const char *ext) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static GLADapiproc glad_wgl_get_proc_from_userptr(void *userptr, const char* name) {
|
static GLADapiproc glad_wgl_get_proc_from_userptr(void *userptr, const char* name) {
|
||||||
|
|
||||||
return (GLAD_GNUC_EXTENSION (GLADapiproc (*)(const char *name)) userptr)(name);
|
return (GLAD_GNUC_EXTENSION (GLADapiproc (*)(const char *name)) userptr)(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -130,9 +134,18 @@ int gladLoadWGL(HDC hdc, GLADloadfunc load) {
|
||||||
|
|
||||||
#ifdef GLAD_WGL
|
#ifdef GLAD_WGL
|
||||||
|
|
||||||
|
static GLADapiproc glad_wgl_get_proc(void *vuserptr, const char* name) {
|
||||||
|
(void) vuserptr;
|
||||||
|
return GLAD_GNUC_EXTENSION (GLADapiproc) wglGetProcAddress(name);
|
||||||
|
}
|
||||||
|
|
||||||
int gladLoaderLoadWGL(HDC hdc) {
|
int gladLoaderLoadWGL(HDC hdc) {
|
||||||
return gladLoadWGLUserPtr(hdc, glad_wgl_get_proc_from_userptr, GLAD_GNUC_EXTENSION(void*) wglGetProcAddress);
|
return gladLoadWGLUserPtr(hdc, glad_wgl_get_proc, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif /* GLAD_WGL */
|
#endif /* GLAD_WGL */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
/**
|
/**
|
||||||
* Loader generated by glad 2.0.0-beta on Sun Dec 22 19:55:16 2019
|
* Loader generated by glad 2.0.0-beta on Mon Sep 21 17:37:19 2020
|
||||||
*
|
*
|
||||||
* Generator: C/C++
|
* Generator: C/C++
|
||||||
* Specification: wgl
|
* Specification: wgl
|
||||||
|
|
@ -236,17 +236,27 @@ extern "C" {
|
||||||
DWORD Flags;
|
DWORD Flags;
|
||||||
RECT rcVirtualScreen;
|
RECT rcVirtualScreen;
|
||||||
};
|
};
|
||||||
|
|
||||||
DECLARE_HANDLE(HPBUFFERARB);
|
DECLARE_HANDLE(HPBUFFERARB);
|
||||||
|
|
||||||
DECLARE_HANDLE(HPBUFFEREXT);
|
DECLARE_HANDLE(HPBUFFEREXT);
|
||||||
|
|
||||||
DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
|
DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
|
||||||
|
|
||||||
DECLARE_HANDLE(HPVIDEODEV);
|
DECLARE_HANDLE(HPVIDEODEV);
|
||||||
|
|
||||||
DECLARE_HANDLE(HPGPUNV);
|
DECLARE_HANDLE(HPGPUNV);
|
||||||
|
|
||||||
DECLARE_HANDLE(HGPUNV);
|
DECLARE_HANDLE(HGPUNV);
|
||||||
|
|
||||||
DECLARE_HANDLE(HVIDEOINPUTDEVICENV);
|
DECLARE_HANDLE(HVIDEOINPUTDEVICENV);
|
||||||
|
|
||||||
typedef struct _GPU_DEVICE GPU_DEVICE;
|
typedef struct _GPU_DEVICE GPU_DEVICE;
|
||||||
|
|
||||||
typedef struct _GPU_DEVICE *PGPU_DEVICE;
|
typedef struct _GPU_DEVICE *PGPU_DEVICE;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define WGL_VERSION_1_0 1
|
#define WGL_VERSION_1_0 1
|
||||||
GLAD_API_CALL int GLAD_WGL_VERSION_1_0;
|
GLAD_API_CALL int GLAD_WGL_VERSION_1_0;
|
||||||
#define WGL_ARB_create_context 1
|
#define WGL_ARB_create_context 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue