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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +4 -0
  3. data/README.md +1 -1
  4. data/lib/glfw.rb +7 -2
  5. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aaf34ba647a0d10f96d95005bb9f7c9c5ce0e298
4
- data.tar.gz: d705a711712e7ca59de0217300af197bd3803f84
3
+ metadata.gz: b7922691c7757c04002be934f5375426dd32c0df
4
+ data.tar.gz: 044ec7aeef1fffb1a561a30fb35d6006477f621b
5
5
  SHA512:
6
- metadata.gz: 8573d09a2d0d120fed63d15b33d8557c715f811dc457b86e0ffff1516ad058457ec69681ca8cc43a10474444528ef057c145404acd453a914c3593d103260613
7
- data.tar.gz: 8ee82b84e8b5dea0cad1e4b8327e41f0fe6dee43100cfaa6feafd318602c3e062a609ff16c2a69f058ed60a87e063453ab18d2938a1b933e26c57b6b0a32193d
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
@@ -5,7 +5,7 @@
5
5
  ...and wrapper code generator.
6
6
 
7
7
  * Created : 2013-08-28
8
- * Last modified : 2013-09-15
8
+ * Last modified : 2013-09-16
9
9
 
10
10
 
11
11
  ## Features ##
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
- def self.create_callback( sym, *opts, &blk )
289
- return bind( @@glfw_cb_signature[sym], opts, &blk )
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.0
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-15 00:00:00.000000000 Z
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 Ruby >= 2.0)
62
+ summary: Bindings for OpenGL 1.0-4.4 and extensions (For MRI >= 2.0.0)
63
63
  test_files: []