1
1
/*
2
2
** The OpenGL Extension Wrangler Library
3
+ ** Copyright (C) 2008-2015, Nigel Stewart <nigels[]users sourceforge net>
3
4
** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
4
5
** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
5
6
** Copyright (C) 2002, Lev Povalahev
@@ -182,6 +183,19 @@ typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, in
182
183
183
184
#endif /* WGL_ARB_buffer_region */
184
185
186
+ /* --------------------- WGL_ARB_context_flush_control --------------------- */
187
+
188
+ #ifndef WGL_ARB_context_flush_control
189
+ #define WGL_ARB_context_flush_control 1
190
+
191
+ #define WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0x0000
192
+ #define WGL_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097
193
+ #define WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098
194
+
195
+ #define WGLEW_ARB_context_flush_control WGLEW_GET_VAR(__WGLEW_ARB_context_flush_control)
196
+
197
+ #endif /* WGL_ARB_context_flush_control */
198
+
185
199
/* ------------------------- WGL_ARB_create_context ------------------------ */
186
200
187
201
#ifndef WGL_ARB_create_context
@@ -928,6 +942,19 @@ typedef BOOL (WINAPI * PFNWGLCOPYIMAGESUBDATANVPROC) (HGLRC hSrcRC, GLuint srcNa
928
942
929
943
#endif /* WGL_NV_copy_image */
930
944
945
+ /* ------------------------ WGL_NV_delay_before_swap ----------------------- */
946
+
947
+ #ifndef WGL_NV_delay_before_swap
948
+ #define WGL_NV_delay_before_swap 1
949
+
950
+ typedef BOOL (WINAPI * PFNWGLDELAYBEFORESWAPNVPROC ) (HDC hDC , GLfloat seconds );
951
+
952
+ #define wglDelayBeforeSwapNV WGLEW_GET_FUN(__wglewDelayBeforeSwapNV)
953
+
954
+ #define WGLEW_NV_delay_before_swap WGLEW_GET_VAR(__WGLEW_NV_delay_before_swap)
955
+
956
+ #endif /* WGL_NV_delay_before_swap */
957
+
931
958
/* -------------------------- WGL_NV_float_buffer -------------------------- */
932
959
933
960
#ifndef WGL_NV_float_buffer
@@ -1170,18 +1197,8 @@ typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT6
1170
1197
1171
1198
/* ------------------------------------------------------------------------- */
1172
1199
1173
- #ifdef GLEW_MX
1174
- #define WGLEW_FUN_EXPORT
1175
- #define WGLEW_VAR_EXPORT
1176
- #else
1177
1200
#define WGLEW_FUN_EXPORT GLEW_FUN_EXPORT
1178
1201
#define WGLEW_VAR_EXPORT GLEW_VAR_EXPORT
1179
- #endif /* GLEW_MX */
1180
-
1181
- #ifdef GLEW_MX
1182
- struct WGLEWContextStruct
1183
- {
1184
- #endif /* GLEW_MX */
1185
1202
1186
1203
WGLEW_FUN_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL ;
1187
1204
@@ -1291,6 +1308,8 @@ WGLEW_FUN_EXPORT PFNWGLDXUNREGISTEROBJECTNVPROC __wglewDXUnregisterObjectNV;
1291
1308
1292
1309
WGLEW_FUN_EXPORT PFNWGLCOPYIMAGESUBDATANVPROC __wglewCopyImageSubDataNV ;
1293
1310
1311
+ WGLEW_FUN_EXPORT PFNWGLDELAYBEFORESWAPNVPROC __wglewDelayBeforeSwapNV ;
1312
+
1294
1313
WGLEW_FUN_EXPORT PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV ;
1295
1314
WGLEW_FUN_EXPORT PFNWGLDELETEDCNVPROC __wglewDeleteDCNV ;
1296
1315
WGLEW_FUN_EXPORT PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV ;
@@ -1334,6 +1353,7 @@ WGLEW_VAR_EXPORT GLboolean __WGLEW_3DFX_multisample;
1334
1353
WGLEW_VAR_EXPORT GLboolean __WGLEW_3DL_stereo_control ;
1335
1354
WGLEW_VAR_EXPORT GLboolean __WGLEW_AMD_gpu_association ;
1336
1355
WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_buffer_region ;
1356
+ WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_context_flush_control ;
1337
1357
WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_create_context ;
1338
1358
WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_create_context_profile ;
1339
1359
WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_create_context_robustness ;
@@ -1371,6 +1391,7 @@ WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage;
1371
1391
WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_DX_interop ;
1372
1392
WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_DX_interop2 ;
1373
1393
WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_copy_image ;
1394
+ WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_delay_before_swap ;
1374
1395
WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_float_buffer ;
1375
1396
WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_gpu_affinity ;
1376
1397
WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_multisample_coverage ;
@@ -1382,33 +1403,18 @@ WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_vertex_array_range;
1382
1403
WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_video_capture ;
1383
1404
WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_video_output ;
1384
1405
WGLEW_VAR_EXPORT GLboolean __WGLEW_OML_sync_control ;
1385
-
1386
- #ifdef GLEW_MX
1387
- }; /* WGLEWContextStruct */
1388
- #endif /* GLEW_MX */
1389
-
1390
1406
/* ------------------------------------------------------------------------- */
1391
1407
1392
- #ifdef GLEW_MX
1393
-
1394
- typedef struct WGLEWContextStruct WGLEWContext ;
1395
- GLEWAPI GLenum GLEWAPIENTRY wglewContextInit (WGLEWContext * ctx );
1396
- GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext * ctx , const char * name );
1397
-
1398
- #define wglewInit () wglewContextInit(wglewGetContext())
1399
- #define wglewIsSupported (x ) wglewContextIsSupported(wglewGetContext(), x)
1400
-
1401
- #define WGLEW_GET_VAR (x ) (*(const GLboolean*)&(wglewGetContext()->x))
1402
- #define WGLEW_GET_FUN (x ) wglewGetContext()->x
1403
-
1404
- #else /* GLEW_MX */
1408
+ GLEWAPI GLenum GLEWAPIENTRY wglewInit ();
1409
+ GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char * name );
1405
1410
1411
+ #ifndef WGLEW_GET_VAR
1406
1412
#define WGLEW_GET_VAR (x ) (*(const GLboolean*)&x)
1407
- #define WGLEW_GET_FUN (x ) x
1408
-
1409
- GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char * name );
1413
+ #endif
1410
1414
1411
- #endif /* GLEW_MX */
1415
+ #ifndef WGLEW_GET_FUN
1416
+ #define WGLEW_GET_FUN (x ) x
1417
+ #endif
1412
1418
1413
1419
GLEWAPI GLboolean GLEWAPIENTRY wglewGetExtension (const char * name );
1414
1420
0 commit comments