~ubuntu-branches/ubuntu/saucy/glew/saucy

« back to all changes in this revision

Viewing changes to src/glewinfo.c

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-08-07 15:32:58 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20120807153258-2k1swt9ofkiz652q
Tags: 1.9.0-1
* New upstream release
  - debian/control: 1.8 => 1.9 version bump
  - debian/shlibs.local: shlibs version bump
  - debian/*.install: version bump in filenames
  - debian/*.symbols: version updated and
    new symbols added

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#include <GL/glxew.h>
40
40
#endif
41
41
 
 
42
#ifdef GLEW_REGAL
 
43
#include <GL/Regal.h>
 
44
#endif
 
45
 
42
46
static FILE* f;
43
47
 
44
48
#ifdef GLEW_MX
526
530
 
527
531
#endif /* GL_VERSION_4_2 */
528
532
 
 
533
#ifdef GL_VERSION_4_3
 
534
 
 
535
static void _glewInfo_GL_VERSION_4_3 (void)
 
536
{
 
537
  glewPrintExt("GL_VERSION_4_3", GLEW_VERSION_4_3, GLEW_VERSION_4_3, GLEW_VERSION_4_3);
 
538
}
 
539
 
 
540
#endif /* GL_VERSION_4_3 */
 
541
 
529
542
#ifdef GL_3DFX_multisample
530
543
 
531
544
static void _glewInfo_GL_3DFX_multisample (void)
972
985
 
973
986
#endif /* GL_ARB_ES2_compatibility */
974
987
 
 
988
#ifdef GL_ARB_ES3_compatibility
 
989
 
 
990
static void _glewInfo_GL_ARB_ES3_compatibility (void)
 
991
{
 
992
  glewPrintExt("GL_ARB_ES3_compatibility", GLEW_ARB_ES3_compatibility, glewIsSupported("GL_ARB_ES3_compatibility"), glewGetExtension("GL_ARB_ES3_compatibility"));
 
993
}
 
994
 
 
995
#endif /* GL_ARB_ES3_compatibility */
 
996
 
 
997
#ifdef GL_ARB_arrays_of_arrays
 
998
 
 
999
static void _glewInfo_GL_ARB_arrays_of_arrays (void)
 
1000
{
 
1001
  glewPrintExt("GL_ARB_arrays_of_arrays", GLEW_ARB_arrays_of_arrays, glewIsSupported("GL_ARB_arrays_of_arrays"), glewGetExtension("GL_ARB_arrays_of_arrays"));
 
1002
}
 
1003
 
 
1004
#endif /* GL_ARB_arrays_of_arrays */
 
1005
 
975
1006
#ifdef GL_ARB_base_instance
976
1007
 
977
1008
static void _glewInfo_GL_ARB_base_instance (void)
1008
1039
 
1009
1040
#endif /* GL_ARB_cl_event */
1010
1041
 
 
1042
#ifdef GL_ARB_clear_buffer_object
 
1043
 
 
1044
static void _glewInfo_GL_ARB_clear_buffer_object (void)
 
1045
{
 
1046
  glewPrintExt("GL_ARB_clear_buffer_object", GLEW_ARB_clear_buffer_object, glewIsSupported("GL_ARB_clear_buffer_object"), glewGetExtension("GL_ARB_clear_buffer_object"));
 
1047
 
 
1048
  glewInfoFunc("glClearBufferData", glClearBufferData == NULL);
 
1049
  glewInfoFunc("glClearBufferSubData", glClearBufferSubData == NULL);
 
1050
  glewInfoFunc("glClearNamedBufferDataEXT", glClearNamedBufferDataEXT == NULL);
 
1051
  glewInfoFunc("glClearNamedBufferSubDataEXT", glClearNamedBufferSubDataEXT == NULL);
 
1052
}
 
1053
 
 
1054
#endif /* GL_ARB_clear_buffer_object */
 
1055
 
1011
1056
#ifdef GL_ARB_color_buffer_float
1012
1057
 
1013
1058
static void _glewInfo_GL_ARB_color_buffer_float (void)
1037
1082
 
1038
1083
#endif /* GL_ARB_compressed_texture_pixel_storage */
1039
1084
 
 
1085
#ifdef GL_ARB_compute_shader
 
1086
 
 
1087
static void _glewInfo_GL_ARB_compute_shader (void)
 
1088
{
 
1089
  glewPrintExt("GL_ARB_compute_shader", GLEW_ARB_compute_shader, glewIsSupported("GL_ARB_compute_shader"), glewGetExtension("GL_ARB_compute_shader"));
 
1090
 
 
1091
  glewInfoFunc("glDispatchCompute", glDispatchCompute == NULL);
 
1092
  glewInfoFunc("glDispatchComputeIndirect", glDispatchComputeIndirect == NULL);
 
1093
}
 
1094
 
 
1095
#endif /* GL_ARB_compute_shader */
 
1096
 
1040
1097
#ifdef GL_ARB_conservative_depth
1041
1098
 
1042
1099
static void _glewInfo_GL_ARB_conservative_depth (void)
1057
1114
 
1058
1115
#endif /* GL_ARB_copy_buffer */
1059
1116
 
 
1117
#ifdef GL_ARB_copy_image
 
1118
 
 
1119
static void _glewInfo_GL_ARB_copy_image (void)
 
1120
{
 
1121
  glewPrintExt("GL_ARB_copy_image", GLEW_ARB_copy_image, glewIsSupported("GL_ARB_copy_image"), glewGetExtension("GL_ARB_copy_image"));
 
1122
 
 
1123
  glewInfoFunc("glCopyImageSubData", glCopyImageSubData == NULL);
 
1124
}
 
1125
 
 
1126
#endif /* GL_ARB_copy_image */
 
1127
 
1060
1128
#ifdef GL_ARB_debug_output
1061
1129
 
1062
1130
static void _glewInfo_GL_ARB_debug_output (void)
1167
1235
 
1168
1236
#endif /* GL_ARB_explicit_attrib_location */
1169
1237
 
 
1238
#ifdef GL_ARB_explicit_uniform_location
 
1239
 
 
1240
static void _glewInfo_GL_ARB_explicit_uniform_location (void)
 
1241
{
 
1242
  glewPrintExt("GL_ARB_explicit_uniform_location", GLEW_ARB_explicit_uniform_location, glewIsSupported("GL_ARB_explicit_uniform_location"), glewGetExtension("GL_ARB_explicit_uniform_location"));
 
1243
}
 
1244
 
 
1245
#endif /* GL_ARB_explicit_uniform_location */
 
1246
 
1170
1247
#ifdef GL_ARB_fragment_coord_conventions
1171
1248
 
1172
1249
static void _glewInfo_GL_ARB_fragment_coord_conventions (void)
1176
1253
 
1177
1254
#endif /* GL_ARB_fragment_coord_conventions */
1178
1255
 
 
1256
#ifdef GL_ARB_fragment_layer_viewport
 
1257
 
 
1258
static void _glewInfo_GL_ARB_fragment_layer_viewport (void)
 
1259
{
 
1260
  glewPrintExt("GL_ARB_fragment_layer_viewport", GLEW_ARB_fragment_layer_viewport, glewIsSupported("GL_ARB_fragment_layer_viewport"), glewGetExtension("GL_ARB_fragment_layer_viewport"));
 
1261
}
 
1262
 
 
1263
#endif /* GL_ARB_fragment_layer_viewport */
 
1264
 
1179
1265
#ifdef GL_ARB_fragment_program
1180
1266
 
1181
1267
static void _glewInfo_GL_ARB_fragment_program (void)
1203
1289
 
1204
1290
#endif /* GL_ARB_fragment_shader */
1205
1291
 
 
1292
#ifdef GL_ARB_framebuffer_no_attachments
 
1293
 
 
1294
static void _glewInfo_GL_ARB_framebuffer_no_attachments (void)
 
1295
{
 
1296
  glewPrintExt("GL_ARB_framebuffer_no_attachments", GLEW_ARB_framebuffer_no_attachments, glewIsSupported("GL_ARB_framebuffer_no_attachments"), glewGetExtension("GL_ARB_framebuffer_no_attachments"));
 
1297
 
 
1298
  glewInfoFunc("glFramebufferParameteri", glFramebufferParameteri == NULL);
 
1299
  glewInfoFunc("glGetFramebufferParameteriv", glGetFramebufferParameteriv == NULL);
 
1300
  glewInfoFunc("glGetNamedFramebufferParameterivEXT", glGetNamedFramebufferParameterivEXT == NULL);
 
1301
  glewInfoFunc("glNamedFramebufferParameteriEXT", glNamedFramebufferParameteriEXT == NULL);
 
1302
}
 
1303
 
 
1304
#endif /* GL_ARB_framebuffer_no_attachments */
 
1305
 
1206
1306
#ifdef GL_ARB_framebuffer_object
1207
1307
 
1208
1308
static void _glewInfo_GL_ARB_framebuffer_object (void)
1391
1491
 
1392
1492
#endif /* GL_ARB_internalformat_query */
1393
1493
 
 
1494
#ifdef GL_ARB_internalformat_query2
 
1495
 
 
1496
static void _glewInfo_GL_ARB_internalformat_query2 (void)
 
1497
{
 
1498
  glewPrintExt("GL_ARB_internalformat_query2", GLEW_ARB_internalformat_query2, glewIsSupported("GL_ARB_internalformat_query2"), glewGetExtension("GL_ARB_internalformat_query2"));
 
1499
 
 
1500
  glewInfoFunc("glGetInternalformati64v", glGetInternalformati64v == NULL);
 
1501
}
 
1502
 
 
1503
#endif /* GL_ARB_internalformat_query2 */
 
1504
 
 
1505
#ifdef GL_ARB_invalidate_subdata
 
1506
 
 
1507
static void _glewInfo_GL_ARB_invalidate_subdata (void)
 
1508
{
 
1509
  glewPrintExt("GL_ARB_invalidate_subdata", GLEW_ARB_invalidate_subdata, glewIsSupported("GL_ARB_invalidate_subdata"), glewGetExtension("GL_ARB_invalidate_subdata"));
 
1510
 
 
1511
  glewInfoFunc("glInvalidateBufferData", glInvalidateBufferData == NULL);
 
1512
  glewInfoFunc("glInvalidateBufferSubData", glInvalidateBufferSubData == NULL);
 
1513
  glewInfoFunc("glInvalidateFramebuffer", glInvalidateFramebuffer == NULL);
 
1514
  glewInfoFunc("glInvalidateSubFramebuffer", glInvalidateSubFramebuffer == NULL);
 
1515
  glewInfoFunc("glInvalidateTexImage", glInvalidateTexImage == NULL);
 
1516
  glewInfoFunc("glInvalidateTexSubImage", glInvalidateTexSubImage == NULL);
 
1517
}
 
1518
 
 
1519
#endif /* GL_ARB_invalidate_subdata */
 
1520
 
1394
1521
#ifdef GL_ARB_map_buffer_alignment
1395
1522
 
1396
1523
static void _glewInfo_GL_ARB_map_buffer_alignment (void)
1427
1554
 
1428
1555
#endif /* GL_ARB_matrix_palette */
1429
1556
 
 
1557
#ifdef GL_ARB_multi_draw_indirect
 
1558
 
 
1559
static void _glewInfo_GL_ARB_multi_draw_indirect (void)
 
1560
{
 
1561
  glewPrintExt("GL_ARB_multi_draw_indirect", GLEW_ARB_multi_draw_indirect, glewIsSupported("GL_ARB_multi_draw_indirect"), glewGetExtension("GL_ARB_multi_draw_indirect"));
 
1562
 
 
1563
  glewInfoFunc("glMultiDrawArraysIndirect", glMultiDrawArraysIndirect == NULL);
 
1564
  glewInfoFunc("glMultiDrawElementsIndirect", glMultiDrawElementsIndirect == NULL);
 
1565
}
 
1566
 
 
1567
#endif /* GL_ARB_multi_draw_indirect */
 
1568
 
1430
1569
#ifdef GL_ARB_multisample
1431
1570
 
1432
1571
static void _glewInfo_GL_ARB_multisample (void)
1539
1678
 
1540
1679
#endif /* GL_ARB_point_sprite */
1541
1680
 
 
1681
#ifdef GL_ARB_program_interface_query
 
1682
 
 
1683
static void _glewInfo_GL_ARB_program_interface_query (void)
 
1684
{
 
1685
  glewPrintExt("GL_ARB_program_interface_query", GLEW_ARB_program_interface_query, glewIsSupported("GL_ARB_program_interface_query"), glewGetExtension("GL_ARB_program_interface_query"));
 
1686
 
 
1687
  glewInfoFunc("glGetProgramInterfaceiv", glGetProgramInterfaceiv == NULL);
 
1688
  glewInfoFunc("glGetProgramResourceIndex", glGetProgramResourceIndex == NULL);
 
1689
  glewInfoFunc("glGetProgramResourceLocation", glGetProgramResourceLocation == NULL);
 
1690
  glewInfoFunc("glGetProgramResourceLocationIndex", glGetProgramResourceLocationIndex == NULL);
 
1691
  glewInfoFunc("glGetProgramResourceName", glGetProgramResourceName == NULL);
 
1692
  glewInfoFunc("glGetProgramResourceiv", glGetProgramResourceiv == NULL);
 
1693
}
 
1694
 
 
1695
#endif /* GL_ARB_program_interface_query */
 
1696
 
1542
1697
#ifdef GL_ARB_provoking_vertex
1543
1698
 
1544
1699
static void _glewInfo_GL_ARB_provoking_vertex (void)
1550
1705
 
1551
1706
#endif /* GL_ARB_provoking_vertex */
1552
1707
 
 
1708
#ifdef GL_ARB_robust_buffer_access_behavior
 
1709
 
 
1710
static void _glewInfo_GL_ARB_robust_buffer_access_behavior (void)
 
1711
{
 
1712
  glewPrintExt("GL_ARB_robust_buffer_access_behavior", GLEW_ARB_robust_buffer_access_behavior, glewIsSupported("GL_ARB_robust_buffer_access_behavior"), glewGetExtension("GL_ARB_robust_buffer_access_behavior"));
 
1713
}
 
1714
 
 
1715
#endif /* GL_ARB_robust_buffer_access_behavior */
 
1716
 
1553
1717
#ifdef GL_ARB_robustness
1554
1718
 
1555
1719
static void _glewInfo_GL_ARB_robustness (void)
1580
1744
 
1581
1745
#endif /* GL_ARB_robustness */
1582
1746
 
 
1747
#ifdef GL_ARB_robustness_application_isolation
 
1748
 
 
1749
static void _glewInfo_GL_ARB_robustness_application_isolation (void)
 
1750
{
 
1751
  glewPrintExt("GL_ARB_robustness_application_isolation", GLEW_ARB_robustness_application_isolation, glewIsSupported("GL_ARB_robustness_application_isolation"), glewGetExtension("GL_ARB_robustness_application_isolation"));
 
1752
}
 
1753
 
 
1754
#endif /* GL_ARB_robustness_application_isolation */
 
1755
 
 
1756
#ifdef GL_ARB_robustness_share_group_isolation
 
1757
 
 
1758
static void _glewInfo_GL_ARB_robustness_share_group_isolation (void)
 
1759
{
 
1760
  glewPrintExt("GL_ARB_robustness_share_group_isolation", GLEW_ARB_robustness_share_group_isolation, glewIsSupported("GL_ARB_robustness_share_group_isolation"), glewGetExtension("GL_ARB_robustness_share_group_isolation"));
 
1761
}
 
1762
 
 
1763
#endif /* GL_ARB_robustness_share_group_isolation */
 
1764
 
1583
1765
#ifdef GL_ARB_sample_shading
1584
1766
 
1585
1767
static void _glewInfo_GL_ARB_sample_shading (void)
1726
1908
 
1727
1909
#endif /* GL_ARB_shader_image_load_store */
1728
1910
 
 
1911
#ifdef GL_ARB_shader_image_size
 
1912
 
 
1913
static void _glewInfo_GL_ARB_shader_image_size (void)
 
1914
{
 
1915
  glewPrintExt("GL_ARB_shader_image_size", GLEW_ARB_shader_image_size, glewIsSupported("GL_ARB_shader_image_size"), glewGetExtension("GL_ARB_shader_image_size"));
 
1916
}
 
1917
 
 
1918
#endif /* GL_ARB_shader_image_size */
 
1919
 
1729
1920
#ifdef GL_ARB_shader_objects
1730
1921
 
1731
1922
static void _glewInfo_GL_ARB_shader_objects (void)
1793
1984
 
1794
1985
#endif /* GL_ARB_shader_stencil_export */
1795
1986
 
 
1987
#ifdef GL_ARB_shader_storage_buffer_object
 
1988
 
 
1989
static void _glewInfo_GL_ARB_shader_storage_buffer_object (void)
 
1990
{
 
1991
  glewPrintExt("GL_ARB_shader_storage_buffer_object", GLEW_ARB_shader_storage_buffer_object, glewIsSupported("GL_ARB_shader_storage_buffer_object"), glewGetExtension("GL_ARB_shader_storage_buffer_object"));
 
1992
 
 
1993
  glewInfoFunc("glShaderStorageBlockBinding", glShaderStorageBlockBinding == NULL);
 
1994
}
 
1995
 
 
1996
#endif /* GL_ARB_shader_storage_buffer_object */
 
1997
 
1796
1998
#ifdef GL_ARB_shader_subroutine
1797
1999
 
1798
2000
static void _glewInfo_GL_ARB_shader_subroutine (void)
1881
2083
 
1882
2084
#endif /* GL_ARB_shadow_ambient */
1883
2085
 
 
2086
#ifdef GL_ARB_stencil_texturing
 
2087
 
 
2088
static void _glewInfo_GL_ARB_stencil_texturing (void)
 
2089
{
 
2090
  glewPrintExt("GL_ARB_stencil_texturing", GLEW_ARB_stencil_texturing, glewIsSupported("GL_ARB_stencil_texturing"), glewGetExtension("GL_ARB_stencil_texturing"));
 
2091
}
 
2092
 
 
2093
#endif /* GL_ARB_stencil_texturing */
 
2094
 
1884
2095
#ifdef GL_ARB_sync
1885
2096
 
1886
2097
static void _glewInfo_GL_ARB_sync (void)
1939
2150
 
1940
2151
#endif /* GL_ARB_texture_buffer_object_rgb32 */
1941
2152
 
 
2153
#ifdef GL_ARB_texture_buffer_range
 
2154
 
 
2155
static void _glewInfo_GL_ARB_texture_buffer_range (void)
 
2156
{
 
2157
  glewPrintExt("GL_ARB_texture_buffer_range", GLEW_ARB_texture_buffer_range, glewIsSupported("GL_ARB_texture_buffer_range"), glewGetExtension("GL_ARB_texture_buffer_range"));
 
2158
 
 
2159
  glewInfoFunc("glTexBufferRange", glTexBufferRange == NULL);
 
2160
  glewInfoFunc("glTextureBufferRangeEXT", glTextureBufferRangeEXT == NULL);
 
2161
}
 
2162
 
 
2163
#endif /* GL_ARB_texture_buffer_range */
 
2164
 
1942
2165
#ifdef GL_ARB_texture_compression
1943
2166
 
1944
2167
static void _glewInfo_GL_ARB_texture_compression (void)
2078
2301
 
2079
2302
#endif /* GL_ARB_texture_non_power_of_two */
2080
2303
 
 
2304
#ifdef GL_ARB_texture_query_levels
 
2305
 
 
2306
static void _glewInfo_GL_ARB_texture_query_levels (void)
 
2307
{
 
2308
  glewPrintExt("GL_ARB_texture_query_levels", GLEW_ARB_texture_query_levels, glewIsSupported("GL_ARB_texture_query_levels"), glewGetExtension("GL_ARB_texture_query_levels"));
 
2309
}
 
2310
 
 
2311
#endif /* GL_ARB_texture_query_levels */
 
2312
 
2081
2313
#ifdef GL_ARB_texture_query_lod
2082
2314
 
2083
2315
static void _glewInfo_GL_ARB_texture_query_lod (void)
2130
2362
 
2131
2363
#endif /* GL_ARB_texture_storage */
2132
2364
 
 
2365
#ifdef GL_ARB_texture_storage_multisample
 
2366
 
 
2367
static void _glewInfo_GL_ARB_texture_storage_multisample (void)
 
2368
{
 
2369
  glewPrintExt("GL_ARB_texture_storage_multisample", GLEW_ARB_texture_storage_multisample, glewIsSupported("GL_ARB_texture_storage_multisample"), glewGetExtension("GL_ARB_texture_storage_multisample"));
 
2370
 
 
2371
  glewInfoFunc("glTexStorage2DMultisample", glTexStorage2DMultisample == NULL);
 
2372
  glewInfoFunc("glTexStorage3DMultisample", glTexStorage3DMultisample == NULL);
 
2373
  glewInfoFunc("glTextureStorage2DMultisampleEXT", glTextureStorage2DMultisampleEXT == NULL);
 
2374
  glewInfoFunc("glTextureStorage3DMultisampleEXT", glTextureStorage3DMultisampleEXT == NULL);
 
2375
}
 
2376
 
 
2377
#endif /* GL_ARB_texture_storage_multisample */
 
2378
 
2133
2379
#ifdef GL_ARB_texture_swizzle
2134
2380
 
2135
2381
static void _glewInfo_GL_ARB_texture_swizzle (void)
2139
2385
 
2140
2386
#endif /* GL_ARB_texture_swizzle */
2141
2387
 
 
2388
#ifdef GL_ARB_texture_view
 
2389
 
 
2390
static void _glewInfo_GL_ARB_texture_view (void)
 
2391
{
 
2392
  glewPrintExt("GL_ARB_texture_view", GLEW_ARB_texture_view, glewIsSupported("GL_ARB_texture_view"), glewGetExtension("GL_ARB_texture_view"));
 
2393
 
 
2394
  glewInfoFunc("glTextureView", glTextureView == NULL);
 
2395
}
 
2396
 
 
2397
#endif /* GL_ARB_texture_view */
 
2398
 
2142
2399
#ifdef GL_ARB_timer_query
2143
2400
 
2144
2401
static void _glewInfo_GL_ARB_timer_query (void)
2272
2529
 
2273
2530
#endif /* GL_ARB_vertex_attrib_64bit */
2274
2531
 
 
2532
#ifdef GL_ARB_vertex_attrib_binding
 
2533
 
 
2534
static void _glewInfo_GL_ARB_vertex_attrib_binding (void)
 
2535
{
 
2536
  glewPrintExt("GL_ARB_vertex_attrib_binding", GLEW_ARB_vertex_attrib_binding, glewIsSupported("GL_ARB_vertex_attrib_binding"), glewGetExtension("GL_ARB_vertex_attrib_binding"));
 
2537
 
 
2538
  glewInfoFunc("glBindVertexBuffer", glBindVertexBuffer == NULL);
 
2539
  glewInfoFunc("glVertexAttribBinding", glVertexAttribBinding == NULL);
 
2540
  glewInfoFunc("glVertexAttribFormat", glVertexAttribFormat == NULL);
 
2541
  glewInfoFunc("glVertexAttribIFormat", glVertexAttribIFormat == NULL);
 
2542
  glewInfoFunc("glVertexAttribLFormat", glVertexAttribLFormat == NULL);
 
2543
  glewInfoFunc("glVertexBindingDivisor", glVertexBindingDivisor == NULL);
 
2544
}
 
2545
 
 
2546
#endif /* GL_ARB_vertex_attrib_binding */
 
2547
 
2275
2548
#ifdef GL_ARB_vertex_blend
2276
2549
 
2277
2550
static void _glewInfo_GL_ARB_vertex_blend (void)
2994
3267
 
2995
3268
#endif /* GL_EXT_cull_vertex */
2996
3269
 
 
3270
#ifdef GL_EXT_debug_marker
 
3271
 
 
3272
static void _glewInfo_GL_EXT_debug_marker (void)
 
3273
{
 
3274
  glewPrintExt("GL_EXT_debug_marker", GLEW_EXT_debug_marker, glewIsSupported("GL_EXT_debug_marker"), glewGetExtension("GL_EXT_debug_marker"));
 
3275
 
 
3276
  glewInfoFunc("glInsertEventMarkerEXT", glInsertEventMarkerEXT == NULL);
 
3277
  glewInfoFunc("glPopGroupMarkerEXT", glPopGroupMarkerEXT == NULL);
 
3278
  glewInfoFunc("glPushGroupMarkerEXT", glPushGroupMarkerEXT == NULL);
 
3279
}
 
3280
 
 
3281
#endif /* GL_EXT_debug_marker */
 
3282
 
2997
3283
#ifdef GL_EXT_depth_bounds_test
2998
3284
 
2999
3285
static void _glewInfo_GL_EXT_depth_bounds_test (void)
4404
4690
 
4405
4691
#endif /* GL_INTEL_texture_scissor */
4406
4692
 
 
4693
#ifdef GL_KHR_debug
 
4694
 
 
4695
static void _glewInfo_GL_KHR_debug (void)
 
4696
{
 
4697
  glewPrintExt("GL_KHR_debug", GLEW_KHR_debug, glewIsSupported("GL_KHR_debug"), glewGetExtension("GL_KHR_debug"));
 
4698
 
 
4699
  glewInfoFunc("glDebugMessageCallback", glDebugMessageCallback == NULL);
 
4700
  glewInfoFunc("glDebugMessageControl", glDebugMessageControl == NULL);
 
4701
  glewInfoFunc("glDebugMessageInsert", glDebugMessageInsert == NULL);
 
4702
  glewInfoFunc("glGetDebugMessageLog", glGetDebugMessageLog == NULL);
 
4703
  glewInfoFunc("glGetObjectLabel", glGetObjectLabel == NULL);
 
4704
  glewInfoFunc("glGetObjectPtrLabel", glGetObjectPtrLabel == NULL);
 
4705
  glewInfoFunc("glGetPointerv", glGetPointerv == NULL);
 
4706
  glewInfoFunc("glObjectLabel", glObjectLabel == NULL);
 
4707
  glewInfoFunc("glObjectPtrLabel", glObjectPtrLabel == NULL);
 
4708
  glewInfoFunc("glPushDebugGroup", glPushDebugGroup == NULL);
 
4709
}
 
4710
 
 
4711
#endif /* GL_KHR_debug */
 
4712
 
 
4713
#ifdef GL_KHR_texture_compression_astc_ldr
 
4714
 
 
4715
static void _glewInfo_GL_KHR_texture_compression_astc_ldr (void)
 
4716
{
 
4717
  glewPrintExt("GL_KHR_texture_compression_astc_ldr", GLEW_KHR_texture_compression_astc_ldr, glewIsSupported("GL_KHR_texture_compression_astc_ldr"), glewGetExtension("GL_KHR_texture_compression_astc_ldr"));
 
4718
}
 
4719
 
 
4720
#endif /* GL_KHR_texture_compression_astc_ldr */
 
4721
 
4407
4722
#ifdef GL_KTX_buffer_region
4408
4723
 
4409
4724
static void _glewInfo_GL_KTX_buffer_region (void)
5605
5920
 
5606
5921
#endif /* GL_PGI_vertex_hints */
5607
5922
 
 
5923
#ifdef GL_REGAL_error_string
 
5924
 
 
5925
static void _glewInfo_GL_REGAL_error_string (void)
 
5926
{
 
5927
  glewPrintExt("GL_REGAL_error_string", GLEW_REGAL_error_string, glewIsSupported("GL_REGAL_error_string"), glewGetExtension("GL_REGAL_error_string"));
 
5928
 
 
5929
  glewInfoFunc("glErrorStringREGAL", glErrorStringREGAL == NULL);
 
5930
}
 
5931
 
 
5932
#endif /* GL_REGAL_error_string */
 
5933
 
 
5934
#ifdef GL_REGAL_extension_query
 
5935
 
 
5936
static void _glewInfo_GL_REGAL_extension_query (void)
 
5937
{
 
5938
  glewPrintExt("GL_REGAL_extension_query", GLEW_REGAL_extension_query, glewIsSupported("GL_REGAL_extension_query"), glewGetExtension("GL_REGAL_extension_query"));
 
5939
 
 
5940
  glewInfoFunc("glGetExtensionREGAL", glGetExtensionREGAL == NULL);
 
5941
  glewInfoFunc("glIsSupportedREGAL", glIsSupportedREGAL == NULL);
 
5942
}
 
5943
 
 
5944
#endif /* GL_REGAL_extension_query */
 
5945
 
 
5946
#ifdef GL_REGAL_log
 
5947
 
 
5948
static void _glewInfo_GL_REGAL_log (void)
 
5949
{
 
5950
  glewPrintExt("GL_REGAL_log", GLEW_REGAL_log, glewIsSupported("GL_REGAL_log"), glewGetExtension("GL_REGAL_log"));
 
5951
}
 
5952
 
 
5953
#endif /* GL_REGAL_log */
 
5954
 
5608
5955
#ifdef GL_REND_screen_coordinates
5609
5956
 
5610
5957
static void _glewInfo_GL_REND_screen_coordinates (void)
6497
6844
 
6498
6845
#endif /* WGL_EXT_create_context_es2_profile */
6499
6846
 
 
6847
#ifdef WGL_EXT_create_context_es_profile
 
6848
 
 
6849
static void _glewInfo_WGL_EXT_create_context_es_profile (void)
 
6850
{
 
6851
  glewPrintExt("WGL_EXT_create_context_es_profile", WGLEW_EXT_create_context_es_profile, wglewIsSupported("WGL_EXT_create_context_es_profile"), wglewGetExtension("WGL_EXT_create_context_es_profile"));
 
6852
}
 
6853
 
 
6854
#endif /* WGL_EXT_create_context_es_profile */
 
6855
 
6500
6856
#ifdef WGL_EXT_depth_float
6501
6857
 
6502
6858
static void _glewInfo_WGL_EXT_depth_float (void)
7018
7374
 
7019
7375
#endif /* GLX_ARB_multisample */
7020
7376
 
 
7377
#ifdef GLX_ARB_robustness_application_isolation
 
7378
 
 
7379
static void _glewInfo_GLX_ARB_robustness_application_isolation (void)
 
7380
{
 
7381
  glewPrintExt("GLX_ARB_robustness_application_isolation", GLXEW_ARB_robustness_application_isolation, glxewIsSupported("GLX_ARB_robustness_application_isolation"), glxewGetExtension("GLX_ARB_robustness_application_isolation"));
 
7382
}
 
7383
 
 
7384
#endif /* GLX_ARB_robustness_application_isolation */
 
7385
 
 
7386
#ifdef GLX_ARB_robustness_share_group_isolation
 
7387
 
 
7388
static void _glewInfo_GLX_ARB_robustness_share_group_isolation (void)
 
7389
{
 
7390
  glewPrintExt("GLX_ARB_robustness_share_group_isolation", GLXEW_ARB_robustness_share_group_isolation, glxewIsSupported("GLX_ARB_robustness_share_group_isolation"), glxewGetExtension("GLX_ARB_robustness_share_group_isolation"));
 
7391
}
 
7392
 
 
7393
#endif /* GLX_ARB_robustness_share_group_isolation */
 
7394
 
7021
7395
#ifdef GLX_ARB_vertex_buffer_object
7022
7396
 
7023
7397
static void _glewInfo_GLX_ARB_vertex_buffer_object (void)
7058
7432
 
7059
7433
#endif /* GLX_EXT_create_context_es2_profile */
7060
7434
 
 
7435
#ifdef GLX_EXT_create_context_es_profile
 
7436
 
 
7437
static void _glewInfo_GLX_EXT_create_context_es_profile (void)
 
7438
{
 
7439
  glewPrintExt("GLX_EXT_create_context_es_profile", GLXEW_EXT_create_context_es_profile, glxewIsSupported("GLX_EXT_create_context_es_profile"), glxewGetExtension("GLX_EXT_create_context_es_profile"));
 
7440
}
 
7441
 
 
7442
#endif /* GLX_EXT_create_context_es_profile */
 
7443
 
7061
7444
#ifdef GLX_EXT_fbconfig_packed_float
7062
7445
 
7063
7446
static void _glewInfo_GLX_EXT_fbconfig_packed_float (void)
7601
7984
#ifdef GL_VERSION_4_2
7602
7985
  _glewInfo_GL_VERSION_4_2();
7603
7986
#endif /* GL_VERSION_4_2 */
 
7987
#ifdef GL_VERSION_4_3
 
7988
  _glewInfo_GL_VERSION_4_3();
 
7989
#endif /* GL_VERSION_4_3 */
7604
7990
#ifdef GL_3DFX_multisample
7605
7991
  _glewInfo_GL_3DFX_multisample();
7606
7992
#endif /* GL_3DFX_multisample */
7721
8107
#ifdef GL_ARB_ES2_compatibility
7722
8108
  _glewInfo_GL_ARB_ES2_compatibility();
7723
8109
#endif /* GL_ARB_ES2_compatibility */
 
8110
#ifdef GL_ARB_ES3_compatibility
 
8111
  _glewInfo_GL_ARB_ES3_compatibility();
 
8112
#endif /* GL_ARB_ES3_compatibility */
 
8113
#ifdef GL_ARB_arrays_of_arrays
 
8114
  _glewInfo_GL_ARB_arrays_of_arrays();
 
8115
#endif /* GL_ARB_arrays_of_arrays */
7724
8116
#ifdef GL_ARB_base_instance
7725
8117
  _glewInfo_GL_ARB_base_instance();
7726
8118
#endif /* GL_ARB_base_instance */
7730
8122
#ifdef GL_ARB_cl_event
7731
8123
  _glewInfo_GL_ARB_cl_event();
7732
8124
#endif /* GL_ARB_cl_event */
 
8125
#ifdef GL_ARB_clear_buffer_object
 
8126
  _glewInfo_GL_ARB_clear_buffer_object();
 
8127
#endif /* GL_ARB_clear_buffer_object */
7733
8128
#ifdef GL_ARB_color_buffer_float
7734
8129
  _glewInfo_GL_ARB_color_buffer_float();
7735
8130
#endif /* GL_ARB_color_buffer_float */
7739
8134
#ifdef GL_ARB_compressed_texture_pixel_storage
7740
8135
  _glewInfo_GL_ARB_compressed_texture_pixel_storage();
7741
8136
#endif /* GL_ARB_compressed_texture_pixel_storage */
 
8137
#ifdef GL_ARB_compute_shader
 
8138
  _glewInfo_GL_ARB_compute_shader();
 
8139
#endif /* GL_ARB_compute_shader */
7742
8140
#ifdef GL_ARB_conservative_depth
7743
8141
  _glewInfo_GL_ARB_conservative_depth();
7744
8142
#endif /* GL_ARB_conservative_depth */
7745
8143
#ifdef GL_ARB_copy_buffer
7746
8144
  _glewInfo_GL_ARB_copy_buffer();
7747
8145
#endif /* GL_ARB_copy_buffer */
 
8146
#ifdef GL_ARB_copy_image
 
8147
  _glewInfo_GL_ARB_copy_image();
 
8148
#endif /* GL_ARB_copy_image */
7748
8149
#ifdef GL_ARB_debug_output
7749
8150
  _glewInfo_GL_ARB_debug_output();
7750
8151
#endif /* GL_ARB_debug_output */
7775
8176
#ifdef GL_ARB_explicit_attrib_location
7776
8177
  _glewInfo_GL_ARB_explicit_attrib_location();
7777
8178
#endif /* GL_ARB_explicit_attrib_location */
 
8179
#ifdef GL_ARB_explicit_uniform_location
 
8180
  _glewInfo_GL_ARB_explicit_uniform_location();
 
8181
#endif /* GL_ARB_explicit_uniform_location */
7778
8182
#ifdef GL_ARB_fragment_coord_conventions
7779
8183
  _glewInfo_GL_ARB_fragment_coord_conventions();
7780
8184
#endif /* GL_ARB_fragment_coord_conventions */
 
8185
#ifdef GL_ARB_fragment_layer_viewport
 
8186
  _glewInfo_GL_ARB_fragment_layer_viewport();
 
8187
#endif /* GL_ARB_fragment_layer_viewport */
7781
8188
#ifdef GL_ARB_fragment_program
7782
8189
  _glewInfo_GL_ARB_fragment_program();
7783
8190
#endif /* GL_ARB_fragment_program */
7787
8194
#ifdef GL_ARB_fragment_shader
7788
8195
  _glewInfo_GL_ARB_fragment_shader();
7789
8196
#endif /* GL_ARB_fragment_shader */
 
8197
#ifdef GL_ARB_framebuffer_no_attachments
 
8198
  _glewInfo_GL_ARB_framebuffer_no_attachments();
 
8199
#endif /* GL_ARB_framebuffer_no_attachments */
7790
8200
#ifdef GL_ARB_framebuffer_object
7791
8201
  _glewInfo_GL_ARB_framebuffer_object();
7792
8202
#endif /* GL_ARB_framebuffer_object */
7820
8230
#ifdef GL_ARB_internalformat_query
7821
8231
  _glewInfo_GL_ARB_internalformat_query();
7822
8232
#endif /* GL_ARB_internalformat_query */
 
8233
#ifdef GL_ARB_internalformat_query2
 
8234
  _glewInfo_GL_ARB_internalformat_query2();
 
8235
#endif /* GL_ARB_internalformat_query2 */
 
8236
#ifdef GL_ARB_invalidate_subdata
 
8237
  _glewInfo_GL_ARB_invalidate_subdata();
 
8238
#endif /* GL_ARB_invalidate_subdata */
7823
8239
#ifdef GL_ARB_map_buffer_alignment
7824
8240
  _glewInfo_GL_ARB_map_buffer_alignment();
7825
8241
#endif /* GL_ARB_map_buffer_alignment */
7829
8245
#ifdef GL_ARB_matrix_palette
7830
8246
  _glewInfo_GL_ARB_matrix_palette();
7831
8247
#endif /* GL_ARB_matrix_palette */
 
8248
#ifdef GL_ARB_multi_draw_indirect
 
8249
  _glewInfo_GL_ARB_multi_draw_indirect();
 
8250
#endif /* GL_ARB_multi_draw_indirect */
7832
8251
#ifdef GL_ARB_multisample
7833
8252
  _glewInfo_GL_ARB_multisample();
7834
8253
#endif /* GL_ARB_multisample */
7850
8269
#ifdef GL_ARB_point_sprite
7851
8270
  _glewInfo_GL_ARB_point_sprite();
7852
8271
#endif /* GL_ARB_point_sprite */
 
8272
#ifdef GL_ARB_program_interface_query
 
8273
  _glewInfo_GL_ARB_program_interface_query();
 
8274
#endif /* GL_ARB_program_interface_query */
7853
8275
#ifdef GL_ARB_provoking_vertex
7854
8276
  _glewInfo_GL_ARB_provoking_vertex();
7855
8277
#endif /* GL_ARB_provoking_vertex */
 
8278
#ifdef GL_ARB_robust_buffer_access_behavior
 
8279
  _glewInfo_GL_ARB_robust_buffer_access_behavior();
 
8280
#endif /* GL_ARB_robust_buffer_access_behavior */
7856
8281
#ifdef GL_ARB_robustness
7857
8282
  _glewInfo_GL_ARB_robustness();
7858
8283
#endif /* GL_ARB_robustness */
 
8284
#ifdef GL_ARB_robustness_application_isolation
 
8285
  _glewInfo_GL_ARB_robustness_application_isolation();
 
8286
#endif /* GL_ARB_robustness_application_isolation */
 
8287
#ifdef GL_ARB_robustness_share_group_isolation
 
8288
  _glewInfo_GL_ARB_robustness_share_group_isolation();
 
8289
#endif /* GL_ARB_robustness_share_group_isolation */
7859
8290
#ifdef GL_ARB_sample_shading
7860
8291
  _glewInfo_GL_ARB_sample_shading();
7861
8292
#endif /* GL_ARB_sample_shading */
7877
8308
#ifdef GL_ARB_shader_image_load_store
7878
8309
  _glewInfo_GL_ARB_shader_image_load_store();
7879
8310
#endif /* GL_ARB_shader_image_load_store */
 
8311
#ifdef GL_ARB_shader_image_size
 
8312
  _glewInfo_GL_ARB_shader_image_size();
 
8313
#endif /* GL_ARB_shader_image_size */
7880
8314
#ifdef GL_ARB_shader_objects
7881
8315
  _glewInfo_GL_ARB_shader_objects();
7882
8316
#endif /* GL_ARB_shader_objects */
7886
8320
#ifdef GL_ARB_shader_stencil_export
7887
8321
  _glewInfo_GL_ARB_shader_stencil_export();
7888
8322
#endif /* GL_ARB_shader_stencil_export */
 
8323
#ifdef GL_ARB_shader_storage_buffer_object
 
8324
  _glewInfo_GL_ARB_shader_storage_buffer_object();
 
8325
#endif /* GL_ARB_shader_storage_buffer_object */
7889
8326
#ifdef GL_ARB_shader_subroutine
7890
8327
  _glewInfo_GL_ARB_shader_subroutine();
7891
8328
#endif /* GL_ARB_shader_subroutine */
7910
8347
#ifdef GL_ARB_shadow_ambient
7911
8348
  _glewInfo_GL_ARB_shadow_ambient();
7912
8349
#endif /* GL_ARB_shadow_ambient */
 
8350
#ifdef GL_ARB_stencil_texturing
 
8351
  _glewInfo_GL_ARB_stencil_texturing();
 
8352
#endif /* GL_ARB_stencil_texturing */
7913
8353
#ifdef GL_ARB_sync
7914
8354
  _glewInfo_GL_ARB_sync();
7915
8355
#endif /* GL_ARB_sync */
7925
8365
#ifdef GL_ARB_texture_buffer_object_rgb32
7926
8366
  _glewInfo_GL_ARB_texture_buffer_object_rgb32();
7927
8367
#endif /* GL_ARB_texture_buffer_object_rgb32 */
 
8368
#ifdef GL_ARB_texture_buffer_range
 
8369
  _glewInfo_GL_ARB_texture_buffer_range();
 
8370
#endif /* GL_ARB_texture_buffer_range */
7928
8371
#ifdef GL_ARB_texture_compression
7929
8372
  _glewInfo_GL_ARB_texture_compression();
7930
8373
#endif /* GL_ARB_texture_compression */
7967
8410
#ifdef GL_ARB_texture_non_power_of_two
7968
8411
  _glewInfo_GL_ARB_texture_non_power_of_two();
7969
8412
#endif /* GL_ARB_texture_non_power_of_two */
 
8413
#ifdef GL_ARB_texture_query_levels
 
8414
  _glewInfo_GL_ARB_texture_query_levels();
 
8415
#endif /* GL_ARB_texture_query_levels */
7970
8416
#ifdef GL_ARB_texture_query_lod
7971
8417
  _glewInfo_GL_ARB_texture_query_lod();
7972
8418
#endif /* GL_ARB_texture_query_lod */
7982
8428
#ifdef GL_ARB_texture_storage
7983
8429
  _glewInfo_GL_ARB_texture_storage();
7984
8430
#endif /* GL_ARB_texture_storage */
 
8431
#ifdef GL_ARB_texture_storage_multisample
 
8432
  _glewInfo_GL_ARB_texture_storage_multisample();
 
8433
#endif /* GL_ARB_texture_storage_multisample */
7985
8434
#ifdef GL_ARB_texture_swizzle
7986
8435
  _glewInfo_GL_ARB_texture_swizzle();
7987
8436
#endif /* GL_ARB_texture_swizzle */
 
8437
#ifdef GL_ARB_texture_view
 
8438
  _glewInfo_GL_ARB_texture_view();
 
8439
#endif /* GL_ARB_texture_view */
7988
8440
#ifdef GL_ARB_timer_query
7989
8441
  _glewInfo_GL_ARB_timer_query();
7990
8442
#endif /* GL_ARB_timer_query */
8012
8464
#ifdef GL_ARB_vertex_attrib_64bit
8013
8465
  _glewInfo_GL_ARB_vertex_attrib_64bit();
8014
8466
#endif /* GL_ARB_vertex_attrib_64bit */
 
8467
#ifdef GL_ARB_vertex_attrib_binding
 
8468
  _glewInfo_GL_ARB_vertex_attrib_binding();
 
8469
#endif /* GL_ARB_vertex_attrib_binding */
8015
8470
#ifdef GL_ARB_vertex_blend
8016
8471
  _glewInfo_GL_ARB_vertex_blend();
8017
8472
#endif /* GL_ARB_vertex_blend */
8153
8608
#ifdef GL_EXT_cull_vertex
8154
8609
  _glewInfo_GL_EXT_cull_vertex();
8155
8610
#endif /* GL_EXT_cull_vertex */
 
8611
#ifdef GL_EXT_debug_marker
 
8612
  _glewInfo_GL_EXT_debug_marker();
 
8613
#endif /* GL_EXT_debug_marker */
8156
8614
#ifdef GL_EXT_depth_bounds_test
8157
8615
  _glewInfo_GL_EXT_depth_bounds_test();
8158
8616
#endif /* GL_EXT_depth_bounds_test */
8441
8899
#ifdef GL_INTEL_texture_scissor
8442
8900
  _glewInfo_GL_INTEL_texture_scissor();
8443
8901
#endif /* GL_INTEL_texture_scissor */
 
8902
#ifdef GL_KHR_debug
 
8903
  _glewInfo_GL_KHR_debug();
 
8904
#endif /* GL_KHR_debug */
 
8905
#ifdef GL_KHR_texture_compression_astc_ldr
 
8906
  _glewInfo_GL_KHR_texture_compression_astc_ldr();
 
8907
#endif /* GL_KHR_texture_compression_astc_ldr */
8444
8908
#ifdef GL_KTX_buffer_region
8445
8909
  _glewInfo_GL_KTX_buffer_region();
8446
8910
#endif /* GL_KTX_buffer_region */
8690
9154
#ifdef GL_PGI_vertex_hints
8691
9155
  _glewInfo_GL_PGI_vertex_hints();
8692
9156
#endif /* GL_PGI_vertex_hints */
 
9157
#ifdef GL_REGAL_error_string
 
9158
  _glewInfo_GL_REGAL_error_string();
 
9159
#endif /* GL_REGAL_error_string */
 
9160
#ifdef GL_REGAL_extension_query
 
9161
  _glewInfo_GL_REGAL_extension_query();
 
9162
#endif /* GL_REGAL_extension_query */
 
9163
#ifdef GL_REGAL_log
 
9164
  _glewInfo_GL_REGAL_log();
 
9165
#endif /* GL_REGAL_log */
8693
9166
#ifdef GL_REND_screen_coordinates
8694
9167
  _glewInfo_GL_REND_screen_coordinates();
8695
9168
#endif /* GL_REND_screen_coordinates */
8938
9411
#ifdef WGL_EXT_create_context_es2_profile
8939
9412
  _glewInfo_WGL_EXT_create_context_es2_profile();
8940
9413
#endif /* WGL_EXT_create_context_es2_profile */
 
9414
#ifdef WGL_EXT_create_context_es_profile
 
9415
  _glewInfo_WGL_EXT_create_context_es_profile();
 
9416
#endif /* WGL_EXT_create_context_es_profile */
8941
9417
#ifdef WGL_EXT_depth_float
8942
9418
  _glewInfo_WGL_EXT_depth_float();
8943
9419
#endif /* WGL_EXT_depth_float */
9073
9549
#ifdef GLX_ARB_multisample
9074
9550
  _glewInfo_GLX_ARB_multisample();
9075
9551
#endif /* GLX_ARB_multisample */
 
9552
#ifdef GLX_ARB_robustness_application_isolation
 
9553
  _glewInfo_GLX_ARB_robustness_application_isolation();
 
9554
#endif /* GLX_ARB_robustness_application_isolation */
 
9555
#ifdef GLX_ARB_robustness_share_group_isolation
 
9556
  _glewInfo_GLX_ARB_robustness_share_group_isolation();
 
9557
#endif /* GLX_ARB_robustness_share_group_isolation */
9076
9558
#ifdef GLX_ARB_vertex_buffer_object
9077
9559
  _glewInfo_GLX_ARB_vertex_buffer_object();
9078
9560
#endif /* GLX_ARB_vertex_buffer_object */
9085
9567
#ifdef GLX_EXT_create_context_es2_profile
9086
9568
  _glewInfo_GLX_EXT_create_context_es2_profile();
9087
9569
#endif /* GLX_EXT_create_context_es2_profile */
 
9570
#ifdef GLX_EXT_create_context_es_profile
 
9571
  _glewInfo_GLX_EXT_create_context_es_profile();
 
9572
#endif /* GLX_EXT_create_context_es_profile */
9088
9573
#ifdef GLX_EXT_fbconfig_packed_float
9089
9574
  _glewInfo_GLX_EXT_fbconfig_packed_float();
9090
9575
#endif /* GLX_EXT_fbconfig_packed_float */
9416
9901
  /*aglSetDrawable(ctx, GetWindowPort(wnd));*/
9417
9902
  octx = aglGetCurrentContext();
9418
9903
  if (GL_FALSE == aglSetCurrentContext(ctx)) return GL_TRUE;
 
9904
  /* Needed for Regal on the Mac */
 
9905
  #if defined(GLEW_REGAL) && defined(__APPLE__)
 
9906
  RegalMakeCurrent(octx);
 
9907
  #endif
9419
9908
  return GL_FALSE;
9420
9909
}
9421
9910