ashton 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/ext/ashton/GLee.h CHANGED
@@ -762,7 +762,7 @@ GLEE_EXTERN GLboolean _GLEE_SGIX_texture_range;
762
762
  #endif
763
763
 
764
764
  #ifndef GL_ARB_shader_objects
765
- typedef int GLhandleARB;
765
+ typedef void *GLhandleARB;
766
766
  typedef char GLcharARB;
767
767
  #endif
768
768
 
data/lib/ashton/shader.rb CHANGED
@@ -348,12 +348,12 @@ module Ashton
348
348
  def process_source(shader, extension)
349
349
  source = if shader.is_a? Symbol
350
350
  file = File.expand_path "#{shader}#{extension}", BUILT_IN_SHADER_PATH
351
- unless File.exists? file
351
+ unless File.exist? file
352
352
  raise ShaderLoadError, "Failed to load built-in shader: #{shader.inspect}"
353
353
  end
354
354
  File.read file
355
355
 
356
- elsif File.exists? shader
356
+ elsif File.exist? shader
357
357
  File.read shader
358
358
  else
359
359
  shader
@@ -31,7 +31,7 @@ module Ashton
31
31
  @mask = Texture.new @field.width, @field.height
32
32
 
33
33
  if block_given?
34
- render_field &block
34
+ render_field(&block)
35
35
  else
36
36
  @field.clear color: Gosu::Color.rgb(*([ZERO_DISTANCE + max_distance] * 3))
37
37
  end
@@ -1,3 +1,3 @@
1
1
  module Ashton
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ashton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-06 00:00:00.000000000 Z
12
+ date: 2014-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: opengl
@@ -312,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
312
312
  version: '0'
313
313
  segments:
314
314
  - 0
315
- hash: 4304912169209976873
315
+ hash: -2896810870872713965
316
316
  requirements: []
317
317
  rubyforge_project: ashton
318
318
  rubygems_version: 1.8.23