opengl-bindings 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/README.md +1 -1
- data/lib/glfw.rb +7 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7922691c7757c04002be934f5375426dd32c0df
|
4
|
+
data.tar.gz: 044ec7aeef1fffb1a561a30fb35d6006477f621b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3556717d2f992ad75a8e28c4123b0e52892f5b5c54d5b8e19bbe5f06ef1180278cb308f54ecad73edc0eed71d1b226683e569267960f18edb5de1cedfb91dc8e
|
7
|
+
data.tar.gz: e68f024a9680d7e4f445bebb9f4f0c7fe978edd2547b938075d41c8a6762b8691f8d2bba87c54dfdf5d1183f8006384e9bf8b5087563b39ee5a7a6692ed98309
|
data/ChangeLog
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
2013-09-16 vaiorabbit <https://twitter.com/vaiorabbit>
|
2
|
+
|
3
|
+
* lib/glfw.rb (GLFW.create_callback): Now accepts Proc object. (ex.) "method(:key_callback).to_proc".
|
4
|
+
|
1
5
|
2013-09-15 vaiorabbit <https://twitter.com/vaiorabbit>
|
2
6
|
|
3
7
|
* opengl-bindings.gemspec: Added to make RubyGems package.
|
data/README.md
CHANGED
data/lib/glfw.rb
CHANGED
@@ -285,8 +285,13 @@ module GLFW
|
|
285
285
|
:GLFWcharfun => "void GLFWcharfun(void*,unsigned int)",
|
286
286
|
:GLFWmonitorfun => "void GLFWmonitorfun(void*,int)",
|
287
287
|
}
|
288
|
-
|
289
|
-
|
288
|
+
|
289
|
+
def self.create_callback( sym, proc=nil, &blk )
|
290
|
+
if block_given?
|
291
|
+
return bind( @@glfw_cb_signature[sym], nil, &blk )
|
292
|
+
else
|
293
|
+
return bind( @@glfw_cb_signature[sym], nil, &proc )
|
294
|
+
end
|
290
295
|
end
|
291
296
|
|
292
297
|
# struct
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaiorabbit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
|
-
Ruby bindings for OpenGL 1.0-4.4 and all extensions using Fiddle.
|
14
|
+
Ruby bindings for OpenGL 1.0-4.4 and all extensions using Fiddle (For MRI >= 2.0.0).
|
15
15
|
email:
|
16
16
|
- vaiorabbit@gmail.com
|
17
17
|
executables: []
|
@@ -59,5 +59,5 @@ rubyforge_project:
|
|
59
59
|
rubygems_version: 2.0.5
|
60
60
|
signing_key:
|
61
61
|
specification_version: 4
|
62
|
-
summary: Bindings for OpenGL 1.0-4.4 and extensions (For
|
62
|
+
summary: Bindings for OpenGL 1.0-4.4 and extensions (For MRI >= 2.0.0)
|
63
63
|
test_files: []
|