opengl-bindings 1.6.12 → 1.6.13

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: 7edfeb7f62477111c4f085e66d9b4d2d8ea6188d7d5424bdefcaf1371a0c8444
4
- data.tar.gz: 04e5fb1dd62be9c21065bd32e0fcbd065ec339a33f0e958df1d587364131ba08
3
+ metadata.gz: daf1003c825d60f64f56d01fae4089590cb9fc956bd4b427c6e550566b0414b7
4
+ data.tar.gz: d9cef5ccb4f0e3abc23cc1e459eb785e7e37e0b95e6fa5b11a3b0a05f8a2171a
5
5
  SHA512:
6
- metadata.gz: 1b2991c823a9b2bc83412a90e67c6405f5cbb5744c800db3a1b4a7a2dda151bc4e59cc9f907c99cd1e8720cd301e8daa5ac30685215fb69dba838636526d5f5c
7
- data.tar.gz: 0ce5335e4b64dd7608cffed8c84248513c164f43d15ecdfdcddaa8a2500002dbf72955bfda35d5558a584eb87d1043fe2374a0d407435554a382be0c5e1c0f31
6
+ metadata.gz: fcecc742e81d3cbb5ebf1eb5f33db6a6eb57282a7b4eb14ad6902c58de62b6ea3493580187b4699d575e1f1c9348b3b032607a46ba767c0b8b8932f331370ec4
7
+ data.tar.gz: caae78f5236cff6aaf8cf61462bde98aa1fdbed00b87f9f39d03084e0331c76a62c67e013a53abc1184e78c8b4294462882792e7edbdca5e6139e1418276273f
data/ChangeLog CHANGED
@@ -1,3 +1,35 @@
1
+ 2022-12-10 vaiorabbit <http://twitter.com/vaiorabbit>
2
+
3
+ * Updated gl.xml.
4
+
5
+ 2022-12-03 vaiorabbit <http://twitter.com/vaiorabbit>
6
+
7
+ * Updated gl.xml.
8
+
9
+ 2022-10-16 vaiorabbit <http://twitter.com/vaiorabbit>
10
+
11
+ * Updated gl.xml.
12
+
13
+ 2022-07-23 vaiorabbit <http://twitter.com/vaiorabbit>
14
+
15
+ * GLFW 3.3.7 -> 3.3.8
16
+
17
+ 2022-07-18 vaiorabbit <http://twitter.com/vaiorabbit>
18
+
19
+ * Updated using latest gl.xml.
20
+
21
+ 2022-05-30 vaiorabbit <http://twitter.com/vaiorabbit>
22
+
23
+ * Updated using latest gl.xml.
24
+
25
+ 2022-04-10 vaiorabbit <http://twitter.com/vaiorabbit>
26
+
27
+ * Updated GLFW-related scripts
28
+
29
+ 2022-03-27 vaiorabbit <http://twitter.com/vaiorabbit>
30
+
31
+ * Updated using latest gl.xml.
32
+
1
33
  2022-01-09 vaiorabbit <http://twitter.com/vaiorabbit>
2
34
 
3
35
  * README.md: Added section "Attention : Version 2 is now available"
data/LICENSE.txt CHANGED
@@ -1,5 +1,5 @@
1
1
  Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
2
- Copyright (c) 2013-2022 vaiorabbit <http://twitter.com/vaiorabbit>
2
+ Copyright (c) 2013-2023 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-01-09
8
+ * Last modified : 2022-07-18
9
9
 
10
10
  ---
11
11
 
@@ -15,7 +15,7 @@ Though I will continue making this [version 1.6 series of opengl-bindings](https
15
15
 
16
16
  ### Redesigned API
17
17
 
18
- In verion 2, all OpenGL APIs are defined as public methods under `module GL`, so we don't have to `include OpenGL` and scatter OpenGL APIs under other modules any more:
18
+ In version 2, all OpenGL APIs are defined as public methods under `module GL`, so we don't have to `include OpenGL` and scatter OpenGL APIs under other modules any more:
19
19
 
20
20
  ```ruby
21
21
  # opengl-bindings
@@ -34,7 +34,7 @@ GL.Enable(GL::DEPTH_TEST)
34
34
 
35
35
  ### Improved efficiency
36
36
 
37
- All redundant `nil` checks done on every API calls are removed in verion 2:
37
+ All redundant `nil` checks done on every API calls are removed in version 2:
38
38
 
39
39
  ```ruby
40
40
  # opengl-bindings1
@@ -167,6 +167,48 @@ 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]
171
+
172
+ * Windows 10 Home, 64-bit (Version 1909, OS Build 18363.778)
173
+ * NVIDIA GeForce RTX 2060 SUPER
174
+ * OpenGL 4.5
175
+
176
+ > ruby report_env.rb
177
+ Version : 4.5.0 NVIDIA 436.30
178
+ Vendor : NVIDIA Corporation
179
+ Renderer : GeForce RTX 2060 SUPER/PCIe/SSE2
180
+ Shader : 4.50 NVIDIA
181
+
182
+ * macOS 12.5.1, 64-bit
183
+ * Mac mini (M1 2020)
184
+ * OpenGL 4.1
185
+
186
+ $ ruby report_env.rb
187
+ Version : 4.1 Metal - 76.3
188
+ Vendor : Apple
189
+ Renderer : Apple M1
190
+ Shader : 4.10
191
+
192
+ * Arch Linux kernel 4.1.2-2-ARCH, Nvidia Driver, x86_64
193
+ * NVIDIA GeForce GTS 450
194
+ * OpenGL 4.5.0
195
+
196
+ $ ruby report_env.rb
197
+ Version: 4.5.0 NVIDIA 352.21
198
+
199
+ * Arch Linux kernel 4.1.4-1-ARCH, Nouveau Driver, x86_64
200
+ * NVIDIA GeForce GTS 450
201
+ * OpenGL 3.0
202
+
203
+ $ ruby report_env.rb
204
+ Version: 3.0 Mesa 10.6.3
205
+
206
+ <details>
207
+ <summary>Older versions</summary>
208
+
209
+ * Ruby
210
+ * ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [arm64-darwin20]
211
+ * ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]
170
212
  * ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20]
171
213
  * ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [arm64-darwin20]
172
214
  * ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x64-mingw32]
@@ -195,16 +237,6 @@ Use GLFW or GLUT for creating windows and OpenGL rendering contexts.
195
237
  * ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin13.0.0]
196
238
  * ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
197
239
 
198
- * Windows 10 Home, 64-bit (Version 1909, OS Build 18363.778)
199
- * NVIDIA GeForce RTX 2060 SUPER
200
- * OpenGL 4.5
201
-
202
- > ruby report_env.rb
203
- Version : 4.5.0 NVIDIA 436.30
204
- Vendor : NVIDIA Corporation
205
- Renderer : GeForce RTX 2060 SUPER/PCIe/SSE2
206
- Shader : 4.50 NVIDIA
207
-
208
240
  * Windows 10 Home, 64-bit (Version 1511, OS Build 10586.164)
209
241
  * NVIDIA GeForce GTX 960
210
242
  * OpenGL 4.5
@@ -250,19 +282,7 @@ Use GLFW or GLUT for creating windows and OpenGL rendering contexts.
250
282
  Renderer : Intel Iris OpenGL Engine
251
283
  Shader : 4.10
252
284
 
253
- * Arch Linux kernel 4.1.2-2-ARCH, Nvidia Driver, x86_64
254
- * NVIDIA GeForce GTS 450
255
- * OpenGL 4.5.0
256
-
257
- $ ruby report_env.rb
258
- Version: 4.5.0 NVIDIA 352.21
259
-
260
- * Arch Linux kernel 4.1.4-1-ARCH, Nouveau Driver, x86_64
261
- * NVIDIA GeForce GTS 450
262
- * OpenGL 3.0
263
-
264
- $ ruby report_env.rb
265
- Version: 3.0 Mesa 10.6.3
285
+ </details>
266
286
 
267
287
  * You can use any lib/path names by passing as arguments like:
268
288
  * OpenGL.load_lib( 'libGL.so', '/usr/lib' )
@@ -320,7 +340,7 @@ Use GLFW or GLUT for creating windows and OpenGL rendering contexts.
320
340
 
321
341
  The zlib/libpng License ( http://opensource.org/licenses/Zlib ).
322
342
 
323
- Copyright (c) 2013-2020 vaiorabbit <http://twitter.com/vaiorabbit>
343
+ Copyright (c) 2013-2023 vaiorabbit <http://twitter.com/vaiorabbit>
324
344
 
325
345
  This software is provided 'as-is', without any express or implied
326
346
  warranty. In no event will the authors be held liable for any damages
data/lib/glfw.rb CHANGED
@@ -497,7 +497,7 @@ module GLFW
497
497
  when :OPENGL_PLATFORM_MACOSX
498
498
  lib, path = 'libglfw.dylib', Dir.pwd
499
499
  else
500
- lib = 'libglfw.so'
500
+ lib = 'libglfw.so.3'
501
501
  end
502
502
  end
503
503
 
@@ -687,7 +687,7 @@ end
687
687
 
688
688
  =begin
689
689
  Ruby-OpenGL : Yet another OpenGL wrapper for Ruby (and wrapper code generator)
690
- Copyright (c) 2013-2022 vaiorabbit <http://twitter.com/vaiorabbit>
690
+ Copyright (c) 2013-2023 vaiorabbit <http://twitter.com/vaiorabbit>
691
691
 
692
692
  This software is provided 'as-is', without any express or implied
693
693
  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-2022 vaiorabbit <http://twitter.com/vaiorabbit>
346
+ Copyright (c) 2013-2023 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-2022 vaiorabbit <http://twitter.com/vaiorabbit>
556
+ Copyright (c) 2013-2023 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-2022 vaiorabbit <http://twitter.com/vaiorabbit>
23
+ Copyright (c) 2013-2023 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-2022 vaiorabbit <http://twitter.com/vaiorabbit>
11
+ Copyright (c) 2013-2023 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-2022 vaiorabbit <http://twitter.com/vaiorabbit>
8
+ Copyright (c) 2013-2023 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
@@ -1331,6 +1331,54 @@ module OpenGLExt
1331
1331
  end # self.get_ext_command_GL_EXT_float_blend
1332
1332
 
1333
1333
 
1334
+ def self.define_ext_command_GL_EXT_fragment_shading_rate
1335
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glGetFragmentShadingRatesEXT] = [Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP]
1336
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glGetFragmentShadingRatesEXT] = Fiddle::TYPE_VOID
1337
+ OpenGL.module_eval(<<-SRC)
1338
+ def glGetFragmentShadingRatesEXT(_samples_, _maxCount_, _count_, _shadingRates_)
1339
+ f = OpenGL::get_command(:glGetFragmentShadingRatesEXT)
1340
+ f.call(_samples_, _maxCount_, _count_, _shadingRates_)
1341
+ end
1342
+ SRC
1343
+
1344
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glShadingRateEXT] = [-Fiddle::TYPE_INT]
1345
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glShadingRateEXT] = Fiddle::TYPE_VOID
1346
+ OpenGL.module_eval(<<-SRC)
1347
+ def glShadingRateEXT(_rate_)
1348
+ f = OpenGL::get_command(:glShadingRateEXT)
1349
+ f.call(_rate_)
1350
+ end
1351
+ SRC
1352
+
1353
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glShadingRateCombinerOpsEXT] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
1354
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glShadingRateCombinerOpsEXT] = Fiddle::TYPE_VOID
1355
+ OpenGL.module_eval(<<-SRC)
1356
+ def glShadingRateCombinerOpsEXT(_combinerOp0_, _combinerOp1_)
1357
+ f = OpenGL::get_command(:glShadingRateCombinerOpsEXT)
1358
+ f.call(_combinerOp0_, _combinerOp1_)
1359
+ end
1360
+ SRC
1361
+
1362
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glFramebufferShadingRateEXT] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT]
1363
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glFramebufferShadingRateEXT] = Fiddle::TYPE_VOID
1364
+ OpenGL.module_eval(<<-SRC)
1365
+ def glFramebufferShadingRateEXT(_target_, _attachment_, _texture_, _baseLayer_, _numLayers_, _texelWidth_, _texelHeight_)
1366
+ f = OpenGL::get_command(:glFramebufferShadingRateEXT)
1367
+ f.call(_target_, _attachment_, _texture_, _baseLayer_, _numLayers_, _texelWidth_, _texelHeight_)
1368
+ end
1369
+ SRC
1370
+ end # self.define_ext_command_GL_EXT_fragment_shading_rate
1371
+
1372
+ def self.get_ext_command_GL_EXT_fragment_shading_rate
1373
+ [
1374
+ 'glGetFragmentShadingRatesEXT',
1375
+ 'glShadingRateEXT',
1376
+ 'glShadingRateCombinerOpsEXT',
1377
+ 'glFramebufferShadingRateEXT',
1378
+ ]
1379
+ end # self.get_ext_command_GL_EXT_fragment_shading_rate
1380
+
1381
+
1334
1382
  def self.define_ext_command_GL_EXT_geometry_point_size
1335
1383
  end # self.define_ext_command_GL_EXT_geometry_point_size
1336
1384
 
@@ -2231,6 +2279,15 @@ module OpenGLExt
2231
2279
  end # self.get_ext_command_GL_EXT_sRGB_write_control
2232
2280
 
2233
2281
 
2282
+ def self.define_ext_command_GL_EXT_separate_depth_stencil
2283
+ end # self.define_ext_command_GL_EXT_separate_depth_stencil
2284
+
2285
+ def self.get_ext_command_GL_EXT_separate_depth_stencil
2286
+ [
2287
+ ]
2288
+ end # self.get_ext_command_GL_EXT_separate_depth_stencil
2289
+
2290
+
2234
2291
  def self.define_ext_command_GL_EXT_separate_shader_objects
2235
2292
  OpenGL::GL_FUNCTIONS_ARGS_MAP[:glUseShaderProgramEXT] = [-Fiddle::TYPE_INT, -Fiddle::TYPE_INT]
2236
2293
  OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glUseShaderProgramEXT] = Fiddle::TYPE_VOID
@@ -2828,6 +2885,15 @@ module OpenGLExt
2828
2885
  end # self.get_ext_command_GL_EXT_shader_pixel_local_storage2
2829
2886
 
2830
2887
 
2888
+ def self.define_ext_command_GL_EXT_shader_samples_identical
2889
+ end # self.define_ext_command_GL_EXT_shader_samples_identical
2890
+
2891
+ def self.get_ext_command_GL_EXT_shader_samples_identical
2892
+ [
2893
+ ]
2894
+ end # self.get_ext_command_GL_EXT_shader_samples_identical
2895
+
2896
+
2831
2897
  def self.define_ext_command_GL_EXT_shader_texture_lod
2832
2898
  end # self.define_ext_command_GL_EXT_shader_texture_lod
2833
2899
 
@@ -3247,20 +3313,20 @@ module OpenGLExt
3247
3313
 
3248
3314
 
3249
3315
  def self.define_ext_command_GL_EXT_texture_storage_compression
3250
- OpenGL::GL_FUNCTIONS_ARGS_MAP[:TexStorageAttribs2DEXT] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
3251
- OpenGL::GL_FUNCTIONS_RETVAL_MAP[:TexStorageAttribs2DEXT] = Fiddle::TYPE_VOID
3316
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glTexStorageAttribs2DEXT] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
3317
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glTexStorageAttribs2DEXT] = Fiddle::TYPE_VOID
3252
3318
  OpenGL.module_eval(<<-SRC)
3253
- def TexStorageAttribs2DEXT(_target_, _levels_, _internalformat_, _width_, _height_, _attrib_list_)
3254
- f = OpenGL::get_command(:TexStorageAttribs2DEXT)
3319
+ def glTexStorageAttribs2DEXT(_target_, _levels_, _internalformat_, _width_, _height_, _attrib_list_)
3320
+ f = OpenGL::get_command(:glTexStorageAttribs2DEXT)
3255
3321
  f.call(_target_, _levels_, _internalformat_, _width_, _height_, _attrib_list_)
3256
3322
  end
3257
3323
  SRC
3258
3324
 
3259
- OpenGL::GL_FUNCTIONS_ARGS_MAP[:TexStorageAttribs3DEXT] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
3260
- OpenGL::GL_FUNCTIONS_RETVAL_MAP[:TexStorageAttribs3DEXT] = Fiddle::TYPE_VOID
3325
+ OpenGL::GL_FUNCTIONS_ARGS_MAP[:glTexStorageAttribs3DEXT] = [-Fiddle::TYPE_INT, Fiddle::TYPE_INT, -Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_INT, Fiddle::TYPE_VOIDP]
3326
+ OpenGL::GL_FUNCTIONS_RETVAL_MAP[:glTexStorageAttribs3DEXT] = Fiddle::TYPE_VOID
3261
3327
  OpenGL.module_eval(<<-SRC)
3262
- def TexStorageAttribs3DEXT(_target_, _levels_, _internalformat_, _width_, _height_, _depth_, _attrib_list_)
3263
- f = OpenGL::get_command(:TexStorageAttribs3DEXT)
3328
+ def glTexStorageAttribs3DEXT(_target_, _levels_, _internalformat_, _width_, _height_, _depth_, _attrib_list_)
3329
+ f = OpenGL::get_command(:glTexStorageAttribs3DEXT)
3264
3330
  f.call(_target_, _levels_, _internalformat_, _width_, _height_, _depth_, _attrib_list_)
3265
3331
  end
3266
3332
  SRC
@@ -3268,8 +3334,8 @@ module OpenGLExt
3268
3334
 
3269
3335
  def self.get_ext_command_GL_EXT_texture_storage_compression
3270
3336
  [
3271
- 'TexStorageAttribs2DEXT',
3272
- 'TexStorageAttribs3DEXT',
3337
+ 'glTexStorageAttribs2DEXT',
3338
+ 'glTexStorageAttribs3DEXT',
3273
3339
  ]
3274
3340
  end # self.get_ext_command_GL_EXT_texture_storage_compression
3275
3341
 
@@ -996,6 +996,67 @@ module OpenGLExt
996
996
  end # self.get_ext_enum_GL_EXT_float_blend
997
997
 
998
998
 
999
+ def self.define_ext_enum_GL_EXT_fragment_shading_rate
1000
+ OpenGL.const_set('GL_SHADING_RATE_1X1_PIXELS_EXT', 0x96A6) unless defined?(OpenGL::GL_SHADING_RATE_1X1_PIXELS_EXT)
1001
+ OpenGL.const_set('GL_SHADING_RATE_1X2_PIXELS_EXT', 0x96A7) unless defined?(OpenGL::GL_SHADING_RATE_1X2_PIXELS_EXT)
1002
+ OpenGL.const_set('GL_SHADING_RATE_2X1_PIXELS_EXT', 0x96A8) unless defined?(OpenGL::GL_SHADING_RATE_2X1_PIXELS_EXT)
1003
+ OpenGL.const_set('GL_SHADING_RATE_2X2_PIXELS_EXT', 0x96A9) unless defined?(OpenGL::GL_SHADING_RATE_2X2_PIXELS_EXT)
1004
+ OpenGL.const_set('GL_SHADING_RATE_1X4_PIXELS_EXT', 0x96AA) unless defined?(OpenGL::GL_SHADING_RATE_1X4_PIXELS_EXT)
1005
+ OpenGL.const_set('GL_SHADING_RATE_4X1_PIXELS_EXT', 0x96AB) unless defined?(OpenGL::GL_SHADING_RATE_4X1_PIXELS_EXT)
1006
+ OpenGL.const_set('GL_SHADING_RATE_4X2_PIXELS_EXT', 0x96AC) unless defined?(OpenGL::GL_SHADING_RATE_4X2_PIXELS_EXT)
1007
+ OpenGL.const_set('GL_SHADING_RATE_2X4_PIXELS_EXT', 0x96AD) unless defined?(OpenGL::GL_SHADING_RATE_2X4_PIXELS_EXT)
1008
+ OpenGL.const_set('GL_SHADING_RATE_4X4_PIXELS_EXT', 0x96AE) unless defined?(OpenGL::GL_SHADING_RATE_4X4_PIXELS_EXT)
1009
+ OpenGL.const_set('GL_SHADING_RATE_EXT', 0x96D0) unless defined?(OpenGL::GL_SHADING_RATE_EXT)
1010
+ OpenGL.const_set('GL_SHADING_RATE_ATTACHMENT_EXT', 0x96D1) unless defined?(OpenGL::GL_SHADING_RATE_ATTACHMENT_EXT)
1011
+ OpenGL.const_set('GL_FRAGMENT_SHADING_RATE_COMBINER_OP_KEEP_EXT', 0x96D2) unless defined?(OpenGL::GL_FRAGMENT_SHADING_RATE_COMBINER_OP_KEEP_EXT)
1012
+ OpenGL.const_set('GL_FRAGMENT_SHADING_RATE_COMBINER_OP_REPLACE_EXT', 0x96D3) unless defined?(OpenGL::GL_FRAGMENT_SHADING_RATE_COMBINER_OP_REPLACE_EXT)
1013
+ OpenGL.const_set('GL_FRAGMENT_SHADING_RATE_COMBINER_OP_MIN_EXT', 0x96D4) unless defined?(OpenGL::GL_FRAGMENT_SHADING_RATE_COMBINER_OP_MIN_EXT)
1014
+ OpenGL.const_set('GL_FRAGMENT_SHADING_RATE_COMBINER_OP_MAX_EXT', 0x96D5) unless defined?(OpenGL::GL_FRAGMENT_SHADING_RATE_COMBINER_OP_MAX_EXT)
1015
+ OpenGL.const_set('GL_FRAGMENT_SHADING_RATE_COMBINER_OP_MUL_EXT', 0x96D6) unless defined?(OpenGL::GL_FRAGMENT_SHADING_RATE_COMBINER_OP_MUL_EXT)
1016
+ OpenGL.const_set('GL_MIN_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_WIDTH_EXT', 0x96D7) unless defined?(OpenGL::GL_MIN_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_WIDTH_EXT)
1017
+ OpenGL.const_set('GL_MAX_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_WIDTH_EXT', 0x96D8) unless defined?(OpenGL::GL_MAX_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_WIDTH_EXT)
1018
+ OpenGL.const_set('GL_MIN_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_HEIGHT_EXT', 0x96D9) unless defined?(OpenGL::GL_MIN_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_HEIGHT_EXT)
1019
+ OpenGL.const_set('GL_MAX_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_HEIGHT_EXT', 0x96DA) unless defined?(OpenGL::GL_MAX_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_HEIGHT_EXT)
1020
+ OpenGL.const_set('GL_MAX_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_ASPECT_RATIO_EXT', 0x96DB) unless defined?(OpenGL::GL_MAX_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_ASPECT_RATIO_EXT)
1021
+ OpenGL.const_set('GL_MAX_FRAGMENT_SHADING_RATE_ATTACHMENT_LAYERS_EXT', 0x96DC) unless defined?(OpenGL::GL_MAX_FRAGMENT_SHADING_RATE_ATTACHMENT_LAYERS_EXT)
1022
+ OpenGL.const_set('GL_FRAGMENT_SHADING_RATE_WITH_SHADER_DEPTH_STENCIL_WRITES_SUPPORTED_EXT', 0x96DD) unless defined?(OpenGL::GL_FRAGMENT_SHADING_RATE_WITH_SHADER_DEPTH_STENCIL_WRITES_SUPPORTED_EXT)
1023
+ OpenGL.const_set('GL_FRAGMENT_SHADING_RATE_WITH_SAMPLE_MASK_SUPPORTED_EXT', 0x96DE) unless defined?(OpenGL::GL_FRAGMENT_SHADING_RATE_WITH_SAMPLE_MASK_SUPPORTED_EXT)
1024
+ OpenGL.const_set('GL_FRAGMENT_SHADING_RATE_ATTACHMENT_WITH_DEFAULT_FRAMEBUFFER_SUPPORTED_EXT', 0x96DF) unless defined?(OpenGL::GL_FRAGMENT_SHADING_RATE_ATTACHMENT_WITH_DEFAULT_FRAMEBUFFER_SUPPORTED_EXT)
1025
+ OpenGL.const_set('GL_FRAGMENT_SHADING_RATE_NON_TRIVIAL_COMBINERS_SUPPORTED_EXT', 0x8F6F) unless defined?(OpenGL::GL_FRAGMENT_SHADING_RATE_NON_TRIVIAL_COMBINERS_SUPPORTED_EXT)
1026
+ end # self.define_ext_enum_GL_EXT_fragment_shading_rate
1027
+
1028
+ def self.get_ext_enum_GL_EXT_fragment_shading_rate
1029
+ [
1030
+ 'GL_SHADING_RATE_1X1_PIXELS_EXT',
1031
+ 'GL_SHADING_RATE_1X2_PIXELS_EXT',
1032
+ 'GL_SHADING_RATE_2X1_PIXELS_EXT',
1033
+ 'GL_SHADING_RATE_2X2_PIXELS_EXT',
1034
+ 'GL_SHADING_RATE_1X4_PIXELS_EXT',
1035
+ 'GL_SHADING_RATE_4X1_PIXELS_EXT',
1036
+ 'GL_SHADING_RATE_4X2_PIXELS_EXT',
1037
+ 'GL_SHADING_RATE_2X4_PIXELS_EXT',
1038
+ 'GL_SHADING_RATE_4X4_PIXELS_EXT',
1039
+ 'GL_SHADING_RATE_EXT',
1040
+ 'GL_SHADING_RATE_ATTACHMENT_EXT',
1041
+ 'GL_FRAGMENT_SHADING_RATE_COMBINER_OP_KEEP_EXT',
1042
+ 'GL_FRAGMENT_SHADING_RATE_COMBINER_OP_REPLACE_EXT',
1043
+ 'GL_FRAGMENT_SHADING_RATE_COMBINER_OP_MIN_EXT',
1044
+ 'GL_FRAGMENT_SHADING_RATE_COMBINER_OP_MAX_EXT',
1045
+ 'GL_FRAGMENT_SHADING_RATE_COMBINER_OP_MUL_EXT',
1046
+ 'GL_MIN_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_WIDTH_EXT',
1047
+ 'GL_MAX_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_WIDTH_EXT',
1048
+ 'GL_MIN_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_HEIGHT_EXT',
1049
+ 'GL_MAX_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_HEIGHT_EXT',
1050
+ 'GL_MAX_FRAGMENT_SHADING_RATE_ATTACHMENT_TEXEL_ASPECT_RATIO_EXT',
1051
+ 'GL_MAX_FRAGMENT_SHADING_RATE_ATTACHMENT_LAYERS_EXT',
1052
+ 'GL_FRAGMENT_SHADING_RATE_WITH_SHADER_DEPTH_STENCIL_WRITES_SUPPORTED_EXT',
1053
+ 'GL_FRAGMENT_SHADING_RATE_WITH_SAMPLE_MASK_SUPPORTED_EXT',
1054
+ 'GL_FRAGMENT_SHADING_RATE_ATTACHMENT_WITH_DEFAULT_FRAMEBUFFER_SUPPORTED_EXT',
1055
+ 'GL_FRAGMENT_SHADING_RATE_NON_TRIVIAL_COMBINERS_SUPPORTED_EXT',
1056
+ ]
1057
+ end # self.get_ext_enum_GL_EXT_fragment_shading_rate
1058
+
1059
+
999
1060
  def self.define_ext_enum_GL_EXT_geometry_point_size
1000
1061
  end # self.define_ext_enum_GL_EXT_geometry_point_size
1001
1062
 
@@ -1560,6 +1621,15 @@ module OpenGLExt
1560
1621
  end # self.get_ext_enum_GL_EXT_sRGB_write_control
1561
1622
 
1562
1623
 
1624
+ def self.define_ext_enum_GL_EXT_separate_depth_stencil
1625
+ end # self.define_ext_enum_GL_EXT_separate_depth_stencil
1626
+
1627
+ def self.get_ext_enum_GL_EXT_separate_depth_stencil
1628
+ [
1629
+ ]
1630
+ end # self.get_ext_enum_GL_EXT_separate_depth_stencil
1631
+
1632
+
1563
1633
  def self.define_ext_enum_GL_EXT_separate_shader_objects
1564
1634
  OpenGL.const_set('GL_ACTIVE_PROGRAM_EXT', 0x8B8D) unless defined?(OpenGL::GL_ACTIVE_PROGRAM_EXT)
1565
1635
  OpenGL.const_set('GL_VERTEX_SHADER_BIT_EXT', 0x00000001) unless defined?(OpenGL::GL_VERTEX_SHADER_BIT_EXT)
@@ -1678,6 +1748,15 @@ module OpenGLExt
1678
1748
  end # self.get_ext_enum_GL_EXT_shader_pixel_local_storage2
1679
1749
 
1680
1750
 
1751
+ def self.define_ext_enum_GL_EXT_shader_samples_identical
1752
+ end # self.define_ext_enum_GL_EXT_shader_samples_identical
1753
+
1754
+ def self.get_ext_enum_GL_EXT_shader_samples_identical
1755
+ [
1756
+ ]
1757
+ end # self.get_ext_enum_GL_EXT_shader_samples_identical
1758
+
1759
+
1681
1760
  def self.define_ext_enum_GL_EXT_shader_texture_lod
1682
1761
  end # self.define_ext_enum_GL_EXT_shader_texture_lod
1683
1762
 
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-2022 vaiorabbit <http://twitter.com/vaiorabbit>
14
+ Copyright (c) 2013-2023 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
@@ -17977,6 +17977,15 @@ module OpenGLExt
17977
17977
  end # self.get_ext_command_GL_EXT_shader_integer_mix
17978
17978
 
17979
17979
 
17980
+ def self.define_ext_command_GL_EXT_shader_samples_identical
17981
+ end # self.define_ext_command_GL_EXT_shader_samples_identical
17982
+
17983
+ def self.get_ext_command_GL_EXT_shader_samples_identical
17984
+ [
17985
+ ]
17986
+ end # self.get_ext_command_GL_EXT_shader_samples_identical
17987
+
17988
+
17980
17989
  def self.define_ext_command_GL_EXT_shadow_funcs
17981
17990
  end # self.define_ext_command_GL_EXT_shadow_funcs
17982
17991
 
@@ -7365,6 +7365,15 @@ module OpenGLExt
7365
7365
  end # self.get_ext_enum_GL_EXT_shader_integer_mix
7366
7366
 
7367
7367
 
7368
+ def self.define_ext_enum_GL_EXT_shader_samples_identical
7369
+ end # self.define_ext_enum_GL_EXT_shader_samples_identical
7370
+
7371
+ def self.get_ext_enum_GL_EXT_shader_samples_identical
7372
+ [
7373
+ ]
7374
+ end # self.get_ext_enum_GL_EXT_shader_samples_identical
7375
+
7376
+
7368
7377
  def self.define_ext_enum_GL_EXT_shadow_funcs
7369
7378
  end # self.define_ext_enum_GL_EXT_shadow_funcs
7370
7379
 
@@ -10,8 +10,9 @@ if [%CMAKE%] == [] (
10
10
  set CMAKE="%PROGRAMFILES%\CMake\bin\cmake.exe"
11
11
  )
12
12
 
13
- git clone --depth=1 https://github.com/glfw/glfw.git glfw_master
14
- cd glfw_master/
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/
15
16
  mkdir build
16
17
  cd build
17
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
@@ -1,13 +1,14 @@
1
1
  #
2
- # For Mac OS X + Xcode + CMake users.
2
+ # For macOS + Xcode + CMake users.
3
3
  #
4
4
  # Ref.: https://github.com/malkia/ufo/blob/master/build/OSX/glfw.sh
5
5
  #
6
- git clone --depth=1 https://github.com/glfw/glfw.git glfw_master
7
- cd glfw_master/
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/
8
9
  mkdir build
9
10
  cd build
10
11
  export MACOSX_DEPLOYMENT_TARGET=10.14
11
- cmake -D CMAKE_BUILD_TYPE=Release -D GLFW_NATIVE_API=1 -D CMAKE_OSX_ARCHITECTURES="x86_64;arm64" -D BUILD_SHARED_LIBS=ON -D CMAKE_C_COMPILER=clang ../
12
+ cmake -D CMAKE_BUILD_TYPE=Release -D GLFW_NATIVE_API=1 -D CMAKE_OSX_ARCHITECTURES="arm64;x86_64" -D BUILD_SHARED_LIBS=ON -D CMAKE_C_COMPILER=clang ../
12
13
  make
13
14
  cp -R src/libglfw* ../..
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.12
4
+ version: 1.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaiorabbit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-09 00:00:00.000000000 Z
11
+ date: 2023-01-01 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,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  requirements: []
71
- rubygems_version: 3.3.3
71
+ rubygems_version: 3.4.1
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: "[Attention : Version 2 is now available] Bindings for OpenGL -4.6, ES -