opengl-bindings 1.6.13 → 1.6.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +20 -0
- data/LICENSE.txt +1 -1
- data/README.md +95 -40
- data/lib/glfw.rb +73 -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 +209 -9
- data/lib/opengl_es_ext_enum.rb +100 -9
- data/lib/opengl_ext.rb +1 -1
- data/lib/opengl_ext_command.rb +116 -69
- data/lib/opengl_ext_enum.rb +27 -9
- data/sample/glfw_build.bat +12 -9
- data/sample/glfw_build.sh +3 -3
- metadata +20 -9
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
|
@@ -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
|
@@ -8011,11 +8183,21 @@ module OpenGLExt
|
|
8011
8183
|
f.call(_target_, _attachment_, _texture_, _level_, _baseViewIndex_, _numViews_)
|
8012
8184
|
end
|
8013
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
|
8014
8195
|
end # self.define_ext_command_GL_OVR_multiview
|
8015
8196
|
|
8016
8197
|
def self.get_ext_command_GL_OVR_multiview
|
8017
8198
|
[
|
8018
8199
|
'glFramebufferTextureMultiviewOVR',
|
8200
|
+
'glNamedFramebufferTextureMultiviewOVR',
|
8019
8201
|
]
|
8020
8202
|
end # self.get_ext_command_GL_OVR_multiview
|
8021
8203
|
|
@@ -8341,6 +8523,15 @@ module OpenGLExt
|
|
8341
8523
|
end # self.get_ext_command_GL_QCOM_render_shared_exponent
|
8342
8524
|
|
8343
8525
|
|
8526
|
+
def self.define_ext_command_GL_QCOM_render_sRGB_R8_RG8
|
8527
|
+
end # self.define_ext_command_GL_QCOM_render_sRGB_R8_RG8
|
8528
|
+
|
8529
|
+
def self.get_ext_command_GL_QCOM_render_sRGB_R8_RG8
|
8530
|
+
[
|
8531
|
+
]
|
8532
|
+
end # self.get_ext_command_GL_QCOM_render_sRGB_R8_RG8
|
8533
|
+
|
8534
|
+
|
8344
8535
|
def self.define_ext_command_GL_QCOM_texture_foveated
|
8345
8536
|
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
8537
|
OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glTextureFoveationParametersQCOM] = Fiddle::TYPE_VOID
|
@@ -8377,6 +8568,24 @@ module OpenGLExt
|
|
8377
8568
|
end # self.get_ext_command_GL_QCOM_texture_foveated_subsampled_layout
|
8378
8569
|
|
8379
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
|
+
|
8580
|
+
def self.define_ext_command_GL_QCOM_texture_lod_bias
|
8581
|
+
end # self.define_ext_command_GL_QCOM_texture_lod_bias
|
8582
|
+
|
8583
|
+
def self.get_ext_command_GL_QCOM_texture_lod_bias
|
8584
|
+
[
|
8585
|
+
]
|
8586
|
+
end # self.get_ext_command_GL_QCOM_texture_lod_bias
|
8587
|
+
|
8588
|
+
|
8380
8589
|
def self.define_ext_command_GL_QCOM_perfmon_global_mode
|
8381
8590
|
end # self.define_ext_command_GL_QCOM_perfmon_global_mode
|
8382
8591
|
|
@@ -8486,13 +8695,4 @@ module OpenGLExt
|
|
8486
8695
|
end # self.get_ext_command_GL_VIV_shader_binary
|
8487
8696
|
|
8488
8697
|
|
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
8698
|
end
|
data/lib/opengl_es_ext_enum.rb
CHANGED
@@ -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,30 @@ 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_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
|
+
|
6132
|
+
def self.define_ext_enum_GL_QCOM_texture_lod_bias
|
6133
|
+
OpenGL.const_set('GL_TEXTURE_LOD_BIAS_QCOM', 0x8C96) unless defined?(OpenGL::GL_TEXTURE_LOD_BIAS_QCOM)
|
6134
|
+
end # self.define_ext_enum_GL_QCOM_texture_lod_bias
|
6135
|
+
|
6136
|
+
def self.get_ext_enum_GL_QCOM_texture_lod_bias
|
6137
|
+
[
|
6138
|
+
'GL_TEXTURE_LOD_BIAS_QCOM',
|
6139
|
+
]
|
6140
|
+
end # self.get_ext_enum_GL_QCOM_texture_lod_bias
|
6141
|
+
|
6142
|
+
|
6043
6143
|
def self.define_ext_enum_GL_QCOM_perfmon_global_mode
|
6044
6144
|
OpenGL.const_set('GL_PERFMON_GLOBAL_MODE_QCOM', 0x8FA0) unless defined?(OpenGL::GL_PERFMON_GLOBAL_MODE_QCOM)
|
6045
6145
|
end # self.define_ext_enum_GL_QCOM_perfmon_global_mode
|
@@ -6200,13 +6300,4 @@ module OpenGLExt
|
|
6200
6300
|
end # self.get_ext_enum_GL_VIV_shader_binary
|
6201
6301
|
|
6202
6302
|
|
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
6303
|
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-
|
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
|