opengl-bindings 1.3.0 → 1.3.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: 809f563881dbc01b1a6c611438549b627f09692b
4
- data.tar.gz: 26283ccf3c37567bb3510464e11559f172a0d8e8
3
+ metadata.gz: 3ad50f1b4c62375329e95d02063fcee3c454fc96
4
+ data.tar.gz: b1bda637089cc046e4ba139263b8839d74dd3872
5
5
  SHA512:
6
- metadata.gz: c82e802142c908146facc92286e6e5697d33fde88d93a4526ef7ff12b11c1fb9fb0621ef12254310f33cef0c676b1a615754da5cc11a8aa48e36bbce33cbd4aa
7
- data.tar.gz: b23c640e6078cfadd99fa62596078520398372a6b7fb1b6af002fb0494be2c6eac3df4d0d58586859d6d7565467af7f926872b02a85df380b83d0a0bb8f5cbb2
6
+ metadata.gz: 2f7540f11722b0de9429dfbeb25c9e8294df1d37a47b0ba760ba862db4cffea568bba8d7670973a6b92526ed3207f2925fa5583d83f10cf5ceaffe5285ade950
7
+ data.tar.gz: 1402f2febc00abefbcbcab3e7f0e7d2cadb2d32b89d5694e93ca62e88a3d3ea4ab29f6fa09a40b590a962ceecfb1b367c628594fad48a60520888d11b31603e2
data/ChangeLog CHANGED
@@ -1,8 +1,13 @@
1
+ 2013-11-27 vaiorabbit <https://twitter.com/vaiorabbit>
2
+
3
+ * opengl_ext_command.rb, opengl_ext_enum.rb: Updated using latest gl.xml.
4
+
1
5
  2013-11-02 vaiorabbit <https://twitter.com/vaiorabbit>
2
6
 
3
7
  * opengl_es.rb: Aded OpenGL ES 2.0/3.0 support.
4
8
  * sample/GLES: Aded.
5
9
  * opengl_command.rb, opengl_ext_command.rb, opengl_ext_enum.rb: Updated using latest gl.xml.
10
+ * generator/Rakefile: Supported new task 'clean'.
6
11
 
7
12
  2013-10-20 vaiorabbit <https://twitter.com/vaiorabbit>
8
13
 
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-02
8
+ * Last modified : 2013-11-27
9
9
 
10
10
 
11
11
  ## Features ##
@@ -585,16 +585,9 @@ module OpenGL
585
585
  end # define_enum_GL_KHR_texture_compression_astc_ldr
586
586
 
587
587
  def define_enum_GL_NV_blend_equation_advanced
588
- const_set('GL_BLUE_NV', 0x1905) unless defined?(GL_BLUE_NV)
589
- const_set('GL_GREEN_NV', 0x1904) unless defined?(GL_GREEN_NV)
590
- const_set('GL_RED_NV', 0x1903) unless defined?(GL_RED_NV)
591
- const_set('GL_XOR_NV', 0x1506) unless defined?(GL_XOR_NV)
592
- const_set('GL_BLUE', 0x1905) unless defined?(GL_BLUE)
593
- const_set('GL_GREEN', 0x1904) unless defined?(GL_GREEN)
594
- const_set('GL_RED', 0x1903) unless defined?(GL_RED)
595
- const_set('GL_XOR', 0x1506) unless defined?(GL_XOR)
596
588
  const_set('GL_BLEND_OVERLAP_NV', 0x9281) unless defined?(GL_BLEND_OVERLAP_NV)
597
589
  const_set('GL_BLEND_PREMULTIPLIED_SRC_NV', 0x9280) unless defined?(GL_BLEND_PREMULTIPLIED_SRC_NV)
590
+ const_set('GL_BLUE_NV', 0x1905) unless defined?(GL_BLUE_NV)
598
591
  const_set('GL_COLORBURN_NV', 0x929A) unless defined?(GL_COLORBURN_NV)
599
592
  const_set('GL_COLORDODGE_NV', 0x9299) unless defined?(GL_COLORDODGE_NV)
600
593
  const_set('GL_CONJOINT_NV', 0x9284) unless defined?(GL_CONJOINT_NV)
@@ -608,6 +601,7 @@ module OpenGL
608
601
  const_set('GL_DST_OUT_NV', 0x928D) unless defined?(GL_DST_OUT_NV)
609
602
  const_set('GL_DST_OVER_NV', 0x9289) unless defined?(GL_DST_OVER_NV)
610
603
  const_set('GL_EXCLUSION_NV', 0x92A0) unless defined?(GL_EXCLUSION_NV)
604
+ const_set('GL_GREEN_NV', 0x1904) unless defined?(GL_GREEN_NV)
611
605
  const_set('GL_HARDLIGHT_NV', 0x929B) unless defined?(GL_HARDLIGHT_NV)
612
606
  const_set('GL_HARDMIX_NV', 0x92A9) unless defined?(GL_HARDMIX_NV)
613
607
  const_set('GL_HSL_COLOR_NV', 0x92AF) unless defined?(GL_HSL_COLOR_NV)
@@ -630,6 +624,7 @@ module OpenGL
630
624
  const_set('GL_PLUS_CLAMPED_NV', 0x92B1) unless defined?(GL_PLUS_CLAMPED_NV)
631
625
  const_set('GL_PLUS_DARKER_NV', 0x9292) unless defined?(GL_PLUS_DARKER_NV)
632
626
  const_set('GL_PLUS_NV', 0x9291) unless defined?(GL_PLUS_NV)
627
+ const_set('GL_RED_NV', 0x1903) unless defined?(GL_RED_NV)
633
628
  const_set('GL_SCREEN_NV', 0x9295) unless defined?(GL_SCREEN_NV)
634
629
  const_set('GL_SOFTLIGHT_NV', 0x929C) unless defined?(GL_SOFTLIGHT_NV)
635
630
  const_set('GL_SRC_ATOP_NV', 0x928E) unless defined?(GL_SRC_ATOP_NV)
@@ -639,6 +634,7 @@ module OpenGL
639
634
  const_set('GL_SRC_OVER_NV', 0x9288) unless defined?(GL_SRC_OVER_NV)
640
635
  const_set('GL_UNCORRELATED_NV', 0x9282) unless defined?(GL_UNCORRELATED_NV)
641
636
  const_set('GL_VIVIDLIGHT_NV', 0x92A6) unless defined?(GL_VIVIDLIGHT_NV)
637
+ const_set('GL_XOR_NV', 0x1506) unless defined?(GL_XOR_NV)
642
638
  const_set('GL_ZERO', 0) unless defined?(GL_ZERO)
643
639
  end # define_enum_GL_NV_blend_equation_advanced
644
640
 
@@ -170,6 +170,17 @@ module OpenGL
170
170
  SRC_GL_AMD_name_gen_delete
171
171
  end # define_command_GL_AMD_name_gen_delete
172
172
 
173
+ def define_command_GL_AMD_occlusion_query_event
174
+ GL_FUNCTIONS_ARGS_MAP[:glQueryObjectParameteruiAMD] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
175
+ GL_FUNCTIONS_RETVAL_MAP[:glQueryObjectParameteruiAMD] = Fiddle::TYPE_VOID
176
+ module_eval(<<-SRC_GL_AMD_occlusion_query_event)
177
+ def glQueryObjectParameteruiAMD(_target_, _id_, _pname_, _param_)
178
+ f = OpenGL::get_command(:glQueryObjectParameteruiAMD)
179
+ f.call(_target_, _id_, _pname_, _param_)
180
+ end
181
+ SRC_GL_AMD_occlusion_query_event
182
+ end # define_command_GL_AMD_occlusion_query_event
183
+
173
184
  def define_command_GL_AMD_performance_monitor
174
185
  GL_FUNCTIONS_ARGS_MAP[:glGetPerfMonitorGroupsAMD] = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
175
186
  GL_FUNCTIONS_RETVAL_MAP[:glGetPerfMonitorGroupsAMD] = Fiddle::TYPE_VOID
@@ -13209,8 +13220,8 @@ module OpenGL
13209
13220
  def define_command_GL_INGR_interlace_read
13210
13221
  end # define_command_GL_INGR_interlace_read
13211
13222
 
13212
- def define_command_GL_INTEL_fragment_ordering
13213
- end # define_command_GL_INTEL_fragment_ordering
13223
+ def define_command_GL_INTEL_fragment_shader_ordering
13224
+ end # define_command_GL_INTEL_fragment_shader_ordering
13214
13225
 
13215
13226
  def define_command_GL_INTEL_map_texture
13216
13227
  GL_FUNCTIONS_ARGS_MAP[:glSyncTextureINTEL] = [-Fiddle::TYPE_INT]
@@ -77,6 +77,15 @@ module OpenGL
77
77
  const_set('GL_SAMPLER_OBJECT_AMD', 0x9155) unless defined?(GL_SAMPLER_OBJECT_AMD)
78
78
  end # define_enum_GL_AMD_name_gen_delete
79
79
 
80
+ def define_enum_GL_AMD_occlusion_query_event
81
+ const_set('GL_OCCLUSION_QUERY_EVENT_MASK_AMD', 0x874F) unless defined?(GL_OCCLUSION_QUERY_EVENT_MASK_AMD)
82
+ const_set('GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD', 0x00000001) unless defined?(GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD)
83
+ const_set('GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD', 0x00000002) unless defined?(GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD)
84
+ const_set('GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD', 0x00000004) unless defined?(GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD)
85
+ const_set('GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD', 0x00000008) unless defined?(GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD)
86
+ const_set('GL_QUERY_ALL_EVENT_BITS_AMD', 0xFFFFFFFF) unless defined?(GL_QUERY_ALL_EVENT_BITS_AMD)
87
+ end # define_enum_GL_AMD_occlusion_query_event
88
+
80
89
  def define_enum_GL_AMD_performance_monitor
81
90
  const_set('GL_COUNTER_TYPE_AMD', 0x8BC0) unless defined?(GL_COUNTER_TYPE_AMD)
82
91
  const_set('GL_COUNTER_RANGE_AMD', 0x8BC1) unless defined?(GL_COUNTER_RANGE_AMD)
@@ -3466,8 +3475,8 @@ module OpenGL
3466
3475
  const_set('GL_INTERLACE_READ_INGR', 0x8568) unless defined?(GL_INTERLACE_READ_INGR)
3467
3476
  end # define_enum_GL_INGR_interlace_read
3468
3477
 
3469
- def define_enum_GL_INTEL_fragment_ordering
3470
- end # define_enum_GL_INTEL_fragment_ordering
3478
+ def define_enum_GL_INTEL_fragment_shader_ordering
3479
+ end # define_enum_GL_INTEL_fragment_shader_ordering
3471
3480
 
3472
3481
  def define_enum_GL_INTEL_map_texture
3473
3482
  const_set('GL_TEXTURE_MEMORY_LAYOUT_INTEL', 0x83FF) unless defined?(GL_TEXTURE_MEMORY_LAYOUT_INTEL)
@@ -3664,16 +3673,9 @@ module OpenGL
3664
3673
  end # define_enum_GL_NV_bindless_texture
3665
3674
 
3666
3675
  def define_enum_GL_NV_blend_equation_advanced
3667
- const_set('GL_BLUE_NV', 0x1905) unless defined?(GL_BLUE_NV)
3668
- const_set('GL_GREEN_NV', 0x1904) unless defined?(GL_GREEN_NV)
3669
- const_set('GL_RED_NV', 0x1903) unless defined?(GL_RED_NV)
3670
- const_set('GL_XOR_NV', 0x1506) unless defined?(GL_XOR_NV)
3671
- const_set('GL_BLUE', 0x1905) unless defined?(GL_BLUE)
3672
- const_set('GL_GREEN', 0x1904) unless defined?(GL_GREEN)
3673
- const_set('GL_RED', 0x1903) unless defined?(GL_RED)
3674
- const_set('GL_XOR', 0x1506) unless defined?(GL_XOR)
3675
3676
  const_set('GL_BLEND_OVERLAP_NV', 0x9281) unless defined?(GL_BLEND_OVERLAP_NV)
3676
3677
  const_set('GL_BLEND_PREMULTIPLIED_SRC_NV', 0x9280) unless defined?(GL_BLEND_PREMULTIPLIED_SRC_NV)
3678
+ const_set('GL_BLUE_NV', 0x1905) unless defined?(GL_BLUE_NV)
3677
3679
  const_set('GL_COLORBURN_NV', 0x929A) unless defined?(GL_COLORBURN_NV)
3678
3680
  const_set('GL_COLORDODGE_NV', 0x9299) unless defined?(GL_COLORDODGE_NV)
3679
3681
  const_set('GL_CONJOINT_NV', 0x9284) unless defined?(GL_CONJOINT_NV)
@@ -3687,6 +3689,7 @@ module OpenGL
3687
3689
  const_set('GL_DST_OUT_NV', 0x928D) unless defined?(GL_DST_OUT_NV)
3688
3690
  const_set('GL_DST_OVER_NV', 0x9289) unless defined?(GL_DST_OVER_NV)
3689
3691
  const_set('GL_EXCLUSION_NV', 0x92A0) unless defined?(GL_EXCLUSION_NV)
3692
+ const_set('GL_GREEN_NV', 0x1904) unless defined?(GL_GREEN_NV)
3690
3693
  const_set('GL_HARDLIGHT_NV', 0x929B) unless defined?(GL_HARDLIGHT_NV)
3691
3694
  const_set('GL_HARDMIX_NV', 0x92A9) unless defined?(GL_HARDMIX_NV)
3692
3695
  const_set('GL_HSL_COLOR_NV', 0x92AF) unless defined?(GL_HSL_COLOR_NV)
@@ -3709,6 +3712,7 @@ module OpenGL
3709
3712
  const_set('GL_PLUS_CLAMPED_NV', 0x92B1) unless defined?(GL_PLUS_CLAMPED_NV)
3710
3713
  const_set('GL_PLUS_DARKER_NV', 0x9292) unless defined?(GL_PLUS_DARKER_NV)
3711
3714
  const_set('GL_PLUS_NV', 0x9291) unless defined?(GL_PLUS_NV)
3715
+ const_set('GL_RED_NV', 0x1903) unless defined?(GL_RED_NV)
3712
3716
  const_set('GL_SCREEN_NV', 0x9295) unless defined?(GL_SCREEN_NV)
3713
3717
  const_set('GL_SOFTLIGHT_NV', 0x929C) unless defined?(GL_SOFTLIGHT_NV)
3714
3718
  const_set('GL_SRC_ATOP_NV', 0x928E) unless defined?(GL_SRC_ATOP_NV)
@@ -3718,6 +3722,7 @@ module OpenGL
3718
3722
  const_set('GL_SRC_OVER_NV', 0x9288) unless defined?(GL_SRC_OVER_NV)
3719
3723
  const_set('GL_UNCORRELATED_NV', 0x9282) unless defined?(GL_UNCORRELATED_NV)
3720
3724
  const_set('GL_VIVIDLIGHT_NV', 0x92A6) unless defined?(GL_VIVIDLIGHT_NV)
3725
+ const_set('GL_XOR_NV', 0x1506) unless defined?(GL_XOR_NV)
3721
3726
  const_set('GL_ZERO', 0) unless defined?(GL_ZERO)
3722
3727
  end # define_enum_GL_NV_blend_equation_advanced
3723
3728
 
@@ -1,3 +1,4 @@
1
+ require 'pp'
1
2
  require 'opengl_es'
2
3
  require 'glfw'
3
4
 
@@ -13,10 +14,12 @@ if __FILE__ == $0
13
14
  glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3)
14
15
  glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API)
15
16
  window = glfwCreateWindow( 1, 1, "Report OpenGL Environment", nil, nil )
16
- glfwMakeContextCurrent( window )
17
- puts "Version: #{glGetString(GL_VERSION).to_s}"
18
- puts "Extensions:"
19
- puts glGetString(GL_EXTENSIONS).to_s.split(/ /)
20
- glfwDestroyWindow( window )
17
+ unless window.null?
18
+ glfwMakeContextCurrent( window )
19
+ puts "Version: #{glGetString(GL_VERSION).to_s}"
20
+ puts "Extensions:"
21
+ puts glGetString(GL_EXTENSIONS).to_s.split(/ /)
22
+ glfwDestroyWindow( window )
23
+ end
21
24
  glfwTerminate()
22
25
  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.3.0
4
+ version: 1.3.1
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-02 00:00:00.000000000 Z
11
+ date: 2013-11-26 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.4
68
+ rubygems_version: 2.1.10
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)