gosu 0.7.47.1-x86-mingw32 → 0.7.48-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA512:
3
- data.tar.gz: 9a68c14a687fefa882fbaec9a73d761b6e90fde7c01c2cfd2248aa73df913bf99b1adc5b97b98c908412426c71cf5058331dc82d12a32778fb6418c219c71093
4
- metadata.gz: 1a37cd19776555e63ca83cadf16ec5d5bfcac2687d1ff6a75b11a1adedf91e6bfb499345b6414b4bc19edca6dc8175c39041d11ea27a7ca8b86ada4b9336be6a
3
+ metadata.gz: bf6210c5506d9cb8c50bfb2a780d03d45d644eab8ffce6becb4f89151c2aa8b9763545919a417c1618b7b6d4bf5f9fef8a5d971dfa4609ef845a1aa95b3f57ed
4
+ data.tar.gz: a408503f6a38016cc2299963f8a4e31f84e20a3f0eaf81ebe51d67e1c3a5a4a57c5283300a70298d98e7d8246d6bb7177482397168178e1ab239ddfcbdac0b27
5
5
  SHA1:
6
- data.tar.gz: d10f7b72a9e19fdab4154ac068bb42cf9a6cbb07
7
- metadata.gz: 8cfcf0988dc79dc4f2de3703baddc650b01b09fb
6
+ metadata.gz: 77335f46b589dc576d75adeb6c02522cdaf8328b
7
+ data.tar.gz: 7fc3a858ce54db31cfbfa85209679f086a270d03
data/Gosu/ImageData.hpp CHANGED
@@ -51,7 +51,8 @@ namespace Gosu
51
51
  virtual const GLTexInfo* glTexInfo() const = 0;
52
52
  virtual Bitmap toBitmap() const = 0;
53
53
 
54
- //! Experimental and undocumented for now.
54
+ virtual std::auto_ptr<ImageData> subimage(int x, int y, int width, int height) const = 0;
55
+
55
56
  virtual void insert(const Bitmap& bitmap, int x, int y) = 0;
56
57
  };
57
58
  }
data/Gosu/Version.hpp CHANGED
@@ -3,8 +3,8 @@
3
3
 
4
4
  #define GOSU_MAJOR_VERSION 0
5
5
  #define GOSU_MINOR_VERSION 7
6
- #define GOSU_POINT_VERSION 47
7
- #define GOSU_VERSION "0.7.47.1"
6
+ #define GOSU_POINT_VERSION 48
7
+ #define GOSU_VERSION "0.7.48"
8
8
 
9
9
  #define GOSU_COPYRIGHT_NOTICE \
10
10
  " " \
@@ -103,7 +103,7 @@
103
103
  "\n\n" \
104
104
  " The precise terms and conditions for copying, distribution and" \
105
105
  "modification follow. Pay close attention to the difference between a" \
106
- "\n\n"work based on the library" and a "work that uses the library". The" \
106
+ "\"work based on the library\" and a \"work that uses the library\". The" \
107
107
  "former contains code derived from the library, while the latter only" \
108
108
  "works together with the library." \
109
109
  "\n\n" \
@@ -116,22 +116,22 @@
116
116
  " 0. This License Agreement applies to any software library which" \
117
117
  "contains a notice placed by the copyright holder or other authorized" \
118
118
  "party saying it may be distributed under the terms of this Library" \
119
- "General Public License (also called "this License"). Each licensee is" \
120
- "addressed as "you"." \
119
+ "General Public License (also called \"this License\"). Each licensee is" \
120
+ "addressed as \"you\"." \
121
121
  "\n\n" \
122
- " A "library" means a collection of software functions and/or data" \
122
+ " A \"library\" means a collection of software functions and/or data" \
123
123
  "prepared so as to be conveniently linked with application programs" \
124
124
  "(which use some of those functions and data) to form executables." \
125
125
  "\n\n" \
126
- " The "Library", below, refers to any such software library or work" \
127
- "which has been distributed under these terms. A "work based on the" \
128
- "Library" means either the Library or any derivative work under" \
126
+ " The \"Library\", below, refers to any such software library or work" \
127
+ "which has been distributed under these terms. A \"work based on the" \
128
+ "Library\" means either the Library or any derivative work under" \
129
129
  "copyright law: that is to say, a work containing the Library or a" \
130
130
  "portion of it, either verbatim or with modifications and/or translated" \
131
131
  "straightforwardly into another language. (Hereinafter, translation is" \
132
- "included without limitation in the term "modification".)" \
132
+ "included without limitation in the term \"modification\".)" \
133
133
  "\n\n" \
134
- " "Source code" for a work means the preferred form of the work for" \
134
+ " \"Source code\" for a work means the preferred form of the work for" \
135
135
  "making modifications to it. For a library, complete source code means" \
136
136
  "all the source code for all modules it contains, plus any associated" \
137
137
  "interface definition files, plus the scripts used to control compilation" \
@@ -237,17 +237,17 @@
237
237
  "\n\n" \
238
238
  " 5. A program that contains no derivative of any portion of the" \
239
239
  "Library, but is designed to work with the Library by being compiled or" \
240
- "linked with it, is called a "work that uses the Library". Such a" \
240
+ "linked with it, is called a \"work that uses the Library\". Such a" \
241
241
  "work, in isolation, is not a derivative work of the Library, and" \
242
242
  "therefore falls outside the scope of this License." \
243
243
  "\n\n" \
244
- " However, linking a "work that uses the Library" with the Library" \
244
+ " However, linking a \"work that uses the Library\" with the Library" \
245
245
  "creates an executable that is a derivative of the Library (because it" \
246
- "contains portions of the Library), rather than a "work that uses the" \
247
- "library". The executable is therefore covered by this License." \
246
+ "contains portions of the Library), rather than a \"work that uses the" \
247
+ "library\". The executable is therefore covered by this License." \
248
248
  "Section 6 states terms for distribution of such executables." \
249
249
  "\n\n" \
250
- " When a "work that uses the Library" uses material from a header file" \
250
+ " When a \"work that uses the Library\" uses material from a header file" \
251
251
  "that is part of the Library, the object code for the work may be a" \
252
252
  "derivative work of the Library even though the source code is not." \
253
253
  "Whether this is true is especially significant if the work can be" \
@@ -267,7 +267,7 @@
267
267
  "whether or not they are linked directly with the Library itself." \
268
268
  " " \
269
269
  " 6. As an exception to the Sections above, you may also compile or" \
270
- "link a "work that uses the Library" with the Library to produce a" \
270
+ "link a \"work that uses the Library\" with the Library to produce a" \
271
271
  "work containing portions of the Library, and distribute that work" \
272
272
  "under terms of your choice, provided that the terms permit" \
273
273
  "modification of the work for the customer's own use and reverse" \
@@ -285,8 +285,8 @@
285
285
  " machine-readable source code for the Library including whatever" \
286
286
  " changes were used in the work (which must be distributed under" \
287
287
  " Sections 1 and 2 above); and, if the work is an executable linked" \
288
- " with the Library, with the complete machine-readable "work that" \
289
- " uses the Library", as object code and/or source code, so that the" \
288
+ " with the Library, with the complete machine-readable \"work that" \
289
+ " uses the Library\", as object code and/or source code, so that the" \
290
290
  " user can modify the Library and then relink to produce a modified" \
291
291
  " executable containing the modified Library. (It is understood" \
292
292
  " that the user who changes the contents of definitions files in the" \
@@ -305,8 +305,8 @@
305
305
  " d) Verify that the user has already received a copy of these" \
306
306
  " materials or that you have already sent this user a copy." \
307
307
  "\n\n" \
308
- " For an executable, the required form of the "work that uses the" \
309
- "Library" must include any data and utility programs needed for" \
308
+ " For an executable, the required form of the \"work that uses the" \
309
+ "Library\" must include any data and utility programs needed for" \
310
310
  "reproducing the executable from it. However, as a special exception," \
311
311
  "the source code distributed need not include anything that is normally" \
312
312
  "distributed (in either source or binary form) with the major" \
@@ -407,7 +407,7 @@
407
407
  "\n\n" \
408
408
  "Each version is given a distinguishing version number. If the Library" \
409
409
  "specifies a version number of this License which applies to it and" \
410
- "\n\n"any later version", you have the option of following the terms and" \
410
+ "\"any later version\", you have the option of following the terms and" \
411
411
  "conditions either of that version or of any later version published by" \
412
412
  "the Free Software Foundation. If the Library does not specify a" \
413
413
  "license version number, you may choose any version ever published by" \
@@ -427,7 +427,7 @@
427
427
  " 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO" \
428
428
  "WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW." \
429
429
  "EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR" \
430
- "OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY" \
430
+ "OTHER PARTIES PROVIDE THE LIBRARY \"AS IS\" WITHOUT WARRANTY OF ANY" \
431
431
  "KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE" \
432
432
  "IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR" \
433
433
  "PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE" \
@@ -458,7 +458,7 @@
458
458
  " To apply these terms, attach the following notices to the library. It is" \
459
459
  "safest to attach them to the start of each source file to most effectively" \
460
460
  "convey the exclusion of warranty; and each file should have at least the" \
461
- "\n\n"copyright" line and a pointer to where the full notice is found." \
461
+ "\"copyright\" line and a pointer to where the full notice is found." \
462
462
  "\n\n" \
463
463
  " <one line to give the library's name and a brief idea of what it does.>" \
464
464
  " Copyright (C) <year> <name of author>" \
@@ -480,7 +480,7 @@
480
480
  "Also add information on how to contact you by electronic and paper mail." \
481
481
  "\n\n" \
482
482
  "You should also get your employer (if you work as a programmer) or your" \
483
- "school, if any, to sign a "copyright disclaimer" for the library, if" \
483
+ "school, if any, to sign a \"copyright disclaimer\" for the library, if" \
484
484
  "necessary. Here is a sample; alter the names:" \
485
485
  "\n\n" \
486
486
  " Yoyodyne, Inc., hereby disclaims all copyright interest in the" \
data/lib/gosu.for_1_8.so CHANGED
Binary file
data/lib/gosu.for_1_9.so CHANGED
Binary file
data/reference/gosu.rb CHANGED
@@ -96,11 +96,32 @@ module Gosu
96
96
  KbSpace = :implementation_defined
97
97
  KbTab = :implementation_defined
98
98
  KbUp = :implementation_defined
99
+ KbBacktick = :implementation_defined
100
+ KbMinus = :implementation_defined
101
+ KbEqual = :implementation_defined
102
+ KbBracketLeft = :implementation_defined
103
+ KbBracketRight = :implementation_defined
104
+ KbBackslash = :implementation_defined
105
+ KbSemicolon = :implementation_defined
106
+ KbApostrophe = :implementation_defined
107
+ KbComma = :implementation_defined
108
+ KbPeriod = :implementation_defined
109
+ KbSlash = :implementation_defined
110
+
99
111
  MsLeft = :implementation_defined
100
112
  MsMiddle = :implementation_defined
101
113
  MsRight = :implementation_defined
102
114
  MsWheelDown = :implementation_defined
103
115
  MsWheelUp = :implementation_defined
116
+ MsOther0 = :implementation_defined
117
+ MsOther1 = :implementation_defined
118
+ MsOther2 = :implementation_defined
119
+ MsOther3 = :implementation_defined
120
+ MsOther4 = :implementation_defined
121
+ MsOther5 = :implementation_defined
122
+ MsOther6 = :implementation_defined
123
+ MsOther7 = :implementation_defined
124
+
104
125
  GpButton0 = :implementation_defined
105
126
  GpButton1 = :implementation_defined
106
127
  GpButton10 = :implementation_defined
@@ -121,6 +142,86 @@ module Gosu
121
142
  GpLeft = :implementation_defined
122
143
  GpRight = :implementation_defined
123
144
  GpUp = :implementation_defined
145
+ Gp0Button0 = :implementation_defined
146
+ Gp0Button1 = :implementation_defined
147
+ Gp0Button10 = :implementation_defined
148
+ Gp0Button11 = :implementation_defined
149
+ Gp0Button12 = :implementation_defined
150
+ Gp0Button13 = :implementation_defined
151
+ Gp0Button14 = :implementation_defined
152
+ Gp0Button15 = :implementation_defined
153
+ Gp0Button2 = :implementation_defined
154
+ Gp0Button3 = :implementation_defined
155
+ Gp0Button4 = :implementation_defined
156
+ Gp0Button5 = :implementation_defined
157
+ Gp0Button6 = :implementation_defined
158
+ Gp0Button7 = :implementation_defined
159
+ Gp0Button8 = :implementation_defined
160
+ Gp0Button9 = :implementation_defined
161
+ Gp0Down = :implementation_defined
162
+ Gp0Left = :implementation_defined
163
+ Gp0Right = :implementation_defined
164
+ Gp0Up = :implementation_defined
165
+ Gp1Button0 = :implementation_defined
166
+ Gp1Button1 = :implementation_defined
167
+ Gp1Button10 = :implementation_defined
168
+ Gp1Button11 = :implementation_defined
169
+ Gp1Button12 = :implementation_defined
170
+ Gp1Button13 = :implementation_defined
171
+ Gp1Button14 = :implementation_defined
172
+ Gp1Button15 = :implementation_defined
173
+ Gp1Button2 = :implementation_defined
174
+ Gp1Button3 = :implementation_defined
175
+ Gp1Button4 = :implementation_defined
176
+ Gp1Button5 = :implementation_defined
177
+ Gp1Button6 = :implementation_defined
178
+ Gp1Button7 = :implementation_defined
179
+ Gp1Button8 = :implementation_defined
180
+ Gp1Button9 = :implementation_defined
181
+ Gp1Down = :implementation_defined
182
+ Gp1Left = :implementation_defined
183
+ Gp1Right = :implementation_defined
184
+ Gp1Up = :implementation_defined
185
+ Gp2Button0 = :implementation_defined
186
+ Gp2Button1 = :implementation_defined
187
+ Gp2Button10 = :implementation_defined
188
+ Gp2Button11 = :implementation_defined
189
+ Gp2Button12 = :implementation_defined
190
+ Gp2Button13 = :implementation_defined
191
+ Gp2Button14 = :implementation_defined
192
+ Gp2Button15 = :implementation_defined
193
+ Gp2Button2 = :implementation_defined
194
+ Gp2Button3 = :implementation_defined
195
+ Gp2Button4 = :implementation_defined
196
+ Gp2Button5 = :implementation_defined
197
+ Gp2Button6 = :implementation_defined
198
+ Gp2Button7 = :implementation_defined
199
+ Gp2Button8 = :implementation_defined
200
+ Gp2Button9 = :implementation_defined
201
+ Gp2Down = :implementation_defined
202
+ Gp2Left = :implementation_defined
203
+ Gp2Right = :implementation_defined
204
+ Gp2Up = :implementation_defined
205
+ Gp3Button0 = :implementation_defined
206
+ Gp3Button1 = :implementation_defined
207
+ Gp3Button10 = :implementation_defined
208
+ Gp3Button11 = :implementation_defined
209
+ Gp3Button12 = :implementation_defined
210
+ Gp3Button13 = :implementation_defined
211
+ Gp3Button14 = :implementation_defined
212
+ Gp3Button15 = :implementation_defined
213
+ Gp3Button2 = :implementation_defined
214
+ Gp3Button3 = :implementation_defined
215
+ Gp3Button4 = :implementation_defined
216
+ Gp3Button5 = :implementation_defined
217
+ Gp3Button6 = :implementation_defined
218
+ Gp3Button7 = :implementation_defined
219
+ Gp3Button8 = :implementation_defined
220
+ Gp3Button9 = :implementation_defined
221
+ Gp3Down = :implementation_defined
222
+ Gp3Left = :implementation_defined
223
+ Gp3Right = :implementation_defined
224
+ Gp3Up = :implementation_defined
124
225
 
125
226
  # Represents an ARGB color value with 8 bits for each channel. Can be
126
227
  # replaced by literals of the form 0xaarrggbb in all of Gosu.
@@ -537,42 +638,47 @@ module Gosu
537
638
  class GLTexInfo
538
639
  attr_reader :tex_name, :left, :right, :top, :bottom
539
640
  end
540
-
541
- # Returns a random double between min (inclusive) and max (exclusive).
542
- def random(min, max); end
543
-
544
- # Returns the horizontal distance between the origin and the point to which you would get if you moved radius pixels in the direction specified by angle.
545
- def offset_x(angle, dist); end
546
-
547
- # Returns the vertical distance between the origin and the point to which you would get if you moved radius pixels in the direction specified by angle.
548
- def offset_y(angle, dist); end
549
-
550
- # Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards. Returns 0 if both points are equal.
551
- def angle(x1, y1, x2, y2); end
552
-
553
- # Returns the smallest angle that can be added to angle1 to get to angle2 (can be negative if counter-clockwise movement is shorter).
554
- def angle_diff(angle1, angle2); end
555
-
556
- # Returns the distance between two points.
557
- def distance(x1, y1, x2, y2); end
558
-
559
- # Incrementing, possibly wrapping millisecond timer.
560
- def milliseconds(); end
561
-
562
- # Returns the name of a neutral font that is available on the current
563
- # platform.
564
- def default_font_name(); end
565
-
566
- # Returns the width, in pixels, of the user's primary screen.
567
- def screen_width(); end
568
-
569
- # Returns the height, in pixels, of the user's primary screen.
570
- def screen_height(); end
571
-
572
- # Returns the user's preferred language, at the moment of calling the function. Expect return
573
- # values such as 'en_US', 'de_DE.UTF-8', 'ja', 'zh-Hans'. You can rely only on the first two letters
574
- # being a common language abbreviation.
575
- def language(); end
641
+
642
+ class << self
643
+ # Returns a random double between min (inclusive) and max (exclusive).
644
+ def random(min, max); end
645
+
646
+ # Returns the horizontal distance between the origin and the point to which you would get if you moved radius pixels in the direction specified by angle.
647
+ def offset_x(angle, dist); end
648
+
649
+ # Returns the vertical distance between the origin and the point to which you would get if you moved radius pixels in the direction specified by angle.
650
+ def offset_y(angle, dist); end
651
+
652
+ # Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards. Returns 0 if both points are equal.
653
+ def angle(x1, y1, x2, y2); end
654
+
655
+ # Returns the smallest angle that can be added to angle1 to get to angle2 (can be negative if counter-clockwise movement is shorter).
656
+ def angle_diff(angle1, angle2); end
657
+
658
+ # Returns the distance between two points.
659
+ def distance(x1, y1, x2, y2); end
660
+
661
+ # Incrementing, possibly wrapping millisecond timer.
662
+ def milliseconds(); end
663
+
664
+ # Return current framerate (frames per second.)
665
+ def fps(); end
666
+
667
+ # Returns the name of a neutral font that is available on the current
668
+ # platform.
669
+ def default_font_name(); end
670
+
671
+ # Returns the width, in pixels, of the user's primary screen.
672
+ def screen_width(); end
673
+
674
+ # Returns the height, in pixels, of the user's primary screen.
675
+ def screen_height(); end
676
+
677
+ # Returns the user's preferred language, at the moment of calling the function. Expect return
678
+ # values such as 'en_US', 'de_DE.UTF-8', 'ja', 'zh-Hans'. You can rely only on the first two letters
679
+ # being a common language abbreviation.
680
+ def language(); end
681
+ end
576
682
  end
577
683
 
578
684
  # Small additions to Numeric to make it easier to integrate Gosu with
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gosu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.47.1
4
+ version: 0.7.48
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Julian Raschke
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2013-04-01 00:00:00 Z
12
+ date: 2013-07-14 00:00:00 Z
13
13
  dependencies: []
14
14
 
15
15
  description: " 2D game development library.\n\n Gosu features easy to use and game-friendly interfaces to 2D graphics\n and text (accelerated by 3D hardware), sound samples and music as well as\n keyboard, mouse and gamepad/joystick input.\n\n Also includes demos for integration with RMagick, Chipmunk and OpenGL.\n"