opengl-bindings 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +4 -0
- data/LICENSE.txt +0 -0
- data/README.md +2 -2
- data/lib/glfw.rb +0 -0
- data/lib/glu.rb +0 -0
- data/lib/glut.rb +0 -0
- data/lib/opengl.rb +0 -0
- data/lib/opengl_common.rb +0 -0
- data/lib/opengl_ext.rb +16 -2
- data/lib/opengl_platform.rb +0 -0
- data/lib/opengl_windows.rb +0 -0
- data/sample/README.md +0 -0
- data/sample/glfw_build_dylib.sh +0 -0
- data/sample/report_env.rb +0 -0
- data/sample/simple.rb +0 -0
- metadata +13 -10
- checksums.yaml +0 -7
data/ChangeLog
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
2013-10-06 vaiorabbit <https://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* opengl_ext.rb (OpenGL.check_extension): Now compatible with OpenGL 3.0 and later (glGetString(GL_EXTENSIONS) was deprecated).
|
4
|
+
|
1
5
|
2013-10-05 vaiorabbit <https://twitter.com/vaiorabbit>
|
2
6
|
|
3
7
|
* opengl_command.rb, opengl_ext_command.rb, opengl_ext_enum.rb: Updated using latest gl.xml.
|
data/LICENSE.txt
CHANGED
File without changes
|
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 : 2013-10-
|
8
|
+
* Last modified : 2013-10-06
|
9
9
|
|
10
10
|
|
11
11
|
## Features ##
|
@@ -141,7 +141,7 @@ https://github.com/vaiorabbit/ruby-opengl
|
|
141
141
|
* OpenGL (opengl3) by davll ( https://github.com/davll/ruby-opengl )
|
142
142
|
* Built on Ruby-FFI, which is useful for JRuby users.
|
143
143
|
* opengl-core by nilium ( https://github.com/nilium/ruby-opengl )
|
144
|
-
*
|
144
|
+
* Built on Fiddle.
|
145
145
|
* Provides more customize points and handy utilities.
|
146
146
|
|
147
147
|
|
data/lib/glfw.rb
CHANGED
File without changes
|
data/lib/glu.rb
CHANGED
File without changes
|
data/lib/glut.rb
CHANGED
File without changes
|
data/lib/opengl.rb
CHANGED
File without changes
|
data/lib/opengl_common.rb
CHANGED
File without changes
|
data/lib/opengl_ext.rb
CHANGED
@@ -4,8 +4,22 @@ require_relative 'opengl_ext_command'
|
|
4
4
|
|
5
5
|
module OpenGL
|
6
6
|
def self.check_extension( ext_name )
|
7
|
-
|
8
|
-
|
7
|
+
version_number = glGetString(GL_VERSION).to_s.split(/\./)
|
8
|
+
if version_number[0].to_i >= 3
|
9
|
+
# glGetString(GL_EXTENSIONS) was deprecated in OpenGL 3.0
|
10
|
+
# Ref.: http://sourceforge.net/p/glew/bugs/120/
|
11
|
+
extensions_count_buf = ' '
|
12
|
+
glGetIntegerv( GL_NUM_EXTENSIONS, extensions_count_buf )
|
13
|
+
extensions_count = extensions_count_buf.unpack('L')[0]
|
14
|
+
extensions_count.times do |i|
|
15
|
+
supported_ext_name = glGetStringi( GL_EXTENSIONS, i ).to_s
|
16
|
+
return true if ext_name == supported_ext_name
|
17
|
+
end
|
18
|
+
return false
|
19
|
+
else
|
20
|
+
ext_strings = glGetString(GL_EXTENSIONS).to_s.split(/ /)
|
21
|
+
return ext_strings.include? ext_name
|
22
|
+
end
|
9
23
|
end
|
10
24
|
|
11
25
|
def self.setup_extension( ext_name )
|
data/lib/opengl_platform.rb
CHANGED
File without changes
|
data/lib/opengl_windows.rb
CHANGED
File without changes
|
data/sample/README.md
CHANGED
File without changes
|
data/sample/glfw_build_dylib.sh
CHANGED
File without changes
|
data/sample/report_env.rb
CHANGED
File without changes
|
data/sample/simple.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opengl-bindings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- vaiorabbit
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-06 00:00:00.000000000 Z
|
12
13
|
dependencies: []
|
13
|
-
description:
|
14
|
-
|
15
|
-
|
14
|
+
description: ! 'Ruby bindings for OpenGL 1.0-4.4 and all extensions using Fiddle (For
|
15
|
+
MRI >= 2.0.0).
|
16
|
+
|
17
|
+
'
|
16
18
|
email:
|
17
19
|
- vaiorabbit@gmail.com
|
18
20
|
executables: []
|
@@ -41,25 +43,26 @@ files:
|
|
41
43
|
homepage: https://github.com/vaiorabbit/ruby-opengl
|
42
44
|
licenses:
|
43
45
|
- zlib/libpng
|
44
|
-
metadata: {}
|
45
46
|
post_install_message:
|
46
47
|
rdoc_options: []
|
47
48
|
require_paths:
|
48
49
|
- lib
|
49
50
|
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
50
52
|
requirements:
|
51
|
-
- - '>='
|
53
|
+
- - ! '>='
|
52
54
|
- !ruby/object:Gem::Version
|
53
55
|
version: 2.0.0
|
54
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
55
58
|
requirements:
|
56
|
-
- - '>='
|
59
|
+
- - ! '>='
|
57
60
|
- !ruby/object:Gem::Version
|
58
61
|
version: '0'
|
59
62
|
requirements: []
|
60
63
|
rubyforge_project:
|
61
|
-
rubygems_version:
|
64
|
+
rubygems_version: 1.8.23
|
62
65
|
signing_key:
|
63
|
-
specification_version:
|
66
|
+
specification_version: 3
|
64
67
|
summary: Bindings for OpenGL 1.0-4.4 and extensions (For MRI >= 2.0.0)
|
65
68
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: c7ab4d5a270eca40fba926f554f5ef01a38fd835
|
4
|
-
data.tar.gz: d62ad050f5fb065d498ae824fc9e98a299ce5b3d
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: d8f289e47301bc911bf7a925d23e6793e82fb52d219c5233848b384eeda89826ce33073ae9738bca5e06d6d8f6916b67cc1595f7a2c7a725c885bf3e31084091
|
7
|
-
data.tar.gz: 1aca45de73c64301d325bada99eec3cc8933b65f6fe4945eb3b90954369923a9aacc5c9e36270388615de5dd40ae9142b55d23ffee867102dbb6605c9906862f
|