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 +4 -4
- data/Gosu/Audio.hpp +1 -1
- data/Gosu/Version.hpp +2 -2
- data/Gosu/Window.hpp +2 -2
- data/lib/gosu.rb +10 -11
- data/lib/gosu/preview.rb +17 -13
- data/lib64/2.1/gosu.so +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f377a9fe0cf4df7e274a9b9d9419fbc0b2474e27
|
4
|
+
data.tar.gz: ac569da41aa33977741904b788c0ec725280c770
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6706ea27c20269b9e75fcac1a2072359dc64ea63c2dcf6fc3c9f719698d06d2d437d94afc22c136bc0109167dbab773bf21d445faa831d2cd0680af6dc868101
|
7
|
+
data.tar.gz: da421bdeec81390b84ffe0c54e0c5219966f8a1ed033e3d1ec9d8636027f52c5270a58ead62605435d5d5950aac172123519959271b22bcc3dc36dcea6236ca4
|
data/Gosu/Audio.hpp
CHANGED
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
|
7
|
-
#define GOSU_VERSION "0.8.
|
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
data/lib/gosu.rb
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
require 'rbconfig'
|
2
2
|
|
3
|
-
if RUBY_PLATFORM =~ /mswin$|mingw32|win32
|
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
|
-
|
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'] = "#{
|
9
|
-
|
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
|
-
|
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.
|
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 :
|
7
|
+
alias :initialize_old :initialize
|
8
8
|
|
9
9
|
def initialize *args
|
10
10
|
if args.first.is_a? Gosu::Window then
|
11
|
-
|
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
|
-
|
16
|
+
initialize_old $window, name, height
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
21
|
class Window
|
22
|
-
alias :
|
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 =
|
32
|
+
$window = initialize_old width, height, fullscreen, update_interval
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
36
|
class Image
|
37
|
-
alias :
|
37
|
+
alias :initialize_old :initialize
|
38
38
|
|
39
39
|
def initialize *args
|
40
40
|
if args.first.is_a? Gosu::Window then
|
41
|
-
|
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
|
-
|
47
|
+
initialize_old $window, source, !!tileable, *rect
|
48
48
|
else
|
49
|
-
|
49
|
+
initialize_old $window, source, !!tileable
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
54
|
class <<self
|
55
|
-
alias
|
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
|
-
|
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
|
-
|
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.
|
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:
|
11
|
+
date: 2015-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
2D game development library.
|