opengl-bindings 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -337,6 +337,12 @@ module OpenGL
337
337
  const_set('GL_BACK', 0x0405) unless defined?(GL_BACK)
338
338
  end # define_ext_enum_GL_ARB_ES3_1_compatibility
339
339
 
340
+ def define_ext_enum_GL_ARB_ES3_2_compatibility
341
+ const_set('GL_PRIMITIVE_BOUNDING_BOX_ARB', 0x92BE) unless defined?(GL_PRIMITIVE_BOUNDING_BOX_ARB)
342
+ const_set('GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB', 0x9381) unless defined?(GL_MULTISAMPLE_LINE_WIDTH_RANGE_ARB)
343
+ const_set('GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB', 0x9382) unless defined?(GL_MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB)
344
+ end # define_ext_enum_GL_ARB_ES3_2_compatibility
345
+
340
346
  def define_ext_enum_GL_ARB_ES3_compatibility
341
347
  const_set('GL_COMPRESSED_RGB8_ETC2', 0x9274) unless defined?(GL_COMPRESSED_RGB8_ETC2)
342
348
  const_set('GL_COMPRESSED_SRGB8_ETC2', 0x9275) unless defined?(GL_COMPRESSED_SRGB8_ETC2)
@@ -683,6 +689,9 @@ module OpenGL
683
689
  const_set('GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB', 0x8B8B) unless defined?(GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB)
684
690
  end # define_ext_enum_GL_ARB_fragment_shader
685
691
 
692
+ def define_ext_enum_GL_ARB_fragment_shader_interlock
693
+ end # define_ext_enum_GL_ARB_fragment_shader_interlock
694
+
686
695
  def define_ext_enum_GL_ARB_framebuffer_no_attachments
687
696
  const_set('GL_FRAMEBUFFER_DEFAULT_WIDTH', 0x9310) unless defined?(GL_FRAMEBUFFER_DEFAULT_WIDTH)
688
697
  const_set('GL_FRAMEBUFFER_DEFAULT_HEIGHT', 0x9311) unless defined?(GL_FRAMEBUFFER_DEFAULT_HEIGHT)
@@ -833,6 +842,17 @@ module OpenGL
833
842
  const_set('GL_DOUBLE_MAT4x3', 0x8F4E) unless defined?(GL_DOUBLE_MAT4x3)
834
843
  end # define_ext_enum_GL_ARB_gpu_shader_fp64
835
844
 
845
+ def define_ext_enum_GL_ARB_gpu_shader_int64
846
+ const_set('GL_INT64_ARB', 0x140E) unless defined?(GL_INT64_ARB)
847
+ const_set('GL_UNSIGNED_INT64_ARB', 0x140F) unless defined?(GL_UNSIGNED_INT64_ARB)
848
+ const_set('GL_INT64_VEC2_ARB', 0x8FE9) unless defined?(GL_INT64_VEC2_ARB)
849
+ const_set('GL_INT64_VEC3_ARB', 0x8FEA) unless defined?(GL_INT64_VEC3_ARB)
850
+ const_set('GL_INT64_VEC4_ARB', 0x8FEB) unless defined?(GL_INT64_VEC4_ARB)
851
+ const_set('GL_UNSIGNED_INT64_VEC2_ARB', 0x8FF5) unless defined?(GL_UNSIGNED_INT64_VEC2_ARB)
852
+ const_set('GL_UNSIGNED_INT64_VEC3_ARB', 0x8FF6) unless defined?(GL_UNSIGNED_INT64_VEC3_ARB)
853
+ const_set('GL_UNSIGNED_INT64_VEC4_ARB', 0x8FF7) unless defined?(GL_UNSIGNED_INT64_VEC4_ARB)
854
+ end # define_ext_enum_GL_ARB_gpu_shader_int64
855
+
836
856
  def define_ext_enum_GL_ARB_half_float_pixel
837
857
  const_set('GL_HALF_FLOAT_ARB', 0x140B) unless defined?(GL_HALF_FLOAT_ARB)
838
858
  end # define_ext_enum_GL_ARB_half_float_pixel
@@ -1147,6 +1167,11 @@ module OpenGL
1147
1167
  const_set('GL_ANY_SAMPLES_PASSED', 0x8C2F) unless defined?(GL_ANY_SAMPLES_PASSED)
1148
1168
  end # define_ext_enum_GL_ARB_occlusion_query2
1149
1169
 
1170
+ def define_ext_enum_GL_ARB_parallel_shader_compile
1171
+ const_set('GL_MAX_SHADER_COMPILER_THREADS_ARB', 0x91B0) unless defined?(GL_MAX_SHADER_COMPILER_THREADS_ARB)
1172
+ const_set('GL_COMPLETION_STATUS_ARB', 0x91B1) unless defined?(GL_COMPLETION_STATUS_ARB)
1173
+ end # define_ext_enum_GL_ARB_parallel_shader_compile
1174
+
1150
1175
  def define_ext_enum_GL_ARB_pipeline_statistics_query
1151
1176
  const_set('GL_VERTICES_SUBMITTED_ARB', 0x82EE) unless defined?(GL_VERTICES_SUBMITTED_ARB)
1152
1177
  const_set('GL_PRIMITIVES_SUBMITTED_ARB', 0x82EF) unless defined?(GL_PRIMITIVES_SUBMITTED_ARB)
@@ -1180,6 +1205,9 @@ module OpenGL
1180
1205
  const_set('GL_COORD_REPLACE_ARB', 0x8862) unless defined?(GL_COORD_REPLACE_ARB)
1181
1206
  end # define_ext_enum_GL_ARB_point_sprite
1182
1207
 
1208
+ def define_ext_enum_GL_ARB_post_depth_coverage
1209
+ end # define_ext_enum_GL_ARB_post_depth_coverage
1210
+
1183
1211
  def define_ext_enum_GL_ARB_program_interface_query
1184
1212
  const_set('GL_UNIFORM', 0x92E1) unless defined?(GL_UNIFORM)
1185
1213
  const_set('GL_UNIFORM_BLOCK', 0x92E2) unless defined?(GL_UNIFORM_BLOCK)
@@ -1264,6 +1292,17 @@ module OpenGL
1264
1292
  def define_ext_enum_GL_ARB_robustness_isolation
1265
1293
  end # define_ext_enum_GL_ARB_robustness_isolation
1266
1294
 
1295
+ def define_ext_enum_GL_ARB_sample_locations
1296
+ const_set('GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB', 0x933D) unless defined?(GL_SAMPLE_LOCATION_SUBPIXEL_BITS_ARB)
1297
+ const_set('GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB', 0x933E) unless defined?(GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB)
1298
+ const_set('GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB', 0x933F) unless defined?(GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB)
1299
+ const_set('GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB', 0x9340) unless defined?(GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB)
1300
+ const_set('GL_SAMPLE_LOCATION_ARB', 0x8E50) unless defined?(GL_SAMPLE_LOCATION_ARB)
1301
+ const_set('GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB', 0x9341) unless defined?(GL_PROGRAMMABLE_SAMPLE_LOCATION_ARB)
1302
+ const_set('GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB', 0x9342) unless defined?(GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_ARB)
1303
+ const_set('GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB', 0x9343) unless defined?(GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_ARB)
1304
+ end # define_ext_enum_GL_ARB_sample_locations
1305
+
1267
1306
  def define_ext_enum_GL_ARB_sample_shading
1268
1307
  const_set('GL_SAMPLE_SHADING_ARB', 0x8C36) unless defined?(GL_SAMPLE_SHADING_ARB)
1269
1308
  const_set('GL_MIN_SAMPLE_SHADING_VALUE_ARB', 0x8C37) unless defined?(GL_MIN_SAMPLE_SHADING_VALUE_ARB)
@@ -1293,6 +1332,9 @@ module OpenGL
1293
1332
  const_set('GL_PROGRAM_PIPELINE_BINDING', 0x825A) unless defined?(GL_PROGRAM_PIPELINE_BINDING)
1294
1333
  end # define_ext_enum_GL_ARB_separate_shader_objects
1295
1334
 
1335
+ def define_ext_enum_GL_ARB_shader_atomic_counter_ops
1336
+ end # define_ext_enum_GL_ARB_shader_atomic_counter_ops
1337
+
1296
1338
  def define_ext_enum_GL_ARB_shader_atomic_counters
1297
1339
  const_set('GL_ATOMIC_COUNTER_BUFFER', 0x92C0) unless defined?(GL_ATOMIC_COUNTER_BUFFER)
1298
1340
  const_set('GL_ATOMIC_COUNTER_BUFFER_BINDING', 0x92C1) unless defined?(GL_ATOMIC_COUNTER_BUFFER_BINDING)
@@ -1325,9 +1367,15 @@ module OpenGL
1325
1367
  const_set('GL_UNSIGNED_INT_ATOMIC_COUNTER', 0x92DB) unless defined?(GL_UNSIGNED_INT_ATOMIC_COUNTER)
1326
1368
  end # define_ext_enum_GL_ARB_shader_atomic_counters
1327
1369
 
1370
+ def define_ext_enum_GL_ARB_shader_ballot
1371
+ end # define_ext_enum_GL_ARB_shader_ballot
1372
+
1328
1373
  def define_ext_enum_GL_ARB_shader_bit_encoding
1329
1374
  end # define_ext_enum_GL_ARB_shader_bit_encoding
1330
1375
 
1376
+ def define_ext_enum_GL_ARB_shader_clock
1377
+ end # define_ext_enum_GL_ARB_shader_clock
1378
+
1331
1379
  def define_ext_enum_GL_ARB_shader_draw_parameters
1332
1380
  end # define_ext_enum_GL_ARB_shader_draw_parameters
1333
1381
 
@@ -1487,6 +1535,9 @@ module OpenGL
1487
1535
  def define_ext_enum_GL_ARB_shader_texture_lod
1488
1536
  end # define_ext_enum_GL_ARB_shader_texture_lod
1489
1537
 
1538
+ def define_ext_enum_GL_ARB_shader_viewport_layer_array
1539
+ end # define_ext_enum_GL_ARB_shader_viewport_layer_array
1540
+
1490
1541
  def define_ext_enum_GL_ARB_shading_language_100
1491
1542
  const_set('GL_SHADING_LANGUAGE_VERSION_ARB', 0x8B8C) unless defined?(GL_SHADING_LANGUAGE_VERSION_ARB)
1492
1543
  end # define_ext_enum_GL_ARB_shading_language_100
@@ -1532,6 +1583,12 @@ module OpenGL
1532
1583
  const_set('GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB', 0x91A9) unless defined?(GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB)
1533
1584
  end # define_ext_enum_GL_ARB_sparse_texture
1534
1585
 
1586
+ def define_ext_enum_GL_ARB_sparse_texture2
1587
+ end # define_ext_enum_GL_ARB_sparse_texture2
1588
+
1589
+ def define_ext_enum_GL_ARB_sparse_texture_clamp
1590
+ end # define_ext_enum_GL_ARB_sparse_texture_clamp
1591
+
1535
1592
  def define_ext_enum_GL_ARB_stencil_texturing
1536
1593
  const_set('GL_DEPTH_STENCIL_TEXTURE_MODE', 0x90EA) unless defined?(GL_DEPTH_STENCIL_TEXTURE_MODE)
1537
1594
  end # define_ext_enum_GL_ARB_stencil_texturing
@@ -1710,6 +1767,11 @@ module OpenGL
1710
1767
  const_set('GL_DOT3_RGBA_ARB', 0x86AF) unless defined?(GL_DOT3_RGBA_ARB)
1711
1768
  end # define_ext_enum_GL_ARB_texture_env_dot3
1712
1769
 
1770
+ def define_ext_enum_GL_ARB_texture_filter_minmax
1771
+ const_set('GL_TEXTURE_REDUCTION_MODE_ARB', 0x9366) unless defined?(GL_TEXTURE_REDUCTION_MODE_ARB)
1772
+ const_set('GL_WEIGHTED_AVERAGE_ARB', 0x9367) unless defined?(GL_WEIGHTED_AVERAGE_ARB)
1773
+ end # define_ext_enum_GL_ARB_texture_filter_minmax
1774
+
1713
1775
  def define_ext_enum_GL_ARB_texture_float
1714
1776
  const_set('GL_TEXTURE_RED_TYPE_ARB', 0x8C10) unless defined?(GL_TEXTURE_RED_TYPE_ARB)
1715
1777
  const_set('GL_TEXTURE_GREEN_TYPE_ARB', 0x8C11) unless defined?(GL_TEXTURE_GREEN_TYPE_ARB)
@@ -3613,6 +3675,9 @@ module OpenGL
3613
3675
  def define_ext_enum_GL_INTEL_fragment_shader_ordering
3614
3676
  end # define_ext_enum_GL_INTEL_fragment_shader_ordering
3615
3677
 
3678
+ def define_ext_enum_GL_INTEL_framebuffer_CMAA
3679
+ end # define_ext_enum_GL_INTEL_framebuffer_CMAA
3680
+
3616
3681
  def define_ext_enum_GL_INTEL_map_texture
3617
3682
  const_set('GL_TEXTURE_MEMORY_LAYOUT_INTEL', 0x83FF) unless defined?(GL_TEXTURE_MEMORY_LAYOUT_INTEL)
3618
3683
  const_set('GL_LAYOUT_DEFAULT_INTEL', 0) unless defined?(GL_LAYOUT_DEFAULT_INTEL)
@@ -4464,6 +4529,10 @@ module OpenGL
4464
4529
  const_set('GL_FRAGMENT_INPUT_NV', 0x936D) unless defined?(GL_FRAGMENT_INPUT_NV)
4465
4530
  end # define_ext_enum_GL_NV_path_rendering
4466
4531
 
4532
+ def define_ext_enum_GL_NV_path_rendering_shared_edge
4533
+ const_set('GL_SHARED_EDGE_NV', 0xC0) unless defined?(GL_SHARED_EDGE_NV)
4534
+ end # define_ext_enum_GL_NV_path_rendering_shared_edge
4535
+
4467
4536
  def define_ext_enum_GL_NV_pixel_data_range
4468
4537
  const_set('GL_WRITE_PIXEL_DATA_RANGE_NV', 0x8878) unless defined?(GL_WRITE_PIXEL_DATA_RANGE_NV)
4469
4538
  const_set('GL_READ_PIXEL_DATA_RANGE_NV', 0x8879) unless defined?(GL_READ_PIXEL_DATA_RANGE_NV)
@@ -4552,10 +4621,6 @@ module OpenGL
4552
4621
  const_set('GL_FOG', 0x0B60) unless defined?(GL_FOG)
4553
4622
  end # define_ext_enum_GL_NV_register_combiners
4554
4623
 
4555
- def define_ext_enum_GL_NV_path_rendering_shared_edge
4556
- const_set('GL_SHARED_EDGE_NV', 0xC0) unless defined?(GL_SHARED_EDGE_NV)
4557
- end # define_ext_enum_GL_NV_path_rendering_shared_edge
4558
-
4559
4624
  def define_ext_enum_GL_NV_register_combiners2
4560
4625
  const_set('GL_PER_STAGE_CONSTANTS_NV', 0x8535) unless defined?(GL_PER_STAGE_CONSTANTS_NV)
4561
4626
  end # define_ext_enum_GL_NV_register_combiners2
@@ -13,12 +13,15 @@ if __FILE__ == $0
13
13
  glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3)
14
14
  glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API)
15
15
  window = glfwCreateWindow( 1, 1, "Report OpenGL Environment", nil, nil )
16
- unless window.null?
17
- glfwMakeContextCurrent( window )
18
- puts "Version: #{glGetString(GL_VERSION).to_s}"
19
- puts "Extensions:"
20
- puts glGetString(GL_EXTENSIONS).to_s.split(/ /)
21
- glfwDestroyWindow( window )
16
+ if window.null?
17
+ puts "Failed to create the OpenGL ES 3 context. You may need to get a GPU/driver that is compliant with OpenGL 4.3 or higher."
18
+ exit
22
19
  end
20
+
21
+ glfwMakeContextCurrent( window )
22
+ puts "Version: #{glGetString(GL_VERSION).to_s}"
23
+ puts "Extensions:"
24
+ puts glGetString(GL_EXTENSIONS).to_s.split(/ /)
25
+ glfwDestroyWindow( window )
23
26
  glfwTerminate()
24
27
  end
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.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-01 00:00:00.000000000 Z
11
+ date: 2015-08-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  Ruby bindings for OpenGL - 4.5, OpenGL ES - 3.1 and all extensions using Fiddle (For MRI >= 2.0.0).