gosu 0.14.5-x64-mingw32 → 0.15.0-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gosu/compat.rb +12 -7
- data/lib/gosu/patches.rb +8 -2
- data/lib/gosu/swig_patches.rb +20 -9
- data/lib64/2.3/gosu.so +0 -0
- data/lib64/2.4/gosu.so +0 -0
- data/lib64/2.5/gosu.so +0 -0
- data/lib64/2.6/gosu.so +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c6da598c413941d4149ef328a99f0bd2b429d3181188e39082ca42fcf3ed284
|
4
|
+
data.tar.gz: 8d5d716b8e7733199f9cc50daac760b7e996aab40636ccc2ec53084db1ca1b84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6c5b3209fb0b480ffbf21f01798086f0f346b415b2c09136db24790bc54c5b7fbbc9f226dc33a8d843f928f0c921075b78040f8c8eb63401ee5177847abc1f7
|
7
|
+
data.tar.gz: d06a33fcc36739bc2cfe6f2bfeef48e93002c4e0bbe1c3868ffbd618410f08aba4b25c2b38d2a2989e839487813f65e51db7fba4c61056af813c0c2969a5c9ab
|
data/lib/gosu/compat.rb
CHANGED
@@ -68,13 +68,18 @@ module Gosu
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
+
# These were useful for working with Direct3D and the Win32 API a long time ago,
|
72
|
+
# there was never a real reason to have them available in Ruby.
|
73
|
+
Gosu.deprecate Gosu::Color, :bgr, :none
|
74
|
+
Gosu.deprecate Gosu::Color, :abgr, :none
|
75
|
+
|
71
76
|
# No need to pass a Window to Image.
|
72
77
|
class Gosu::Image
|
73
|
-
|
78
|
+
alias_method :initialize_without_window, :initialize
|
74
79
|
|
75
80
|
def initialize(*args)
|
76
81
|
if args[0].is_a? Gosu::Window
|
77
|
-
Gosu.deprecation_message("Passing a Window to Image#initialize has been deprecated in Gosu 0.9 and this method now uses an options hash, see https://www.libgosu.org/rdoc/Gosu/Image.html
|
82
|
+
Gosu.deprecation_message("Passing a Window to Image#initialize has been deprecated in Gosu 0.9 and this method now uses an options hash, see https://www.libgosu.org/rdoc/Gosu/Image.html ")
|
78
83
|
if args.size == 7
|
79
84
|
initialize_without_window args[1], :tileable => args[2], :rect => args[3..-1]
|
80
85
|
else
|
@@ -86,15 +91,15 @@ class Gosu::Image
|
|
86
91
|
end
|
87
92
|
|
88
93
|
class << self
|
89
|
-
|
94
|
+
alias_method :from_text_without_window, :from_text
|
90
95
|
end
|
91
96
|
|
92
97
|
def self.from_text(*args)
|
93
98
|
if args.size == 4
|
94
|
-
Gosu.deprecation_message("Passing a Window to Image.from_text has been deprecated in Gosu 0.9 and this method now uses an options hash, see https://www.libgosu.org/rdoc/Gosu/Image.html
|
99
|
+
Gosu.deprecation_message("Passing a Window to Image.from_text has been deprecated in Gosu 0.9 and this method now uses an options hash, see https://www.libgosu.org/rdoc/Gosu/Image.html ")
|
95
100
|
from_text_without_window(args[1], args[3], :font => args[2])
|
96
101
|
elsif args.size == 7
|
97
|
-
Gosu.deprecation_message("Passing a Window to Image.from_text has been deprecated in Gosu 0.9 and this method now uses an options hash, see https://www.libgosu.org/rdoc/Gosu/Image.html
|
102
|
+
Gosu.deprecation_message("Passing a Window to Image.from_text has been deprecated in Gosu 0.9 and this method now uses an options hash, see https://www.libgosu.org/rdoc/Gosu/Image.html ")
|
98
103
|
from_text_without_window(args[1], args[3], :font => args[2],
|
99
104
|
:spacing => args[4], :width => args[5], :align => args[6])
|
100
105
|
else
|
@@ -105,7 +110,7 @@ end
|
|
105
110
|
|
106
111
|
# No need to pass a Window to Sample.
|
107
112
|
class Gosu::Sample
|
108
|
-
|
113
|
+
alias_method :initialize_without_window, :initialize
|
109
114
|
|
110
115
|
def initialize(*args)
|
111
116
|
if args.first.is_a? Gosu::Window
|
@@ -118,7 +123,7 @@ end
|
|
118
123
|
|
119
124
|
# No need to pass a Window to Song.
|
120
125
|
class Gosu::Song
|
121
|
-
|
126
|
+
alias_method :initialize_without_window, :initialize
|
122
127
|
|
123
128
|
def initialize(*args)
|
124
129
|
if args.first.is_a? Gosu::Window
|
data/lib/gosu/patches.rb
CHANGED
@@ -28,6 +28,12 @@ class Gosu::Font
|
|
28
28
|
end
|
29
29
|
|
30
30
|
class Gosu::Image
|
31
|
+
BlobHelper = Struct.new(:columns, :rows, :to_blob)
|
32
|
+
|
33
|
+
def self.from_blob(width, height, rgba = "\0\0\0\0" * (width * height))
|
34
|
+
self.new(BlobHelper.new(width, height, rgba))
|
35
|
+
end
|
36
|
+
|
31
37
|
# from_markup will stop parsing markup in Gosu 1.0.
|
32
38
|
def self.from_markup(*args)
|
33
39
|
self.from_text(*args)
|
@@ -54,7 +60,7 @@ module Gosu
|
|
54
60
|
FUCHSIA = Gosu::ImmutableColor.new(0xff_ff00ff)
|
55
61
|
CYAN = Gosu::ImmutableColor.new(0xff_00ffff)
|
56
62
|
|
57
|
-
|
63
|
+
alias_method :hash, :gl
|
58
64
|
def eql?(other)
|
59
65
|
gl == other.gl
|
60
66
|
end
|
@@ -65,7 +71,7 @@ class Gosu::Window
|
|
65
71
|
# Call Thread.pass every tick, which may or may not be necessary for friendly co-existence with
|
66
72
|
# Ruby's Thread class.
|
67
73
|
|
68
|
-
|
74
|
+
alias_method :_tick, :tick
|
69
75
|
|
70
76
|
def tick
|
71
77
|
Thread.pass
|
data/lib/gosu/swig_patches.rb
CHANGED
@@ -3,20 +3,21 @@
|
|
3
3
|
# compatible, but I just call protected_update etc. in the Ruby wrapper so I can add this
|
4
4
|
# custom debugging help:
|
5
5
|
class Gosu::Window
|
6
|
-
|
7
|
-
|
6
|
+
alias_method :initialize_without_hash, :initialize
|
7
|
+
|
8
8
|
def initialize width, height, *args
|
9
9
|
if args.empty? or args.first.is_a? Hash
|
10
10
|
options = args.first || {}
|
11
11
|
fullscreen = options[:fullscreen]
|
12
12
|
update_interval = options[:update_interval]
|
13
|
+
resizable = options[:resizable]
|
13
14
|
else
|
14
15
|
fullscreen, update_interval = *args
|
15
16
|
end
|
16
17
|
$gosu_gl_blocks = nil
|
17
|
-
initialize_without_hash width, height, !!fullscreen, update_interval || 16.666666
|
18
|
+
initialize_without_hash width, height, !!fullscreen, update_interval || 16.666666, !!resizable
|
18
19
|
end
|
19
|
-
|
20
|
+
|
20
21
|
%w(update draw needs_redraw? needs_cursor?
|
21
22
|
lose_focus button_down button_up).each do |callback|
|
22
23
|
define_method "protected_#{callback}" do |*args|
|
@@ -39,7 +40,7 @@ class Gosu::Window
|
|
39
40
|
$gosu_gl_blocks = nil
|
40
41
|
end
|
41
42
|
|
42
|
-
|
43
|
+
alias_method :show_internal, :show
|
43
44
|
def show
|
44
45
|
show_internal
|
45
46
|
# Try to format the message nicely, without any useless patching that we are
|
@@ -56,14 +57,24 @@ end
|
|
56
57
|
module Gosu
|
57
58
|
# Keep a reference to these blocks that is only cleared after Window#draw.
|
58
59
|
# Otherwise, the GC might free these blocks while Gosu is still rendering.
|
59
|
-
def self.gl(
|
60
|
+
def self.gl(z = nil, &block)
|
60
61
|
$gosu_gl_blocks ||= []
|
61
62
|
$gosu_gl_blocks << block
|
62
|
-
|
63
|
+
if z.nil?
|
64
|
+
unsafe_gl(&block)
|
65
|
+
else
|
66
|
+
unsafe_gl(z, &block)
|
67
|
+
end
|
63
68
|
end
|
64
69
|
end
|
65
70
|
|
66
|
-
# SWIG
|
71
|
+
# SWIG somehow maps the instance method "argb" as an overload of the class
|
72
|
+
# method of the same name.
|
73
|
+
class Gosu::Color
|
74
|
+
alias_method :argb, :to_i
|
75
|
+
end
|
76
|
+
|
77
|
+
# SWIG will not let me rename my method to '[]=', so use alias_method here.
|
67
78
|
class Gosu::Font
|
68
|
-
|
79
|
+
alias_method :[]=, :set_image
|
69
80
|
end
|
data/lib64/2.3/gosu.so
CHANGED
Binary file
|
data/lib64/2.4/gosu.so
CHANGED
Binary file
|
data/lib64/2.5/gosu.so
CHANGED
Binary file
|
data/lib64/2.6/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.
|
4
|
+
version: 0.15.0
|
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: 2020-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
2D game development library.
|