opengl-bindings 1.6.0 → 1.6.1

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: 5fb7f2c48167f3a254b85696ee20f6a0fa536bf1
4
- data.tar.gz: 74fc8b5851ada1b1e17351ada899ba179eb766a1
3
+ metadata.gz: 587455d0a7fc4fe35058857b771cbe7f8edbc131
4
+ data.tar.gz: 0776a849c207125a1d9ee0d91c96b39424a378e7
5
5
  SHA512:
6
- metadata.gz: d08b27e050d05feb3b9dec504fdd2b80ac67f5fdde4590c44008338b875a2ac85ebf1cd705bd4dce8cec7b4b6def560c7b7e68a9e3244e6d20cbd2a546850c06
7
- data.tar.gz: 34a01c564079675ab602ad9ac3147ef3e63be6470614e067dcba3dea413975a3c7f2b95b0229d8afb45afefc64420ac05a3afe89d9f7b5555cc5a7e9e0fd3c51
6
+ metadata.gz: ebd5d3647ca8cc0b40870fb6d043c9c45d8611464a23d068962dc883e192364263bd83f0c178d364adddbb9f812723881423cff14c73220b57c2b2032f9e0063
7
+ data.tar.gz: 4e2c48a570ebcdea4a12fcdffe4dce034bce98aa1fba73e4b8e9105e01371818268b006b8589635f10e560d1b66c475f4d0777440d253b7d8e22bf828e2ec56e
data/ChangeLog CHANGED
@@ -1,3 +1,27 @@
1
+ 2016-09-20 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * Updated using latest gl.xml.
4
+
5
+ 2016-09-18 vaiorabbit <http://twitter.com/vaiorabbit>
6
+
7
+ * sample/report_env.rb: Now shows GL_VENDOR, GL_RENDERER and GL_SHADING_LANGUAGE_VERSION.
8
+
9
+ 2016-08-27 vaiorabbit <http://twitter.com/vaiorabbit>
10
+
11
+ * sample/glfw32_build_dylib.sh: GLFW 3.2.1 build script for Mac OS X.
12
+
13
+ 2016-08-07 vaiorabbit <http://twitter.com/vaiorabbit>
14
+
15
+ * Updated using latest gl.xml.
16
+
17
+ 2016-07-17 vaiorabbit <http://twitter.com/vaiorabbit>
18
+
19
+ * Updated using latest gl.xml.
20
+
21
+ 2016-06-12 vaiorabbit <http://twitter.com/vaiorabbit>
22
+
23
+ * Updated using latest gl.xml.
24
+
1
25
  2016-06-03 vaiorabbit <http://twitter.com/vaiorabbit>
2
26
 
3
27
  * opengl-bindings.gemspec: Fixed invalid license value (zlib/libpng -> Zlib). See http://spdx.org/licenses .
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 : 2016-06-03
8
+ * Last modified : 2016-09-20
9
9
 
10
10
 
11
11
  ## Features ##
@@ -689,6 +689,34 @@ module OpenGLExt
689
689
  end # self.get_ext_command_GL_EXT_buffer_storage
690
690
 
691
691
 
692
+ def self.define_ext_command_GL_EXT_clear_texture
693
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glClearTexImageEXT] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
694
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glClearTexImageEXT] = Fiddle::TYPE_VOID
695
+ OpenGL.module_eval(<<-SRC)
696
+ def glClearTexImageEXT(_texture_, _level_, _format_, _type_, _data_)
697
+ f = OpenGL::get_command(:glClearTexImageEXT)
698
+ f.call(_texture_, _level_, _format_, _type_, _data_)
699
+ end
700
+ SRC
701
+
702
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glClearTexSubImageEXT] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
703
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glClearTexSubImageEXT] = Fiddle::TYPE_VOID
704
+ OpenGL.module_eval(<<-SRC)
705
+ def glClearTexSubImageEXT(_texture_, _level_, _xoffset_, _yoffset_, _zoffset_, _width_, _height_, _depth_, _format_, _type_, _data_)
706
+ f = OpenGL::get_command(:glClearTexSubImageEXT)
707
+ f.call(_texture_, _level_, _xoffset_, _yoffset_, _zoffset_, _width_, _height_, _depth_, _format_, _type_, _data_)
708
+ end
709
+ SRC
710
+ end # self.define_ext_command_GL_EXT_clear_texture
711
+
712
+ def self.get_ext_command_GL_EXT_clear_texture
713
+ [
714
+ 'glClearTexImageEXT',
715
+ 'glClearTexSubImageEXT',
716
+ ]
717
+ end # self.get_ext_command_GL_EXT_clear_texture
718
+
719
+
692
720
  def self.define_ext_command_GL_EXT_clip_cull_distance
693
721
  end # self.define_ext_command_GL_EXT_clip_cull_distance
694
722
 
@@ -716,6 +744,15 @@ module OpenGLExt
716
744
  end # self.get_ext_command_GL_EXT_color_buffer_half_float
717
745
 
718
746
 
747
+ def self.define_ext_command_GL_EXT_conservative_depth
748
+ end # self.define_ext_command_GL_EXT_conservative_depth
749
+
750
+ def self.get_ext_command_GL_EXT_conservative_depth
751
+ [
752
+ ]
753
+ end # self.get_ext_command_GL_EXT_conservative_depth
754
+
755
+
719
756
  def self.define_ext_command_GL_EXT_copy_image
720
757
  OpenGL::GL_FUNCTIONS_ARGS_MAP[:glCopyImageSubDataEXT] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
721
758
  OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glCopyImageSubDataEXT] = Fiddle::TYPE_VOID
@@ -2126,6 +2163,15 @@ module OpenGLExt
2126
2163
  end # self.get_ext_command_GL_EXT_shader_io_blocks
2127
2164
 
2128
2165
 
2166
+ def self.define_ext_command_GL_EXT_shader_non_constant_global_initializers
2167
+ end # self.define_ext_command_GL_EXT_shader_non_constant_global_initializers
2168
+
2169
+ def self.get_ext_command_GL_EXT_shader_non_constant_global_initializers
2170
+ [
2171
+ ]
2172
+ end # self.get_ext_command_GL_EXT_shader_non_constant_global_initializers
2173
+
2174
+
2129
2175
  def self.define_ext_command_GL_EXT_shader_pixel_local_storage
2130
2176
  end # self.define_ext_command_GL_EXT_shader_pixel_local_storage
2131
2177
 
@@ -2564,6 +2610,24 @@ module OpenGLExt
2564
2610
  end # self.get_ext_command_GL_EXT_unpack_subimage
2565
2611
 
2566
2612
 
2613
+ def self.define_ext_command_GL_EXT_window_rectangles
2614
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glWindowRectanglesEXT] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
2615
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glWindowRectanglesEXT] = Fiddle::TYPE_VOID
2616
+ OpenGL.module_eval(<<-SRC)
2617
+ def glWindowRectanglesEXT(_mode_, _count_, _box_)
2618
+ f = OpenGL::get_command(:glWindowRectanglesEXT)
2619
+ f.call(_mode_, _count_, _box_)
2620
+ end
2621
+ SRC
2622
+ end # self.define_ext_command_GL_EXT_window_rectangles
2623
+
2624
+ def self.get_ext_command_GL_EXT_window_rectangles
2625
+ [
2626
+ 'glWindowRectanglesEXT',
2627
+ ]
2628
+ end # self.get_ext_command_GL_EXT_window_rectangles
2629
+
2630
+
2567
2631
  def self.define_ext_command_GL_FJ_shader_binary_GCCSO
2568
2632
  end # self.define_ext_command_GL_FJ_shader_binary_GCCSO
2569
2633
 
@@ -2573,6 +2637,74 @@ module OpenGLExt
2573
2637
  end # self.get_ext_command_GL_FJ_shader_binary_GCCSO
2574
2638
 
2575
2639
 
2640
+ def self.define_ext_command_GL_IMG_bindless_texture
2641
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glGetTextureHandleIMG] = [-Fiddle::TYPE_INT]
2642
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glGetTextureHandleIMG] = -Fiddle::TYPE_LONG_LONG
2643
+ OpenGL.module_eval(<<-SRC)
2644
+ def glGetTextureHandleIMG(_texture_)
2645
+ f = OpenGL::get_command(:glGetTextureHandleIMG)
2646
+ f.call(_texture_)
2647
+ end
2648
+ SRC
2649
+
2650
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glGetTextureSamplerHandleIMG] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
2651
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glGetTextureSamplerHandleIMG] = -Fiddle::TYPE_LONG_LONG
2652
+ OpenGL.module_eval(<<-SRC)
2653
+ def glGetTextureSamplerHandleIMG(_texture_, _sampler_)
2654
+ f = OpenGL::get_command(:glGetTextureSamplerHandleIMG)
2655
+ f.call(_texture_, _sampler_)
2656
+ end
2657
+ SRC
2658
+
2659
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glUniformHandleui64IMG] = [Fiddle::TYPE_INT, -Fiddle::TYPE_LONG_LONG]
2660
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glUniformHandleui64IMG] = Fiddle::TYPE_VOID
2661
+ OpenGL.module_eval(<<-SRC)
2662
+ def glUniformHandleui64IMG(_location_, _value_)
2663
+ f = OpenGL::get_command(:glUniformHandleui64IMG)
2664
+ f.call(_location_, _value_)
2665
+ end
2666
+ SRC
2667
+
2668
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glUniformHandleui64vIMG] = [Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
2669
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glUniformHandleui64vIMG] = Fiddle::TYPE_VOID
2670
+ OpenGL.module_eval(<<-SRC)
2671
+ def glUniformHandleui64vIMG(_location_, _count_, _value_)
2672
+ f = OpenGL::get_command(:glUniformHandleui64vIMG)
2673
+ f.call(_location_, _count_, _value_)
2674
+ end
2675
+ SRC
2676
+
2677
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glProgramUniformHandleui64IMG] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_LONG_LONG]
2678
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glProgramUniformHandleui64IMG] = Fiddle::TYPE_VOID
2679
+ OpenGL.module_eval(<<-SRC)
2680
+ def glProgramUniformHandleui64IMG(_program_, _location_, _value_)
2681
+ f = OpenGL::get_command(:glProgramUniformHandleui64IMG)
2682
+ f.call(_program_, _location_, _value_)
2683
+ end
2684
+ SRC
2685
+
2686
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glProgramUniformHandleui64vIMG] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
2687
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glProgramUniformHandleui64vIMG] = Fiddle::TYPE_VOID
2688
+ OpenGL.module_eval(<<-SRC)
2689
+ def glProgramUniformHandleui64vIMG(_program_, _location_, _count_, _values_)
2690
+ f = OpenGL::get_command(:glProgramUniformHandleui64vIMG)
2691
+ f.call(_program_, _location_, _count_, _values_)
2692
+ end
2693
+ SRC
2694
+ end # self.define_ext_command_GL_IMG_bindless_texture
2695
+
2696
+ def self.get_ext_command_GL_IMG_bindless_texture
2697
+ [
2698
+ 'glGetTextureHandleIMG',
2699
+ 'glGetTextureSamplerHandleIMG',
2700
+ 'glUniformHandleui64IMG',
2701
+ 'glUniformHandleui64vIMG',
2702
+ 'glProgramUniformHandleui64IMG',
2703
+ 'glProgramUniformHandleui64vIMG',
2704
+ ]
2705
+ end # self.get_ext_command_GL_IMG_bindless_texture
2706
+
2707
+
2576
2708
  def self.define_ext_command_GL_IMG_framebuffer_downsample
2577
2709
  OpenGL::GL_FUNCTIONS_ARGS_MAP[:glFramebufferTexture2DDownsampleIMG] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
2578
2710
  OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glFramebufferTexture2DDownsampleIMG] = Fiddle::TYPE_VOID
@@ -2683,6 +2815,15 @@ module OpenGLExt
2683
2815
  end # self.get_ext_command_GL_IMG_texture_filter_cubic
2684
2816
 
2685
2817
 
2818
+ def self.define_ext_command_GL_INTEL_conservative_rasterization
2819
+ end # self.define_ext_command_GL_INTEL_conservative_rasterization
2820
+
2821
+ def self.get_ext_command_GL_INTEL_conservative_rasterization
2822
+ [
2823
+ ]
2824
+ end # self.get_ext_command_GL_INTEL_conservative_rasterization
2825
+
2826
+
2686
2827
  def self.define_ext_command_GL_INTEL_framebuffer_CMAA
2687
2828
  OpenGL::GL_FUNCTIONS_ARGS_MAP[:glApplyFramebufferAttachmentCMAAINTEL] = []
2688
2829
  OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glApplyFramebufferAttachmentCMAAINTEL] = Fiddle::TYPE_VOID
@@ -6157,6 +6298,134 @@ module OpenGLExt
6157
6298
  end # self.get_ext_command_GL_OES_vertex_type_10_10_10_2
6158
6299
 
6159
6300
 
6301
+ def self.define_ext_command_GL_OES_viewport_array
6302
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glViewportArrayvOES] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
6303
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glViewportArrayvOES] = Fiddle::TYPE_VOID
6304
+ OpenGL.module_eval(<<-SRC)
6305
+ def glViewportArrayvOES(_first_, _count_, _v_)
6306
+ f = OpenGL::get_command(:glViewportArrayvOES)
6307
+ f.call(_first_, _count_, _v_)
6308
+ end
6309
+ SRC
6310
+
6311
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glViewportIndexedfOES] = [-Fiddle::TYPE_INT, Fiddle::TYPE_FLOAT, Fiddle::TYPE_FLOAT, Fiddle::TYPE_FLOAT, Fiddle::TYPE_FLOAT]
6312
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glViewportIndexedfOES] = Fiddle::TYPE_VOID
6313
+ OpenGL.module_eval(<<-SRC)
6314
+ def glViewportIndexedfOES(_index_, _x_, _y_, _w_, _h_)
6315
+ f = OpenGL::get_command(:glViewportIndexedfOES)
6316
+ f.call(_index_, _x_, _y_, _w_, _h_)
6317
+ end
6318
+ SRC
6319
+
6320
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glViewportIndexedfvOES] = [-Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
6321
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glViewportIndexedfvOES] = Fiddle::TYPE_VOID
6322
+ OpenGL.module_eval(<<-SRC)
6323
+ def glViewportIndexedfvOES(_index_, _v_)
6324
+ f = OpenGL::get_command(:glViewportIndexedfvOES)
6325
+ f.call(_index_, _v_)
6326
+ end
6327
+ SRC
6328
+
6329
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glScissorArrayvOES] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
6330
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glScissorArrayvOES] = Fiddle::TYPE_VOID
6331
+ OpenGL.module_eval(<<-SRC)
6332
+ def glScissorArrayvOES(_first_, _count_, _v_)
6333
+ f = OpenGL::get_command(:glScissorArrayvOES)
6334
+ f.call(_first_, _count_, _v_)
6335
+ end
6336
+ SRC
6337
+
6338
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glScissorIndexedOES] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
6339
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glScissorIndexedOES] = Fiddle::TYPE_VOID
6340
+ OpenGL.module_eval(<<-SRC)
6341
+ def glScissorIndexedOES(_index_, _left_, _bottom_, _width_, _height_)
6342
+ f = OpenGL::get_command(:glScissorIndexedOES)
6343
+ f.call(_index_, _left_, _bottom_, _width_, _height_)
6344
+ end
6345
+ SRC
6346
+
6347
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glScissorIndexedvOES] = [-Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
6348
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glScissorIndexedvOES] = Fiddle::TYPE_VOID
6349
+ OpenGL.module_eval(<<-SRC)
6350
+ def glScissorIndexedvOES(_index_, _v_)
6351
+ f = OpenGL::get_command(:glScissorIndexedvOES)
6352
+ f.call(_index_, _v_)
6353
+ end
6354
+ SRC
6355
+
6356
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glDepthRangeArrayfvOES] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
6357
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glDepthRangeArrayfvOES] = Fiddle::TYPE_VOID
6358
+ OpenGL.module_eval(<<-SRC)
6359
+ def glDepthRangeArrayfvOES(_first_, _count_, _v_)
6360
+ f = OpenGL::get_command(:glDepthRangeArrayfvOES)
6361
+ f.call(_first_, _count_, _v_)
6362
+ end
6363
+ SRC
6364
+
6365
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glDepthRangeIndexedfOES] = [-Fiddle::TYPE_INT, Fiddle::TYPE_FLOAT, Fiddle::TYPE_FLOAT]
6366
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glDepthRangeIndexedfOES] = Fiddle::TYPE_VOID
6367
+ OpenGL.module_eval(<<-SRC)
6368
+ def glDepthRangeIndexedfOES(_index_, _n_, _f_)
6369
+ f = OpenGL::get_command(:glDepthRangeIndexedfOES)
6370
+ f.call(_index_, _n_, _f_)
6371
+ end
6372
+ SRC
6373
+
6374
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glGetFloati_vOES] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
6375
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glGetFloati_vOES] = Fiddle::TYPE_VOID
6376
+ OpenGL.module_eval(<<-SRC)
6377
+ def glGetFloati_vOES(_target_, _index_, _data_)
6378
+ f = OpenGL::get_command(:glGetFloati_vOES)
6379
+ f.call(_target_, _index_, _data_)
6380
+ end
6381
+ SRC
6382
+
6383
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glEnableiOES] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
6384
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glEnableiOES] = Fiddle::TYPE_VOID
6385
+ OpenGL.module_eval(<<-SRC)
6386
+ def glEnableiOES(_target_, _index_)
6387
+ f = OpenGL::get_command(:glEnableiOES)
6388
+ f.call(_target_, _index_)
6389
+ end
6390
+ SRC
6391
+
6392
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glDisableiOES] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
6393
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glDisableiOES] = Fiddle::TYPE_VOID
6394
+ OpenGL.module_eval(<<-SRC)
6395
+ def glDisableiOES(_target_, _index_)
6396
+ f = OpenGL::get_command(:glDisableiOES)
6397
+ f.call(_target_, _index_)
6398
+ end
6399
+ SRC
6400
+
6401
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glIsEnablediOES] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
6402
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glIsEnablediOES] = -Fiddle::TYPE_CHAR
6403
+ OpenGL.module_eval(<<-SRC)
6404
+ def glIsEnablediOES(_target_, _index_)
6405
+ f = OpenGL::get_command(:glIsEnablediOES)
6406
+ f.call(_target_, _index_)
6407
+ end
6408
+ SRC
6409
+ end # self.define_ext_command_GL_OES_viewport_array
6410
+
6411
+ def self.get_ext_command_GL_OES_viewport_array
6412
+ [
6413
+ 'glViewportArrayvOES',
6414
+ 'glViewportIndexedfOES',
6415
+ 'glViewportIndexedfvOES',
6416
+ 'glScissorArrayvOES',
6417
+ 'glScissorIndexedOES',
6418
+ 'glScissorIndexedvOES',
6419
+ 'glDepthRangeArrayfvOES',
6420
+ 'glDepthRangeIndexedfOES',
6421
+ 'glGetFloati_vOES',
6422
+ 'glEnableiOES',
6423
+ 'glDisableiOES',
6424
+ 'glIsEnablediOES',
6425
+ ]
6426
+ end # self.get_ext_command_GL_OES_viewport_array
6427
+
6428
+
6160
6429
  def self.define_ext_command_GL_OVR_multiview
6161
6430
  OpenGL::GL_FUNCTIONS_ARGS_MAP[:glFramebufferTextureMultiviewOVR] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
6162
6431
  OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glFramebufferTextureMultiviewOVR] = Fiddle::TYPE_VOID
@@ -561,6 +561,15 @@ module OpenGLExt
561
561
  end # self.get_ext_enum_GL_EXT_buffer_storage
562
562
 
563
563
 
564
+ def self.define_ext_enum_GL_EXT_clear_texture
565
+ end # self.define_ext_enum_GL_EXT_clear_texture
566
+
567
+ def self.get_ext_enum_GL_EXT_clear_texture
568
+ [
569
+ ]
570
+ end # self.get_ext_enum_GL_EXT_clear_texture
571
+
572
+
564
573
  def self.define_ext_enum_GL_EXT_clip_cull_distance
565
574
  OpenGL.const_set('GL_MAX_CLIP_DISTANCES_EXT', 0x0D32) unless defined?(OpenGL::GL_MAX_CLIP_DISTANCES_EXT)
566
575
  OpenGL.const_set('GL_MAX_CULL_DISTANCES_EXT', 0x82F9) unless defined?(OpenGL::GL_MAX_CULL_DISTANCES_EXT)
@@ -622,6 +631,15 @@ module OpenGLExt
622
631
  end # self.get_ext_enum_GL_EXT_color_buffer_half_float
623
632
 
624
633
 
634
+ def self.define_ext_enum_GL_EXT_conservative_depth
635
+ end # self.define_ext_enum_GL_EXT_conservative_depth
636
+
637
+ def self.get_ext_enum_GL_EXT_conservative_depth
638
+ [
639
+ ]
640
+ end # self.get_ext_enum_GL_EXT_conservative_depth
641
+
642
+
625
643
  def self.define_ext_enum_GL_EXT_copy_image
626
644
  end # self.define_ext_enum_GL_EXT_copy_image
627
645
 
@@ -1330,6 +1348,15 @@ module OpenGLExt
1330
1348
  end # self.get_ext_enum_GL_EXT_shader_io_blocks
1331
1349
 
1332
1350
 
1351
+ def self.define_ext_enum_GL_EXT_shader_non_constant_global_initializers
1352
+ end # self.define_ext_enum_GL_EXT_shader_non_constant_global_initializers
1353
+
1354
+ def self.get_ext_enum_GL_EXT_shader_non_constant_global_initializers
1355
+ [
1356
+ ]
1357
+ end # self.get_ext_enum_GL_EXT_shader_non_constant_global_initializers
1358
+
1359
+
1333
1360
  def self.define_ext_enum_GL_EXT_shader_pixel_local_storage
1334
1361
  OpenGL.const_set('GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE_EXT', 0x8F63) unless defined?(OpenGL::GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE_EXT)
1335
1362
  OpenGL.const_set('GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_SIZE_EXT', 0x8F67) unless defined?(OpenGL::GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_SIZE_EXT)
@@ -1870,6 +1897,27 @@ module OpenGLExt
1870
1897
  end # self.get_ext_enum_GL_EXT_unpack_subimage
1871
1898
 
1872
1899
 
1900
+ def self.define_ext_enum_GL_EXT_window_rectangles
1901
+ OpenGL.const_set('GL_INCLUSIVE_EXT', 0x8F10) unless defined?(OpenGL::GL_INCLUSIVE_EXT)
1902
+ OpenGL.const_set('GL_EXCLUSIVE_EXT', 0x8F11) unless defined?(OpenGL::GL_EXCLUSIVE_EXT)
1903
+ OpenGL.const_set('GL_WINDOW_RECTANGLE_EXT', 0x8F12) unless defined?(OpenGL::GL_WINDOW_RECTANGLE_EXT)
1904
+ OpenGL.const_set('GL_WINDOW_RECTANGLE_MODE_EXT', 0x8F13) unless defined?(OpenGL::GL_WINDOW_RECTANGLE_MODE_EXT)
1905
+ OpenGL.const_set('GL_MAX_WINDOW_RECTANGLES_EXT', 0x8F14) unless defined?(OpenGL::GL_MAX_WINDOW_RECTANGLES_EXT)
1906
+ OpenGL.const_set('GL_NUM_WINDOW_RECTANGLES_EXT', 0x8F15) unless defined?(OpenGL::GL_NUM_WINDOW_RECTANGLES_EXT)
1907
+ end # self.define_ext_enum_GL_EXT_window_rectangles
1908
+
1909
+ def self.get_ext_enum_GL_EXT_window_rectangles
1910
+ [
1911
+ 'GL_INCLUSIVE_EXT',
1912
+ 'GL_EXCLUSIVE_EXT',
1913
+ 'GL_WINDOW_RECTANGLE_EXT',
1914
+ 'GL_WINDOW_RECTANGLE_MODE_EXT',
1915
+ 'GL_MAX_WINDOW_RECTANGLES_EXT',
1916
+ 'GL_NUM_WINDOW_RECTANGLES_EXT',
1917
+ ]
1918
+ end # self.get_ext_enum_GL_EXT_window_rectangles
1919
+
1920
+
1873
1921
  def self.define_ext_enum_GL_FJ_shader_binary_GCCSO
1874
1922
  OpenGL.const_set('GL_GCCSO_SHADER_BINARY_FJ', 0x9260) unless defined?(OpenGL::GL_GCCSO_SHADER_BINARY_FJ)
1875
1923
  end # self.define_ext_enum_GL_FJ_shader_binary_GCCSO
@@ -1881,6 +1929,15 @@ module OpenGLExt
1881
1929
  end # self.get_ext_enum_GL_FJ_shader_binary_GCCSO
1882
1930
 
1883
1931
 
1932
+ def self.define_ext_enum_GL_IMG_bindless_texture
1933
+ end # self.define_ext_enum_GL_IMG_bindless_texture
1934
+
1935
+ def self.get_ext_enum_GL_IMG_bindless_texture
1936
+ [
1937
+ ]
1938
+ end # self.get_ext_enum_GL_IMG_bindless_texture
1939
+
1940
+
1884
1941
  def self.define_ext_enum_GL_IMG_framebuffer_downsample
1885
1942
  OpenGL.const_set('GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG', 0x913C) unless defined?(OpenGL::GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG)
1886
1943
  OpenGL.const_set('GL_NUM_DOWNSAMPLE_SCALES_IMG', 0x913D) unless defined?(OpenGL::GL_NUM_DOWNSAMPLE_SCALES_IMG)
@@ -1995,6 +2052,17 @@ module OpenGLExt
1995
2052
  end # self.get_ext_enum_GL_IMG_texture_filter_cubic
1996
2053
 
1997
2054
 
2055
+ def self.define_ext_enum_GL_INTEL_conservative_rasterization
2056
+ OpenGL.const_set('GL_CONSERVATIVE_RASTERIZATION_INTEL', 0x83FE) unless defined?(OpenGL::GL_CONSERVATIVE_RASTERIZATION_INTEL)
2057
+ end # self.define_ext_enum_GL_INTEL_conservative_rasterization
2058
+
2059
+ def self.get_ext_enum_GL_INTEL_conservative_rasterization
2060
+ [
2061
+ 'GL_CONSERVATIVE_RASTERIZATION_INTEL',
2062
+ ]
2063
+ end # self.get_ext_enum_GL_INTEL_conservative_rasterization
2064
+
2065
+
1998
2066
  def self.define_ext_enum_GL_INTEL_framebuffer_CMAA
1999
2067
  end # self.define_ext_enum_GL_INTEL_framebuffer_CMAA
2000
2068
 
@@ -4730,6 +4798,31 @@ module OpenGLExt
4730
4798
  end # self.get_ext_enum_GL_OES_vertex_type_10_10_10_2
4731
4799
 
4732
4800
 
4801
+ def self.define_ext_enum_GL_OES_viewport_array
4802
+ OpenGL.const_set('GL_SCISSOR_BOX', 0x0C10) unless defined?(OpenGL::GL_SCISSOR_BOX)
4803
+ OpenGL.const_set('GL_VIEWPORT', 0x0BA2) unless defined?(OpenGL::GL_VIEWPORT)
4804
+ OpenGL.const_set('GL_DEPTH_RANGE', 0x0B70) unless defined?(OpenGL::GL_DEPTH_RANGE)
4805
+ OpenGL.const_set('GL_SCISSOR_TEST', 0x0C11) unless defined?(OpenGL::GL_SCISSOR_TEST)
4806
+ OpenGL.const_set('GL_MAX_VIEWPORTS_OES', 0x825B) unless defined?(OpenGL::GL_MAX_VIEWPORTS_OES)
4807
+ OpenGL.const_set('GL_VIEWPORT_SUBPIXEL_BITS_OES', 0x825C) unless defined?(OpenGL::GL_VIEWPORT_SUBPIXEL_BITS_OES)
4808
+ OpenGL.const_set('GL_VIEWPORT_BOUNDS_RANGE_OES', 0x825D) unless defined?(OpenGL::GL_VIEWPORT_BOUNDS_RANGE_OES)
4809
+ OpenGL.const_set('GL_VIEWPORT_INDEX_PROVOKING_VERTEX_OES', 0x825F) unless defined?(OpenGL::GL_VIEWPORT_INDEX_PROVOKING_VERTEX_OES)
4810
+ end # self.define_ext_enum_GL_OES_viewport_array
4811
+
4812
+ def self.get_ext_enum_GL_OES_viewport_array
4813
+ [
4814
+ 'GL_SCISSOR_BOX',
4815
+ 'GL_VIEWPORT',
4816
+ 'GL_DEPTH_RANGE',
4817
+ 'GL_SCISSOR_TEST',
4818
+ 'GL_MAX_VIEWPORTS_OES',
4819
+ 'GL_VIEWPORT_SUBPIXEL_BITS_OES',
4820
+ 'GL_VIEWPORT_BOUNDS_RANGE_OES',
4821
+ 'GL_VIEWPORT_INDEX_PROVOKING_VERTEX_OES',
4822
+ ]
4823
+ end # self.get_ext_enum_GL_OES_viewport_array
4824
+
4825
+
4733
4826
  def self.define_ext_enum_GL_OVR_multiview
4734
4827
  OpenGL.const_set('GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR', 0x9630) unless defined?(OpenGL::GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR)
4735
4828
  OpenGL.const_set('GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR', 0x9632) unless defined?(OpenGL::GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR)
@@ -176,6 +176,15 @@ module OpenGLExt
176
176
  end # self.get_ext_command_GL_AMD_gcn_shader
177
177
 
178
178
 
179
+ def self.define_ext_command_GL_AMD_gpu_shader_half_float
180
+ end # self.define_ext_command_GL_AMD_gpu_shader_half_float
181
+
182
+ def self.get_ext_command_GL_AMD_gpu_shader_half_float
183
+ [
184
+ ]
185
+ end # self.get_ext_command_GL_AMD_gpu_shader_half_float
186
+
187
+
179
188
  def self.define_ext_command_GL_AMD_gpu_shader_int64
180
189
  OpenGL::GL_FUNCTIONS_ARGS_MAP[:glUniform1i64NV] = [Fiddle::TYPE_INT, Fiddle::TYPE_LONG_LONG]
181
190
  OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glUniform1i64NV] = Fiddle::TYPE_VOID
@@ -798,6 +807,15 @@ module OpenGLExt
798
807
  end # self.get_ext_command_GL_AMD_shader_atomic_counter_ops
799
808
 
800
809
 
810
+ def self.define_ext_command_GL_AMD_shader_ballot
811
+ end # self.define_ext_command_GL_AMD_shader_ballot
812
+
813
+ def self.get_ext_command_GL_AMD_shader_ballot
814
+ [
815
+ ]
816
+ end # self.get_ext_command_GL_AMD_shader_ballot
817
+
818
+
801
819
  def self.define_ext_command_GL_AMD_shader_stencil_export
802
820
  end # self.define_ext_command_GL_AMD_shader_stencil_export
803
821
 
@@ -18293,6 +18311,24 @@ module OpenGLExt
18293
18311
  end # self.get_ext_command_GL_EXT_vertex_weighting
18294
18312
 
18295
18313
 
18314
+ def self.define_ext_command_GL_EXT_window_rectangles
18315
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glWindowRectanglesEXT] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
18316
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glWindowRectanglesEXT] = Fiddle::TYPE_VOID
18317
+ OpenGL.module_eval(<<-SRC)
18318
+ def glWindowRectanglesEXT(_mode_, _count_, _box_)
18319
+ f = OpenGL::get_command(:glWindowRectanglesEXT)
18320
+ f.call(_mode_, _count_, _box_)
18321
+ end
18322
+ SRC
18323
+ end # self.define_ext_command_GL_EXT_window_rectangles
18324
+
18325
+ def self.get_ext_command_GL_EXT_window_rectangles
18326
+ [
18327
+ 'glWindowRectanglesEXT',
18328
+ ]
18329
+ end # self.get_ext_command_GL_EXT_window_rectangles
18330
+
18331
+
18296
18332
  def self.define_ext_command_GL_EXT_x11_sync_object
18297
18333
  OpenGL::GL_FUNCTIONS_ARGS_MAP[:glImportSyncEXT] = [-Fiddle::TYPE_INT, Fiddle::TYPE_PTRDIFF_T, -Fiddle::TYPE_INT]
18298
18334
  OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glImportSyncEXT] = Fiddle::TYPE_VOIDP
@@ -18639,6 +18675,15 @@ module OpenGLExt
18639
18675
  end # self.get_ext_command_GL_INGR_interlace_read
18640
18676
 
18641
18677
 
18678
+ def self.define_ext_command_GL_INTEL_conservative_rasterization
18679
+ end # self.define_ext_command_GL_INTEL_conservative_rasterization
18680
+
18681
+ def self.get_ext_command_GL_INTEL_conservative_rasterization
18682
+ [
18683
+ ]
18684
+ end # self.get_ext_command_GL_INTEL_conservative_rasterization
18685
+
18686
+
18642
18687
  def self.define_ext_command_GL_INTEL_fragment_shader_ordering
18643
18688
  end # self.define_ext_command_GL_INTEL_fragment_shader_ordering
18644
18689
 
@@ -135,6 +135,41 @@ module OpenGLExt
135
135
  end # self.get_ext_enum_GL_AMD_gcn_shader
136
136
 
137
137
 
138
+ def self.define_ext_enum_GL_AMD_gpu_shader_half_float
139
+ OpenGL.const_set('GL_FLOAT16_NV', 0x8FF8) unless defined?(OpenGL::GL_FLOAT16_NV)
140
+ OpenGL.const_set('GL_FLOAT16_VEC2_NV', 0x8FF9) unless defined?(OpenGL::GL_FLOAT16_VEC2_NV)
141
+ OpenGL.const_set('GL_FLOAT16_VEC3_NV', 0x8FFA) unless defined?(OpenGL::GL_FLOAT16_VEC3_NV)
142
+ OpenGL.const_set('GL_FLOAT16_VEC4_NV', 0x8FFB) unless defined?(OpenGL::GL_FLOAT16_VEC4_NV)
143
+ OpenGL.const_set('GL_FLOAT16_MAT2_AMD', 0x91C5) unless defined?(OpenGL::GL_FLOAT16_MAT2_AMD)
144
+ OpenGL.const_set('GL_FLOAT16_MAT3_AMD', 0x91C6) unless defined?(OpenGL::GL_FLOAT16_MAT3_AMD)
145
+ OpenGL.const_set('GL_FLOAT16_MAT4_AMD', 0x91C7) unless defined?(OpenGL::GL_FLOAT16_MAT4_AMD)
146
+ OpenGL.const_set('GL_FLOAT16_MAT2x3_AMD', 0x91C8) unless defined?(OpenGL::GL_FLOAT16_MAT2x3_AMD)
147
+ OpenGL.const_set('GL_FLOAT16_MAT2x4_AMD', 0x91C9) unless defined?(OpenGL::GL_FLOAT16_MAT2x4_AMD)
148
+ OpenGL.const_set('GL_FLOAT16_MAT3x2_AMD', 0x91CA) unless defined?(OpenGL::GL_FLOAT16_MAT3x2_AMD)
149
+ OpenGL.const_set('GL_FLOAT16_MAT3x4_AMD', 0x91CB) unless defined?(OpenGL::GL_FLOAT16_MAT3x4_AMD)
150
+ OpenGL.const_set('GL_FLOAT16_MAT4x2_AMD', 0x91CC) unless defined?(OpenGL::GL_FLOAT16_MAT4x2_AMD)
151
+ OpenGL.const_set('GL_FLOAT16_MAT4x3_AMD', 0x91CD) unless defined?(OpenGL::GL_FLOAT16_MAT4x3_AMD)
152
+ end # self.define_ext_enum_GL_AMD_gpu_shader_half_float
153
+
154
+ def self.get_ext_enum_GL_AMD_gpu_shader_half_float
155
+ [
156
+ 'GL_FLOAT16_NV',
157
+ 'GL_FLOAT16_VEC2_NV',
158
+ 'GL_FLOAT16_VEC3_NV',
159
+ 'GL_FLOAT16_VEC4_NV',
160
+ 'GL_FLOAT16_MAT2_AMD',
161
+ 'GL_FLOAT16_MAT3_AMD',
162
+ 'GL_FLOAT16_MAT4_AMD',
163
+ 'GL_FLOAT16_MAT2x3_AMD',
164
+ 'GL_FLOAT16_MAT2x4_AMD',
165
+ 'GL_FLOAT16_MAT3x2_AMD',
166
+ 'GL_FLOAT16_MAT3x4_AMD',
167
+ 'GL_FLOAT16_MAT4x2_AMD',
168
+ 'GL_FLOAT16_MAT4x3_AMD',
169
+ ]
170
+ end # self.get_ext_enum_GL_AMD_gpu_shader_half_float
171
+
172
+
138
173
  def self.define_ext_enum_GL_AMD_gpu_shader_int64
139
174
  OpenGL.const_set('GL_INT64_NV', 0x140E) unless defined?(OpenGL::GL_INT64_NV)
140
175
  OpenGL.const_set('GL_UNSIGNED_INT64_NV', 0x140F) unless defined?(OpenGL::GL_UNSIGNED_INT64_NV)
@@ -356,6 +391,15 @@ module OpenGLExt
356
391
  end # self.get_ext_enum_GL_AMD_shader_atomic_counter_ops
357
392
 
358
393
 
394
+ def self.define_ext_enum_GL_AMD_shader_ballot
395
+ end # self.define_ext_enum_GL_AMD_shader_ballot
396
+
397
+ def self.get_ext_enum_GL_AMD_shader_ballot
398
+ [
399
+ ]
400
+ end # self.get_ext_enum_GL_AMD_shader_ballot
401
+
402
+
359
403
  def self.define_ext_enum_GL_AMD_shader_stencil_export
360
404
  end # self.define_ext_enum_GL_AMD_shader_stencil_export
361
405
 
@@ -8128,6 +8172,27 @@ module OpenGLExt
8128
8172
  end # self.get_ext_enum_GL_EXT_vertex_weighting
8129
8173
 
8130
8174
 
8175
+ def self.define_ext_enum_GL_EXT_window_rectangles
8176
+ OpenGL.const_set('GL_INCLUSIVE_EXT', 0x8F10) unless defined?(OpenGL::GL_INCLUSIVE_EXT)
8177
+ OpenGL.const_set('GL_EXCLUSIVE_EXT', 0x8F11) unless defined?(OpenGL::GL_EXCLUSIVE_EXT)
8178
+ OpenGL.const_set('GL_WINDOW_RECTANGLE_EXT', 0x8F12) unless defined?(OpenGL::GL_WINDOW_RECTANGLE_EXT)
8179
+ OpenGL.const_set('GL_WINDOW_RECTANGLE_MODE_EXT', 0x8F13) unless defined?(OpenGL::GL_WINDOW_RECTANGLE_MODE_EXT)
8180
+ OpenGL.const_set('GL_MAX_WINDOW_RECTANGLES_EXT', 0x8F14) unless defined?(OpenGL::GL_MAX_WINDOW_RECTANGLES_EXT)
8181
+ OpenGL.const_set('GL_NUM_WINDOW_RECTANGLES_EXT', 0x8F15) unless defined?(OpenGL::GL_NUM_WINDOW_RECTANGLES_EXT)
8182
+ end # self.define_ext_enum_GL_EXT_window_rectangles
8183
+
8184
+ def self.get_ext_enum_GL_EXT_window_rectangles
8185
+ [
8186
+ 'GL_INCLUSIVE_EXT',
8187
+ 'GL_EXCLUSIVE_EXT',
8188
+ 'GL_WINDOW_RECTANGLE_EXT',
8189
+ 'GL_WINDOW_RECTANGLE_MODE_EXT',
8190
+ 'GL_MAX_WINDOW_RECTANGLES_EXT',
8191
+ 'GL_NUM_WINDOW_RECTANGLES_EXT',
8192
+ ]
8193
+ end # self.get_ext_enum_GL_EXT_window_rectangles
8194
+
8195
+
8131
8196
  def self.define_ext_enum_GL_EXT_x11_sync_object
8132
8197
  OpenGL.const_set('GL_SYNC_X11_FENCE_EXT', 0x90E1) unless defined?(OpenGL::GL_SYNC_X11_FENCE_EXT)
8133
8198
  end # self.define_ext_enum_GL_EXT_x11_sync_object
@@ -8382,6 +8447,17 @@ module OpenGLExt
8382
8447
  end # self.get_ext_enum_GL_INGR_interlace_read
8383
8448
 
8384
8449
 
8450
+ def self.define_ext_enum_GL_INTEL_conservative_rasterization
8451
+ OpenGL.const_set('GL_CONSERVATIVE_RASTERIZATION_INTEL', 0x83FE) unless defined?(OpenGL::GL_CONSERVATIVE_RASTERIZATION_INTEL)
8452
+ end # self.define_ext_enum_GL_INTEL_conservative_rasterization
8453
+
8454
+ def self.get_ext_enum_GL_INTEL_conservative_rasterization
8455
+ [
8456
+ 'GL_CONSERVATIVE_RASTERIZATION_INTEL',
8457
+ ]
8458
+ end # self.get_ext_enum_GL_INTEL_conservative_rasterization
8459
+
8460
+
8385
8461
  def self.define_ext_enum_GL_INTEL_fragment_shader_ordering
8386
8462
  end # self.define_ext_enum_GL_INTEL_fragment_shader_ordering
8387
8463
 
@@ -9180,15 +9256,15 @@ module OpenGLExt
9180
9256
 
9181
9257
  def self.define_ext_enum_GL_NV_clip_space_w_scaling
9182
9258
  OpenGL.const_set('GL_VIEWPORT_POSITION_W_SCALE_NV', 0x937C) unless defined?(OpenGL::GL_VIEWPORT_POSITION_W_SCALE_NV)
9183
- OpenGL.const_set('GL_VIEWPORT_POSITION_W_SCALE_X_COEFF', 0x937D) unless defined?(OpenGL::GL_VIEWPORT_POSITION_W_SCALE_X_COEFF)
9184
- OpenGL.const_set('GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF', 0x937E) unless defined?(OpenGL::GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF)
9259
+ OpenGL.const_set('GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV', 0x937D) unless defined?(OpenGL::GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV)
9260
+ OpenGL.const_set('GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV', 0x937E) unless defined?(OpenGL::GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV)
9185
9261
  end # self.define_ext_enum_GL_NV_clip_space_w_scaling
9186
9262
 
9187
9263
  def self.get_ext_enum_GL_NV_clip_space_w_scaling
9188
9264
  [
9189
9265
  'GL_VIEWPORT_POSITION_W_SCALE_NV',
9190
- 'GL_VIEWPORT_POSITION_W_SCALE_X_COEFF',
9191
- 'GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF',
9266
+ 'GL_VIEWPORT_POSITION_W_SCALE_X_COEFF_NV',
9267
+ 'GL_VIEWPORT_POSITION_W_SCALE_Y_COEFF_NV',
9192
9268
  ]
9193
9269
  end # self.get_ext_enum_GL_NV_clip_space_w_scaling
9194
9270
 
@@ -3,9 +3,9 @@
3
3
  #
4
4
  # Ref.: https://github.com/malkia/ufo/blob/master/build/OSX/glfw.sh
5
5
  #
6
- wget https://github.com/glfw/glfw/releases/download/3.2/glfw-3.2.zip
7
- tar xvjf glfw-3.2.zip
8
- cd glfw-3.2/
6
+ wget https://github.com/glfw/glfw/releases/download/3.2.1/glfw-3.2.1.zip
7
+ tar xvjf glfw-3.2.1.zip
8
+ cd glfw-3.2.1/
9
9
  mkdir build
10
10
  cd build
11
11
  export MACOSX_DEPLOYMENT_TARGET=10.11
@@ -15,8 +15,8 @@ make
15
15
  # 'ls -l src/libglfw*' should be:
16
16
  #
17
17
  # $ ls -l src/libglfw*
18
- # -rwxr-xr-x 1 foo staff 238124 2016-06-03 20:49 libglfw.3.2.dylib
19
- # lrwxr-xr-x 1 foo staff 17 2016-06-03 20:49 libglfw.3.dylib -> libglfw.3.2.dylib
20
- # lrwxr-xr-x 1 foo staff 15 2016-06-03 20:49 libglfw.dylib -> libglfw.3.dylib
18
+ # -rwxr-xr-x 1 foo staff 238148 8 27 23:13 src/libglfw.3.2.dylib
19
+ # lrwxr-xr-x 1 foo staff 17 8 27 23:13 src/libglfw.3.dylib -> libglfw.3.2.dylib
20
+ # lrwxr-xr-x 1 foo staff 15 8 27 23:13 src/libglfw.dylib -> libglfw.3.dylib
21
21
 
22
22
  cp -R src/libglfw* ../..
@@ -17,11 +17,27 @@ if __FILE__ == $0
17
17
  glfwInit()
18
18
 
19
19
  window = nil
20
- [4, 3].each do |major_ver|
20
+
21
+ # https://www.opengl.org/wiki/History_of_OpenGL
22
+ versions = [[4, 5], [4, 4], [4, 3], [4, 2], [4, 1], [4, 0],
23
+ [3, 3], [3, 2], [3, 1], [3, 0],
24
+ [2, 1], [2, 0],
25
+ [1, 5], [1, 4], [1, 3], [1, 2], [1, 1], [1, 0]]
26
+
27
+ versions.each do |version|
28
+ ver_major = version[0]
29
+ ver_minor = version[1]
21
30
  glfwDefaultWindowHints()
22
- # glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE)
23
- glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE)
24
- # glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, major_ver)
31
+ if OpenGL.get_platform == :OPENGL_PLATFORM_MACOSX
32
+ glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE)
33
+ end
34
+ if ver_major >= 4 || (ver_major >= 3 && ver_minor >= 2)
35
+ glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE)
36
+ else
37
+ glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_ANY_PROFILE)
38
+ end
39
+ glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, ver_major)
40
+ glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, ver_minor)
25
41
  glfwWindowHint(GLFW_DECORATED, 0)
26
42
  window = glfwCreateWindow( 1, 1, "Report OpenGL Environment", nil, nil )
27
43
  break unless window.null?
@@ -29,6 +45,7 @@ if __FILE__ == $0
29
45
 
30
46
  if window.null?
31
47
  glfwDefaultWindowHints()
48
+ glfwWindowHint(GLFW_DECORATED, 0)
32
49
  window = glfwCreateWindow( 1, 1, "Report OpenGL Environment", nil, nil )
33
50
  if window.null?
34
51
  puts "Failed to create the OpenGL context."
@@ -41,8 +58,16 @@ if __FILE__ == $0
41
58
 
42
59
  version_string = glGetString(GL_VERSION).to_s
43
60
  version_number = version_string.split(/\./)
44
- puts "Version: #{version_string}"
45
- puts "Extensions:"
61
+
62
+ vendor_string = glGetString(GL_VENDOR).to_s
63
+ renderer_string = glGetString(GL_RENDERER).to_s
64
+ slangver_string = glGetString(GL_SHADING_LANGUAGE_VERSION).to_s
65
+
66
+ puts "Version : #{version_string}"
67
+ puts "Vendor : #{vendor_string}"
68
+ puts "Renderer : #{renderer_string}"
69
+ puts "Shader : #{slangver_string}"
70
+ puts "Extensions :"
46
71
  if version_number[0].to_i >= 3
47
72
  # glGetString(GL_EXTENSIONS) was deprecated in OpenGL 3.0
48
73
  # Ref.: http://sourceforge.net/p/glew/bugs/120/
@@ -55,6 +80,7 @@ if __FILE__ == $0
55
80
  else
56
81
  puts glGetString(GL_EXTENSIONS).to_s.split(/ /)
57
82
  end
83
+
58
84
  glfwDestroyWindow( window )
59
85
  glfwTerminate()
60
86
  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.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-03 00:00:00.000000000 Z
11
+ date: 2016-09-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'Ruby bindings for OpenGL - 4.5, OpenGL ES - 3.2 and all extensions using
14
14
  Fiddle (For MRI >= 2.0.0). GLFW/GLUT/GLU bindings are also available.
@@ -45,10 +45,8 @@ files:
45
45
  - lib/opengl_platform.rb
46
46
  - lib/opengl_windows.rb
47
47
  - sample/README.md
48
- - sample/glfw31_build_dylib.sh
49
48
  - sample/glfw32_build_dylib.sh
50
49
  - sample/report_env.rb
51
- - sample/report_env_es.rb
52
50
  - sample/simple.rb
53
51
  - sample/simple_glut.rb
54
52
  homepage: https://github.com/vaiorabbit/ruby-opengl
@@ -1,22 +0,0 @@
1
- #
2
- # For Mac OS X + Xcode + CMake users.
3
- #
4
- # Ref.: https://github.com/malkia/ufo/blob/master/build/OSX/glfw.sh
5
- #
6
- wget http://downloads.sourceforge.net/project/glfw/glfw/3.1.2/glfw-3.1.2.tar.bz2
7
- tar xvjf glfw-3.1.2.tar.bz2
8
- cd glfw-3.1.2/
9
- mkdir build
10
- cd build
11
- export MACOSX_DEPLOYMENT_TARGET=10.11
12
- cmake -D GLFW_NATIVE_API=1 -D CMAKE_OSX_ARCHITECTURES="i386;x86_64" -D BUILD_SHARED_LIBS=ON -D CMAKE_C_COMPILER=clang ../
13
- make
14
-
15
- # 'ls -l src/libglfw*' should be:
16
- #
17
- # $ ls -l src/libglfw*
18
- # -rwxr-xr-x 1 foo staff 252740 1 19 22:55 src/libglfw.3.1.dylib
19
- # lrwxr-xr-x 1 foo staff 17 1 19 22:55 src/libglfw.3.dylib -> libglfw.3.1.dylib
20
- # lrwxr-xr-x 1 foo staff 15 1 19 22:55 src/libglfw.dylib -> libglfw.3.dylib
21
-
22
- cp -R src/libglfw* ../..
@@ -1,27 +0,0 @@
1
- require 'opengl_es'
2
- require 'glfw'
3
-
4
- OpenGL.load_lib()
5
- GLFW.load_lib()
6
-
7
- include OpenGL
8
- include GLFW
9
-
10
- if __FILE__ == $0
11
- glfwInit()
12
- glfwWindowHint(GLFW_DECORATED, 0)
13
- glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3)
14
- glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API)
15
- window = glfwCreateWindow( 1, 1, "Report OpenGL Environment", nil, nil )
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
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 )
26
- glfwTerminate()
27
- end