gosu 0.8.6-x64-mingw32 → 0.8.7-x64-mingw32

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f282d54c20fe0e84512af2478321dacbe7e07ea
4
- data.tar.gz: c14fe19a090cabe204765e8084e0af97531cefed
3
+ metadata.gz: f377a9fe0cf4df7e274a9b9d9419fbc0b2474e27
4
+ data.tar.gz: ac569da41aa33977741904b788c0ec725280c770
5
5
  SHA512:
6
- metadata.gz: b05d18e2b574b9a8f24c2fdd3bba60657d080031d3e579d8ba684c06f99f04804707a77c0a15fe5fdbe6ef2616b41b083b645cbe70a91339b29e3f4523cdb694
7
- data.tar.gz: 8ec21f369a02cb2b46af9965d4bad34a1d279652dcd465e115111e73ba26d36e8700ae4b9bc9bf7ddb0f503838bf5c7b2eb1d730d086fecf311504c923c700ba
6
+ metadata.gz: 6706ea27c20269b9e75fcac1a2072359dc64ea63c2dcf6fc3c9f719698d06d2d437d94afc22c136bc0109167dbab773bf21d445faa831d2cd0680af6dc868101
7
+ data.tar.gz: da421bdeec81390b84ffe0c54e0c5219966f8a1ed033e3d1ec9d8636027f52c5270a58ead62605435d5d5950aac172123519959271b22bcc3dc36dcea6236ca4
data/Gosu/Audio.hpp CHANGED
@@ -21,7 +21,7 @@ namespace Gosu
21
21
  {
22
22
  // Deprecated.
23
23
  #ifndef SWIG
24
- class GOSU_DEPRECATED Audio;
24
+ class Audio;
25
25
  #endif
26
26
 
27
27
  //! An instance of a Sample playing. Can be used to stop sounds dynamically,
data/Gosu/Version.hpp CHANGED
@@ -3,8 +3,8 @@
3
3
 
4
4
  #define GOSU_MAJOR_VERSION 0
5
5
  #define GOSU_MINOR_VERSION 8
6
- #define GOSU_POINT_VERSION 6
7
- #define GOSU_VERSION "0.8.6"
6
+ #define GOSU_POINT_VERSION 7
7
+ #define GOSU_VERSION "0.8.7"
8
8
 
9
9
  #define GOSU_COPYRIGHT_NOTICE \
10
10
  "This software uses the following third-party libraries:\n" \
data/Gosu/Window.hpp CHANGED
@@ -131,8 +131,8 @@ namespace Gosu
131
131
  virtual void touchEnded(Touch touch) {}
132
132
  #endif
133
133
 
134
- const Audio& audio() const;
135
- Audio& audio();
134
+ GOSU_DEPRECATED const Audio& audio() const;
135
+ GOSU_DEPRECATED Audio& audio();
136
136
 
137
137
  #endif
138
138
  };
data/lib/gosu.rb CHANGED
@@ -1,20 +1,19 @@
1
1
  require 'rbconfig'
2
2
 
3
- if RUBY_PLATFORM =~ /mswin$|mingw32|win32-|-win32/ then
3
+ if RUBY_PLATFORM =~ /mswin$|mingw32|mingw64|win32\-|\-win32/ then
4
+ binary_path = File.dirname(__FILE__)
4
5
  # 64-bit builds of Windows use "x64-mingw32" as RUBY_PLATFORM
5
- suffix = '64' if RUBY_PLATFORM =~ /^x64-/
6
+ binary_path += '64' if RUBY_PLATFORM =~ /^x64-/
6
7
 
7
- # Add this gem to the PATH on Windows so that DLLs can be found.
8
- ENV['PATH'] = "#{File.dirname(__FILE__)}#{suffix};#{ENV['PATH']}"
9
- end
10
-
11
- begin
12
- # If possible, use a precompiled binary.
8
+ # Add this gem to the PATH on Windows so that bundled DLLs can be found.
9
+ ENV['PATH'] = "#{binary_path};#{ENV['PATH']}"
10
+
11
+ # Add the correct directory
13
12
  RUBY_VERSION =~ /(\d+.\d+)/
14
- require "../lib#{suffix}/#{$1}/gosu.#{RbConfig::CONFIG['DLEXT']}"
15
- rescue LoadError
16
- require "gosu.#{RbConfig::CONFIG['DLEXT']}"
13
+ $LOAD_PATH.unshift "#{binary_path}/#{$1}"
17
14
  end
18
15
 
16
+ require "gosu.#{RbConfig::CONFIG['DLEXT']}"
17
+
19
18
  require "gosu/swig_patches"
20
19
  require "gosu/patches"
data/lib/gosu/preview.rb CHANGED
@@ -1,25 +1,25 @@
1
1
  require 'gosu'
2
2
 
3
- # Wrapper around Gosu 0.7 that provides the work-in-progress 0.8 interface
3
+ # Wrapper around Gosu 0.4-0.8 that provides the work-in-progress 0.9 interface
4
4
 
5
5
  module Gosu
6
6
  class Font
7
- alias :initialize07 :initialize
7
+ alias :initialize_old :initialize
8
8
 
9
9
  def initialize *args
10
10
  if args.first.is_a? Gosu::Window then
11
- initialize07 *args
11
+ initialize_old *args
12
12
  else
13
13
  height = args[0]
14
14
  options = args[1] || {}
15
15
  name = options[:name] || Gosu::default_font_name
16
- initialize07 $window, name, height
16
+ initialize_old $window, name, height
17
17
  end
18
18
  end
19
19
  end
20
20
 
21
21
  class Window
22
- alias :initialize07 :initialize
22
+ alias :initialize_old :initialize
23
23
 
24
24
  def initialize width, height, *args
25
25
  if args.empty? or args.first.is_a? Hash then
@@ -29,40 +29,40 @@ module Gosu
29
29
  else
30
30
  fullscreen, update_interval = *args
31
31
  end
32
- $window = initialize07 width, height, fullscreen, update_interval
32
+ $window = initialize_old width, height, fullscreen, update_interval
33
33
  end
34
34
  end
35
35
 
36
36
  class Image
37
- alias :initialize07 :initialize
37
+ alias :initialize_old :initialize
38
38
 
39
39
  def initialize *args
40
40
  if args.first.is_a? Gosu::Window then
41
- initialize07 *args
41
+ initialize_old *args
42
42
  else
43
43
  source = args[0]
44
44
  tileable = !args[1] || args[1][:tileable]
45
45
  rect = args[1] && args[1][:rect]
46
46
  if rect then
47
- initialize07 $window, source, !!tileable, *rect
47
+ initialize_old $window, source, !!tileable, *rect
48
48
  else
49
- initialize07 $window, source, !!tileable
49
+ initialize_old $window, source, !!tileable
50
50
  end
51
51
  end
52
52
  end
53
53
 
54
54
  class <<self
55
- alias load_tiles07 load_tiles
55
+ alias load_tiles_old load_tiles
56
56
  end
57
57
 
58
58
  def self.load_tiles *args
59
59
  if args.first.is_a? Gosu::Window then
60
- load_tiles07 *args
60
+ load_tiles_old *args
61
61
  else
62
62
  source = args[0]
63
63
  x, y = args[1..2]
64
64
  tileable = !args[3] || args[3][:tileable]
65
- load_tiles07 $window, source, x, y, !!tileable
65
+ load_tiles_old $window, source, x, y, !!tileable
66
66
  end
67
67
  end
68
68
 
@@ -109,6 +109,10 @@ module Gosu
109
109
  $window.draw_quad *args
110
110
  end
111
111
 
112
+ def self.draw_rect x, y, width, height, color = 0xffffffff, z, mode = :default
113
+ $window.draw_quad x, y, color, x + width, y, color, x, y + height, color, x + width, y + height, color, z, mode
114
+ end
115
+
112
116
  def self.clip_to *args, &draw
113
117
  $window.clip_to *args, &draw
114
118
  end
data/lib64/2.1/gosu.so CHANGED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gosu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Julian Raschke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-10 00:00:00.000000000 Z
11
+ date: 2015-01-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  2D game development library.