opengl-bindings 1.6.12 → 1.6.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +44 -0
- data/LICENSE.txt +1 -1
- data/README.md +99 -57
- data/lib/glfw.rb +7 -2
- 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 +266 -19
- data/lib/opengl_es_ext_enum.rb +166 -9
- data/lib/opengl_ext.rb +1 -1
- data/lib/opengl_ext_command.rb +115 -69
- data/lib/opengl_ext_enum.rb +36 -9
- data/sample/glfw_build.bat +3 -2
- data/sample/glfw_build.sh +5 -4
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0deefb2c81590ad74fba31b0b2c1d744a3db960d276bbc7e3203c128a8c73c7a
|
4
|
+
data.tar.gz: af1cf6dce05b92f6be98f8359f1714d419af0a54bb738649401661c7a3f4f28e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79dc42da66d606cd38e57acadd92ed1d1452d6d15d2282ec3e4aafa4b43b494de1953d3fb72dc355202a4a31105c10fca552a32520bdd2531089c072c244ee0a
|
7
|
+
data.tar.gz: 8da7b1af3855c7774a6d902ed3b62f85d82d3458ea880580d668b399c8ea5e058f6a955613ed3918595053cd2bc9d632fbe3f853eadf2c408eacbbf5cba0eac4
|
data/ChangeLog
CHANGED
@@ -1,3 +1,47 @@
|
|
1
|
+
2024-01-05 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* Updated using latest gl.xml
|
4
|
+
|
5
|
+
2023-12-16 vaiorabbit <http://twitter.com/vaiorabbit>
|
6
|
+
|
7
|
+
* GLFW 3.3.9
|
8
|
+
|
9
|
+
2023-11-11 vaiorabbit <http://twitter.com/vaiorabbit>
|
10
|
+
|
11
|
+
* Updated using latest gl.xml
|
12
|
+
|
13
|
+
2022-12-10 vaiorabbit <http://twitter.com/vaiorabbit>
|
14
|
+
|
15
|
+
* Updated gl.xml.
|
16
|
+
|
17
|
+
2022-12-03 vaiorabbit <http://twitter.com/vaiorabbit>
|
18
|
+
|
19
|
+
* Updated gl.xml.
|
20
|
+
|
21
|
+
2022-10-16 vaiorabbit <http://twitter.com/vaiorabbit>
|
22
|
+
|
23
|
+
* Updated gl.xml.
|
24
|
+
|
25
|
+
2022-07-23 vaiorabbit <http://twitter.com/vaiorabbit>
|
26
|
+
|
27
|
+
* GLFW 3.3.7 -> 3.3.8
|
28
|
+
|
29
|
+
2022-07-18 vaiorabbit <http://twitter.com/vaiorabbit>
|
30
|
+
|
31
|
+
* Updated using latest gl.xml.
|
32
|
+
|
33
|
+
2022-05-30 vaiorabbit <http://twitter.com/vaiorabbit>
|
34
|
+
|
35
|
+
* Updated using latest gl.xml.
|
36
|
+
|
37
|
+
2022-04-10 vaiorabbit <http://twitter.com/vaiorabbit>
|
38
|
+
|
39
|
+
* Updated GLFW-related scripts
|
40
|
+
|
41
|
+
2022-03-27 vaiorabbit <http://twitter.com/vaiorabbit>
|
42
|
+
|
43
|
+
* Updated using latest gl.xml.
|
44
|
+
|
1
45
|
2022-01-09 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
46
|
|
3
47
|
* README.md: Added section "Attention : Version 2 is now available"
|
data/LICENSE.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
2
|
-
Copyright (c) 2013-
|
2
|
+
Copyright (c) 2013-2024 vaiorabbit <http://twitter.com/vaiorabbit>
|
3
3
|
|
4
4
|
This software is provided 'as-is', without any express or implied
|
5
5
|
warranty. In no event will the authors be held liable for any damages
|
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 :
|
8
|
+
* Last modified : 2024-01-05
|
9
9
|
|
10
10
|
---
|
11
11
|
|
@@ -15,7 +15,7 @@ Though I will continue making this [version 1.6 series of opengl-bindings](https
|
|
15
15
|
|
16
16
|
### Redesigned API
|
17
17
|
|
18
|
-
In
|
18
|
+
In version 2, all OpenGL APIs are defined as public methods under `module GL`, so we don't have to `include OpenGL` and scatter OpenGL APIs under other modules any more:
|
19
19
|
|
20
20
|
```ruby
|
21
21
|
# opengl-bindings
|
@@ -34,7 +34,7 @@ GL.Enable(GL::DEPTH_TEST)
|
|
34
34
|
|
35
35
|
### Improved efficiency
|
36
36
|
|
37
|
-
All redundant `nil` checks done on every API calls are removed in
|
37
|
+
All redundant `nil` checks done on every API calls are removed in version 2:
|
38
38
|
|
39
39
|
```ruby
|
40
40
|
# opengl-bindings1
|
@@ -167,6 +167,49 @@ Use GLFW or GLUT for creating windows and OpenGL rendering contexts.
|
|
167
167
|
## Tested Environment ##
|
168
168
|
|
169
169
|
* Ruby
|
170
|
+
* ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
|
171
|
+
|
172
|
+
* Windows 10 Home, 64-bit (Version 1909, OS Build 18363.778)
|
173
|
+
* NVIDIA GeForce RTX 2060 SUPER
|
174
|
+
* OpenGL 4.5
|
175
|
+
|
176
|
+
> ruby report_env.rb
|
177
|
+
Version : 4.5.0 NVIDIA 436.30
|
178
|
+
Vendor : NVIDIA Corporation
|
179
|
+
Renderer : GeForce RTX 2060 SUPER/PCIe/SSE2
|
180
|
+
Shader : 4.50 NVIDIA
|
181
|
+
|
182
|
+
* macOS 12.5.1, 64-bit
|
183
|
+
* Mac mini (M1 2020)
|
184
|
+
* OpenGL 4.1
|
185
|
+
|
186
|
+
$ ruby report_env.rb
|
187
|
+
Version : 4.1 Metal - 76.3
|
188
|
+
Vendor : Apple
|
189
|
+
Renderer : Apple M1
|
190
|
+
Shader : 4.10
|
191
|
+
|
192
|
+
* Arch Linux kernel 4.1.2-2-ARCH, Nvidia Driver, x86_64
|
193
|
+
* NVIDIA GeForce GTS 450
|
194
|
+
* OpenGL 4.5.0
|
195
|
+
|
196
|
+
$ ruby report_env.rb
|
197
|
+
Version: 4.5.0 NVIDIA 352.21
|
198
|
+
|
199
|
+
* Arch Linux kernel 4.1.4-1-ARCH, Nouveau Driver, x86_64
|
200
|
+
* NVIDIA GeForce GTS 450
|
201
|
+
* OpenGL 3.0
|
202
|
+
|
203
|
+
$ ruby report_env.rb
|
204
|
+
Version: 3.0 Mesa 10.6.3
|
205
|
+
|
206
|
+
<details>
|
207
|
+
<summary>Older versions</summary>
|
208
|
+
|
209
|
+
* Ruby
|
210
|
+
* ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin21]
|
211
|
+
* ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
212
|
+
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
|
170
213
|
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
|
171
214
|
* ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [arm64-darwin20]
|
172
215
|
* ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]
|
@@ -195,16 +238,6 @@ Use GLFW or GLUT for creating windows and OpenGL rendering contexts.
|
|
195
238
|
* ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin13.0.0]
|
196
239
|
* ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
|
197
240
|
|
198
|
-
* Windows 10 Home, 64-bit (Version 1909, OS Build 18363.778)
|
199
|
-
* NVIDIA GeForce RTX 2060 SUPER
|
200
|
-
* OpenGL 4.5
|
201
|
-
|
202
|
-
> ruby report_env.rb
|
203
|
-
Version : 4.5.0 NVIDIA 436.30
|
204
|
-
Vendor : NVIDIA Corporation
|
205
|
-
Renderer : GeForce RTX 2060 SUPER/PCIe/SSE2
|
206
|
-
Shader : 4.50 NVIDIA
|
207
|
-
|
208
241
|
* Windows 10 Home, 64-bit (Version 1511, OS Build 10586.164)
|
209
242
|
* NVIDIA GeForce GTX 960
|
210
243
|
* OpenGL 4.5
|
@@ -250,19 +283,7 @@ Use GLFW or GLUT for creating windows and OpenGL rendering contexts.
|
|
250
283
|
Renderer : Intel Iris OpenGL Engine
|
251
284
|
Shader : 4.10
|
252
285
|
|
253
|
-
|
254
|
-
* NVIDIA GeForce GTS 450
|
255
|
-
* OpenGL 4.5.0
|
256
|
-
|
257
|
-
$ ruby report_env.rb
|
258
|
-
Version: 4.5.0 NVIDIA 352.21
|
259
|
-
|
260
|
-
* Arch Linux kernel 4.1.4-1-ARCH, Nouveau Driver, x86_64
|
261
|
-
* NVIDIA GeForce GTS 450
|
262
|
-
* OpenGL 3.0
|
263
|
-
|
264
|
-
$ ruby report_env.rb
|
265
|
-
Version: 3.0 Mesa 10.6.3
|
286
|
+
</details>
|
266
287
|
|
267
288
|
* You can use any lib/path names by passing as arguments like:
|
268
289
|
* OpenGL.load_lib( 'libGL.so', '/usr/lib' )
|
@@ -320,7 +341,7 @@ Use GLFW or GLUT for creating windows and OpenGL rendering contexts.
|
|
320
341
|
|
321
342
|
The zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
322
343
|
|
323
|
-
Copyright (c) 2013-
|
344
|
+
Copyright (c) 2013-2024 vaiorabbit <http://twitter.com/vaiorabbit>
|
324
345
|
|
325
346
|
This software is provided 'as-is', without any express or implied
|
326
347
|
warranty. In no event will the authors be held liable for any damages
|
@@ -500,6 +521,49 @@ GLFW か GLUT を用意してください。ウィンドウやレンダリング
|
|
500
521
|
## テストした環境 ##
|
501
522
|
|
502
523
|
* Ruby
|
524
|
+
* ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
|
525
|
+
|
526
|
+
* Windows 10 Home, 64-bit (Version 1909, OS Build 18363.778)
|
527
|
+
* NVIDIA GeForce RTX 2060 SUPER
|
528
|
+
* OpenGL 4.5
|
529
|
+
|
530
|
+
> ruby report_env.rb
|
531
|
+
Version : 4.5.0 NVIDIA 436.30
|
532
|
+
Vendor : NVIDIA Corporation
|
533
|
+
Renderer : GeForce RTX 2060 SUPER/PCIe/SSE2
|
534
|
+
Shader : 4.50 NVIDIA
|
535
|
+
|
536
|
+
* macOS 12.5.1, 64-bit
|
537
|
+
* Mac mini (M1 2020)
|
538
|
+
* OpenGL 4.1
|
539
|
+
|
540
|
+
$ ruby report_env.rb
|
541
|
+
Version : 4.1 Metal - 76.3
|
542
|
+
Vendor : Apple
|
543
|
+
Renderer : Apple M1
|
544
|
+
Shader : 4.10
|
545
|
+
|
546
|
+
* Arch Linux kernel 4.1.2-2-ARCH, Nvidia Driver, x86_64
|
547
|
+
* NVIDIA GeForce GTS 450
|
548
|
+
* OpenGL 4.5.0
|
549
|
+
|
550
|
+
$ ruby report_env.rb
|
551
|
+
Version: 4.5.0 NVIDIA 352.21
|
552
|
+
|
553
|
+
* Arch Linux kernel 4.1.4-1-ARCH, Nouveau Driver, x86_64
|
554
|
+
* NVIDIA GeForce GTS 450
|
555
|
+
* OpenGL 3.0
|
556
|
+
|
557
|
+
$ ruby report_env.rb
|
558
|
+
Version: 3.0 Mesa 10.6.3
|
559
|
+
|
560
|
+
<details>
|
561
|
+
<summary>以前のバージョン</summary>
|
562
|
+
|
563
|
+
* Ruby
|
564
|
+
* ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin21]
|
565
|
+
* ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
|
566
|
+
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
|
503
567
|
* ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
|
504
568
|
* ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [arm64-darwin20]
|
505
569
|
* ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]
|
@@ -528,16 +592,6 @@ GLFW か GLUT を用意してください。ウィンドウやレンダリング
|
|
528
592
|
* ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin13.0.0]
|
529
593
|
* ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
|
530
594
|
|
531
|
-
* Windows 10 Home, 64-bit (Version 1909, OS Build 18363.778)
|
532
|
-
* NVIDIA GeForce RTX 2060 SUPER
|
533
|
-
* OpenGL 4.5
|
534
|
-
|
535
|
-
> ruby report_env.rb
|
536
|
-
Version : 4.5.0 NVIDIA 436.30
|
537
|
-
Vendor : NVIDIA Corporation
|
538
|
-
Renderer : GeForce RTX 2060 SUPER/PCIe/SSE2
|
539
|
-
Shader : 4.50 NVIDIA
|
540
|
-
|
541
595
|
* Windows 10 Home, 64-bit (Version 1511, OS Build 10586.164)
|
542
596
|
* NVIDIA GeForce GTX 960
|
543
597
|
* OpenGL 4.5
|
@@ -552,6 +606,13 @@ GLFW か GLUT を用意してください。ウィンドウやレンダリング
|
|
552
606
|
> ruby report_env.rb
|
553
607
|
4.3.0
|
554
608
|
|
609
|
+
* Windows 7 Home Premium, 64-bit (Service Pack 1)
|
610
|
+
* NVIDIA GeForce GTX 560
|
611
|
+
* OpenGL 4.3
|
612
|
+
|
613
|
+
> ruby report_env.rb
|
614
|
+
4.3.0
|
615
|
+
|
555
616
|
* Mac OS X 10.8.4, 64-bit
|
556
617
|
* NVIDIA GeForce 320M on Mac mini (Mid 2010)
|
557
618
|
* OpenGL 2.1
|
@@ -576,26 +637,7 @@ GLFW か GLUT を用意してください。ウィンドウやレンダリング
|
|
576
637
|
Renderer : Intel Iris OpenGL Engine
|
577
638
|
Shader : 4.10
|
578
639
|
|
579
|
-
|
580
|
-
* NVIDIA GeForce GTS 450
|
581
|
-
* OpenGL 4.5.0
|
582
|
-
|
583
|
-
$ ruby report_env.rb
|
584
|
-
Version: 4.5.0 NVIDIA 352.21
|
585
|
-
|
586
|
-
* Arch Linux kernel 4.1.4-1-ARCH, Nouveau Driver, x86_64
|
587
|
-
* NVIDIA GeForce GTS 450
|
588
|
-
* OpenGL 3.0
|
589
|
-
|
590
|
-
$ ruby report_env.rb
|
591
|
-
Version: 3.0 Mesa 10.6.3
|
592
|
-
|
593
|
-
* 引数として渡すことで任意のライブラリ名/パス名を利用できます:
|
594
|
-
* OpenGL.load_lib( 'libGL.so', '/usr/lib' )
|
595
|
-
* GLFW.load_lib( 'libglfw.so', '/usr/lib' )
|
596
|
-
* GLU.load_lib( 'libGLU.so', '/usr/lib' )
|
597
|
-
* GLUT.load_lib( 'libglut.so', '/usr/lib' )
|
598
|
-
|
640
|
+
</details>
|
599
641
|
|
600
642
|
## メモ ##
|
601
643
|
|
data/lib/glfw.rb
CHANGED
@@ -337,6 +337,9 @@ module GLFW
|
|
337
337
|
GLFW_EGL_CONTEXT_API = 0x00036002 # Available since GLFW 3.2
|
338
338
|
GLFW_OSMESA_CONTEXT_API = 0x00036003 # Available since GLFW 3.3
|
339
339
|
|
340
|
+
GLFW_WAYLAND_PREFER_LIBDECOR = 0x00038001 # Available since GLFW 3.3.9
|
341
|
+
GLFW_WAYLAND_DISABLE_LIBDECOR = 0x00038002 # Available since GLFW 3.3.9
|
342
|
+
|
340
343
|
GLFW_ARROW_CURSOR = 0x00036001
|
341
344
|
GLFW_IBEAM_CURSOR = 0x00036002
|
342
345
|
GLFW_CROSSHAIR_CURSOR = 0x00036003
|
@@ -352,6 +355,8 @@ module GLFW
|
|
352
355
|
GLFW_COCOA_CHDIR_RESOURCES = 0x00051001 # Available since GLFW 3.3
|
353
356
|
GLFW_COCOA_MENUBAR = 0x00051002 # Available since GLFW 3.3
|
354
357
|
|
358
|
+
GLFW_WAYLAND_LIBDECOR = 0x00053001 # Available since GLFW 3.3.9
|
359
|
+
|
355
360
|
GLFW_DONT_CARE = -1
|
356
361
|
|
357
362
|
# typedefs
|
@@ -497,7 +502,7 @@ module GLFW
|
|
497
502
|
when :OPENGL_PLATFORM_MACOSX
|
498
503
|
lib, path = 'libglfw.dylib', Dir.pwd
|
499
504
|
else
|
500
|
-
lib = 'libglfw.so'
|
505
|
+
lib = 'libglfw.so.3'
|
501
506
|
end
|
502
507
|
end
|
503
508
|
|
@@ -687,7 +692,7 @@ end
|
|
687
692
|
|
688
693
|
=begin
|
689
694
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
690
|
-
Copyright (c) 2013-
|
695
|
+
Copyright (c) 2013-2024 vaiorabbit <http://twitter.com/vaiorabbit>
|
691
696
|
|
692
697
|
This software is provided 'as-is', without any express or implied
|
693
698
|
warranty. In no event will the authors be held liable for any damages
|
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-2024 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-2024 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-2024 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_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-2024 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-2024 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
|