opengl-bindings 1.6.7 → 1.6.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +24 -0
- data/LICENSE.txt +1 -1
- data/README.md +14 -2
- data/lib/glfw.rb +60 -55
- 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 +104 -0
- data/lib/opengl_es_ext_enum.rb +71 -0
- data/lib/opengl_ext.rb +1 -1
- data/lib/opengl_ext_command.rb +285 -0
- data/lib/opengl_ext_enum.rb +294 -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
- data/sample/README.md +8 -6
- data/sample/glfw_build.bat +11 -0
- data/sample/glfw_build.sh +13 -0
- metadata +5 -5
- data/sample/glfw32_build_dylib.sh +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de752007d9195713e2995fe20b6bd6eba319380a77a494c247326c4d7b656b12
|
4
|
+
data.tar.gz: 4c04932f7cfc9e5619c1e195bb67a52015c116918b0ee89ab43050d98a90c072
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1bb8c87b8ecebe20ddb4c64b8427b13e897da600316e0c8478bddce046465f2188927832269793c44172cb0be93c8990ada84c32565beaf0e2f909d5d2b93b8
|
7
|
+
data.tar.gz: 97189c12311ed1adf38c75e8781633b87ae6a145ded0b4f74e079e15423a6e269a0588064b1b3e6bd5e50f27c7529f6423ec5368d2dcc910c137ebe660c9a459
|
data/ChangeLog
CHANGED
@@ -1,3 +1,27 @@
|
|
1
|
+
2019-02-23 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* Updated using latest gl.xml.
|
4
|
+
|
5
|
+
2019-01-19 vaiorabbit <http://twitter.com/vaiorabbit>
|
6
|
+
|
7
|
+
* glfw.rb: Added GLFW 3.3 features.
|
8
|
+
|
9
|
+
2019-01-05 vaiorabbit <http://twitter.com/vaiorabbit>
|
10
|
+
|
11
|
+
* Happy new year!
|
12
|
+
|
13
|
+
2018-12-23 vaiorabbit <http://twitter.com/vaiorabbit>
|
14
|
+
|
15
|
+
* sample/glfwmaster_build_dylib.sh: Added.
|
16
|
+
|
17
|
+
2018-12-22 vaiorabbit <http://twitter.com/vaiorabbit>
|
18
|
+
|
19
|
+
* Updated using latest gl.xml.
|
20
|
+
|
21
|
+
2018-09-29 vaiorabbit <http://twitter.com/vaiorabbit>
|
22
|
+
|
23
|
+
* Updated using latest gl.xml.
|
24
|
+
|
1
25
|
2018-08-29 vaiorabbit <http://twitter.com/vaiorabbit>
|
2
26
|
|
3
27
|
* Updated using latest gl.xml.
|
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-2019 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,11 @@
|
|
5
5
|
...and wrapper code generator.
|
6
6
|
|
7
7
|
* Created : 2013-08-28
|
8
|
-
* Last modified :
|
8
|
+
* Last modified : 2019-02-23
|
9
|
+
|
10
|
+
[![Gem Version](https://badge.fury.io/rb/opengl-bindings.svg)](https://badge.fury.io/rb/opengl-bindings) [![Gem](https://img.shields.io/gem/dt/opengl-bindings.svg)](opengl-bindings)
|
11
|
+
|
12
|
+
<img src="https://raw.githubusercontent.com/vaiorabbit/ruby-opengl/master/doc/simple_rb.jpg" width="200"> <img src="https://raw.githubusercontent.com/vaiorabbit/ruby-opengl/master/doc/nehe_lesson36_rb.jpg" width="200"> <img src="https://raw.githubusercontent.com/vaiorabbit/ruby-opengl/master/doc/brick_rb.jpg" width="200"> <img src="https://raw.githubusercontent.com/vaiorabbit/ruby-opengl/master/doc/glxs_rb.jpg" width="200">
|
9
13
|
|
10
14
|
|
11
15
|
## Features ##
|
@@ -104,6 +108,8 @@ Use GLFW or GLUT for creating windows and OpenGL rendering contexts.
|
|
104
108
|
## Tested Environment ##
|
105
109
|
|
106
110
|
* Ruby
|
111
|
+
* ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-darwin18]
|
112
|
+
* ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin18]
|
107
113
|
* ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
|
108
114
|
* ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17]
|
109
115
|
* ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
|
@@ -210,6 +216,8 @@ Use GLFW or GLUT for creating windows and OpenGL rendering contexts.
|
|
210
216
|
* opencl-bindings - A Ruby binding for OpenCL 1.2
|
211
217
|
* https://rubygems.org/gems/opencl-bindings
|
212
218
|
* https://github.com/vaiorabbit/ruby-opencl
|
219
|
+
* perfume_dance - A BVH motion parser and playback implementation written in Ruby
|
220
|
+
* https://github.com/vaiorabbit/perfume_dance
|
213
221
|
|
214
222
|
* Other informative projects
|
215
223
|
* argon | neon
|
@@ -221,7 +229,7 @@ Use GLFW or GLUT for creating windows and OpenGL rendering contexts.
|
|
221
229
|
|
222
230
|
The zlib/libpng License ( http://opensource.org/licenses/Zlib ).
|
223
231
|
|
224
|
-
Copyright (c) 2013-
|
232
|
+
Copyright (c) 2013-2019 vaiorabbit <http://twitter.com/vaiorabbit>
|
225
233
|
|
226
234
|
This software is provided 'as-is', without any express or implied
|
227
235
|
warranty. In no event will the authors be held liable for any damages
|
@@ -344,6 +352,8 @@ GLFW か GLUT を用意してください。ウィンドウやレンダリング
|
|
344
352
|
## テストした環境 ##
|
345
353
|
|
346
354
|
* Ruby
|
355
|
+
* ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-darwin18]
|
356
|
+
* ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin18]
|
347
357
|
* ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
|
348
358
|
* ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17]
|
349
359
|
* ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
|
@@ -444,6 +454,8 @@ GLFW か GLUT を用意してください。ウィンドウやレンダリング
|
|
444
454
|
* opencl-bindings - A Ruby binding for OpenCL 1.2
|
445
455
|
* https://rubygems.org/gems/opencl-bindings
|
446
456
|
* https://github.com/vaiorabbit/ruby-opencl
|
457
|
+
* perfume_dance - A BVH motion parser and playback implementation written in Ruby
|
458
|
+
* https://github.com/vaiorabbit/perfume_dance
|
447
459
|
|
448
460
|
* 参考になりそうなプロジェクト
|
449
461
|
* argon | neon
|
data/lib/glfw.rb
CHANGED
@@ -268,6 +268,7 @@ module GLFW
|
|
268
268
|
GLFW_CENTER_CURSOR = 0x00020009 # Available since GLFW 3.3
|
269
269
|
GLFW_TRANSPARENT_FRAMEBUFFER = 0x0002000A # Available since GLFW 3.3
|
270
270
|
GLFW_HOVERED = 0x0002000B # Available since GLFW 3.3
|
271
|
+
GLFW_FOCUS_ON_SHOW = 0x0002000C # Available since GLFW 3.3
|
271
272
|
|
272
273
|
GLFW_RED_BITS = 0x00021001
|
273
274
|
GLFW_GREEN_BITS = 0x00021002
|
@@ -297,6 +298,7 @@ module GLFW
|
|
297
298
|
GLFW_CONTEXT_RELEASE_BEHAVIOR = 0x00022009
|
298
299
|
GLFW_CONTEXT_NO_ERROR = 0x0002200A
|
299
300
|
GLFW_CONTEXT_CREATION_API = 0x0002200B # Available since GLFW 3.2
|
301
|
+
GLFW_SCALE_TO_MONITOR = 0x0002200C # Available since GLFW 3.3
|
300
302
|
|
301
303
|
GLFW_COCOA_RETINA_FRAMEBUFFER = 0x00023001 # Available since GLFW 3.3
|
302
304
|
GLFW_COCOA_FRAME_NAME = 0x00023002 # Available since GLFW 3.3
|
@@ -384,62 +386,65 @@ module GLFW
|
|
384
386
|
end
|
385
387
|
end
|
386
388
|
|
387
|
-
GLFWerrorfun_cb_args
|
388
|
-
GLFWerrorfun_cb_retval
|
389
|
-
GLFWwindowposfun_cb_args
|
390
|
-
GLFWwindowposfun_cb_retval
|
391
|
-
GLFWwindowsizefun_cb_args
|
392
|
-
GLFWwindowsizefun_cb_retval
|
393
|
-
GLFWwindowclosefun_cb_args
|
394
|
-
GLFWwindowclosefun_cb_retval
|
395
|
-
GLFWwindowrefreshfun_cb_args
|
396
|
-
GLFWwindowrefreshfun_cb_retval
|
397
|
-
GLFWwindowfocusfun_cb_args
|
398
|
-
GLFWwindowfocusfun_cb_retval
|
399
|
-
GLFWwindowiconifyfun_cb_args
|
400
|
-
GLFWwindowiconifyfun_cb_retval
|
401
|
-
GLFWframebuffersizefun_cb_args
|
402
|
-
GLFWframebuffersizefun_cb_retval
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
389
|
+
GLFWerrorfun_cb_args = [Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
|
390
|
+
GLFWerrorfun_cb_retval = Fiddle::TYPE_VOID
|
391
|
+
GLFWwindowposfun_cb_args = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
|
392
|
+
GLFWwindowposfun_cb_retval = Fiddle::TYPE_VOID
|
393
|
+
GLFWwindowsizefun_cb_args = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
|
394
|
+
GLFWwindowsizefun_cb_retval = Fiddle::TYPE_VOID
|
395
|
+
GLFWwindowclosefun_cb_args = [Fiddle::TYPE_VOIDP]
|
396
|
+
GLFWwindowclosefun_cb_retval = Fiddle::TYPE_VOID
|
397
|
+
GLFWwindowrefreshfun_cb_args = [Fiddle::TYPE_VOIDP]
|
398
|
+
GLFWwindowrefreshfun_cb_retval = Fiddle::TYPE_VOID
|
399
|
+
GLFWwindowfocusfun_cb_args = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_INT]
|
400
|
+
GLFWwindowfocusfun_cb_retval = Fiddle::TYPE_VOID
|
401
|
+
GLFWwindowiconifyfun_cb_args = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_INT]
|
402
|
+
GLFWwindowiconifyfun_cb_retval = Fiddle::TYPE_VOID
|
403
|
+
GLFWframebuffersizefun_cb_args = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
|
404
|
+
GLFWframebuffersizefun_cb_retval = Fiddle::TYPE_VOID
|
405
|
+
GLFWwindowcontentscalefun_cb_args = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_FLOAT, Fiddle::TYPE_FLOAT] # Available since GLFW 3.3
|
406
|
+
GLFWwindowcontentscalefun_cb_retval = Fiddle::TYPE_VOID # Available since GLFW 3.3
|
407
|
+
GLFWmousebuttonfun_cb_args = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
|
408
|
+
GLFWmousebuttonfun_cb_retval = Fiddle::TYPE_VOID
|
409
|
+
GLFWcursorposfun_cb_args = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_DOUBLE, Fiddle::TYPE_DOUBLE]
|
410
|
+
GLFWcursorposfun_cb_retval = Fiddle::TYPE_VOID
|
411
|
+
GLFWcursorenterfun_cb_args = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_INT]
|
412
|
+
GLFWcursorenterfun_cb_retval = Fiddle::TYPE_VOID
|
413
|
+
GLFWscrollfun_cb_args = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_DOUBLE, Fiddle::TYPE_DOUBLE]
|
414
|
+
GLFWscrollfun_cb_retval = Fiddle::TYPE_VOID
|
415
|
+
GLFWkeyfun_cb_args = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
|
416
|
+
GLFWkeyfun_cb_retval = Fiddle::TYPE_VOID
|
417
|
+
GLFWcharfun_cb_args = [Fiddle::TYPE_VOIDP, -Fiddle::TYPE_INT]
|
418
|
+
GLFWcharfun_cb_retval = Fiddle::TYPE_VOID
|
419
|
+
GLFWcharmodsfun_cb_args = [Fiddle::TYPE_VOIDP, -Fiddle::TYPE_INT, Fiddle::TYPE_INT] # Available since GLFW 3.1
|
420
|
+
GLFWcharmodsfun_cb_retval = Fiddle::TYPE_VOID # Available since GLFW 3.1
|
421
|
+
GLFWdropfun_cb_args = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP] # Available since GLFW 3.1
|
422
|
+
GLFWdropfun_cb_retval = Fiddle::TYPE_VOID # Available since GLFW 3.1
|
423
|
+
GLFWmonitorfun_cb_args = [Fiddle::TYPE_VOIDP, Fiddle::TYPE_INT] # Available since GLFW 3.0
|
424
|
+
GLFWmonitorfun_cb_retval = Fiddle::TYPE_VOID # Available since GLFW 3.0
|
425
|
+
GLFWjoystickfun_cb_args = [Fiddle::TYPE_INT, Fiddle::TYPE_INT] # Available since GLFW 3.2
|
426
|
+
GLFWjoystickfun_cb_retval = Fiddle::TYPE_VOID # Available since GLFW 3.2
|
423
427
|
|
424
428
|
@@glfw_cb_closure_signature = {
|
425
|
-
:GLFWerrorfun
|
426
|
-
:GLFWwindowposfun
|
427
|
-
:GLFWwindowsizefun
|
428
|
-
:GLFWwindowclosefun
|
429
|
-
:GLFWwindowrefreshfun
|
430
|
-
:GLFWwindowfocusfun
|
431
|
-
:GLFWwindowiconifyfun
|
432
|
-
:GLFWframebuffersizefun
|
433
|
-
:
|
434
|
-
:
|
435
|
-
:
|
436
|
-
:
|
437
|
-
:
|
438
|
-
:
|
439
|
-
:
|
440
|
-
:
|
441
|
-
:
|
442
|
-
:
|
429
|
+
:GLFWerrorfun => [GLFWerrorfun_cb_retval, GLFWerrorfun_cb_args],
|
430
|
+
:GLFWwindowposfun => [GLFWwindowposfun_cb_retval, GLFWwindowposfun_cb_args],
|
431
|
+
:GLFWwindowsizefun => [GLFWwindowsizefun_cb_retval, GLFWwindowsizefun_cb_args],
|
432
|
+
:GLFWwindowclosefun => [GLFWwindowclosefun_cb_retval, GLFWwindowclosefun_cb_args],
|
433
|
+
:GLFWwindowrefreshfun => [GLFWwindowrefreshfun_cb_retval, GLFWwindowrefreshfun_cb_args],
|
434
|
+
:GLFWwindowfocusfun => [GLFWwindowfocusfun_cb_retval, GLFWwindowfocusfun_cb_args],
|
435
|
+
:GLFWwindowiconifyfun => [GLFWwindowiconifyfun_cb_retval, GLFWwindowiconifyfun_cb_args],
|
436
|
+
:GLFWframebuffersizefun => [GLFWframebuffersizefun_cb_retval, GLFWframebuffersizefun_cb_args],
|
437
|
+
:GLFWwindowcontentscalefun => [GLFWwindowcontentscalefun_cb_retval, GLFWwindowcontentscalefun_cb_args], # Available since GLFW 3.3
|
438
|
+
:GLFWmousebuttonfun => [GLFWmousebuttonfun_cb_retval, GLFWmousebuttonfun_cb_args],
|
439
|
+
:GLFWcursorposfun => [GLFWcursorposfun_cb_retval, GLFWcursorposfun_cb_args],
|
440
|
+
:GLFWcursorenterfun => [GLFWcursorenterfun_cb_retval, GLFWcursorenterfun_cb_args],
|
441
|
+
:GLFWscrollfun => [GLFWscrollfun_cb_retval, GLFWscrollfun_cb_args],
|
442
|
+
:GLFWkeyfun => [GLFWkeyfun_cb_retval, GLFWkeyfun_cb_args],
|
443
|
+
:GLFWcharfun => [GLFWcharfun_cb_retval, GLFWcharfun_cb_args],
|
444
|
+
:GLFWcharmodsfun => [GLFWcharmodsfun_cb_retval, GLFWcharmodsfun_cb_args], # Available since GLFW 3.1
|
445
|
+
:GLFWdropfun => [GLFWdropfun_cb_retval, GLFWdropfun_cb_args], # Available since GLFW 3.1
|
446
|
+
:GLFWmonitorfun => [GLFWmonitorfun_cb_retval, GLFWmonitorfun_cb_args],
|
447
|
+
:GLFWjoystickfun => [GLFWjoystickfun_cb_retval, GLFWjoystickfun_cb_args], # Available since GLFW 3.2
|
443
448
|
}
|
444
449
|
|
445
450
|
# Creates a callback as an instance of Fiddle::Closure::BlockCaller
|
@@ -659,7 +664,7 @@ end
|
|
659
664
|
|
660
665
|
=begin
|
661
666
|
Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
|
662
|
-
Copyright (c) 2013-
|
667
|
+
Copyright (c) 2013-2019 vaiorabbit <http://twitter.com/vaiorabbit>
|
663
668
|
|
664
669
|
This software is provided 'as-is', without any express or implied
|
665
670
|
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-2019 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-2019 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-2019 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-2019 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-2019 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
|
@@ -911,6 +911,15 @@ module OpenGLExt
|
|
911
911
|
end # self.get_ext_command_GL_EXT_debug_marker
|
912
912
|
|
913
913
|
|
914
|
+
def self.define_ext_command_GL_EXT_depth_clamp
|
915
|
+
end # self.define_ext_command_GL_EXT_depth_clamp
|
916
|
+
|
917
|
+
def self.get_ext_command_GL_EXT_depth_clamp
|
918
|
+
[
|
919
|
+
]
|
920
|
+
end # self.get_ext_command_GL_EXT_depth_clamp
|
921
|
+
|
922
|
+
|
914
923
|
def self.define_ext_command_GL_EXT_discard_framebuffer
|
915
924
|
OpenGL::GL_FUNCTIONS_ARGS_MAP[:glDiscardFramebufferEXT] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
|
916
925
|
OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glDiscardFramebufferEXT] = Fiddle::TYPE_VOID
|
@@ -4250,6 +4259,15 @@ module OpenGLExt
|
|
4250
4259
|
end # self.get_ext_command_GL_NV_clip_space_w_scaling
|
4251
4260
|
|
4252
4261
|
|
4262
|
+
def self.define_ext_command_GL_NV_compute_shader_derivatives
|
4263
|
+
end # self.define_ext_command_GL_NV_compute_shader_derivatives
|
4264
|
+
|
4265
|
+
def self.get_ext_command_GL_NV_compute_shader_derivatives
|
4266
|
+
[
|
4267
|
+
]
|
4268
|
+
end # self.get_ext_command_GL_NV_compute_shader_derivatives
|
4269
|
+
|
4270
|
+
|
4253
4271
|
def self.define_ext_command_GL_NV_conditional_render
|
4254
4272
|
OpenGL::GL_FUNCTIONS_ARGS_MAP[:glBeginConditionalRenderNV] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
|
4255
4273
|
OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glBeginConditionalRenderNV] = Fiddle::TYPE_VOID
|
@@ -5099,6 +5117,74 @@ module OpenGLExt
|
|
5099
5117
|
end # self.get_ext_command_GL_NV_internalformat_sample_query
|
5100
5118
|
|
5101
5119
|
|
5120
|
+
def self.define_ext_command_GL_NV_memory_attachment
|
5121
|
+
OpenGL::GL_FUNCTIONS_ARGS_MAP[:glGetMemoryObjectDetachedResourcesuivNV] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
|
5122
|
+
OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glGetMemoryObjectDetachedResourcesuivNV] = Fiddle::TYPE_VOID
|
5123
|
+
OpenGL.module_eval(<<-SRC)
|
5124
|
+
def glGetMemoryObjectDetachedResourcesuivNV(_memory_, _pname_, _first_, _count_, _params_)
|
5125
|
+
f = OpenGL::get_command(:glGetMemoryObjectDetachedResourcesuivNV)
|
5126
|
+
f.call(_memory_, _pname_, _first_, _count_, _params_)
|
5127
|
+
end
|
5128
|
+
SRC
|
5129
|
+
|
5130
|
+
OpenGL::GL_FUNCTIONS_ARGS_MAP[:glResetMemoryObjectParameterNV] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
|
5131
|
+
OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glResetMemoryObjectParameterNV] = Fiddle::TYPE_VOID
|
5132
|
+
OpenGL.module_eval(<<-SRC)
|
5133
|
+
def glResetMemoryObjectParameterNV(_memory_, _pname_)
|
5134
|
+
f = OpenGL::get_command(:glResetMemoryObjectParameterNV)
|
5135
|
+
f.call(_memory_, _pname_)
|
5136
|
+
end
|
5137
|
+
SRC
|
5138
|
+
|
5139
|
+
OpenGL::GL_FUNCTIONS_ARGS_MAP[:glTexAttachMemoryNV] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_LONG_LONG]
|
5140
|
+
OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glTexAttachMemoryNV] = Fiddle::TYPE_VOID
|
5141
|
+
OpenGL.module_eval(<<-SRC)
|
5142
|
+
def glTexAttachMemoryNV(_target_, _memory_, _offset_)
|
5143
|
+
f = OpenGL::get_command(:glTexAttachMemoryNV)
|
5144
|
+
f.call(_target_, _memory_, _offset_)
|
5145
|
+
end
|
5146
|
+
SRC
|
5147
|
+
|
5148
|
+
OpenGL::GL_FUNCTIONS_ARGS_MAP[:glBufferAttachMemoryNV] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_LONG_LONG]
|
5149
|
+
OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glBufferAttachMemoryNV] = Fiddle::TYPE_VOID
|
5150
|
+
OpenGL.module_eval(<<-SRC)
|
5151
|
+
def glBufferAttachMemoryNV(_target_, _memory_, _offset_)
|
5152
|
+
f = OpenGL::get_command(:glBufferAttachMemoryNV)
|
5153
|
+
f.call(_target_, _memory_, _offset_)
|
5154
|
+
end
|
5155
|
+
SRC
|
5156
|
+
|
5157
|
+
OpenGL::GL_FUNCTIONS_ARGS_MAP[:glTextureAttachMemoryNV] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_LONG_LONG]
|
5158
|
+
OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glTextureAttachMemoryNV] = Fiddle::TYPE_VOID
|
5159
|
+
OpenGL.module_eval(<<-SRC)
|
5160
|
+
def glTextureAttachMemoryNV(_texture_, _memory_, _offset_)
|
5161
|
+
f = OpenGL::get_command(:glTextureAttachMemoryNV)
|
5162
|
+
f.call(_texture_, _memory_, _offset_)
|
5163
|
+
end
|
5164
|
+
SRC
|
5165
|
+
|
5166
|
+
OpenGL::GL_FUNCTIONS_ARGS_MAP[:glNamedBufferAttachMemoryNV] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_LONG_LONG]
|
5167
|
+
OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glNamedBufferAttachMemoryNV] = Fiddle::TYPE_VOID
|
5168
|
+
OpenGL.module_eval(<<-SRC)
|
5169
|
+
def glNamedBufferAttachMemoryNV(_buffer_, _memory_, _offset_)
|
5170
|
+
f = OpenGL::get_command(:glNamedBufferAttachMemoryNV)
|
5171
|
+
f.call(_buffer_, _memory_, _offset_)
|
5172
|
+
end
|
5173
|
+
SRC
|
5174
|
+
end # self.define_ext_command_GL_NV_memory_attachment
|
5175
|
+
|
5176
|
+
def self.get_ext_command_GL_NV_memory_attachment
|
5177
|
+
[
|
5178
|
+
'glGetMemoryObjectDetachedResourcesuivNV',
|
5179
|
+
'glResetMemoryObjectParameterNV',
|
5180
|
+
'glTexAttachMemoryNV',
|
5181
|
+
'glBufferAttachMemoryNV',
|
5182
|
+
'glTextureAttachMemoryNV',
|
5183
|
+
'glNamedBufferAttachMemoryNV',
|
5184
|
+
]
|
5185
|
+
end # self.get_ext_command_GL_NV_memory_attachment
|
5186
|
+
|
5187
|
+
|
5102
5188
|
def self.define_ext_command_GL_NV_non_square_matrices
|
5103
5189
|
OpenGL::GL_FUNCTIONS_ARGS_MAP[:glUniformMatrix2x3fvNV] = [Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_CHAR, Fiddle::TYPE_VOIDP]
|
5104
5190
|
OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glUniformMatrix2x3fvNV] = Fiddle::TYPE_VOID
|
@@ -7711,6 +7797,15 @@ module OpenGLExt
|
|
7711
7797
|
end # self.get_ext_command_GL_QCOM_texture_foveated
|
7712
7798
|
|
7713
7799
|
|
7800
|
+
def self.define_ext_command_GL_QCOM_texture_foveated_subsampled_layout
|
7801
|
+
end # self.define_ext_command_GL_QCOM_texture_foveated_subsampled_layout
|
7802
|
+
|
7803
|
+
def self.get_ext_command_GL_QCOM_texture_foveated_subsampled_layout
|
7804
|
+
[
|
7805
|
+
]
|
7806
|
+
end # self.get_ext_command_GL_QCOM_texture_foveated_subsampled_layout
|
7807
|
+
|
7808
|
+
|
7714
7809
|
def self.define_ext_command_GL_QCOM_perfmon_global_mode
|
7715
7810
|
end # self.define_ext_command_GL_QCOM_perfmon_global_mode
|
7716
7811
|
|
@@ -7784,6 +7879,15 @@ module OpenGLExt
|
|
7784
7879
|
end # self.get_ext_command_GL_QCOM_writeonly_rendering
|
7785
7880
|
|
7786
7881
|
|
7882
|
+
def self.define_ext_command_GL_QCOM_YUV_texture_gather
|
7883
|
+
end # self.define_ext_command_GL_QCOM_YUV_texture_gather
|
7884
|
+
|
7885
|
+
def self.get_ext_command_GL_QCOM_YUV_texture_gather
|
7886
|
+
[
|
7887
|
+
]
|
7888
|
+
end # self.get_ext_command_GL_QCOM_YUV_texture_gather
|
7889
|
+
|
7890
|
+
|
7787
7891
|
def self.define_ext_command_GL_VIV_shader_binary
|
7788
7892
|
end # self.define_ext_command_GL_VIV_shader_binary
|
7789
7893
|
|
data/lib/opengl_es_ext_enum.rb
CHANGED
@@ -734,6 +734,17 @@ module OpenGLExt
|
|
734
734
|
end # self.get_ext_enum_GL_EXT_debug_marker
|
735
735
|
|
736
736
|
|
737
|
+
def self.define_ext_enum_GL_EXT_depth_clamp
|
738
|
+
OpenGL.const_set('GL_DEPTH_CLAMP_EXT', 0x864F) unless defined?(OpenGL::GL_DEPTH_CLAMP_EXT)
|
739
|
+
end # self.define_ext_enum_GL_EXT_depth_clamp
|
740
|
+
|
741
|
+
def self.get_ext_enum_GL_EXT_depth_clamp
|
742
|
+
[
|
743
|
+
'GL_DEPTH_CLAMP_EXT',
|
744
|
+
]
|
745
|
+
end # self.get_ext_enum_GL_EXT_depth_clamp
|
746
|
+
|
747
|
+
|
737
748
|
def self.define_ext_enum_GL_EXT_discard_framebuffer
|
738
749
|
OpenGL.const_set('GL_COLOR_EXT', 0x1800) unless defined?(OpenGL::GL_COLOR_EXT)
|
739
750
|
OpenGL.const_set('GL_DEPTH_EXT', 0x1801) unless defined?(OpenGL::GL_DEPTH_EXT)
|
@@ -3098,6 +3109,15 @@ module OpenGLExt
|
|
3098
3109
|
end # self.get_ext_enum_GL_NV_clip_space_w_scaling
|
3099
3110
|
|
3100
3111
|
|
3112
|
+
def self.define_ext_enum_GL_NV_compute_shader_derivatives
|
3113
|
+
end # self.define_ext_enum_GL_NV_compute_shader_derivatives
|
3114
|
+
|
3115
|
+
def self.get_ext_enum_GL_NV_compute_shader_derivatives
|
3116
|
+
[
|
3117
|
+
]
|
3118
|
+
end # self.get_ext_enum_GL_NV_compute_shader_derivatives
|
3119
|
+
|
3120
|
+
|
3101
3121
|
def self.define_ext_enum_GL_NV_conditional_render
|
3102
3122
|
OpenGL.const_set('GL_QUERY_WAIT_NV', 0x8E13) unless defined?(OpenGL::GL_QUERY_WAIT_NV)
|
3103
3123
|
OpenGL.const_set('GL_QUERY_NO_WAIT_NV', 0x8E14) unless defined?(OpenGL::GL_QUERY_NO_WAIT_NV)
|
@@ -3599,6 +3619,35 @@ module OpenGLExt
|
|
3599
3619
|
end # self.get_ext_enum_GL_NV_internalformat_sample_query
|
3600
3620
|
|
3601
3621
|
|
3622
|
+
def self.define_ext_enum_GL_NV_memory_attachment
|
3623
|
+
OpenGL.const_set('GL_ATTACHED_MEMORY_OBJECT_NV', 0x95A4) unless defined?(OpenGL::GL_ATTACHED_MEMORY_OBJECT_NV)
|
3624
|
+
OpenGL.const_set('GL_ATTACHED_MEMORY_OFFSET_NV', 0x95A5) unless defined?(OpenGL::GL_ATTACHED_MEMORY_OFFSET_NV)
|
3625
|
+
OpenGL.const_set('GL_MEMORY_ATTACHABLE_ALIGNMENT_NV', 0x95A6) unless defined?(OpenGL::GL_MEMORY_ATTACHABLE_ALIGNMENT_NV)
|
3626
|
+
OpenGL.const_set('GL_MEMORY_ATTACHABLE_SIZE_NV', 0x95A7) unless defined?(OpenGL::GL_MEMORY_ATTACHABLE_SIZE_NV)
|
3627
|
+
OpenGL.const_set('GL_MEMORY_ATTACHABLE_NV', 0x95A8) unless defined?(OpenGL::GL_MEMORY_ATTACHABLE_NV)
|
3628
|
+
OpenGL.const_set('GL_DETACHED_MEMORY_INCARNATION_NV', 0x95A9) unless defined?(OpenGL::GL_DETACHED_MEMORY_INCARNATION_NV)
|
3629
|
+
OpenGL.const_set('GL_DETACHED_TEXTURES_NV', 0x95AA) unless defined?(OpenGL::GL_DETACHED_TEXTURES_NV)
|
3630
|
+
OpenGL.const_set('GL_DETACHED_BUFFERS_NV', 0x95AB) unless defined?(OpenGL::GL_DETACHED_BUFFERS_NV)
|
3631
|
+
OpenGL.const_set('GL_MAX_DETACHED_TEXTURES_NV', 0x95AC) unless defined?(OpenGL::GL_MAX_DETACHED_TEXTURES_NV)
|
3632
|
+
OpenGL.const_set('GL_MAX_DETACHED_BUFFERS_NV', 0x95AD) unless defined?(OpenGL::GL_MAX_DETACHED_BUFFERS_NV)
|
3633
|
+
end # self.define_ext_enum_GL_NV_memory_attachment
|
3634
|
+
|
3635
|
+
def self.get_ext_enum_GL_NV_memory_attachment
|
3636
|
+
[
|
3637
|
+
'GL_ATTACHED_MEMORY_OBJECT_NV',
|
3638
|
+
'GL_ATTACHED_MEMORY_OFFSET_NV',
|
3639
|
+
'GL_MEMORY_ATTACHABLE_ALIGNMENT_NV',
|
3640
|
+
'GL_MEMORY_ATTACHABLE_SIZE_NV',
|
3641
|
+
'GL_MEMORY_ATTACHABLE_NV',
|
3642
|
+
'GL_DETACHED_MEMORY_INCARNATION_NV',
|
3643
|
+
'GL_DETACHED_TEXTURES_NV',
|
3644
|
+
'GL_DETACHED_BUFFERS_NV',
|
3645
|
+
'GL_MAX_DETACHED_TEXTURES_NV',
|
3646
|
+
'GL_MAX_DETACHED_BUFFERS_NV',
|
3647
|
+
]
|
3648
|
+
end # self.get_ext_enum_GL_NV_memory_attachment
|
3649
|
+
|
3650
|
+
|
3602
3651
|
def self.define_ext_enum_GL_NV_non_square_matrices
|
3603
3652
|
OpenGL.const_set('GL_FLOAT_MAT2x3_NV', 0x8B65) unless defined?(OpenGL::GL_FLOAT_MAT2x3_NV)
|
3604
3653
|
OpenGL.const_set('GL_FLOAT_MAT2x4_NV', 0x8B66) unless defined?(OpenGL::GL_FLOAT_MAT2x4_NV)
|
@@ -5425,6 +5474,19 @@ module OpenGLExt
|
|
5425
5474
|
end # self.get_ext_enum_GL_QCOM_texture_foveated
|
5426
5475
|
|
5427
5476
|
|
5477
|
+
def self.define_ext_enum_GL_QCOM_texture_foveated_subsampled_layout
|
5478
|
+
OpenGL.const_set('GL_FOVEATION_SUBSAMPLED_LAYOUT_METHOD_BIT_QCOM', 0x00000004) unless defined?(OpenGL::GL_FOVEATION_SUBSAMPLED_LAYOUT_METHOD_BIT_QCOM)
|
5479
|
+
OpenGL.const_set('GL_MAX_SHADER_SUBSAMPLED_IMAGE_UNITS_QCOM', 0x8FA1) unless defined?(OpenGL::GL_MAX_SHADER_SUBSAMPLED_IMAGE_UNITS_QCOM)
|
5480
|
+
end # self.define_ext_enum_GL_QCOM_texture_foveated_subsampled_layout
|
5481
|
+
|
5482
|
+
def self.get_ext_enum_GL_QCOM_texture_foveated_subsampled_layout
|
5483
|
+
[
|
5484
|
+
'GL_FOVEATION_SUBSAMPLED_LAYOUT_METHOD_BIT_QCOM',
|
5485
|
+
'GL_MAX_SHADER_SUBSAMPLED_IMAGE_UNITS_QCOM',
|
5486
|
+
]
|
5487
|
+
end # self.get_ext_enum_GL_QCOM_texture_foveated_subsampled_layout
|
5488
|
+
|
5489
|
+
|
5428
5490
|
def self.define_ext_enum_GL_QCOM_perfmon_global_mode
|
5429
5491
|
OpenGL.const_set('GL_PERFMON_GLOBAL_MODE_QCOM', 0x8FA0) unless defined?(OpenGL::GL_PERFMON_GLOBAL_MODE_QCOM)
|
5430
5492
|
end # self.define_ext_enum_GL_QCOM_perfmon_global_mode
|
@@ -5540,6 +5602,15 @@ module OpenGLExt
|
|
5540
5602
|
end # self.get_ext_enum_GL_QCOM_writeonly_rendering
|
5541
5603
|
|
5542
5604
|
|
5605
|
+
def self.define_ext_enum_GL_QCOM_YUV_texture_gather
|
5606
|
+
end # self.define_ext_enum_GL_QCOM_YUV_texture_gather
|
5607
|
+
|
5608
|
+
def self.get_ext_enum_GL_QCOM_YUV_texture_gather
|
5609
|
+
[
|
5610
|
+
]
|
5611
|
+
end # self.get_ext_enum_GL_QCOM_YUV_texture_gather
|
5612
|
+
|
5613
|
+
|
5543
5614
|
def self.define_ext_enum_GL_VIV_shader_binary
|
5544
5615
|
OpenGL.const_set('GL_SHADER_BINARY_VIV', 0x8FC4) unless defined?(OpenGL::GL_SHADER_BINARY_VIV)
|
5545
5616
|
end # self.define_ext_enum_GL_VIV_shader_binary
|