opengl-bindings2 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ChangeLog +8 -0
- data/LICENSE.txt +1 -1
- data/README.md +75 -41
- data/lib/glfw.rb +76 -21
- data/lib/glfw33.rb +704 -0
- data/lib/glu.rb +1 -1
- data/lib/glut.rb +1 -1
- data/lib/opengl.rb +1 -1
- data/lib/opengl_es.rb +1 -1
- data/lib/opengl_es_ext.rb +1 -1
- data/lib/opengl_es_ext_command.rb +20 -0
- data/lib/opengl_es_ext_enum.rb +13 -0
- data/lib/opengl_ext.rb +1 -1
- data/lib/opengl_ext_command.rb +11 -0
- data/lib/opengl_linux.rb +1 -1
- data/lib/opengl_macosx.rb +1 -1
- data/lib/opengl_platform.rb +1 -1
- data/lib/opengl_windows.rb +1 -1
- metadata +19 -7
data/lib/glu.rb
CHANGED
@@ -343,7 +343,7 @@ end
|
|
343
343
|
|
344
344
|
=begin
|
345
345
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
346
|
-
Copyright (c) 2013-
|
346
|
+
Copyright (c) 2013-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
347
347
|
|
348
348
|
This software is provided 'as-is', without any express or implied
|
349
349
|
warranty. In no event will the authors be held liable for any damages
|
data/lib/glut.rb
CHANGED
@@ -552,7 +552,7 @@ end
|
|
552
552
|
|
553
553
|
=begin
|
554
554
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
555
|
-
Copyright (c) 2013-
|
555
|
+
Copyright (c) 2013-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
556
556
|
|
557
557
|
This software is provided 'as-is', without any express or implied
|
558
558
|
warranty. In no event will the authors be held liable for any damages
|
data/lib/opengl.rb
CHANGED
@@ -13,7 +13,7 @@ end
|
|
13
13
|
|
14
14
|
=begin
|
15
15
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
16
|
-
Copyright (c) 2013-
|
16
|
+
Copyright (c) 2013-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
17
17
|
|
18
18
|
This software is provided 'as-is', without any express or implied
|
19
19
|
warranty. In no event will the authors be held liable for any damages
|
data/lib/opengl_es.rb
CHANGED
@@ -8,7 +8,7 @@ end
|
|
8
8
|
|
9
9
|
=begin
|
10
10
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
11
|
-
Copyright (c) 2013-
|
11
|
+
Copyright (c) 2013-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
12
12
|
|
13
13
|
This software is provided 'as-is', without any express or implied
|
14
14
|
warranty. In no event will the authors be held liable for any damages
|
data/lib/opengl_es_ext.rb
CHANGED
@@ -5,7 +5,7 @@ require_relative 'opengl_es_ext_command'
|
|
5
5
|
|
6
6
|
=begin
|
7
7
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
8
|
-
Copyright (c) 2013-
|
8
|
+
Copyright (c) 2013-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
9
9
|
|
10
10
|
This software is provided 'as-is', without any express or implied
|
11
11
|
warranty. In no event will the authors be held liable for any damages
|
@@ -8748,11 +8748,22 @@ module GLExt
|
|
8748
8748
|
GL_FUNCTIONS_MAP[:glFramebufferTextureMultiviewOVR].call(_target_, _attachment_, _texture_, _level_, _baseViewIndex_, _numViews_)
|
8749
8749
|
end
|
8750
8750
|
SRC
|
8751
|
+
|
8752
|
+
GL::GL_FUNCTION_SYMBOLS << :glNamedFramebufferTextureMultiviewOVR
|
8753
|
+
GL::GL_FUNCTIONS_ARGS_MAP[:glNamedFramebufferTextureMultiviewOVR] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
|
8754
|
+
GL::GL_FUNCTIONS_RETVAL_MAP[:glNamedFramebufferTextureMultiviewOVR] = Fiddle::TYPE_VOID
|
8755
|
+
GL.bind_command(:glNamedFramebufferTextureMultiviewOVR)
|
8756
|
+
GL.module_eval(<<-SRC)
|
8757
|
+
def self.NamedFramebufferTextureMultiviewOVR(_framebuffer_, _attachment_, _texture_, _level_, _baseViewIndex_, _numViews_)
|
8758
|
+
GL_FUNCTIONS_MAP[:glNamedFramebufferTextureMultiviewOVR].call(_framebuffer_, _attachment_, _texture_, _level_, _baseViewIndex_, _numViews_)
|
8759
|
+
end
|
8760
|
+
SRC
|
8751
8761
|
end # self.define_ext_command_GL_OVR_multiview
|
8752
8762
|
|
8753
8763
|
def self.get_ext_command_GL_OVR_multiview
|
8754
8764
|
[
|
8755
8765
|
'glFramebufferTextureMultiviewOVR',
|
8766
|
+
'glNamedFramebufferTextureMultiviewOVR',
|
8756
8767
|
]
|
8757
8768
|
end # self.get_ext_command_GL_OVR_multiview
|
8758
8769
|
|
@@ -9147,6 +9158,15 @@ module GLExt
|
|
9147
9158
|
end # self.get_ext_command_GL_QCOM_texture_foveated_subsampled_layout
|
9148
9159
|
|
9149
9160
|
|
9161
|
+
def self.define_ext_command_GL_QCOM_ycbcr_degamma
|
9162
|
+
end # self.define_ext_command_GL_QCOM_ycbcr_degamma
|
9163
|
+
|
9164
|
+
def self.get_ext_command_GL_QCOM_ycbcr_degamma
|
9165
|
+
[
|
9166
|
+
]
|
9167
|
+
end # self.get_ext_command_GL_QCOM_ycbcr_degamma
|
9168
|
+
|
9169
|
+
|
9150
9170
|
def self.define_ext_command_GL_QCOM_texture_lod_bias
|
9151
9171
|
end # self.define_ext_command_GL_QCOM_texture_lod_bias
|
9152
9172
|
|
data/lib/opengl_es_ext_enum.rb
CHANGED
@@ -6116,6 +6116,19 @@ module GLExt
|
|
6116
6116
|
end # self.get_ext_enum_GL_QCOM_texture_foveated_subsampled_layout
|
6117
6117
|
|
6118
6118
|
|
6119
|
+
def self.define_ext_enum_GL_QCOM_ycbcr_degamma
|
6120
|
+
GL.const_set('TEXTURE_Y_DEGAMMA_QCOM', 0x9710) unless defined?(GL::TEXTURE_Y_DEGAMMA_QCOM)
|
6121
|
+
GL.const_set('TEXTURE_CBCR_DEGAMMA_QCOM', 0x9711) unless defined?(GL::TEXTURE_CBCR_DEGAMMA_QCOM)
|
6122
|
+
end # self.define_ext_enum_GL_QCOM_ycbcr_degamma
|
6123
|
+
|
6124
|
+
def self.get_ext_enum_GL_QCOM_ycbcr_degamma
|
6125
|
+
[
|
6126
|
+
'TEXTURE_Y_DEGAMMA_QCOM',
|
6127
|
+
'TEXTURE_CBCR_DEGAMMA_QCOM',
|
6128
|
+
]
|
6129
|
+
end # self.get_ext_enum_GL_QCOM_ycbcr_degamma
|
6130
|
+
|
6131
|
+
|
6119
6132
|
def self.define_ext_enum_GL_QCOM_texture_lod_bias
|
6120
6133
|
GL.const_set('TEXTURE_LOD_BIAS_QCOM', 0x8C96) unless defined?(GL::TEXTURE_LOD_BIAS_QCOM)
|
6121
6134
|
end # self.define_ext_enum_GL_QCOM_texture_lod_bias
|
data/lib/opengl_ext.rb
CHANGED
@@ -5,7 +5,7 @@ require_relative 'opengl_ext_command'
|
|
5
5
|
|
6
6
|
=begin
|
7
7
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
8
|
-
Copyright (c) 2013-
|
8
|
+
Copyright (c) 2013-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
9
9
|
|
10
10
|
This software is provided 'as-is', without any express or implied
|
11
11
|
warranty. In no event will the authors be held liable for any damages
|
data/lib/opengl_ext_command.rb
CHANGED
@@ -31269,11 +31269,22 @@ module GLExt
|
|
31269
31269
|
GL_FUNCTIONS_MAP[:glFramebufferTextureMultiviewOVR].call(_target_, _attachment_, _texture_, _level_, _baseViewIndex_, _numViews_)
|
31270
31270
|
end
|
31271
31271
|
SRC
|
31272
|
+
|
31273
|
+
GL::GL_FUNCTION_SYMBOLS << :glNamedFramebufferTextureMultiviewOVR
|
31274
|
+
GL::GL_FUNCTIONS_ARGS_MAP[:glNamedFramebufferTextureMultiviewOVR] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
|
31275
|
+
GL::GL_FUNCTIONS_RETVAL_MAP[:glNamedFramebufferTextureMultiviewOVR] = Fiddle::TYPE_VOID
|
31276
|
+
GL.bind_command(:glNamedFramebufferTextureMultiviewOVR)
|
31277
|
+
GL.module_eval(<<-SRC)
|
31278
|
+
def self.NamedFramebufferTextureMultiviewOVR(_framebuffer_, _attachment_, _texture_, _level_, _baseViewIndex_, _numViews_)
|
31279
|
+
GL_FUNCTIONS_MAP[:glNamedFramebufferTextureMultiviewOVR].call(_framebuffer_, _attachment_, _texture_, _level_, _baseViewIndex_, _numViews_)
|
31280
|
+
end
|
31281
|
+
SRC
|
31272
31282
|
end # self.define_ext_command_GL_OVR_multiview
|
31273
31283
|
|
31274
31284
|
def self.get_ext_command_GL_OVR_multiview
|
31275
31285
|
[
|
31276
31286
|
'glFramebufferTextureMultiviewOVR',
|
31287
|
+
'glNamedFramebufferTextureMultiviewOVR',
|
31277
31288
|
]
|
31278
31289
|
end # self.get_ext_command_GL_OVR_multiview
|
31279
31290
|
|
data/lib/opengl_linux.rb
CHANGED
@@ -40,7 +40,7 @@ end
|
|
40
40
|
|
41
41
|
=begin
|
42
42
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
43
|
-
Copyright (c) 2013-
|
43
|
+
Copyright (c) 2013-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
44
44
|
|
45
45
|
This software is provided 'as-is', without any express or implied
|
46
46
|
warranty. In no event will the authors be held liable for any damages
|
data/lib/opengl_macosx.rb
CHANGED
@@ -45,7 +45,7 @@ end
|
|
45
45
|
|
46
46
|
=begin
|
47
47
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
48
|
-
Copyright (c) 2013-
|
48
|
+
Copyright (c) 2013-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
49
49
|
|
50
50
|
This software is provided 'as-is', without any express or implied
|
51
51
|
warranty. In no event will the authors be held liable for any damages
|
data/lib/opengl_platform.rb
CHANGED
@@ -20,7 +20,7 @@ end
|
|
20
20
|
|
21
21
|
=begin
|
22
22
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
23
|
-
Copyright (c) 2013-
|
23
|
+
Copyright (c) 2013-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
24
24
|
|
25
25
|
This software is provided 'as-is', without any express or implied
|
26
26
|
warranty. In no event will the authors be held liable for any damages
|
data/lib/opengl_windows.rb
CHANGED
@@ -48,7 +48,7 @@ end
|
|
48
48
|
|
49
49
|
=begin
|
50
50
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
51
|
-
Copyright (c) 2013-
|
51
|
+
Copyright (c) 2013-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
52
52
|
|
53
53
|
This software is provided 'as-is', without any express or implied
|
54
54
|
warranty. In no event will the authors be held liable for any damages
|
metadata
CHANGED
@@ -1,15 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opengl-bindings2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
10
|
+
date: 2025-01-01 00:00:00.000000000 Z
|
11
|
+
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: fiddle
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - "~>"
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '1.0'
|
19
|
+
type: :runtime
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - "~>"
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '1.0'
|
13
26
|
description: 'Ruby bindings for OpenGL - 4.6, OpenGL ES - 3.2 and all extensions using
|
14
27
|
Fiddle (For MRI >= 2.4.0). GLFW/GLUT/GLU bindings are also available.
|
15
28
|
|
@@ -24,6 +37,7 @@ files:
|
|
24
37
|
- LICENSE.txt
|
25
38
|
- README.md
|
26
39
|
- lib/glfw.rb
|
40
|
+
- lib/glfw33.rb
|
27
41
|
- lib/glu.rb
|
28
42
|
- lib/glut.rb
|
29
43
|
- lib/opengl.rb
|
@@ -53,7 +67,6 @@ homepage: https://github.com/vaiorabbit/ruby-opengl
|
|
53
67
|
licenses:
|
54
68
|
- Zlib
|
55
69
|
metadata: {}
|
56
|
-
post_install_message:
|
57
70
|
rdoc_options: []
|
58
71
|
require_paths:
|
59
72
|
- lib
|
@@ -68,8 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
81
|
- !ruby/object:Gem::Version
|
69
82
|
version: '0'
|
70
83
|
requirements: []
|
71
|
-
rubygems_version: 3.
|
72
|
-
signing_key:
|
84
|
+
rubygems_version: 3.6.2
|
73
85
|
specification_version: 4
|
74
86
|
summary: Bindings for OpenGL/GLFW/GLUT/GLU
|
75
87
|
test_files: []
|