opengl-bindings 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ad50f1b4c62375329e95d02063fcee3c454fc96
4
- data.tar.gz: b1bda637089cc046e4ba139263b8839d74dd3872
3
+ metadata.gz: e9d9bc4c69c0d720dcf26050d8c8471aed80ef2e
4
+ data.tar.gz: 6dda1865a0ff1aeb2a22e001f0ad06684a62734d
5
5
  SHA512:
6
- metadata.gz: 2f7540f11722b0de9429dfbeb25c9e8294df1d37a47b0ba760ba862db4cffea568bba8d7670973a6b92526ed3207f2925fa5583d83f10cf5ceaffe5285ade950
7
- data.tar.gz: 1402f2febc00abefbcbcab3e7f0e7d2cadb2d32b89d5694e93ca62e88a3d3ea4ab29f6fa09a40b590a962ceecfb1b367c628594fad48a60520888d11b31603e2
6
+ metadata.gz: 2fe3df34f9f68441c4f19dafbc2b07d2ada5da919c5d0470ad5a14a44252fc89aa47ea2617db662a90c7f3bd111be1cc6b000e5e8a6ef800f1add658b70ef155
7
+ data.tar.gz: 7aa6d90161e8657c186e6fbe31140e754d67062c0fc6413384fb662c63c72e6758a36868589ccdde7df5aa87ac63b74bc43bd7ebc34e3eaac2163deaa700e6a4
data/ChangeLog CHANGED
@@ -1,3 +1,11 @@
1
+ 2013-12-31 vaiorabbit <https://twitter.com/vaiorabbit>
2
+
3
+ * Updated using latest gl.xml.
4
+
5
+ 2013-12-14 vaiorabbit <https://twitter.com/vaiorabbit>
6
+
7
+ * Updated using latest gl.xml.
8
+
1
9
  2013-11-27 vaiorabbit <https://twitter.com/vaiorabbit>
2
10
 
3
11
  * opengl_ext_command.rb, opengl_ext_enum.rb: Updated using latest gl.xml.
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ...and wrapper code generator.
6
6
 
7
7
  * Created : 2013-08-28
8
- * Last modified : 2013-11-27
8
+ * Last modified : 2013-12-31
9
9
 
10
10
 
11
11
  ## Features ##
@@ -100,7 +100,7 @@ https://github.com/vaiorabbit/ruby-opengl
100
100
  ## Tested Environment ##
101
101
 
102
102
  * Ruby
103
- * ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]
103
+ * ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin13.0.0]
104
104
  * ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
105
105
 
106
106
  * Windows 7 Home Premium, 64-bit (Service Pack 1)
@@ -4665,9 +4665,9 @@ module OpenGL
4665
4665
 
4666
4666
  GL_FUNCTIONS_ARGS_MAP[:glSampleMaski] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
4667
4667
  GL_FUNCTIONS_RETVAL_MAP[:glSampleMaski] = Fiddle::TYPE_VOID
4668
- def glSampleMaski(_index_, _mask_)
4668
+ def glSampleMaski(_maskNumber_, _mask_)
4669
4669
  f = OpenGL::get_command(:glSampleMaski)
4670
- f.call(_index_, _mask_)
4670
+ f.call(_maskNumber_, _mask_)
4671
4671
  end
4672
4672
 
4673
4673
  GL_FUNCTIONS_ARGS_MAP[:glBindFragDataLocationIndexed] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
data/lib/opengl_enum.rb CHANGED
@@ -1450,6 +1450,10 @@ module OpenGL
1450
1450
  GL_MAX_GEOMETRY_IMAGE_UNIFORMS = 0x90CD
1451
1451
  GL_MAX_FRAGMENT_IMAGE_UNIFORMS = 0x90CE
1452
1452
  GL_MAX_COMBINED_IMAGE_UNIFORMS = 0x90CF
1453
+ GL_COMPRESSED_RGBA_BPTC_UNORM = 0x8E8C
1454
+ GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM = 0x8E8D
1455
+ GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT = 0x8E8E
1456
+ GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT = 0x8E8F
1453
1457
  GL_TEXTURE_IMMUTABLE_FORMAT = 0x912F
1454
1458
  GL_NUM_SHADING_LANGUAGE_VERSIONS = 0x82E9
1455
1459
  GL_VERTEX_ATTRIB_ARRAY_LONG = 0x874E
@@ -1309,6 +1309,98 @@ module OpenGL
1309
1309
  def define_command_GL_IMG_texture_compression_pvrtc2
1310
1310
  end # define_command_GL_IMG_texture_compression_pvrtc2
1311
1311
 
1312
+ def define_command_GL_INTEL_performance_query
1313
+ GL_FUNCTIONS_ARGS_MAP[:glBeginPerfQueryINTEL] = [-Fiddle::TYPE_INT]
1314
+ GL_FUNCTIONS_RETVAL_MAP[:glBeginPerfQueryINTEL] = Fiddle::TYPE_VOID
1315
+ module_eval(<<-SRC_GL_INTEL_performance_query)
1316
+ def glBeginPerfQueryINTEL(_queryHandle_)
1317
+ f = OpenGL::get_command(:glBeginPerfQueryINTEL)
1318
+ f.call(_queryHandle_)
1319
+ end
1320
+ SRC_GL_INTEL_performance_query
1321
+
1322
+ GL_FUNCTIONS_ARGS_MAP[:glCreatePerfQueryINTEL] = [-Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
1323
+ GL_FUNCTIONS_RETVAL_MAP[:glCreatePerfQueryINTEL] = Fiddle::TYPE_VOID
1324
+ module_eval(<<-SRC_GL_INTEL_performance_query)
1325
+ def glCreatePerfQueryINTEL(_queryId_, _queryHandle_)
1326
+ f = OpenGL::get_command(:glCreatePerfQueryINTEL)
1327
+ f.call(_queryId_, _queryHandle_)
1328
+ end
1329
+ SRC_GL_INTEL_performance_query
1330
+
1331
+ GL_FUNCTIONS_ARGS_MAP[:glDeletePerfQueryINTEL] = [-Fiddle::TYPE_INT]
1332
+ GL_FUNCTIONS_RETVAL_MAP[:glDeletePerfQueryINTEL] = Fiddle::TYPE_VOID
1333
+ module_eval(<<-SRC_GL_INTEL_performance_query)
1334
+ def glDeletePerfQueryINTEL(_queryHandle_)
1335
+ f = OpenGL::get_command(:glDeletePerfQueryINTEL)
1336
+ f.call(_queryHandle_)
1337
+ end
1338
+ SRC_GL_INTEL_performance_query
1339
+
1340
+ GL_FUNCTIONS_ARGS_MAP[:glEndPerfQueryINTEL] = [-Fiddle::TYPE_INT]
1341
+ GL_FUNCTIONS_RETVAL_MAP[:glEndPerfQueryINTEL] = Fiddle::TYPE_VOID
1342
+ module_eval(<<-SRC_GL_INTEL_performance_query)
1343
+ def glEndPerfQueryINTEL(_queryHandle_)
1344
+ f = OpenGL::get_command(:glEndPerfQueryINTEL)
1345
+ f.call(_queryHandle_)
1346
+ end
1347
+ SRC_GL_INTEL_performance_query
1348
+
1349
+ GL_FUNCTIONS_ARGS_MAP[:glGetFirstPerfQueryIdINTEL] = [Fiddle::TYPE_VOIDP]
1350
+ GL_FUNCTIONS_RETVAL_MAP[:glGetFirstPerfQueryIdINTEL] = Fiddle::TYPE_VOID
1351
+ module_eval(<<-SRC_GL_INTEL_performance_query)
1352
+ def glGetFirstPerfQueryIdINTEL(_queryId_)
1353
+ f = OpenGL::get_command(:glGetFirstPerfQueryIdINTEL)
1354
+ f.call(_queryId_)
1355
+ end
1356
+ SRC_GL_INTEL_performance_query
1357
+
1358
+ GL_FUNCTIONS_ARGS_MAP[:glGetNextPerfQueryIdINTEL] = [-Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
1359
+ GL_FUNCTIONS_RETVAL_MAP[:glGetNextPerfQueryIdINTEL] = Fiddle::TYPE_VOID
1360
+ module_eval(<<-SRC_GL_INTEL_performance_query)
1361
+ def glGetNextPerfQueryIdINTEL(_queryId_, _nextQueryId_)
1362
+ f = OpenGL::get_command(:glGetNextPerfQueryIdINTEL)
1363
+ f.call(_queryId_, _nextQueryId_)
1364
+ end
1365
+ SRC_GL_INTEL_performance_query
1366
+
1367
+ GL_FUNCTIONS_ARGS_MAP[:glGetPerfCounterInfoINTEL] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP]
1368
+ GL_FUNCTIONS_RETVAL_MAP[:glGetPerfCounterInfoINTEL] = Fiddle::TYPE_VOID
1369
+ module_eval(<<-SRC_GL_INTEL_performance_query)
1370
+ def glGetPerfCounterInfoINTEL(_queryId_, _counterId_, _counterNameLength_, _counterName_, _counterDescLength_, _counterDesc_, _counterOffset_, _counterDataSize_, _counterTypeEnum_, _counterDataTypeEnum_, _rawCounterMaxValue_)
1371
+ f = OpenGL::get_command(:glGetPerfCounterInfoINTEL)
1372
+ f.call(_queryId_, _counterId_, _counterNameLength_, _counterName_, _counterDescLength_, _counterDesc_, _counterOffset_, _counterDataSize_, _counterTypeEnum_, _counterDataTypeEnum_, _rawCounterMaxValue_)
1373
+ end
1374
+ SRC_GL_INTEL_performance_query
1375
+
1376
+ GL_FUNCTIONS_ARGS_MAP[:glGetPerfQueryDataINTEL] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP]
1377
+ GL_FUNCTIONS_RETVAL_MAP[:glGetPerfQueryDataINTEL] = Fiddle::TYPE_VOID
1378
+ module_eval(<<-SRC_GL_INTEL_performance_query)
1379
+ def glGetPerfQueryDataINTEL(_queryHandle_, _flags_, _dataSize_, _data_, _bytesWritten_)
1380
+ f = OpenGL::get_command(:glGetPerfQueryDataINTEL)
1381
+ f.call(_queryHandle_, _flags_, _dataSize_, _data_, _bytesWritten_)
1382
+ end
1383
+ SRC_GL_INTEL_performance_query
1384
+
1385
+ GL_FUNCTIONS_ARGS_MAP[:glGetPerfQueryIdByNameINTEL] = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP]
1386
+ GL_FUNCTIONS_RETVAL_MAP[:glGetPerfQueryIdByNameINTEL] = Fiddle::TYPE_VOID
1387
+ module_eval(<<-SRC_GL_INTEL_performance_query)
1388
+ def glGetPerfQueryIdByNameINTEL(_queryName_, _queryId_)
1389
+ f = OpenGL::get_command(:glGetPerfQueryIdByNameINTEL)
1390
+ f.call(_queryName_, _queryId_)
1391
+ end
1392
+ SRC_GL_INTEL_performance_query
1393
+
1394
+ GL_FUNCTIONS_ARGS_MAP[:glGetPerfQueryInfoINTEL] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP]
1395
+ GL_FUNCTIONS_RETVAL_MAP[:glGetPerfQueryInfoINTEL] = Fiddle::TYPE_VOID
1396
+ module_eval(<<-SRC_GL_INTEL_performance_query)
1397
+ def glGetPerfQueryInfoINTEL(_queryId_, _queryNameLength_, _queryName_, _dataSize_, _noCounters_, _noInstances_, _capsMask_)
1398
+ f = OpenGL::get_command(:glGetPerfQueryInfoINTEL)
1399
+ f.call(_queryId_, _queryNameLength_, _queryName_, _dataSize_, _noCounters_, _noInstances_, _capsMask_)
1400
+ end
1401
+ SRC_GL_INTEL_performance_query
1402
+ end # define_command_GL_INTEL_performance_query
1403
+
1312
1404
  def define_command_GL_KHR_debug
1313
1405
  GL_FUNCTIONS_ARGS_MAP[:glDebugMessageControl] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP, -Fiddle::TYPE_CHAR]
1314
1406
  GL_FUNCTIONS_RETVAL_MAP[:glDebugMessageControl] = Fiddle::TYPE_VOID
@@ -439,6 +439,29 @@ module OpenGL
439
439
  const_set('GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG', 0x9138) unless defined?(GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG)
440
440
  end # define_enum_GL_IMG_texture_compression_pvrtc2
441
441
 
442
+ def define_enum_GL_INTEL_performance_query
443
+ const_set('GL_PERFQUERY_SINGLE_CONTEXT_INTEL', 0x00000000) unless defined?(GL_PERFQUERY_SINGLE_CONTEXT_INTEL)
444
+ const_set('GL_PERFQUERY_GLOBAL_CONTEXT_INTEL', 0x00000001) unless defined?(GL_PERFQUERY_GLOBAL_CONTEXT_INTEL)
445
+ const_set('GL_PERFQUERY_WAIT_INTEL', 0x83FB) unless defined?(GL_PERFQUERY_WAIT_INTEL)
446
+ const_set('GL_PERFQUERY_FLUSH_INTEL', 0x83FA) unless defined?(GL_PERFQUERY_FLUSH_INTEL)
447
+ const_set('GL_PERFQUERY_DONOT_FLUSH_INTEL', 0x83F9) unless defined?(GL_PERFQUERY_DONOT_FLUSH_INTEL)
448
+ const_set('GL_PERFQUERY_COUNTER_EVENT_INTEL', 0x94F0) unless defined?(GL_PERFQUERY_COUNTER_EVENT_INTEL)
449
+ const_set('GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL', 0x94F1) unless defined?(GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL)
450
+ const_set('GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL', 0x94F2) unless defined?(GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL)
451
+ const_set('GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL', 0x94F3) unless defined?(GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL)
452
+ const_set('GL_PERFQUERY_COUNTER_RAW_INTEL', 0x94F4) unless defined?(GL_PERFQUERY_COUNTER_RAW_INTEL)
453
+ const_set('GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL', 0x94F5) unless defined?(GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL)
454
+ const_set('GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL', 0x94F8) unless defined?(GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL)
455
+ const_set('GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL', 0x94F9) unless defined?(GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL)
456
+ const_set('GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL', 0x94FA) unless defined?(GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL)
457
+ const_set('GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL', 0x94FB) unless defined?(GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL)
458
+ const_set('GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL', 0x94FC) unless defined?(GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL)
459
+ const_set('GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL', 0x94FD) unless defined?(GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL)
460
+ const_set('GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL', 0x94FE) unless defined?(GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL)
461
+ const_set('GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL', 0x94FF) unless defined?(GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL)
462
+ const_set('GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL', 0x9500) unless defined?(GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL)
463
+ end # define_enum_GL_INTEL_performance_query
464
+
442
465
  def define_enum_GL_KHR_debug
443
466
  const_set('GL_DEBUG_OUTPUT_SYNCHRONOUS', 0x8242) unless defined?(GL_DEBUG_OUTPUT_SYNCHRONOUS)
444
467
  const_set('GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH', 0x8243) unless defined?(GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH)
@@ -955,6 +978,26 @@ module OpenGL
955
978
  const_set('GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR', 0x93DB) unless defined?(GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR)
956
979
  const_set('GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR', 0x93DC) unless defined?(GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR)
957
980
  const_set('GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR', 0x93DD) unless defined?(GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR)
981
+ const_set('GL_COMPRESSED_RGBA_ASTC_3x3x3_OES', 0x93C0) unless defined?(GL_COMPRESSED_RGBA_ASTC_3x3x3_OES)
982
+ const_set('GL_COMPRESSED_RGBA_ASTC_4x3x3_OES', 0x93C1) unless defined?(GL_COMPRESSED_RGBA_ASTC_4x3x3_OES)
983
+ const_set('GL_COMPRESSED_RGBA_ASTC_4x4x3_OES', 0x93C2) unless defined?(GL_COMPRESSED_RGBA_ASTC_4x4x3_OES)
984
+ const_set('GL_COMPRESSED_RGBA_ASTC_4x4x4_OES', 0x93C3) unless defined?(GL_COMPRESSED_RGBA_ASTC_4x4x4_OES)
985
+ const_set('GL_COMPRESSED_RGBA_ASTC_5x4x4_OES', 0x93C4) unless defined?(GL_COMPRESSED_RGBA_ASTC_5x4x4_OES)
986
+ const_set('GL_COMPRESSED_RGBA_ASTC_5x5x4_OES', 0x93C5) unless defined?(GL_COMPRESSED_RGBA_ASTC_5x5x4_OES)
987
+ const_set('GL_COMPRESSED_RGBA_ASTC_5x5x5_OES', 0x93C6) unless defined?(GL_COMPRESSED_RGBA_ASTC_5x5x5_OES)
988
+ const_set('GL_COMPRESSED_RGBA_ASTC_6x5x5_OES', 0x93C7) unless defined?(GL_COMPRESSED_RGBA_ASTC_6x5x5_OES)
989
+ const_set('GL_COMPRESSED_RGBA_ASTC_6x6x5_OES', 0x93C8) unless defined?(GL_COMPRESSED_RGBA_ASTC_6x6x5_OES)
990
+ const_set('GL_COMPRESSED_RGBA_ASTC_6x6x6_OES', 0x93C9) unless defined?(GL_COMPRESSED_RGBA_ASTC_6x6x6_OES)
991
+ const_set('GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES', 0x93E0) unless defined?(GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES)
992
+ const_set('GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES', 0x93E1) unless defined?(GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES)
993
+ const_set('GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES', 0x93E2) unless defined?(GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES)
994
+ const_set('GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES', 0x93E3) unless defined?(GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES)
995
+ const_set('GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES', 0x93E4) unless defined?(GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES)
996
+ const_set('GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES', 0x93E5) unless defined?(GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES)
997
+ const_set('GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES', 0x93E6) unless defined?(GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES)
998
+ const_set('GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES', 0x93E7) unless defined?(GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES)
999
+ const_set('GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES', 0x93E8) unless defined?(GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES)
1000
+ const_set('GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES', 0x93E9) unless defined?(GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES)
958
1001
  end # define_enum_GL_OES_texture_compression_astc
959
1002
 
960
1003
  def define_enum_GL_OES_texture_float
@@ -4666,9 +4666,9 @@ module OpenGL
4666
4666
  GL_FUNCTIONS_ARGS_MAP[:glSampleMaski] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
4667
4667
  GL_FUNCTIONS_RETVAL_MAP[:glSampleMaski] = Fiddle::TYPE_VOID
4668
4668
  module_eval(<<-SRC_GL_ARB_texture_multisample)
4669
- def glSampleMaski(_index_, _mask_)
4669
+ def glSampleMaski(_maskNumber_, _mask_)
4670
4670
  f = OpenGL::get_command(:glSampleMaski)
4671
- f.call(_index_, _mask_)
4671
+ f.call(_maskNumber_, _mask_)
4672
4672
  end
4673
4673
  SRC_GL_ARB_texture_multisample
4674
4674
  end # define_command_GL_ARB_texture_multisample
@@ -10346,12 +10346,12 @@ module OpenGL
10346
10346
  end
10347
10347
  SRC_GL_EXT_direct_state_access
10348
10348
 
10349
- GL_FUNCTIONS_ARGS_MAP[:glClearNamedBufferSubDataEXT] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_PTRDIFF_T, Fiddle::TYPE_PTRDIFF_T, Fiddle::TYPE_VOIDP]
10349
+ GL_FUNCTIONS_ARGS_MAP[:glClearNamedBufferSubDataEXT] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_PTRDIFF_T, Fiddle::TYPE_PTRDIFF_T, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
10350
10350
  GL_FUNCTIONS_RETVAL_MAP[:glClearNamedBufferSubDataEXT] = Fiddle::TYPE_VOID
10351
10351
  module_eval(<<-SRC_GL_EXT_direct_state_access)
10352
- def glClearNamedBufferSubDataEXT(_buffer_, _internalformat_, _format_, _type_, _offset_, _size_, _data_)
10352
+ def glClearNamedBufferSubDataEXT(_buffer_, _internalformat_, _offset_, _size_, _format_, _type_, _data_)
10353
10353
  f = OpenGL::get_command(:glClearNamedBufferSubDataEXT)
10354
- f.call(_buffer_, _internalformat_, _format_, _type_, _offset_, _size_, _data_)
10354
+ f.call(_buffer_, _internalformat_, _offset_, _size_, _format_, _type_, _data_)
10355
10355
  end
10356
10356
  SRC_GL_EXT_direct_state_access
10357
10357
 
@@ -13290,6 +13290,98 @@ module OpenGL
13290
13290
  SRC_GL_INTEL_parallel_arrays
13291
13291
  end # define_command_GL_INTEL_parallel_arrays
13292
13292
 
13293
+ def define_command_GL_INTEL_performance_query
13294
+ GL_FUNCTIONS_ARGS_MAP[:glBeginPerfQueryINTEL] = [-Fiddle::TYPE_INT]
13295
+ GL_FUNCTIONS_RETVAL_MAP[:glBeginPerfQueryINTEL] = Fiddle::TYPE_VOID
13296
+ module_eval(<<-SRC_GL_INTEL_performance_query)
13297
+ def glBeginPerfQueryINTEL(_queryHandle_)
13298
+ f = OpenGL::get_command(:glBeginPerfQueryINTEL)
13299
+ f.call(_queryHandle_)
13300
+ end
13301
+ SRC_GL_INTEL_performance_query
13302
+
13303
+ GL_FUNCTIONS_ARGS_MAP[:glCreatePerfQueryINTEL] = [-Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
13304
+ GL_FUNCTIONS_RETVAL_MAP[:glCreatePerfQueryINTEL] = Fiddle::TYPE_VOID
13305
+ module_eval(<<-SRC_GL_INTEL_performance_query)
13306
+ def glCreatePerfQueryINTEL(_queryId_, _queryHandle_)
13307
+ f = OpenGL::get_command(:glCreatePerfQueryINTEL)
13308
+ f.call(_queryId_, _queryHandle_)
13309
+ end
13310
+ SRC_GL_INTEL_performance_query
13311
+
13312
+ GL_FUNCTIONS_ARGS_MAP[:glDeletePerfQueryINTEL] = [-Fiddle::TYPE_INT]
13313
+ GL_FUNCTIONS_RETVAL_MAP[:glDeletePerfQueryINTEL] = Fiddle::TYPE_VOID
13314
+ module_eval(<<-SRC_GL_INTEL_performance_query)
13315
+ def glDeletePerfQueryINTEL(_queryHandle_)
13316
+ f = OpenGL::get_command(:glDeletePerfQueryINTEL)
13317
+ f.call(_queryHandle_)
13318
+ end
13319
+ SRC_GL_INTEL_performance_query
13320
+
13321
+ GL_FUNCTIONS_ARGS_MAP[:glEndPerfQueryINTEL] = [-Fiddle::TYPE_INT]
13322
+ GL_FUNCTIONS_RETVAL_MAP[:glEndPerfQueryINTEL] = Fiddle::TYPE_VOID
13323
+ module_eval(<<-SRC_GL_INTEL_performance_query)
13324
+ def glEndPerfQueryINTEL(_queryHandle_)
13325
+ f = OpenGL::get_command(:glEndPerfQueryINTEL)
13326
+ f.call(_queryHandle_)
13327
+ end
13328
+ SRC_GL_INTEL_performance_query
13329
+
13330
+ GL_FUNCTIONS_ARGS_MAP[:glGetFirstPerfQueryIdINTEL] = [Fiddle::TYPE_VOIDP]
13331
+ GL_FUNCTIONS_RETVAL_MAP[:glGetFirstPerfQueryIdINTEL] = Fiddle::TYPE_VOID
13332
+ module_eval(<<-SRC_GL_INTEL_performance_query)
13333
+ def glGetFirstPerfQueryIdINTEL(_queryId_)
13334
+ f = OpenGL::get_command(:glGetFirstPerfQueryIdINTEL)
13335
+ f.call(_queryId_)
13336
+ end
13337
+ SRC_GL_INTEL_performance_query
13338
+
13339
+ GL_FUNCTIONS_ARGS_MAP[:glGetNextPerfQueryIdINTEL] = [-Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
13340
+ GL_FUNCTIONS_RETVAL_MAP[:glGetNextPerfQueryIdINTEL] = Fiddle::TYPE_VOID
13341
+ module_eval(<<-SRC_GL_INTEL_performance_query)
13342
+ def glGetNextPerfQueryIdINTEL(_queryId_, _nextQueryId_)
13343
+ f = OpenGL::get_command(:glGetNextPerfQueryIdINTEL)
13344
+ f.call(_queryId_, _nextQueryId_)
13345
+ end
13346
+ SRC_GL_INTEL_performance_query
13347
+
13348
+ GL_FUNCTIONS_ARGS_MAP[:glGetPerfCounterInfoINTEL] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP]
13349
+ GL_FUNCTIONS_RETVAL_MAP[:glGetPerfCounterInfoINTEL] = Fiddle::TYPE_VOID
13350
+ module_eval(<<-SRC_GL_INTEL_performance_query)
13351
+ def glGetPerfCounterInfoINTEL(_queryId_, _counterId_, _counterNameLength_, _counterName_, _counterDescLength_, _counterDesc_, _counterOffset_, _counterDataSize_, _counterTypeEnum_, _counterDataTypeEnum_, _rawCounterMaxValue_)
13352
+ f = OpenGL::get_command(:glGetPerfCounterInfoINTEL)
13353
+ f.call(_queryId_, _counterId_, _counterNameLength_, _counterName_, _counterDescLength_, _counterDesc_, _counterOffset_, _counterDataSize_, _counterTypeEnum_, _counterDataTypeEnum_, _rawCounterMaxValue_)
13354
+ end
13355
+ SRC_GL_INTEL_performance_query
13356
+
13357
+ GL_FUNCTIONS_ARGS_MAP[:glGetPerfQueryDataINTEL] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP]
13358
+ GL_FUNCTIONS_RETVAL_MAP[:glGetPerfQueryDataINTEL] = Fiddle::TYPE_VOID
13359
+ module_eval(<<-SRC_GL_INTEL_performance_query)
13360
+ def glGetPerfQueryDataINTEL(_queryHandle_, _flags_, _dataSize_, _data_, _bytesWritten_)
13361
+ f = OpenGL::get_command(:glGetPerfQueryDataINTEL)
13362
+ f.call(_queryHandle_, _flags_, _dataSize_, _data_, _bytesWritten_)
13363
+ end
13364
+ SRC_GL_INTEL_performance_query
13365
+
13366
+ GL_FUNCTIONS_ARGS_MAP[:glGetPerfQueryIdByNameINTEL] = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP]
13367
+ GL_FUNCTIONS_RETVAL_MAP[:glGetPerfQueryIdByNameINTEL] = Fiddle::TYPE_VOID
13368
+ module_eval(<<-SRC_GL_INTEL_performance_query)
13369
+ def glGetPerfQueryIdByNameINTEL(_queryName_, _queryId_)
13370
+ f = OpenGL::get_command(:glGetPerfQueryIdByNameINTEL)
13371
+ f.call(_queryName_, _queryId_)
13372
+ end
13373
+ SRC_GL_INTEL_performance_query
13374
+
13375
+ GL_FUNCTIONS_ARGS_MAP[:glGetPerfQueryInfoINTEL] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP]
13376
+ GL_FUNCTIONS_RETVAL_MAP[:glGetPerfQueryInfoINTEL] = Fiddle::TYPE_VOID
13377
+ module_eval(<<-SRC_GL_INTEL_performance_query)
13378
+ def glGetPerfQueryInfoINTEL(_queryId_, _queryNameLength_, _queryName_, _dataSize_, _noCounters_, _noInstances_, _capsMask_)
13379
+ f = OpenGL::get_command(:glGetPerfQueryInfoINTEL)
13380
+ f.call(_queryId_, _queryNameLength_, _queryName_, _dataSize_, _noCounters_, _noInstances_, _capsMask_)
13381
+ end
13382
+ SRC_GL_INTEL_performance_query
13383
+ end # define_command_GL_INTEL_performance_query
13384
+
13293
13385
  def define_command_GL_KHR_debug
13294
13386
  GL_FUNCTIONS_ARGS_MAP[:glDebugMessageControl] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP, -Fiddle::TYPE_CHAR]
13295
13387
  GL_FUNCTIONS_RETVAL_MAP[:glDebugMessageControl] = Fiddle::TYPE_VOID
@@ -3493,6 +3493,29 @@ module OpenGL
3493
3493
  const_set('GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL', 0x83F8) unless defined?(GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL)
3494
3494
  end # define_enum_GL_INTEL_parallel_arrays
3495
3495
 
3496
+ def define_enum_GL_INTEL_performance_query
3497
+ const_set('GL_PERFQUERY_SINGLE_CONTEXT_INTEL', 0x00000000) unless defined?(GL_PERFQUERY_SINGLE_CONTEXT_INTEL)
3498
+ const_set('GL_PERFQUERY_GLOBAL_CONTEXT_INTEL', 0x00000001) unless defined?(GL_PERFQUERY_GLOBAL_CONTEXT_INTEL)
3499
+ const_set('GL_PERFQUERY_WAIT_INTEL', 0x83FB) unless defined?(GL_PERFQUERY_WAIT_INTEL)
3500
+ const_set('GL_PERFQUERY_FLUSH_INTEL', 0x83FA) unless defined?(GL_PERFQUERY_FLUSH_INTEL)
3501
+ const_set('GL_PERFQUERY_DONOT_FLUSH_INTEL', 0x83F9) unless defined?(GL_PERFQUERY_DONOT_FLUSH_INTEL)
3502
+ const_set('GL_PERFQUERY_COUNTER_EVENT_INTEL', 0x94F0) unless defined?(GL_PERFQUERY_COUNTER_EVENT_INTEL)
3503
+ const_set('GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL', 0x94F1) unless defined?(GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL)
3504
+ const_set('GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL', 0x94F2) unless defined?(GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL)
3505
+ const_set('GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL', 0x94F3) unless defined?(GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL)
3506
+ const_set('GL_PERFQUERY_COUNTER_RAW_INTEL', 0x94F4) unless defined?(GL_PERFQUERY_COUNTER_RAW_INTEL)
3507
+ const_set('GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL', 0x94F5) unless defined?(GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL)
3508
+ const_set('GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL', 0x94F8) unless defined?(GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL)
3509
+ const_set('GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL', 0x94F9) unless defined?(GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL)
3510
+ const_set('GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL', 0x94FA) unless defined?(GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL)
3511
+ const_set('GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL', 0x94FB) unless defined?(GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL)
3512
+ const_set('GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL', 0x94FC) unless defined?(GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL)
3513
+ const_set('GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL', 0x94FD) unless defined?(GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL)
3514
+ const_set('GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL', 0x94FE) unless defined?(GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL)
3515
+ const_set('GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL', 0x94FF) unless defined?(GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL)
3516
+ const_set('GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL', 0x9500) unless defined?(GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL)
3517
+ end # define_enum_GL_INTEL_performance_query
3518
+
3496
3519
  def define_enum_GL_KHR_debug
3497
3520
  const_set('GL_DEBUG_OUTPUT_SYNCHRONOUS', 0x8242) unless defined?(GL_DEBUG_OUTPUT_SYNCHRONOUS)
3498
3521
  const_set('GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH', 0x8243) unless defined?(GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opengl-bindings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-26 00:00:00.000000000 Z
11
+ date: 2013-12-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  Ruby bindings for OpenGL 1.0-4.4, OpenGL ES 2.0/3.0 and all extensions using Fiddle (For MRI >= 2.0.0).
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  version: '0'
66
66
  requirements: []
67
67
  rubyforge_project:
68
- rubygems_version: 2.1.10
68
+ rubygems_version: 2.1.11
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: Bindings for OpenGL 1.0-4.4, ES 2.0/3.0 and extensions (For MRI >= 2.0.0)