roglew 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NzI0NjU1NTAzNzA3NDQ2ZDJmOTc3MjYwY2IyNGZhOTM4MTQ3ZDdjYw==
5
- data.tar.gz: !binary |-
6
- ZmY1YTNkYzk0MGZmYzNhMmZjNDFhYTM3ZGE5ZGY0MjYyMDc5ZWUzNg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ZTQxN2ZiMmEyZjNlYzlkYzY1MDNjMzhmNzU5NzRkMzZlZDJlZThiNjAwYzdk
10
- N2IxYjQ3YWU4NmQ0MWUwZDk2N2E2ZjhlM2JmOWE0ZjlhNmJhNjZmMTk3Y2Qx
11
- Nzg1ZTc1NTg3OGJhOTM3MjQwZWJmNWFlOWEwZDg0NTFmYzIxYjA=
12
- data.tar.gz: !binary |-
13
- MjE3NDVkMDEwZDBkMGJmYTRhYzZhM2U3ZjIzNmI4NGExYjgyNGNjN2U1NzM4
14
- ZTU0NzkzY2UwNTZjN2M2Mzg0ZjUxZDIwYThkYWQzNTkxNTMxMTUzNDY3NTg1
15
- N2RkZGRkNzdkOGNmMWNhNjkzMDQ0M2NkMzJiNmZhYzdiNDhlMDY=
2
+ SHA1:
3
+ metadata.gz: 0954c90bc537fc46acaf75c2f8d4db18cfa51068
4
+ data.tar.gz: f8928b53c4c7e5d72d13acc10344bc0ad7bb0c48
5
+ SHA512:
6
+ metadata.gz: f7c8dd7a61548f47d6b02d27ee63cf333fe08c8f03e9f2d54cf0ef6761dd345b6263459638959d085f7b2ef389179d0731b768ac3dca622de56a6eb7391171e0
7
+ data.tar.gz: d9f495bc1f0629849c4b3c6235b511090d73021f1915df31ad7950b93fc38b0c8085aebaa2d459b1c00d90fa081df24f4e799516647ee29449de6630f0a86590
@@ -17,10 +17,14 @@ module Roglew
17
17
  end
18
18
 
19
19
  def is_deferred?(deferred)
20
- class_deferred = self.class.respond_to?(:deferred?) && self.class.deferred?
21
- context_deferred = @context.respond_to?(:deferred?) && @context.deferred?
22
- context_class_deferred = @context.class.respond_to?(:deferred?) && @context.class.deferred?
23
- [deferred, self.deferred?, class_deferred, context_deferred, context_class_deferred].compact.first
20
+ [
21
+ deferred,
22
+ self.deferred?,
23
+ self.class.respond_to?(:deferred?) && self.class.deferred?,
24
+ @context.respond_to?(:deferred?) && @context.deferred?,
25
+ @context.class.respond_to?(:deferred?) && @context.class.deferred?,
26
+ false
27
+ ].compact.first
24
28
  end
25
29
 
26
30
  private
@@ -19,13 +19,13 @@ module Roglew
19
19
  super(framebuffer, deferred, &block)
20
20
  end
21
21
 
22
- def attach(target, attachment, level = 0)
23
- case target
22
+ def attach(obj, attachment, level = 0)
23
+ case obj
24
24
  when RenderbufferARB
25
- make_call(:glFramebufferRenderbuffer, GL::FRAMEBUFFER, attachment, GL::RENDERBUFFER, target.id)
25
+ make_call(:glFramebufferRenderbuffer, @target, attachment, GL::RENDERBUFFER, obj.id)
26
26
  when Texture2d
27
27
  #TODO glFramebufferTexture1D glFramebufferTexture3D
28
- make_call(:glFramebufferTexture2D, GL::FRAMEBUFFER, attachment, GL::TEXTURE_2D, target.id, level)
28
+ make_call(:glFramebufferTexture2D, @target, attachment, GL::TEXTURE_2D, obj.id, level)
29
29
  else raise ArgumentError, "first parameter isn't a RenderbufferARB nor a Texture2d"
30
30
  end
31
31
  end
@@ -19,13 +19,13 @@ module Roglew
19
19
  super(framebuffer, deferred, &block)
20
20
  end
21
21
 
22
- def attach(target, attachment, level = 0)
23
- case target
22
+ def attach(obj, attachment, level = 0)
23
+ case obj
24
24
  when RenderbufferEXT
25
- make_call(:glFramebufferRenderbufferEXT, GL::FRAMEBUFFER_EXT, attachment, GL::RENDERBUFFER_EXT, target.id)
25
+ make_call(:glFramebufferRenderbufferEXT, @target, attachment, GL::RENDERBUFFER_EXT, obj.id)
26
26
  when Texture2d
27
27
  #TODO glFramebufferTexture1DEXT glFramebufferTexture3DEXT
28
- make_call(:glFramebufferTexture2DEXT, GL::FRAMEBUFFER_EXT, attachment, GL::TEXTURE_2D, target.id, level)
28
+ make_call(:glFramebufferTexture2DEXT, @target, attachment, GL::TEXTURE_2D, obj.id, level)
29
29
  else raise ArgumentError, "first parameter isn't a RenderbufferEXT nor a Texture2d"
30
30
  end
31
31
  end
data/lib/roglew.rb CHANGED
@@ -10,7 +10,7 @@
10
10
  '.each { |f| require f }
11
11
 
12
12
  module Roglew
13
- VERSION = '0.2.6'.freeze
13
+ VERSION = '0.2.7'.freeze
14
14
 
15
15
  PLATFORM = case
16
16
  when Platform.local.windows? then 'windows'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roglew
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - SilverPhoenix99
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-27 00:00:00.000000000 Z
12
+ date: 2013-03-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: facets
@@ -606,22 +606,33 @@ homepage: https://github.com/SilverPhoenix99/roglew
606
606
  licenses:
607
607
  - MIT
608
608
  metadata: {}
609
- post_install_message: ! "+----------------------------------------------------------------------------+\n
610
- \ Thanks for choosing Roglew.\n\n ==========================================================================\n
611
- \ 0.2.6 Changes:\n - Fixed a few finalizers.\n ==========================================================================\n\n
612
- \ If you like what you see, support us on Pledgie:\n http://www.pledgie.com/campaigns/18830\n\n
613
- \ If you find any bugs, please report them on\n https://github.com/SilverPhoenix99/roglew/issues\n\n+----------------------------------------------------------------------------+\n"
609
+ post_install_message: |
610
+ +----------------------------------------------------------------------------+
611
+ Thanks for choosing Roglew.
612
+
613
+ ==========================================================================
614
+ 0.2.7 Changes:
615
+ - Fixed a few finalizers.
616
+ ==========================================================================
617
+
618
+ If you like what you see, support us on Pledgie:
619
+ http://www.pledgie.com/campaigns/18830
620
+
621
+ If you find any bugs, please report them on
622
+ https://github.com/SilverPhoenix99/roglew/issues
623
+
624
+ +----------------------------------------------------------------------------+
614
625
  rdoc_options: []
615
626
  require_paths:
616
627
  - lib
617
628
  required_ruby_version: !ruby/object:Gem::Requirement
618
629
  requirements:
619
- - - ! '>='
630
+ - - '>='
620
631
  - !ruby/object:Gem::Version
621
632
  version: '0'
622
633
  required_rubygems_version: !ruby/object:Gem::Requirement
623
634
  requirements:
624
- - - ! '>='
635
+ - - '>='
625
636
  - !ruby/object:Gem::Version
626
637
  version: '0'
627
638
  requirements: []
@@ -631,4 +642,3 @@ signing_key:
631
642
  specification_version: 4
632
643
  summary: Ruby OpenGL and Extensions Wrapper
633
644
  test_files: []
634
- has_rdoc: