opengl-bindings 1.6.13 → 1.6.14

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
  SHA256:
3
- metadata.gz: daf1003c825d60f64f56d01fae4089590cb9fc956bd4b427c6e550566b0414b7
4
- data.tar.gz: d9cef5ccb4f0e3abc23cc1e459eb785e7e37e0b95e6fa5b11a3b0a05f8a2171a
3
+ metadata.gz: 0deefb2c81590ad74fba31b0b2c1d744a3db960d276bbc7e3203c128a8c73c7a
4
+ data.tar.gz: af1cf6dce05b92f6be98f8359f1714d419af0a54bb738649401661c7a3f4f28e
5
5
  SHA512:
6
- metadata.gz: fcecc742e81d3cbb5ebf1eb5f33db6a6eb57282a7b4eb14ad6902c58de62b6ea3493580187b4699d575e1f1c9348b3b032607a46ba767c0b8b8932f331370ec4
7
- data.tar.gz: caae78f5236cff6aaf8cf61462bde98aa1fdbed00b87f9f39d03084e0331c76a62c67e013a53abc1184e78c8b4294462882792e7edbdca5e6139e1418276273f
6
+ metadata.gz: 79dc42da66d606cd38e57acadd92ed1d1452d6d15d2282ec3e4aafa4b43b494de1953d3fb72dc355202a4a31105c10fca552a32520bdd2531089c072c244ee0a
7
+ data.tar.gz: 8da7b1af3855c7774a6d902ed3b62f85d82d3458ea880580d668b399c8ea5e058f6a955613ed3918595053cd2bc9d632fbe3f853eadf2c408eacbbf5cba0eac4
data/ChangeLog CHANGED
@@ -1,3 +1,15 @@
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
+
1
13
  2022-12-10 vaiorabbit <http://twitter.com/vaiorabbit>
2
14
 
3
15
  * Updated 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-2023 vaiorabbit <http://twitter.com/vaiorabbit>
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 : 2022-07-18
8
+ * Last modified : 2024-01-05
9
9
 
10
10
  ---
11
11
 
@@ -167,7 +167,7 @@ Use GLFW or GLUT for creating windows and OpenGL rendering contexts.
167
167
  ## Tested Environment ##
168
168
 
169
169
  * Ruby
170
- * ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin21]
170
+ * ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
171
171
 
172
172
  * Windows 10 Home, 64-bit (Version 1909, OS Build 18363.778)
173
173
  * NVIDIA GeForce RTX 2060 SUPER
@@ -207,6 +207,7 @@ Use GLFW or GLUT for creating windows and OpenGL rendering contexts.
207
207
  <summary>Older versions</summary>
208
208
 
209
209
  * Ruby
210
+ * ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin21]
210
211
  * ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
211
212
  * ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
212
213
  * ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
@@ -340,7 +341,7 @@ Use GLFW or GLUT for creating windows and OpenGL rendering contexts.
340
341
 
341
342
  The zlib/libpng License ( http://opensource.org/licenses/Zlib ).
342
343
 
343
- Copyright (c) 2013-2023 vaiorabbit <http://twitter.com/vaiorabbit>
344
+ Copyright (c) 2013-2024 vaiorabbit <http://twitter.com/vaiorabbit>
344
345
 
345
346
  This software is provided 'as-is', without any express or implied
346
347
  warranty. In no event will the authors be held liable for any damages
@@ -520,6 +521,49 @@ GLFW か GLUT を用意してください。ウィンドウやレンダリング
520
521
  ## テストした環境 ##
521
522
 
522
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]
523
567
  * ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
524
568
  * ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [arm64-darwin20]
525
569
  * ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]
@@ -548,16 +592,6 @@ GLFW か GLUT を用意してください。ウィンドウやレンダリング
548
592
  * ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin13.0.0]
549
593
  * ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
550
594
 
551
- * Windows 10 Home, 64-bit (Version 1909, OS Build 18363.778)
552
- * NVIDIA GeForce RTX 2060 SUPER
553
- * OpenGL 4.5
554
-
555
- > ruby report_env.rb
556
- Version : 4.5.0 NVIDIA 436.30
557
- Vendor : NVIDIA Corporation
558
- Renderer : GeForce RTX 2060 SUPER/PCIe/SSE2
559
- Shader : 4.50 NVIDIA
560
-
561
595
  * Windows 10 Home, 64-bit (Version 1511, OS Build 10586.164)
562
596
  * NVIDIA GeForce GTX 960
563
597
  * OpenGL 4.5
@@ -572,6 +606,13 @@ GLFW か GLUT を用意してください。ウィンドウやレンダリング
572
606
  > ruby report_env.rb
573
607
  4.3.0
574
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
+
575
616
  * Mac OS X 10.8.4, 64-bit
576
617
  * NVIDIA GeForce 320M on Mac mini (Mid 2010)
577
618
  * OpenGL 2.1
@@ -596,26 +637,7 @@ GLFW か GLUT を用意してください。ウィンドウやレンダリング
596
637
  Renderer : Intel Iris OpenGL Engine
597
638
  Shader : 4.10
598
639
 
599
- * Arch Linux kernel 4.1.2-2-ARCH, Nvidia Driver, x86_64
600
- * NVIDIA GeForce GTS 450
601
- * OpenGL 4.5.0
602
-
603
- $ ruby report_env.rb
604
- Version: 4.5.0 NVIDIA 352.21
605
-
606
- * Arch Linux kernel 4.1.4-1-ARCH, Nouveau Driver, x86_64
607
- * NVIDIA GeForce GTS 450
608
- * OpenGL 3.0
609
-
610
- $ ruby report_env.rb
611
- Version: 3.0 Mesa 10.6.3
612
-
613
- * 引数として渡すことで任意のライブラリ名/パス名を利用できます:
614
- * OpenGL.load_lib( 'libGL.so', '/usr/lib' )
615
- * GLFW.load_lib( 'libglfw.so', '/usr/lib' )
616
- * GLU.load_lib( 'libGLU.so', '/usr/lib' )
617
- * GLUT.load_lib( 'libglut.so', '/usr/lib' )
618
-
640
+ </details>
619
641
 
620
642
  ## メモ ##
621
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
@@ -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-2023 vaiorabbit <http://twitter.com/vaiorabbit>
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-2023 vaiorabbit <http://twitter.com/vaiorabbit>
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-2023 vaiorabbit <http://twitter.com/vaiorabbit>
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-2023 vaiorabbit <http://twitter.com/vaiorabbit>
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-2023 vaiorabbit <http://twitter.com/vaiorabbit>
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-2023 vaiorabbit <http://twitter.com/vaiorabbit>
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
@@ -541,6 +541,24 @@ module OpenGLExt
541
541
  end # self.get_ext_command_GL_ARM_rgba8
542
542
 
543
543
 
544
+ def self.define_ext_command_GL_ARM_shader_core_properties
545
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glMaxActiveShaderCoresARM] = [-Fiddle::TYPE_INT]
546
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glMaxActiveShaderCoresARM] = Fiddle::TYPE_VOID
547
+ OpenGL.module_eval(<<-SRC)
548
+ def glMaxActiveShaderCoresARM(_count_)
549
+ f = OpenGL::get_command(:glMaxActiveShaderCoresARM)
550
+ f.call(_count_)
551
+ end
552
+ SRC
553
+ end # self.define_ext_command_GL_ARM_shader_core_properties
554
+
555
+ def self.get_ext_command_GL_ARM_shader_core_properties
556
+ [
557
+ 'glMaxActiveShaderCoresARM',
558
+ ]
559
+ end # self.get_ext_command_GL_ARM_shader_core_properties
560
+
561
+
544
562
  def self.define_ext_command_GL_ARM_shader_framebuffer_fetch
545
563
  end # self.define_ext_command_GL_ARM_shader_framebuffer_fetch
546
564
 
@@ -1379,6 +1397,34 @@ module OpenGLExt
1379
1397
  end # self.get_ext_command_GL_EXT_fragment_shading_rate
1380
1398
 
1381
1399
 
1400
+ def self.define_ext_command_GL_EXT_framebuffer_blit_layers
1401
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glBlitFramebufferLayersEXT] = [Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
1402
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glBlitFramebufferLayersEXT] = Fiddle::TYPE_VOID
1403
+ OpenGL.module_eval(<<-SRC)
1404
+ def glBlitFramebufferLayersEXT(_srcX0_, _srcY0_, _srcX1_, _srcY1_, _dstX0_, _dstY0_, _dstX1_, _dstY1_, _mask_, _filter_)
1405
+ f = OpenGL::get_command(:glBlitFramebufferLayersEXT)
1406
+ f.call(_srcX0_, _srcY0_, _srcX1_, _srcY1_, _dstX0_, _dstY0_, _dstX1_, _dstY1_, _mask_, _filter_)
1407
+ end
1408
+ SRC
1409
+
1410
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glBlitFramebufferLayerEXT] = [Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
1411
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glBlitFramebufferLayerEXT] = Fiddle::TYPE_VOID
1412
+ OpenGL.module_eval(<<-SRC)
1413
+ def glBlitFramebufferLayerEXT(_srcX0_, _srcY0_, _srcX1_, _srcY1_, _srcLayer_, _dstX0_, _dstY0_, _dstX1_, _dstY1_, _dstLayer_, _mask_, _filter_)
1414
+ f = OpenGL::get_command(:glBlitFramebufferLayerEXT)
1415
+ f.call(_srcX0_, _srcY0_, _srcX1_, _srcY1_, _srcLayer_, _dstX0_, _dstY0_, _dstX1_, _dstY1_, _dstLayer_, _mask_, _filter_)
1416
+ end
1417
+ SRC
1418
+ end # self.define_ext_command_GL_EXT_framebuffer_blit_layers
1419
+
1420
+ def self.get_ext_command_GL_EXT_framebuffer_blit_layers
1421
+ [
1422
+ 'glBlitFramebufferLayersEXT',
1423
+ 'glBlitFramebufferLayerEXT',
1424
+ ]
1425
+ end # self.get_ext_command_GL_EXT_framebuffer_blit_layers
1426
+
1427
+
1382
1428
  def self.define_ext_command_GL_EXT_geometry_point_size
1383
1429
  end # self.define_ext_command_GL_EXT_geometry_point_size
1384
1430
 
@@ -3244,6 +3290,15 @@ module OpenGLExt
3244
3290
  end # self.get_ext_command_GL_EXT_texture_sRGB_decode
3245
3291
 
3246
3292
 
3293
+ def self.define_ext_command_GL_EXT_texture_shadow_lod
3294
+ end # self.define_ext_command_GL_EXT_texture_shadow_lod
3295
+
3296
+ def self.get_ext_command_GL_EXT_texture_shadow_lod
3297
+ [
3298
+ ]
3299
+ end # self.get_ext_command_GL_EXT_texture_shadow_lod
3300
+
3301
+
3247
3302
  def self.define_ext_command_GL_EXT_texture_storage
3248
3303
  OpenGL::GL_FUNCTIONS_ARGS_MAP[:glTexStorage1DEXT] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT]
3249
3304
  OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glTexStorage1DEXT] = Fiddle::TYPE_VOID
@@ -4299,6 +4354,114 @@ module OpenGLExt
4299
4354
  end # self.get_ext_command_GL_MESA_program_binary_formats
4300
4355
 
4301
4356
 
4357
+ def self.define_ext_command_GL_MESA_sampler_objects
4358
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glGenSamplers] = [Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
4359
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glGenSamplers] = Fiddle::TYPE_VOID
4360
+ OpenGL.module_eval(<<-SRC)
4361
+ def glGenSamplers(_count_, _samplers_)
4362
+ f = OpenGL::get_command(:glGenSamplers)
4363
+ f.call(_count_, _samplers_)
4364
+ end
4365
+ SRC
4366
+
4367
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glDeleteSamplers] = [Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
4368
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glDeleteSamplers] = Fiddle::TYPE_VOID
4369
+ OpenGL.module_eval(<<-SRC)
4370
+ def glDeleteSamplers(_count_, _samplers_)
4371
+ f = OpenGL::get_command(:glDeleteSamplers)
4372
+ f.call(_count_, _samplers_)
4373
+ end
4374
+ SRC
4375
+
4376
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glIsSampler] = [-Fiddle::TYPE_INT]
4377
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glIsSampler] = -Fiddle::TYPE_CHAR
4378
+ OpenGL.module_eval(<<-SRC)
4379
+ def glIsSampler(_sampler_)
4380
+ f = OpenGL::get_command(:glIsSampler)
4381
+ f.call(_sampler_)
4382
+ end
4383
+ SRC
4384
+
4385
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glBindSampler] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
4386
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glBindSampler] = Fiddle::TYPE_VOID
4387
+ OpenGL.module_eval(<<-SRC)
4388
+ def glBindSampler(_unit_, _sampler_)
4389
+ f = OpenGL::get_command(:glBindSampler)
4390
+ f.call(_unit_, _sampler_)
4391
+ end
4392
+ SRC
4393
+
4394
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glSamplerParameteri] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT]
4395
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glSamplerParameteri] = Fiddle::TYPE_VOID
4396
+ OpenGL.module_eval(<<-SRC)
4397
+ def glSamplerParameteri(_sampler_, _pname_, _param_)
4398
+ f = OpenGL::get_command(:glSamplerParameteri)
4399
+ f.call(_sampler_, _pname_, _param_)
4400
+ end
4401
+ SRC
4402
+
4403
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glSamplerParameteriv] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
4404
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glSamplerParameteriv] = Fiddle::TYPE_VOID
4405
+ OpenGL.module_eval(<<-SRC)
4406
+ def glSamplerParameteriv(_sampler_, _pname_, _param_)
4407
+ f = OpenGL::get_command(:glSamplerParameteriv)
4408
+ f.call(_sampler_, _pname_, _param_)
4409
+ end
4410
+ SRC
4411
+
4412
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glSamplerParameterf] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_FLOAT]
4413
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glSamplerParameterf] = Fiddle::TYPE_VOID
4414
+ OpenGL.module_eval(<<-SRC)
4415
+ def glSamplerParameterf(_sampler_, _pname_, _param_)
4416
+ f = OpenGL::get_command(:glSamplerParameterf)
4417
+ f.call(_sampler_, _pname_, _param_)
4418
+ end
4419
+ SRC
4420
+
4421
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glSamplerParameterfv] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
4422
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glSamplerParameterfv] = Fiddle::TYPE_VOID
4423
+ OpenGL.module_eval(<<-SRC)
4424
+ def glSamplerParameterfv(_sampler_, _pname_, _param_)
4425
+ f = OpenGL::get_command(:glSamplerParameterfv)
4426
+ f.call(_sampler_, _pname_, _param_)
4427
+ end
4428
+ SRC
4429
+
4430
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glGetSamplerParameteriv] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
4431
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glGetSamplerParameteriv] = Fiddle::TYPE_VOID
4432
+ OpenGL.module_eval(<<-SRC)
4433
+ def glGetSamplerParameteriv(_sampler_, _pname_, _params_)
4434
+ f = OpenGL::get_command(:glGetSamplerParameteriv)
4435
+ f.call(_sampler_, _pname_, _params_)
4436
+ end
4437
+ SRC
4438
+
4439
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glGetSamplerParameterfv] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
4440
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glGetSamplerParameterfv] = Fiddle::TYPE_VOID
4441
+ OpenGL.module_eval(<<-SRC)
4442
+ def glGetSamplerParameterfv(_sampler_, _pname_, _params_)
4443
+ f = OpenGL::get_command(:glGetSamplerParameterfv)
4444
+ f.call(_sampler_, _pname_, _params_)
4445
+ end
4446
+ SRC
4447
+ end # self.define_ext_command_GL_MESA_sampler_objects
4448
+
4449
+ def self.get_ext_command_GL_MESA_sampler_objects
4450
+ [
4451
+ 'glGenSamplers',
4452
+ 'glDeleteSamplers',
4453
+ 'glIsSampler',
4454
+ 'glBindSampler',
4455
+ 'glSamplerParameteri',
4456
+ 'glSamplerParameteriv',
4457
+ 'glSamplerParameterf',
4458
+ 'glSamplerParameterfv',
4459
+ 'glGetSamplerParameteriv',
4460
+ 'glGetSamplerParameterfv',
4461
+ ]
4462
+ end # self.get_ext_command_GL_MESA_sampler_objects
4463
+
4464
+
4302
4465
  def self.define_ext_command_GL_MESA_shader_integer_functions
4303
4466
  end # self.define_ext_command_GL_MESA_shader_integer_functions
4304
4467
 
@@ -6971,6 +7134,15 @@ module OpenGLExt
6971
7134
  end # self.get_ext_command_GL_NV_viewport_swizzle
6972
7135
 
6973
7136
 
7137
+ def self.define_ext_command_GL_NV_pack_subimage
7138
+ end # self.define_ext_command_GL_NV_pack_subimage
7139
+
7140
+ def self.get_ext_command_GL_NV_pack_subimage
7141
+ [
7142
+ ]
7143
+ end # self.get_ext_command_GL_NV_pack_subimage
7144
+
7145
+
6974
7146
  def self.define_ext_command_GL_OES_EGL_image
6975
7147
  OpenGL::GL_FUNCTIONS_ARGS_MAP[:glEGLImageTargetTexture2DOES] = [-Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
6976
7148
  OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glEGLImageTargetTexture2DOES] = Fiddle::TYPE_VOID
@@ -8341,6 +8513,15 @@ module OpenGLExt
8341
8513
  end # self.get_ext_command_GL_QCOM_render_shared_exponent
8342
8514
 
8343
8515
 
8516
+ def self.define_ext_command_GL_QCOM_render_sRGB_R8_RG8
8517
+ end # self.define_ext_command_GL_QCOM_render_sRGB_R8_RG8
8518
+
8519
+ def self.get_ext_command_GL_QCOM_render_sRGB_R8_RG8
8520
+ [
8521
+ ]
8522
+ end # self.get_ext_command_GL_QCOM_render_sRGB_R8_RG8
8523
+
8524
+
8344
8525
  def self.define_ext_command_GL_QCOM_texture_foveated
8345
8526
  OpenGL::GL_FUNCTIONS_ARGS_MAP[:glTextureFoveationParametersQCOM] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_FLOAT, Fiddle::TYPE_FLOAT, Fiddle::TYPE_FLOAT, Fiddle::TYPE_FLOAT, Fiddle::TYPE_FLOAT]
8346
8527
  OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glTextureFoveationParametersQCOM] = Fiddle::TYPE_VOID
@@ -8377,6 +8558,15 @@ module OpenGLExt
8377
8558
  end # self.get_ext_command_GL_QCOM_texture_foveated_subsampled_layout
8378
8559
 
8379
8560
 
8561
+ def self.define_ext_command_GL_QCOM_texture_lod_bias
8562
+ end # self.define_ext_command_GL_QCOM_texture_lod_bias
8563
+
8564
+ def self.get_ext_command_GL_QCOM_texture_lod_bias
8565
+ [
8566
+ ]
8567
+ end # self.get_ext_command_GL_QCOM_texture_lod_bias
8568
+
8569
+
8380
8570
  def self.define_ext_command_GL_QCOM_perfmon_global_mode
8381
8571
  end # self.define_ext_command_GL_QCOM_perfmon_global_mode
8382
8572
 
@@ -8486,13 +8676,4 @@ module OpenGLExt
8486
8676
  end # self.get_ext_command_GL_VIV_shader_binary
8487
8677
 
8488
8678
 
8489
- def self.define_ext_command_GL_EXT_texture_shadow_lod
8490
- end # self.define_ext_command_GL_EXT_texture_shadow_lod
8491
-
8492
- def self.get_ext_command_GL_EXT_texture_shadow_lod
8493
- [
8494
- ]
8495
- end # self.get_ext_command_GL_EXT_texture_shadow_lod
8496
-
8497
-
8498
8679
  end
@@ -432,6 +432,29 @@ module OpenGLExt
432
432
  end # self.get_ext_enum_GL_ARM_rgba8
433
433
 
434
434
 
435
+ def self.define_ext_enum_GL_ARM_shader_core_properties
436
+ OpenGL.const_set('GL_SHADER_CORE_COUNT_ARM', 0x96F0) unless defined?(OpenGL::GL_SHADER_CORE_COUNT_ARM)
437
+ OpenGL.const_set('GL_SHADER_CORE_ACTIVE_COUNT_ARM', 0x96F1) unless defined?(OpenGL::GL_SHADER_CORE_ACTIVE_COUNT_ARM)
438
+ OpenGL.const_set('GL_SHADER_CORE_PRESENT_MASK_ARM', 0x96F2) unless defined?(OpenGL::GL_SHADER_CORE_PRESENT_MASK_ARM)
439
+ OpenGL.const_set('GL_SHADER_CORE_MAX_WARP_COUNT_ARM', 0x96F3) unless defined?(OpenGL::GL_SHADER_CORE_MAX_WARP_COUNT_ARM)
440
+ OpenGL.const_set('GL_SHADER_CORE_PIXEL_RATE_ARM', 0x96F4) unless defined?(OpenGL::GL_SHADER_CORE_PIXEL_RATE_ARM)
441
+ OpenGL.const_set('GL_SHADER_CORE_TEXEL_RATE_ARM', 0x96F5) unless defined?(OpenGL::GL_SHADER_CORE_TEXEL_RATE_ARM)
442
+ OpenGL.const_set('GL_SHADER_CORE_FMA_RATE_ARM', 0x96F6) unless defined?(OpenGL::GL_SHADER_CORE_FMA_RATE_ARM)
443
+ end # self.define_ext_enum_GL_ARM_shader_core_properties
444
+
445
+ def self.get_ext_enum_GL_ARM_shader_core_properties
446
+ [
447
+ 'GL_SHADER_CORE_COUNT_ARM',
448
+ 'GL_SHADER_CORE_ACTIVE_COUNT_ARM',
449
+ 'GL_SHADER_CORE_PRESENT_MASK_ARM',
450
+ 'GL_SHADER_CORE_MAX_WARP_COUNT_ARM',
451
+ 'GL_SHADER_CORE_PIXEL_RATE_ARM',
452
+ 'GL_SHADER_CORE_TEXEL_RATE_ARM',
453
+ 'GL_SHADER_CORE_FMA_RATE_ARM',
454
+ ]
455
+ end # self.get_ext_enum_GL_ARM_shader_core_properties
456
+
457
+
435
458
  def self.define_ext_enum_GL_ARM_shader_framebuffer_fetch
436
459
  OpenGL.const_set('GL_FETCH_PER_SAMPLE_ARM', 0x8F65) unless defined?(OpenGL::GL_FETCH_PER_SAMPLE_ARM)
437
460
  OpenGL.const_set('GL_FRAGMENT_SHADER_FRAMEBUFFER_FETCH_MRT_ARM', 0x8F66) unless defined?(OpenGL::GL_FRAGMENT_SHADER_FRAMEBUFFER_FETCH_MRT_ARM)
@@ -1057,6 +1080,15 @@ module OpenGLExt
1057
1080
  end # self.get_ext_enum_GL_EXT_fragment_shading_rate
1058
1081
 
1059
1082
 
1083
+ def self.define_ext_enum_GL_EXT_framebuffer_blit_layers
1084
+ end # self.define_ext_enum_GL_EXT_framebuffer_blit_layers
1085
+
1086
+ def self.get_ext_enum_GL_EXT_framebuffer_blit_layers
1087
+ [
1088
+ ]
1089
+ end # self.get_ext_enum_GL_EXT_framebuffer_blit_layers
1090
+
1091
+
1060
1092
  def self.define_ext_enum_GL_EXT_geometry_point_size
1061
1093
  end # self.define_ext_enum_GL_EXT_geometry_point_size
1062
1094
 
@@ -2261,6 +2293,15 @@ module OpenGLExt
2261
2293
  end # self.get_ext_enum_GL_EXT_texture_sRGB_decode
2262
2294
 
2263
2295
 
2296
+ def self.define_ext_enum_GL_EXT_texture_shadow_lod
2297
+ end # self.define_ext_enum_GL_EXT_texture_shadow_lod
2298
+
2299
+ def self.get_ext_enum_GL_EXT_texture_shadow_lod
2300
+ [
2301
+ ]
2302
+ end # self.get_ext_enum_GL_EXT_texture_shadow_lod
2303
+
2304
+
2264
2305
  def self.define_ext_enum_GL_EXT_texture_storage
2265
2306
  OpenGL.const_set('GL_TEXTURE_IMMUTABLE_FORMAT_EXT', 0x912F) unless defined?(OpenGL::GL_TEXTURE_IMMUTABLE_FORMAT_EXT)
2266
2307
  OpenGL.const_set('GL_ALPHA8_EXT', 0x803C) unless defined?(OpenGL::GL_ALPHA8_EXT)
@@ -3210,6 +3251,17 @@ module OpenGLExt
3210
3251
  end # self.get_ext_enum_GL_MESA_program_binary_formats
3211
3252
 
3212
3253
 
3254
+ def self.define_ext_enum_GL_MESA_sampler_objects
3255
+ OpenGL.const_set('GL_SAMPLER_BINDING', 0x8919) unless defined?(OpenGL::GL_SAMPLER_BINDING)
3256
+ end # self.define_ext_enum_GL_MESA_sampler_objects
3257
+
3258
+ def self.get_ext_enum_GL_MESA_sampler_objects
3259
+ [
3260
+ 'GL_SAMPLER_BINDING',
3261
+ ]
3262
+ end # self.get_ext_enum_GL_MESA_sampler_objects
3263
+
3264
+
3213
3265
  def self.define_ext_enum_GL_MESA_shader_integer_functions
3214
3266
  end # self.define_ext_enum_GL_MESA_shader_integer_functions
3215
3267
 
@@ -4821,6 +4873,21 @@ module OpenGLExt
4821
4873
  end # self.get_ext_enum_GL_NV_viewport_swizzle
4822
4874
 
4823
4875
 
4876
+ def self.define_ext_enum_GL_NV_pack_subimage
4877
+ OpenGL.const_set('GL_PACK_ROW_LENGTH_NV', 0x0D02) unless defined?(OpenGL::GL_PACK_ROW_LENGTH_NV)
4878
+ OpenGL.const_set('GL_PACK_SKIP_ROWS_NV', 0x0D03) unless defined?(OpenGL::GL_PACK_SKIP_ROWS_NV)
4879
+ OpenGL.const_set('GL_PACK_SKIP_PIXELS_NV', 0x0D04) unless defined?(OpenGL::GL_PACK_SKIP_PIXELS_NV)
4880
+ end # self.define_ext_enum_GL_NV_pack_subimage
4881
+
4882
+ def self.get_ext_enum_GL_NV_pack_subimage
4883
+ [
4884
+ 'GL_PACK_ROW_LENGTH_NV',
4885
+ 'GL_PACK_SKIP_ROWS_NV',
4886
+ 'GL_PACK_SKIP_PIXELS_NV',
4887
+ ]
4888
+ end # self.get_ext_enum_GL_NV_pack_subimage
4889
+
4890
+
4824
4891
  def self.define_ext_enum_GL_OES_EGL_image
4825
4892
  end # self.define_ext_enum_GL_OES_EGL_image
4826
4893
 
@@ -5993,6 +6060,15 @@ module OpenGLExt
5993
6060
  end # self.get_ext_enum_GL_QCOM_render_shared_exponent
5994
6061
 
5995
6062
 
6063
+ def self.define_ext_enum_GL_QCOM_render_sRGB_R8_RG8
6064
+ end # self.define_ext_enum_GL_QCOM_render_sRGB_R8_RG8
6065
+
6066
+ def self.get_ext_enum_GL_QCOM_render_sRGB_R8_RG8
6067
+ [
6068
+ ]
6069
+ end # self.get_ext_enum_GL_QCOM_render_sRGB_R8_RG8
6070
+
6071
+
5996
6072
  def self.define_ext_enum_GL_QCOM_texture_foveated
5997
6073
  OpenGL.const_set('GL_FOVEATION_ENABLE_BIT_QCOM', 0x00000001) unless defined?(OpenGL::GL_FOVEATION_ENABLE_BIT_QCOM)
5998
6074
  OpenGL.const_set('GL_FOVEATION_SCALED_BIN_METHOD_BIT_QCOM', 0x00000002) unless defined?(OpenGL::GL_FOVEATION_SCALED_BIN_METHOD_BIT_QCOM)
@@ -6040,6 +6116,17 @@ module OpenGLExt
6040
6116
  end # self.get_ext_enum_GL_QCOM_texture_foveated_subsampled_layout
6041
6117
 
6042
6118
 
6119
+ def self.define_ext_enum_GL_QCOM_texture_lod_bias
6120
+ OpenGL.const_set('GL_TEXTURE_LOD_BIAS_QCOM', 0x8C96) unless defined?(OpenGL::GL_TEXTURE_LOD_BIAS_QCOM)
6121
+ end # self.define_ext_enum_GL_QCOM_texture_lod_bias
6122
+
6123
+ def self.get_ext_enum_GL_QCOM_texture_lod_bias
6124
+ [
6125
+ 'GL_TEXTURE_LOD_BIAS_QCOM',
6126
+ ]
6127
+ end # self.get_ext_enum_GL_QCOM_texture_lod_bias
6128
+
6129
+
6043
6130
  def self.define_ext_enum_GL_QCOM_perfmon_global_mode
6044
6131
  OpenGL.const_set('GL_PERFMON_GLOBAL_MODE_QCOM', 0x8FA0) unless defined?(OpenGL::GL_PERFMON_GLOBAL_MODE_QCOM)
6045
6132
  end # self.define_ext_enum_GL_QCOM_perfmon_global_mode
@@ -6200,13 +6287,4 @@ module OpenGLExt
6200
6287
  end # self.get_ext_enum_GL_VIV_shader_binary
6201
6288
 
6202
6289
 
6203
- def self.define_ext_enum_GL_EXT_texture_shadow_lod
6204
- end # self.define_ext_enum_GL_EXT_texture_shadow_lod
6205
-
6206
- def self.get_ext_enum_GL_EXT_texture_shadow_lod
6207
- [
6208
- ]
6209
- end # self.get_ext_enum_GL_EXT_texture_shadow_lod
6210
-
6211
-
6212
6290
  end
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-2023 vaiorabbit <http://twitter.com/vaiorabbit>
14
+ Copyright (c) 2013-2024 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
@@ -15672,6 +15672,34 @@ module OpenGLExt
15672
15672
  end # self.get_ext_command_GL_EXT_framebuffer_blit
15673
15673
 
15674
15674
 
15675
+ def self.define_ext_command_GL_EXT_framebuffer_blit_layers
15676
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glBlitFramebufferLayersEXT] = [Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
15677
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glBlitFramebufferLayersEXT] = Fiddle::TYPE_VOID
15678
+ OpenGL.module_eval(<<-SRC)
15679
+ def glBlitFramebufferLayersEXT(_srcX0_, _srcY0_, _srcX1_, _srcY1_, _dstX0_, _dstY0_, _dstX1_, _dstY1_, _mask_, _filter_)
15680
+ f = OpenGL::get_command(:glBlitFramebufferLayersEXT)
15681
+ f.call(_srcX0_, _srcY0_, _srcX1_, _srcY1_, _dstX0_, _dstY0_, _dstX1_, _dstY1_, _mask_, _filter_)
15682
+ end
15683
+ SRC
15684
+
15685
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glBlitFramebufferLayerEXT] = [Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
15686
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glBlitFramebufferLayerEXT] = Fiddle::TYPE_VOID
15687
+ OpenGL.module_eval(<<-SRC)
15688
+ def glBlitFramebufferLayerEXT(_srcX0_, _srcY0_, _srcX1_, _srcY1_, _srcLayer_, _dstX0_, _dstY0_, _dstX1_, _dstY1_, _dstLayer_, _mask_, _filter_)
15689
+ f = OpenGL::get_command(:glBlitFramebufferLayerEXT)
15690
+ f.call(_srcX0_, _srcY0_, _srcX1_, _srcY1_, _srcLayer_, _dstX0_, _dstY0_, _dstX1_, _dstY1_, _dstLayer_, _mask_, _filter_)
15691
+ end
15692
+ SRC
15693
+ end # self.define_ext_command_GL_EXT_framebuffer_blit_layers
15694
+
15695
+ def self.get_ext_command_GL_EXT_framebuffer_blit_layers
15696
+ [
15697
+ 'glBlitFramebufferLayersEXT',
15698
+ 'glBlitFramebufferLayerEXT',
15699
+ ]
15700
+ end # self.get_ext_command_GL_EXT_framebuffer_blit_layers
15701
+
15702
+
15675
15703
  def self.define_ext_command_GL_EXT_framebuffer_multisample
15676
15704
  OpenGL::GL_FUNCTIONS_ARGS_MAP[:glRenderbufferStorageMultisampleEXT] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
15677
15705
  OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glRenderbufferStorageMultisampleEXT] = Fiddle::TYPE_VOID
@@ -18448,6 +18476,15 @@ module OpenGLExt
18448
18476
  end # self.get_ext_command_GL_EXT_texture_sRGB_decode
18449
18477
 
18450
18478
 
18479
+ def self.define_ext_command_GL_EXT_texture_shadow_lod
18480
+ end # self.define_ext_command_GL_EXT_texture_shadow_lod
18481
+
18482
+ def self.get_ext_command_GL_EXT_texture_shadow_lod
18483
+ [
18484
+ ]
18485
+ end # self.get_ext_command_GL_EXT_texture_shadow_lod
18486
+
18487
+
18451
18488
  def self.define_ext_command_GL_EXT_texture_shared_exponent
18452
18489
  end # self.define_ext_command_GL_EXT_texture_shared_exponent
18453
18490
 
@@ -22933,60 +22970,6 @@ module OpenGLExt
22933
22970
  end
22934
22971
  SRC
22935
22972
 
22936
- OpenGL::GL_FUNCTIONS_ARGS_MAP[:glFogCoordhNV] = [-Fiddle::TYPE_SHORT]
22937
- OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glFogCoordhNV] = Fiddle::TYPE_VOID
22938
- OpenGL.module_eval(<<-SRC)
22939
- def glFogCoordhNV(_fog_)
22940
- f = OpenGL::get_command(:glFogCoordhNV)
22941
- f.call(_fog_)
22942
- end
22943
- SRC
22944
-
22945
- OpenGL::GL_FUNCTIONS_ARGS_MAP[:glFogCoordhvNV] = [Fiddle::TYPE_VOIDP]
22946
- OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glFogCoordhvNV] = Fiddle::TYPE_VOID
22947
- OpenGL.module_eval(<<-SRC)
22948
- def glFogCoordhvNV(_fog_)
22949
- f = OpenGL::get_command(:glFogCoordhvNV)
22950
- f.call(_fog_)
22951
- end
22952
- SRC
22953
-
22954
- OpenGL::GL_FUNCTIONS_ARGS_MAP[:glSecondaryColor3hNV] = [-Fiddle::TYPE_SHORT, -Fiddle::TYPE_SHORT, -Fiddle::TYPE_SHORT]
22955
- OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glSecondaryColor3hNV] = Fiddle::TYPE_VOID
22956
- OpenGL.module_eval(<<-SRC)
22957
- def glSecondaryColor3hNV(_red_, _green_, _blue_)
22958
- f = OpenGL::get_command(:glSecondaryColor3hNV)
22959
- f.call(_red_, _green_, _blue_)
22960
- end
22961
- SRC
22962
-
22963
- OpenGL::GL_FUNCTIONS_ARGS_MAP[:glSecondaryColor3hvNV] = [Fiddle::TYPE_VOIDP]
22964
- OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glSecondaryColor3hvNV] = Fiddle::TYPE_VOID
22965
- OpenGL.module_eval(<<-SRC)
22966
- def glSecondaryColor3hvNV(_v_)
22967
- f = OpenGL::get_command(:glSecondaryColor3hvNV)
22968
- f.call(_v_)
22969
- end
22970
- SRC
22971
-
22972
- OpenGL::GL_FUNCTIONS_ARGS_MAP[:glVertexWeighthNV] = [-Fiddle::TYPE_SHORT]
22973
- OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glVertexWeighthNV] = Fiddle::TYPE_VOID
22974
- OpenGL.module_eval(<<-SRC)
22975
- def glVertexWeighthNV(_weight_)
22976
- f = OpenGL::get_command(:glVertexWeighthNV)
22977
- f.call(_weight_)
22978
- end
22979
- SRC
22980
-
22981
- OpenGL::GL_FUNCTIONS_ARGS_MAP[:glVertexWeighthvNV] = [Fiddle::TYPE_VOIDP]
22982
- OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glVertexWeighthvNV] = Fiddle::TYPE_VOID
22983
- OpenGL.module_eval(<<-SRC)
22984
- def glVertexWeighthvNV(_weight_)
22985
- f = OpenGL::get_command(:glVertexWeighthvNV)
22986
- f.call(_weight_)
22987
- end
22988
- SRC
22989
-
22990
22973
  OpenGL::GL_FUNCTIONS_ARGS_MAP[:glVertexAttrib1hNV] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_SHORT]
22991
22974
  OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glVertexAttrib1hNV] = Fiddle::TYPE_VOID
22992
22975
  OpenGL.module_eval(<<-SRC)
@@ -23094,6 +23077,60 @@ module OpenGLExt
23094
23077
  f.call(_index_, _n_, _v_)
23095
23078
  end
23096
23079
  SRC
23080
+
23081
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glFogCoordhNV] = [-Fiddle::TYPE_SHORT]
23082
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glFogCoordhNV] = Fiddle::TYPE_VOID
23083
+ OpenGL.module_eval(<<-SRC)
23084
+ def glFogCoordhNV(_fog_)
23085
+ f = OpenGL::get_command(:glFogCoordhNV)
23086
+ f.call(_fog_)
23087
+ end
23088
+ SRC
23089
+
23090
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glFogCoordhvNV] = [Fiddle::TYPE_VOIDP]
23091
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glFogCoordhvNV] = Fiddle::TYPE_VOID
23092
+ OpenGL.module_eval(<<-SRC)
23093
+ def glFogCoordhvNV(_fog_)
23094
+ f = OpenGL::get_command(:glFogCoordhvNV)
23095
+ f.call(_fog_)
23096
+ end
23097
+ SRC
23098
+
23099
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glSecondaryColor3hNV] = [-Fiddle::TYPE_SHORT, -Fiddle::TYPE_SHORT, -Fiddle::TYPE_SHORT]
23100
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glSecondaryColor3hNV] = Fiddle::TYPE_VOID
23101
+ OpenGL.module_eval(<<-SRC)
23102
+ def glSecondaryColor3hNV(_red_, _green_, _blue_)
23103
+ f = OpenGL::get_command(:glSecondaryColor3hNV)
23104
+ f.call(_red_, _green_, _blue_)
23105
+ end
23106
+ SRC
23107
+
23108
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glSecondaryColor3hvNV] = [Fiddle::TYPE_VOIDP]
23109
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glSecondaryColor3hvNV] = Fiddle::TYPE_VOID
23110
+ OpenGL.module_eval(<<-SRC)
23111
+ def glSecondaryColor3hvNV(_v_)
23112
+ f = OpenGL::get_command(:glSecondaryColor3hvNV)
23113
+ f.call(_v_)
23114
+ end
23115
+ SRC
23116
+
23117
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glVertexWeighthNV] = [-Fiddle::TYPE_SHORT]
23118
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glVertexWeighthNV] = Fiddle::TYPE_VOID
23119
+ OpenGL.module_eval(<<-SRC)
23120
+ def glVertexWeighthNV(_weight_)
23121
+ f = OpenGL::get_command(:glVertexWeighthNV)
23122
+ f.call(_weight_)
23123
+ end
23124
+ SRC
23125
+
23126
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glVertexWeighthvNV] = [Fiddle::TYPE_VOIDP]
23127
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glVertexWeighthvNV] = Fiddle::TYPE_VOID
23128
+ OpenGL.module_eval(<<-SRC)
23129
+ def glVertexWeighthvNV(_weight_)
23130
+ f = OpenGL::get_command(:glVertexWeighthvNV)
23131
+ f.call(_weight_)
23132
+ end
23133
+ SRC
23097
23134
  end # self.define_ext_command_GL_NV_half_float
23098
23135
 
23099
23136
  def self.get_ext_command_GL_NV_half_float
@@ -23126,12 +23163,6 @@ module OpenGLExt
23126
23163
  'glMultiTexCoord3hvNV',
23127
23164
  'glMultiTexCoord4hNV',
23128
23165
  'glMultiTexCoord4hvNV',
23129
- 'glFogCoordhNV',
23130
- 'glFogCoordhvNV',
23131
- 'glSecondaryColor3hNV',
23132
- 'glSecondaryColor3hvNV',
23133
- 'glVertexWeighthNV',
23134
- 'glVertexWeighthvNV',
23135
23166
  'glVertexAttrib1hNV',
23136
23167
  'glVertexAttrib1hvNV',
23137
23168
  'glVertexAttrib2hNV',
@@ -23144,6 +23175,12 @@ module OpenGLExt
23144
23175
  'glVertexAttribs2hvNV',
23145
23176
  'glVertexAttribs3hvNV',
23146
23177
  'glVertexAttribs4hvNV',
23178
+ 'glFogCoordhNV',
23179
+ 'glFogCoordhvNV',
23180
+ 'glSecondaryColor3hNV',
23181
+ 'glSecondaryColor3hvNV',
23182
+ 'glVertexWeighthNV',
23183
+ 'glVertexWeighthvNV',
23147
23184
  ]
23148
23185
  end # self.get_ext_command_GL_NV_half_float
23149
23186
 
@@ -25783,6 +25820,15 @@ module OpenGLExt
25783
25820
  end # self.get_ext_command_GL_NV_transform_feedback2
25784
25821
 
25785
25822
 
25823
+ def self.define_ext_command_GL_NV_uniform_buffer_std430_layout
25824
+ end # self.define_ext_command_GL_NV_uniform_buffer_std430_layout
25825
+
25826
+ def self.get_ext_command_GL_NV_uniform_buffer_std430_layout
25827
+ [
25828
+ ]
25829
+ end # self.get_ext_command_GL_NV_uniform_buffer_std430_layout
25830
+
25831
+
25786
25832
  def self.define_ext_command_GL_NV_uniform_buffer_unified_memory
25787
25833
  end # self.define_ext_command_GL_NV_uniform_buffer_unified_memory
25788
25834
 
@@ -30775,13 +30821,4 @@ module OpenGLExt
30775
30821
  end # self.get_ext_command_GL_WIN_specular_fog
30776
30822
 
30777
30823
 
30778
- def self.define_ext_command_GL_EXT_texture_shadow_lod
30779
- end # self.define_ext_command_GL_EXT_texture_shadow_lod
30780
-
30781
- def self.get_ext_command_GL_EXT_texture_shadow_lod
30782
- [
30783
- ]
30784
- end # self.get_ext_command_GL_EXT_texture_shadow_lod
30785
-
30786
-
30787
30824
  end
@@ -6288,6 +6288,15 @@ module OpenGLExt
6288
6288
  end # self.get_ext_enum_GL_EXT_framebuffer_blit
6289
6289
 
6290
6290
 
6291
+ def self.define_ext_enum_GL_EXT_framebuffer_blit_layers
6292
+ end # self.define_ext_enum_GL_EXT_framebuffer_blit_layers
6293
+
6294
+ def self.get_ext_enum_GL_EXT_framebuffer_blit_layers
6295
+ [
6296
+ ]
6297
+ end # self.get_ext_enum_GL_EXT_framebuffer_blit_layers
6298
+
6299
+
6291
6300
  def self.define_ext_enum_GL_EXT_framebuffer_multisample
6292
6301
  OpenGL.const_set('GL_RENDERBUFFER_SAMPLES_EXT', 0x8CAB) unless defined?(OpenGL::GL_RENDERBUFFER_SAMPLES_EXT)
6293
6302
  OpenGL.const_set('GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT', 0x8D56) unless defined?(OpenGL::GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT)
@@ -8045,6 +8054,15 @@ module OpenGLExt
8045
8054
  end # self.get_ext_enum_GL_EXT_texture_sRGB_decode
8046
8055
 
8047
8056
 
8057
+ def self.define_ext_enum_GL_EXT_texture_shadow_lod
8058
+ end # self.define_ext_enum_GL_EXT_texture_shadow_lod
8059
+
8060
+ def self.get_ext_enum_GL_EXT_texture_shadow_lod
8061
+ [
8062
+ ]
8063
+ end # self.get_ext_enum_GL_EXT_texture_shadow_lod
8064
+
8065
+
8048
8066
  def self.define_ext_enum_GL_EXT_texture_shared_exponent
8049
8067
  OpenGL.const_set('GL_RGB9_E5_EXT', 0x8C3D) unless defined?(OpenGL::GL_RGB9_E5_EXT)
8050
8068
  OpenGL.const_set('GL_UNSIGNED_INT_5_9_9_9_REV_EXT', 0x8C3E) unless defined?(OpenGL::GL_UNSIGNED_INT_5_9_9_9_REV_EXT)
@@ -12250,6 +12268,15 @@ module OpenGLExt
12250
12268
  end # self.get_ext_enum_GL_NV_transform_feedback2
12251
12269
 
12252
12270
 
12271
+ def self.define_ext_enum_GL_NV_uniform_buffer_std430_layout
12272
+ end # self.define_ext_enum_GL_NV_uniform_buffer_std430_layout
12273
+
12274
+ def self.get_ext_enum_GL_NV_uniform_buffer_std430_layout
12275
+ [
12276
+ ]
12277
+ end # self.get_ext_enum_GL_NV_uniform_buffer_std430_layout
12278
+
12279
+
12253
12280
  def self.define_ext_enum_GL_NV_uniform_buffer_unified_memory
12254
12281
  OpenGL.const_set('GL_UNIFORM_BUFFER_UNIFIED_NV', 0x936E) unless defined?(OpenGL::GL_UNIFORM_BUFFER_UNIFIED_NV)
12255
12282
  OpenGL.const_set('GL_UNIFORM_BUFFER_ADDRESS_NV', 0x936F) unless defined?(OpenGL::GL_UNIFORM_BUFFER_ADDRESS_NV)
@@ -14134,13 +14161,4 @@ module OpenGLExt
14134
14161
  end # self.get_ext_enum_GL_WIN_specular_fog
14135
14162
 
14136
14163
 
14137
- def self.define_ext_enum_GL_EXT_texture_shadow_lod
14138
- end # self.define_ext_enum_GL_EXT_texture_shadow_lod
14139
-
14140
- def self.get_ext_enum_GL_EXT_texture_shadow_lod
14141
- [
14142
- ]
14143
- end # self.get_ext_enum_GL_EXT_texture_shadow_lod
14144
-
14145
-
14146
14164
  end
@@ -10,9 +10,9 @@ if [%CMAKE%] == [] (
10
10
  set CMAKE="%PROGRAMFILES%\CMake\bin\cmake.exe"
11
11
  )
12
12
 
13
- curl -O -L https://github.com/glfw/glfw/releases/download/3.3.8/glfw-3.3.8.zip
14
- %WINDIR%\System32\tar.exe -xf glfw-3.3.8.zip
15
- cd glfw-3.3.8/
13
+ curl -O -L https://github.com/glfw/glfw/releases/download/3.3.9/glfw-3.3.9.zip
14
+ %WINDIR%\System32\tar.exe -xf glfw-3.3.9.zip
15
+ cd glfw-3.3.9/
16
16
  mkdir build
17
17
  cd build
18
18
  %CMAKE% -G "MSYS Makefiles" -D CMAKE_BUILD_TYPE=Release -D GLFW_NATIVE_API=1 -D BUILD_SHARED_LIBS=ON -D CMAKE_C_COMPILER=gcc ../
data/sample/glfw_build.sh CHANGED
@@ -3,9 +3,9 @@
3
3
  #
4
4
  # Ref.: https://github.com/malkia/ufo/blob/master/build/OSX/glfw.sh
5
5
  #
6
- curl -O -L https://github.com/glfw/glfw/releases/download/3.3.8/glfw-3.3.8.zip
7
- tar xvjf glfw-3.3.8.zip
8
- cd glfw-3.3.8/
6
+ curl -O -L https://github.com/glfw/glfw/releases/download/3.3.9/glfw-3.3.9.zip
7
+ tar xvjf glfw-3.3.9.zip
8
+ cd glfw-3.3.9/
9
9
  mkdir build
10
10
  cd build
11
11
  export MACOSX_DEPLOYMENT_TARGET=10.14
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.6.13
4
+ version: 1.6.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-01 00:00:00.000000000 Z
11
+ date: 2024-01-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  [Please consider migrating to opengl-bindings2 (https://rubygems.org/gems/opengl-bindings2)]
@@ -68,9 +68,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  requirements: []
71
- rubygems_version: 3.4.1
71
+ rubygems_version: 3.5.3
72
72
  signing_key:
73
73
  specification_version: 4
74
- summary: "[Attention : Version 2 is now available] Bindings for OpenGL -4.6, ES -
75
- 3.2 and extensions (For MRI >= 2.0.0)"
74
+ summary: "[Attention : Version 2 is now available] Bindings for OpenGL/GLFW/GLUT/GLU"
76
75
  test_files: []