opengl-bindings 1.6.14 → 1.6.15
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 +73 -40
- data/lib/glfw.rb +68 -18
- data/lib/glfw33.rb +716 -0
- data/lib/glu.rb +1 -1
- data/lib/glut.rb +1 -1
- data/lib/opengl.rb +1 -1
- data/lib/opengl_common.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 +19 -0
- data/lib/opengl_es_ext_enum.rb +13 -0
- data/lib/opengl_ext.rb +1 -1
- data/lib/opengl_ext_command.rb +10 -0
- data/sample/glfw_build.bat +12 -9
- 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
@@ -553,7 +553,7 @@ end
|
|
553
553
|
|
554
554
|
=begin
|
555
555
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
556
|
-
Copyright (c) 2013-
|
556
|
+
Copyright (c) 2013-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
557
557
|
|
558
558
|
This software is provided 'as-is', without any express or implied
|
559
559
|
warranty. In no event will the authors be held liable for any damages
|
data/lib/opengl.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_common.rb
CHANGED
@@ -40,7 +40,7 @@ module OpenGL
|
|
40
40
|
GL_FUNCTIONS_MAP[sym] = Fiddle::Function.new( @@gl_dll[sym.to_s],
|
41
41
|
GL_FUNCTIONS_ARGS_MAP[sym],
|
42
42
|
GL_FUNCTIONS_RETVAL_MAP[sym] )
|
43
|
-
rescue Exception
|
43
|
+
rescue Exception
|
44
44
|
if self.get_platform == :OPENGL_PLATFORM_WINDOWS
|
45
45
|
func_ptr = wglGetProcAddress(sym.to_s)
|
46
46
|
GL_FUNCTIONS_MAP[sym] = Fiddle::Function.new( func_ptr,
|
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
|
@@ -8183,11 +8183,21 @@ module OpenGLExt
|
|
8183
8183
|
f.call(_target_, _attachment_, _texture_, _level_, _baseViewIndex_, _numViews_)
|
8184
8184
|
end
|
8185
8185
|
SRC
|
8186
|
+
|
8187
|
+
OpenGL::GL_FUNCTIONS_ARGS_MAP[:glNamedFramebufferTextureMultiviewOVR] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
|
8188
|
+
OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glNamedFramebufferTextureMultiviewOVR] = Fiddle::TYPE_VOID
|
8189
|
+
OpenGL.module_eval(<<-SRC)
|
8190
|
+
def glNamedFramebufferTextureMultiviewOVR(_framebuffer_, _attachment_, _texture_, _level_, _baseViewIndex_, _numViews_)
|
8191
|
+
f = OpenGL::get_command(:glNamedFramebufferTextureMultiviewOVR)
|
8192
|
+
f.call(_framebuffer_, _attachment_, _texture_, _level_, _baseViewIndex_, _numViews_)
|
8193
|
+
end
|
8194
|
+
SRC
|
8186
8195
|
end # self.define_ext_command_GL_OVR_multiview
|
8187
8196
|
|
8188
8197
|
def self.get_ext_command_GL_OVR_multiview
|
8189
8198
|
[
|
8190
8199
|
'glFramebufferTextureMultiviewOVR',
|
8200
|
+
'glNamedFramebufferTextureMultiviewOVR',
|
8191
8201
|
]
|
8192
8202
|
end # self.get_ext_command_GL_OVR_multiview
|
8193
8203
|
|
@@ -8558,6 +8568,15 @@ module OpenGLExt
|
|
8558
8568
|
end # self.get_ext_command_GL_QCOM_texture_foveated_subsampled_layout
|
8559
8569
|
|
8560
8570
|
|
8571
|
+
def self.define_ext_command_GL_QCOM_ycbcr_degamma
|
8572
|
+
end # self.define_ext_command_GL_QCOM_ycbcr_degamma
|
8573
|
+
|
8574
|
+
def self.get_ext_command_GL_QCOM_ycbcr_degamma
|
8575
|
+
[
|
8576
|
+
]
|
8577
|
+
end # self.get_ext_command_GL_QCOM_ycbcr_degamma
|
8578
|
+
|
8579
|
+
|
8561
8580
|
def self.define_ext_command_GL_QCOM_texture_lod_bias
|
8562
8581
|
end # self.define_ext_command_GL_QCOM_texture_lod_bias
|
8563
8582
|
|
data/lib/opengl_es_ext_enum.rb
CHANGED
@@ -6116,6 +6116,19 @@ module OpenGLExt
|
|
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
|
+
OpenGL.const_set('GL_TEXTURE_Y_DEGAMMA_QCOM', 0x9710) unless defined?(OpenGL::GL_TEXTURE_Y_DEGAMMA_QCOM)
|
6121
|
+
OpenGL.const_set('GL_TEXTURE_CBCR_DEGAMMA_QCOM', 0x9711) unless defined?(OpenGL::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
|
+
'GL_TEXTURE_Y_DEGAMMA_QCOM',
|
6127
|
+
'GL_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
|
OpenGL.const_set('GL_TEXTURE_LOD_BIAS_QCOM', 0x8C96) unless defined?(OpenGL::GL_TEXTURE_LOD_BIAS_QCOM)
|
6121
6134
|
end # self.define_ext_enum_GL_QCOM_texture_lod_bias
|
data/lib/opengl_ext.rb
CHANGED
@@ -11,7 +11,7 @@ end
|
|
11
11
|
|
12
12
|
=begin
|
13
13
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
14
|
-
Copyright (c) 2013-
|
14
|
+
Copyright (c) 2013-2025 vaiorabbit <http://twitter.com/vaiorabbit>
|
15
15
|
|
16
16
|
This software is provided 'as-is', without any express or implied
|
17
17
|
warranty. In no event will the authors be held liable for any damages
|
data/lib/opengl_ext_command.rb
CHANGED
@@ -28850,11 +28850,21 @@ module OpenGLExt
|
|
28850
28850
|
f.call(_target_, _attachment_, _texture_, _level_, _baseViewIndex_, _numViews_)
|
28851
28851
|
end
|
28852
28852
|
SRC
|
28853
|
+
|
28854
|
+
OpenGL::GL_FUNCTIONS_ARGS_MAP[:glNamedFramebufferTextureMultiviewOVR] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
|
28855
|
+
OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glNamedFramebufferTextureMultiviewOVR] = Fiddle::TYPE_VOID
|
28856
|
+
OpenGL.module_eval(<<-SRC)
|
28857
|
+
def glNamedFramebufferTextureMultiviewOVR(_framebuffer_, _attachment_, _texture_, _level_, _baseViewIndex_, _numViews_)
|
28858
|
+
f = OpenGL::get_command(:glNamedFramebufferTextureMultiviewOVR)
|
28859
|
+
f.call(_framebuffer_, _attachment_, _texture_, _level_, _baseViewIndex_, _numViews_)
|
28860
|
+
end
|
28861
|
+
SRC
|
28853
28862
|
end # self.define_ext_command_GL_OVR_multiview
|
28854
28863
|
|
28855
28864
|
def self.get_ext_command_GL_OVR_multiview
|
28856
28865
|
[
|
28857
28866
|
'glFramebufferTextureMultiviewOVR',
|
28867
|
+
'glNamedFramebufferTextureMultiviewOVR',
|
28858
28868
|
]
|
28859
28869
|
end # self.get_ext_command_GL_OVR_multiview
|
28860
28870
|
|
data/sample/glfw_build.bat
CHANGED
@@ -5,16 +5,19 @@
|
|
5
5
|
@echo off
|
6
6
|
setlocal EnableDelayedExpansion
|
7
7
|
|
8
|
-
set
|
9
|
-
if
|
10
|
-
set
|
8
|
+
set CMAKE_EXE=%1
|
9
|
+
if "%CMAKE_EXE%"=="" (
|
10
|
+
set CMAKE_EXE="%PROGRAMFILES%\CMake\bin\cmake"
|
11
11
|
)
|
12
12
|
|
13
|
-
curl -O -L https://github.com/glfw/glfw/releases/download/3.
|
14
|
-
%WINDIR%\System32\tar.exe -xf glfw-3.
|
15
|
-
cd glfw-3.
|
16
|
-
|
13
|
+
%WINDIR%\System32\curl -O -L https://github.com/glfw/glfw/releases/download/3.4/glfw-3.4.zip
|
14
|
+
%WINDIR%\System32\tar.exe -xf glfw-3.4.zip
|
15
|
+
cd glfw-3.4/
|
16
|
+
if not exist build (
|
17
|
+
mkdir build
|
18
|
+
)
|
17
19
|
cd build
|
18
|
-
%
|
19
|
-
|
20
|
+
%CMAKE_EXE% -G "MSYS Makefiles" -D CMAKE_BUILD_TYPE=Release -D GLFW_NATIVE_API=1 -D GLFW_BUILD_EXAMPLES=OFF -D GLFW_BUILD_TESTS=OFF -D GLFW_BUILD_DOCS=OFF -D GLFW_INSTALL=OFF -D BUILD_SHARED_LIBS=ON -D CMAKE_C_COMPILER=gcc ..
|
21
|
+
|
22
|
+
cmake --build .
|
20
23
|
cp -R src/glfw3.dll ../..
|
metadata
CHANGED
@@ -1,15 +1,28 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opengl-bindings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.15
|
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: |
|
14
27
|
[Please consider migrating to opengl-bindings2 (https://rubygems.org/gems/opengl-bindings2)]
|
15
28
|
Ruby bindings for OpenGL - 4.6, OpenGL ES - 3.2 and all extensions using Fiddle (For MRI >= 2.0.0). GLFW/GLUT/GLU bindings are also available.
|
@@ -23,6 +36,7 @@ files:
|
|
23
36
|
- LICENSE.txt
|
24
37
|
- README.md
|
25
38
|
- lib/glfw.rb
|
39
|
+
- lib/glfw33.rb
|
26
40
|
- lib/glu.rb
|
27
41
|
- lib/glut.rb
|
28
42
|
- lib/opengl.rb
|
@@ -53,7 +67,6 @@ homepage: https://github.com/vaiorabbit/ruby-opengl/tree/version/1.6
|
|
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: "[Attention : Version 2 is now available] Bindings for OpenGL/GLFW/GLUT/GLU"
|
75
87
|
test_files: []
|