gosu 0.7.49 → 0.7.50
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gosu/Color.hpp +1 -1
- data/Gosu/Version.hpp +2 -2
- data/GosuImpl/RubyGosu.swg +1 -1
- data/GosuImpl/RubyGosu_wrap.cxx +119 -325
- data/GosuImpl/RubyGosu_wrap.h +5 -5
- 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: ecfaaac88bd71ec3192882427d272cab04134386
|
4
|
+
data.tar.gz: 734cf005cff5cadb1f8c446079d87c406b5235d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c936efca2c7b7924a151c35d6b2eafd3d4d02bec49cef0e0f63d1fb30fc650aaddc248ef0ed45938baa58f9fbcbe06bdd923aaf09668c85b98fe447dfa35999
|
7
|
+
data.tar.gz: 2fe577e9f04ad56536e10b7c58781f8e95417af937baa4bd96400f06b59611b6fc4d0f0278db12b1fc7d57496b13139646ec629c274f8493ef758ab44f6cf2ca
|
data/Gosu/Color.hpp
CHANGED
@@ -173,7 +173,6 @@ namespace Gosu
|
|
173
173
|
{
|
174
174
|
return a.gl() != b.gl();
|
175
175
|
}
|
176
|
-
#endif
|
177
176
|
|
178
177
|
//! Interpolates linearly between two colors, with a given weight towards
|
179
178
|
//! the second color.
|
@@ -199,6 +198,7 @@ namespace Gosu
|
|
199
198
|
GOSU_DEPRECATED const Color fuchsia (0xffff00ff);
|
200
199
|
GOSU_DEPRECATED const Color cyan (0xff00ffff);
|
201
200
|
}
|
201
|
+
#endif
|
202
202
|
}
|
203
203
|
|
204
204
|
#endif
|
data/Gosu/Version.hpp
CHANGED
data/GosuImpl/RubyGosu.swg
CHANGED
@@ -509,7 +509,7 @@ namespace Gosu {
|
|
509
509
|
%ignore Gosu::Image::Image(Graphics& graphics, const std::wstring& filename, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, bool tileable = false);
|
510
510
|
%ignore Gosu::Image::Image(Graphics& graphics, const Bitmap& source, bool tileable = false);
|
511
511
|
%ignore Gosu::Image::Image(Graphics& graphics, const Bitmap& source, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, bool tileable = false);
|
512
|
-
%ignore Gosu::Image::Image(
|
512
|
+
%ignore Gosu::Image::Image(GOSU_UNIQUE_PTR<ImageData> data);
|
513
513
|
%ignore Gosu::loadTiles;
|
514
514
|
%include "../Gosu/Image.hpp"
|
515
515
|
%extend Gosu::Image {
|
data/GosuImpl/RubyGosu_wrap.cxx
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version 2.0.
|
4
|
-
*
|
5
|
-
* This file is not intended to be easily readable and contains a number of
|
3
|
+
* Version 2.0.11
|
4
|
+
*
|
5
|
+
* This file is not intended to be easily readable and contains a number of
|
6
6
|
* coding conventions designed to improve portability and efficiency. Do not make
|
7
|
-
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
-
* interface file instead.
|
7
|
+
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
+
* interface file instead.
|
9
9
|
* ----------------------------------------------------------------------------- */
|
10
10
|
|
11
11
|
// This file was afterwards patched using the following instructions:
|
@@ -70,28 +70,28 @@ template <typename T> T SwigValueInit() {
|
|
70
70
|
#ifndef SWIGUNUSED
|
71
71
|
# if defined(__GNUC__)
|
72
72
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
73
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
73
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
74
74
|
# else
|
75
75
|
# define SWIGUNUSED
|
76
76
|
# endif
|
77
77
|
# elif defined(__ICC)
|
78
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
78
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
79
79
|
# else
|
80
|
-
# define SWIGUNUSED
|
80
|
+
# define SWIGUNUSED
|
81
81
|
# endif
|
82
82
|
#endif
|
83
83
|
|
84
84
|
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
85
85
|
# if defined(_MSC_VER)
|
86
86
|
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
87
|
-
# endif
|
87
|
+
# endif
|
88
88
|
#endif
|
89
89
|
|
90
90
|
#ifndef SWIGUNUSEDPARM
|
91
91
|
# ifdef __cplusplus
|
92
92
|
# define SWIGUNUSEDPARM(p)
|
93
93
|
# else
|
94
|
-
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
94
|
+
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
95
95
|
# endif
|
96
96
|
#endif
|
97
97
|
|
@@ -134,7 +134,7 @@ template <typename T> T SwigValueInit() {
|
|
134
134
|
# define SWIGSTDCALL __stdcall
|
135
135
|
# else
|
136
136
|
# define SWIGSTDCALL
|
137
|
-
# endif
|
137
|
+
# endif
|
138
138
|
#endif
|
139
139
|
|
140
140
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
@@ -179,28 +179,28 @@ template <typename T> T SwigValueInit() {
|
|
179
179
|
#ifndef SWIGUNUSED
|
180
180
|
# if defined(__GNUC__)
|
181
181
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
182
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
182
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
183
183
|
# else
|
184
184
|
# define SWIGUNUSED
|
185
185
|
# endif
|
186
186
|
# elif defined(__ICC)
|
187
|
-
# define SWIGUNUSED __attribute__ ((__unused__))
|
187
|
+
# define SWIGUNUSED __attribute__ ((__unused__))
|
188
188
|
# else
|
189
|
-
# define SWIGUNUSED
|
189
|
+
# define SWIGUNUSED
|
190
190
|
# endif
|
191
191
|
#endif
|
192
192
|
|
193
193
|
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
194
194
|
# if defined(_MSC_VER)
|
195
195
|
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
196
|
-
# endif
|
196
|
+
# endif
|
197
197
|
#endif
|
198
198
|
|
199
199
|
#ifndef SWIGUNUSEDPARM
|
200
200
|
# ifdef __cplusplus
|
201
201
|
# define SWIGUNUSEDPARM(p)
|
202
202
|
# else
|
203
|
-
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
203
|
+
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
204
204
|
# endif
|
205
205
|
#endif
|
206
206
|
|
@@ -243,7 +243,7 @@ template <typename T> T SwigValueInit() {
|
|
243
243
|
# define SWIGSTDCALL __stdcall
|
244
244
|
# else
|
245
245
|
# define SWIGSTDCALL
|
246
|
-
# endif
|
246
|
+
# endif
|
247
247
|
#endif
|
248
248
|
|
249
249
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
@@ -281,7 +281,7 @@ template <typename T> T SwigValueInit() {
|
|
281
281
|
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
|
282
282
|
creating a static or dynamic library from the SWIG runtime code.
|
283
283
|
In 99.9% of the cases, SWIG just needs to declare them as 'static'.
|
284
|
-
|
284
|
+
|
285
285
|
But only do this if strictly necessary, ie, if you have problems
|
286
286
|
with your compiler or suchlike.
|
287
287
|
*/
|
@@ -307,16 +307,16 @@ template <typename T> T SwigValueInit() {
|
|
307
307
|
#define SWIG_POINTER_OWN 0x1
|
308
308
|
|
309
309
|
|
310
|
-
/*
|
310
|
+
/*
|
311
311
|
Flags/methods for returning states.
|
312
|
-
|
313
|
-
The SWIG conversion methods, as ConvertPtr, return an integer
|
312
|
+
|
313
|
+
The SWIG conversion methods, as ConvertPtr, return an integer
|
314
314
|
that tells if the conversion was successful or not. And if not,
|
315
315
|
an error code can be returned (see swigerrors.swg for the codes).
|
316
|
-
|
316
|
+
|
317
317
|
Use the following macros/flags to set or process the returning
|
318
318
|
states.
|
319
|
-
|
319
|
+
|
320
320
|
In old versions of SWIG, code such as the following was usually written:
|
321
321
|
|
322
322
|
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
|
@@ -349,23 +349,23 @@ template <typename T> T SwigValueInit() {
|
|
349
349
|
} else {
|
350
350
|
// fail code
|
351
351
|
}
|
352
|
-
|
352
|
+
|
353
353
|
I.e., now SWIG_ConvertPtr can return new objects and you can
|
354
354
|
identify the case and take care of the deallocation. Of course that
|
355
355
|
also requires SWIG_ConvertPtr to return new result values, such as
|
356
356
|
|
357
|
-
int SWIG_ConvertPtr(obj, ptr,...) {
|
358
|
-
if (<obj is ok>) {
|
359
|
-
if (<need new object>) {
|
360
|
-
*ptr = <ptr to new allocated object>;
|
361
|
-
return SWIG_NEWOBJ;
|
362
|
-
} else {
|
363
|
-
*ptr = <ptr to old object>;
|
364
|
-
return SWIG_OLDOBJ;
|
365
|
-
}
|
366
|
-
} else {
|
367
|
-
return SWIG_BADOBJ;
|
368
|
-
}
|
357
|
+
int SWIG_ConvertPtr(obj, ptr,...) {
|
358
|
+
if (<obj is ok>) {
|
359
|
+
if (<need new object>) {
|
360
|
+
*ptr = <ptr to new allocated object>;
|
361
|
+
return SWIG_NEWOBJ;
|
362
|
+
} else {
|
363
|
+
*ptr = <ptr to old object>;
|
364
|
+
return SWIG_OLDOBJ;
|
365
|
+
}
|
366
|
+
} else {
|
367
|
+
return SWIG_BADOBJ;
|
368
|
+
}
|
369
369
|
}
|
370
370
|
|
371
371
|
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
|
@@ -379,17 +379,17 @@ template <typename T> T SwigValueInit() {
|
|
379
379
|
int fooi(int);
|
380
380
|
|
381
381
|
and you call
|
382
|
-
|
382
|
+
|
383
383
|
food(1) // cast rank '1' (1 -> 1.0)
|
384
384
|
fooi(1) // cast rank '0'
|
385
385
|
|
386
386
|
just use the SWIG_AddCast()/SWIG_CheckState()
|
387
387
|
*/
|
388
388
|
|
389
|
-
#define SWIG_OK (0)
|
389
|
+
#define SWIG_OK (0)
|
390
390
|
#define SWIG_ERROR (-1)
|
391
391
|
#define SWIG_IsOK(r) (r >= 0)
|
392
|
-
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
392
|
+
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
393
393
|
|
394
394
|
/* The CastRankLimit says how many bits are used for the cast rank */
|
395
395
|
#define SWIG_CASTRANKLIMIT (1 << 8)
|
@@ -420,11 +420,11 @@ template <typename T> T SwigValueInit() {
|
|
420
420
|
# endif
|
421
421
|
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
|
422
422
|
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
|
423
|
-
SWIGINTERNINLINE int SWIG_AddCast(int r) {
|
423
|
+
SWIGINTERNINLINE int SWIG_AddCast(int r) {
|
424
424
|
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
|
425
425
|
}
|
426
|
-
SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
427
|
-
return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
|
426
|
+
SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
427
|
+
return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
|
428
428
|
}
|
429
429
|
#else /* no cast-rank mode */
|
430
430
|
# define SWIG_AddCast(r) (r)
|
@@ -471,7 +471,7 @@ typedef struct swig_module_info {
|
|
471
471
|
void *clientdata; /* Language specific module data */
|
472
472
|
} swig_module_info;
|
473
473
|
|
474
|
-
/*
|
474
|
+
/*
|
475
475
|
Compare two type names skipping the space characters, therefore
|
476
476
|
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
|
477
477
|
|
@@ -544,7 +544,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) {
|
|
544
544
|
return 0;
|
545
545
|
}
|
546
546
|
|
547
|
-
/*
|
547
|
+
/*
|
548
548
|
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
|
549
549
|
*/
|
550
550
|
SWIGRUNTIME swig_cast_info *
|
@@ -579,7 +579,7 @@ SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
|
|
579
579
|
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
|
580
580
|
}
|
581
581
|
|
582
|
-
/*
|
582
|
+
/*
|
583
583
|
Dynamic pointer casting. Down an inheritance hierarchy
|
584
584
|
*/
|
585
585
|
SWIGRUNTIME swig_type_info *
|
@@ -623,7 +623,7 @@ SWIG_TypePrettyName(const swig_type_info *type) {
|
|
623
623
|
return type->name;
|
624
624
|
}
|
625
625
|
|
626
|
-
/*
|
626
|
+
/*
|
627
627
|
Set the clientdata field for a type
|
628
628
|
*/
|
629
629
|
SWIGRUNTIME void
|
@@ -631,14 +631,14 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
|
|
631
631
|
swig_cast_info *cast = ti->cast;
|
632
632
|
/* if (ti->clientdata == clientdata) return; */
|
633
633
|
ti->clientdata = clientdata;
|
634
|
-
|
634
|
+
|
635
635
|
while (cast) {
|
636
636
|
if (!cast->converter) {
|
637
637
|
swig_type_info *tc = cast->type;
|
638
638
|
if (!tc->clientdata) {
|
639
639
|
SWIG_TypeClientData(tc, clientdata);
|
640
640
|
}
|
641
|
-
}
|
641
|
+
}
|
642
642
|
cast = cast->next;
|
643
643
|
}
|
644
644
|
}
|
@@ -647,18 +647,18 @@ SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
|
|
647
647
|
SWIG_TypeClientData(ti, clientdata);
|
648
648
|
ti->owndata = 1;
|
649
649
|
}
|
650
|
-
|
650
|
+
|
651
651
|
/*
|
652
652
|
Search for a swig_type_info structure only by mangled name
|
653
653
|
Search is a O(log #types)
|
654
|
-
|
655
|
-
We start searching at module start, and finish searching when start == end.
|
654
|
+
|
655
|
+
We start searching at module start, and finish searching when start == end.
|
656
656
|
Note: if start == end at the beginning of the function, we go all the way around
|
657
657
|
the circular list.
|
658
658
|
*/
|
659
659
|
SWIGRUNTIME swig_type_info *
|
660
|
-
SWIG_MangledTypeQueryModule(swig_module_info *start,
|
661
|
-
swig_module_info *end,
|
660
|
+
SWIG_MangledTypeQueryModule(swig_module_info *start,
|
661
|
+
swig_module_info *end,
|
662
662
|
const char *name) {
|
663
663
|
swig_module_info *iter = start;
|
664
664
|
do {
|
@@ -667,11 +667,11 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
|
|
667
667
|
register size_t r = iter->size - 1;
|
668
668
|
do {
|
669
669
|
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
|
670
|
-
register size_t i = (l + r) >> 1;
|
670
|
+
register size_t i = (l + r) >> 1;
|
671
671
|
const char *iname = iter->types[i]->name;
|
672
672
|
if (iname) {
|
673
673
|
register int compare = strcmp(name, iname);
|
674
|
-
if (compare == 0) {
|
674
|
+
if (compare == 0) {
|
675
675
|
return iter->types[i];
|
676
676
|
} else if (compare < 0) {
|
677
677
|
if (i) {
|
@@ -696,14 +696,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
|
|
696
696
|
Search for a swig_type_info structure for either a mangled name or a human readable name.
|
697
697
|
It first searches the mangled names of the types, which is a O(log #types)
|
698
698
|
If a type is not found it then searches the human readable names, which is O(#types).
|
699
|
-
|
700
|
-
We start searching at module start, and finish searching when start == end.
|
699
|
+
|
700
|
+
We start searching at module start, and finish searching when start == end.
|
701
701
|
Note: if start == end at the beginning of the function, we go all the way around
|
702
702
|
the circular list.
|
703
703
|
*/
|
704
704
|
SWIGRUNTIME swig_type_info *
|
705
|
-
SWIG_TypeQueryModule(swig_module_info *start,
|
706
|
-
swig_module_info *end,
|
705
|
+
SWIG_TypeQueryModule(swig_module_info *start,
|
706
|
+
swig_module_info *end,
|
707
707
|
const char *name) {
|
708
708
|
/* STEP 1: Search the name field using binary search */
|
709
709
|
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
|
@@ -722,12 +722,12 @@ SWIG_TypeQueryModule(swig_module_info *start,
|
|
722
722
|
iter = iter->next;
|
723
723
|
} while (iter != end);
|
724
724
|
}
|
725
|
-
|
725
|
+
|
726
726
|
/* neither found a match */
|
727
727
|
return 0;
|
728
728
|
}
|
729
729
|
|
730
|
-
/*
|
730
|
+
/*
|
731
731
|
Pack binary data into a string
|
732
732
|
*/
|
733
733
|
SWIGRUNTIME char *
|
@@ -743,7 +743,7 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
|
|
743
743
|
return c;
|
744
744
|
}
|
745
745
|
|
746
|
-
/*
|
746
|
+
/*
|
747
747
|
Unpack binary data from a string
|
748
748
|
*/
|
749
749
|
SWIGRUNTIME const char *
|
@@ -757,21 +757,21 @@ SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|
757
757
|
uu = ((d - '0') << 4);
|
758
758
|
else if ((d >= 'a') && (d <= 'f'))
|
759
759
|
uu = ((d - ('a'-10)) << 4);
|
760
|
-
else
|
760
|
+
else
|
761
761
|
return (char *) 0;
|
762
762
|
d = *(c++);
|
763
763
|
if ((d >= '0') && (d <= '9'))
|
764
764
|
uu |= (d - '0');
|
765
765
|
else if ((d >= 'a') && (d <= 'f'))
|
766
766
|
uu |= (d - ('a'-10));
|
767
|
-
else
|
767
|
+
else
|
768
768
|
return (char *) 0;
|
769
769
|
*u = uu;
|
770
770
|
}
|
771
771
|
return c;
|
772
772
|
}
|
773
773
|
|
774
|
-
/*
|
774
|
+
/*
|
775
775
|
Pack 'void *' into a string buffer.
|
776
776
|
*/
|
777
777
|
SWIGRUNTIME char *
|
@@ -831,18 +831,18 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
831
831
|
#endif
|
832
832
|
|
833
833
|
/* Errors in SWIG */
|
834
|
-
#define SWIG_UnknownError -1
|
835
|
-
#define SWIG_IOError -2
|
836
|
-
#define SWIG_RuntimeError -3
|
837
|
-
#define SWIG_IndexError -4
|
838
|
-
#define SWIG_TypeError -5
|
839
|
-
#define SWIG_DivisionByZero -6
|
840
|
-
#define SWIG_OverflowError -7
|
841
|
-
#define SWIG_SyntaxError -8
|
842
|
-
#define SWIG_ValueError -9
|
834
|
+
#define SWIG_UnknownError -1
|
835
|
+
#define SWIG_IOError -2
|
836
|
+
#define SWIG_RuntimeError -3
|
837
|
+
#define SWIG_IndexError -4
|
838
|
+
#define SWIG_TypeError -5
|
839
|
+
#define SWIG_DivisionByZero -6
|
840
|
+
#define SWIG_OverflowError -7
|
841
|
+
#define SWIG_SyntaxError -8
|
842
|
+
#define SWIG_ValueError -9
|
843
843
|
#define SWIG_SystemError -10
|
844
844
|
#define SWIG_AttributeError -11
|
845
|
-
#define SWIG_MemoryError -12
|
845
|
+
#define SWIG_MemoryError -12
|
846
846
|
#define SWIG_NullReferenceError -13
|
847
847
|
|
848
848
|
|
@@ -2180,7 +2180,7 @@ static VALUE mGosu;
|
|
2180
2180
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
2181
2181
|
|
2182
2182
|
|
2183
|
-
#define SWIGVERSION
|
2183
|
+
#define SWIGVERSION 0x020011
|
2184
2184
|
#define SWIG_VERSION SWIGVERSION
|
2185
2185
|
|
2186
2186
|
|
@@ -2421,7 +2421,7 @@ SWIG_ruby_failed(void)
|
|
2421
2421
|
}
|
2422
2422
|
|
2423
2423
|
|
2424
|
-
/*@SWIG:/usr/local/Cellar/swig/2.0.
|
2424
|
+
/*@SWIG:/usr/local/Cellar/swig/2.0.11/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2425
2425
|
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
|
2426
2426
|
{
|
2427
2427
|
VALUE obj = args[0];
|
@@ -2463,7 +2463,7 @@ SWIG_From_unsigned_SS_int (unsigned int value)
|
|
2463
2463
|
#include <string>
|
2464
2464
|
|
2465
2465
|
|
2466
|
-
/*@SWIG:/usr/local/Cellar/swig/2.0.
|
2466
|
+
/*@SWIG:/usr/local/Cellar/swig/2.0.11/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2467
2467
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
2468
2468
|
{
|
2469
2469
|
VALUE obj = args[0];
|
@@ -2563,7 +2563,7 @@ SWIG_From_bool (bool value)
|
|
2563
2563
|
}
|
2564
2564
|
|
2565
2565
|
|
2566
|
-
/*@SWIG:/usr/local/Cellar/swig/2.0.
|
2566
|
+
/*@SWIG:/usr/local/Cellar/swig/2.0.11/share/swig/2.0.11/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2567
2567
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
2568
2568
|
{
|
2569
2569
|
VALUE obj = args[0];
|
@@ -2622,13 +2622,37 @@ SWIGINTERN void Gosu_Font_set_image(Gosu::Font *self,wchar_t wc,VALUE source){
|
|
2622
2622
|
#include <float.h>
|
2623
2623
|
|
2624
2624
|
|
2625
|
+
#include <math.h>
|
2626
|
+
|
2627
|
+
|
2628
|
+
/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
|
2629
|
+
#ifndef SWIG_isfinite
|
2630
|
+
# if defined(isfinite)
|
2631
|
+
# define SWIG_isfinite(X) (isfinite(X))
|
2632
|
+
# elif defined(_MSC_VER)
|
2633
|
+
# define SWIG_isfinite(X) (_finite(X))
|
2634
|
+
# elif defined(__sun) && defined(__SVR4)
|
2635
|
+
# include <ieeefp.h>
|
2636
|
+
# define SWIG_isfinite(X) (finite(X))
|
2637
|
+
# endif
|
2638
|
+
#endif
|
2639
|
+
|
2640
|
+
|
2641
|
+
/* Accept infinite as a valid float value unless we are unable to check if a value is finite */
|
2642
|
+
#ifdef SWIG_isfinite
|
2643
|
+
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
|
2644
|
+
#else
|
2645
|
+
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
|
2646
|
+
#endif
|
2647
|
+
|
2648
|
+
|
2625
2649
|
SWIGINTERN int
|
2626
2650
|
SWIG_AsVal_float (VALUE obj, float *val)
|
2627
2651
|
{
|
2628
2652
|
double v;
|
2629
2653
|
int res = SWIG_AsVal_double (obj, &v);
|
2630
2654
|
if (SWIG_IsOK(res)) {
|
2631
|
-
if ((v
|
2655
|
+
if (SWIG_Float_Overflow_Check(v)) {
|
2632
2656
|
return SWIG_OverflowError;
|
2633
2657
|
} else {
|
2634
2658
|
if (val) *val = static_cast< float >(v);
|
@@ -5053,223 +5077,6 @@ free_Gosu_Color(Gosu::Color *arg1) {
|
|
5053
5077
|
delete arg1;
|
5054
5078
|
}
|
5055
5079
|
|
5056
|
-
SWIGINTERN VALUE
|
5057
|
-
_wrap_interpolate(int argc, VALUE *argv, VALUE self) {
|
5058
|
-
Gosu::Color arg1 ;
|
5059
|
-
Gosu::Color arg2 ;
|
5060
|
-
double arg3 = (double) 0.5 ;
|
5061
|
-
double val3 ;
|
5062
|
-
int ecode3 = 0 ;
|
5063
|
-
Gosu::Color result;
|
5064
|
-
VALUE vresult = Qnil;
|
5065
|
-
|
5066
|
-
if ((argc < 2) || (argc > 3)) {
|
5067
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5068
|
-
}
|
5069
|
-
{
|
5070
|
-
if (TYPE(argv[0]) == T_FIXNUM || TYPE(argv[0]) == T_BIGNUM)
|
5071
|
-
arg1 = Gosu::Color(NUM2ULONG(argv[0]));
|
5072
|
-
else
|
5073
|
-
{
|
5074
|
-
void* ptr;
|
5075
|
-
int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Gosu__Color, 0);
|
5076
|
-
if (!SWIG_IsOK(res))
|
5077
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid value");
|
5078
|
-
else if (!ptr)
|
5079
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid null reference of type Gosu::Color");
|
5080
|
-
else
|
5081
|
-
arg1 = *reinterpret_cast<Gosu::Color*>(ptr);
|
5082
|
-
}
|
5083
|
-
}
|
5084
|
-
{
|
5085
|
-
if (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM)
|
5086
|
-
arg2 = Gosu::Color(NUM2ULONG(argv[1]));
|
5087
|
-
else
|
5088
|
-
{
|
5089
|
-
void* ptr;
|
5090
|
-
int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Gosu__Color, 0);
|
5091
|
-
if (!SWIG_IsOK(res))
|
5092
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid value");
|
5093
|
-
else if (!ptr)
|
5094
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid null reference of type Gosu::Color");
|
5095
|
-
else
|
5096
|
-
arg2 = *reinterpret_cast<Gosu::Color*>(ptr);
|
5097
|
-
}
|
5098
|
-
}
|
5099
|
-
if (argc > 2) {
|
5100
|
-
ecode3 = SWIG_AsVal_double(argv[2], &val3);
|
5101
|
-
if (!SWIG_IsOK(ecode3)) {
|
5102
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","Gosu::interpolate", 3, argv[2] ));
|
5103
|
-
}
|
5104
|
-
arg3 = static_cast< double >(val3);
|
5105
|
-
}
|
5106
|
-
{
|
5107
|
-
try {
|
5108
|
-
result = Gosu::interpolate(arg1,arg2,arg3);
|
5109
|
-
} catch (const std::exception& e) {
|
5110
|
-
SWIG_exception(SWIG_RuntimeError, e.what());
|
5111
|
-
}
|
5112
|
-
}
|
5113
|
-
vresult = SWIG_NewPointerObj((new Gosu::Color(static_cast< const Gosu::Color& >(result))), SWIGTYPE_p_Gosu__Color, SWIG_POINTER_OWN | 0 );
|
5114
|
-
return vresult;
|
5115
|
-
fail:
|
5116
|
-
return Qnil;
|
5117
|
-
}
|
5118
|
-
|
5119
|
-
|
5120
|
-
SWIGINTERN VALUE
|
5121
|
-
_wrap_multiply(int argc, VALUE *argv, VALUE self) {
|
5122
|
-
Gosu::Color arg1 ;
|
5123
|
-
Gosu::Color arg2 ;
|
5124
|
-
Gosu::Color result;
|
5125
|
-
VALUE vresult = Qnil;
|
5126
|
-
|
5127
|
-
if ((argc < 2) || (argc > 2)) {
|
5128
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5129
|
-
}
|
5130
|
-
{
|
5131
|
-
if (TYPE(argv[0]) == T_FIXNUM || TYPE(argv[0]) == T_BIGNUM)
|
5132
|
-
arg1 = Gosu::Color(NUM2ULONG(argv[0]));
|
5133
|
-
else
|
5134
|
-
{
|
5135
|
-
void* ptr;
|
5136
|
-
int res = SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_Gosu__Color, 0);
|
5137
|
-
if (!SWIG_IsOK(res))
|
5138
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid value");
|
5139
|
-
else if (!ptr)
|
5140
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid null reference of type Gosu::Color");
|
5141
|
-
else
|
5142
|
-
arg1 = *reinterpret_cast<Gosu::Color*>(ptr);
|
5143
|
-
}
|
5144
|
-
}
|
5145
|
-
{
|
5146
|
-
if (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM)
|
5147
|
-
arg2 = Gosu::Color(NUM2ULONG(argv[1]));
|
5148
|
-
else
|
5149
|
-
{
|
5150
|
-
void* ptr;
|
5151
|
-
int res = SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_Gosu__Color, 0);
|
5152
|
-
if (!SWIG_IsOK(res))
|
5153
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid value");
|
5154
|
-
else if (!ptr)
|
5155
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid null reference of type Gosu::Color");
|
5156
|
-
else
|
5157
|
-
arg2 = *reinterpret_cast<Gosu::Color*>(ptr);
|
5158
|
-
}
|
5159
|
-
}
|
5160
|
-
{
|
5161
|
-
try {
|
5162
|
-
result = Gosu::multiply(arg1,arg2);
|
5163
|
-
} catch (const std::exception& e) {
|
5164
|
-
SWIG_exception(SWIG_RuntimeError, e.what());
|
5165
|
-
}
|
5166
|
-
}
|
5167
|
-
vresult = SWIG_NewPointerObj((new Gosu::Color(static_cast< const Gosu::Color& >(result))), SWIGTYPE_p_Gosu__Color, SWIG_POINTER_OWN | 0 );
|
5168
|
-
return vresult;
|
5169
|
-
fail:
|
5170
|
-
return Qnil;
|
5171
|
-
}
|
5172
|
-
|
5173
|
-
|
5174
|
-
SWIGINTERN VALUE
|
5175
|
-
_wrap_none_get(VALUE self) {
|
5176
|
-
VALUE _val;
|
5177
|
-
|
5178
|
-
_val = SWIG_NewPointerObj(SWIG_as_voidptr(&Gosu::Colors::none), SWIGTYPE_p_Gosu__Color, 0 );
|
5179
|
-
return _val;
|
5180
|
-
}
|
5181
|
-
|
5182
|
-
|
5183
|
-
SWIGINTERN VALUE
|
5184
|
-
_wrap_black_get(VALUE self) {
|
5185
|
-
VALUE _val;
|
5186
|
-
|
5187
|
-
_val = SWIG_NewPointerObj(SWIG_as_voidptr(&Gosu::Colors::black), SWIGTYPE_p_Gosu__Color, 0 );
|
5188
|
-
return _val;
|
5189
|
-
}
|
5190
|
-
|
5191
|
-
|
5192
|
-
SWIGINTERN VALUE
|
5193
|
-
_wrap_gray_get(VALUE self) {
|
5194
|
-
VALUE _val;
|
5195
|
-
|
5196
|
-
_val = SWIG_NewPointerObj(SWIG_as_voidptr(&Gosu::Colors::gray), SWIGTYPE_p_Gosu__Color, 0 );
|
5197
|
-
return _val;
|
5198
|
-
}
|
5199
|
-
|
5200
|
-
|
5201
|
-
SWIGINTERN VALUE
|
5202
|
-
_wrap_white_get(VALUE self) {
|
5203
|
-
VALUE _val;
|
5204
|
-
|
5205
|
-
_val = SWIG_NewPointerObj(SWIG_as_voidptr(&Gosu::Colors::white), SWIGTYPE_p_Gosu__Color, 0 );
|
5206
|
-
return _val;
|
5207
|
-
}
|
5208
|
-
|
5209
|
-
|
5210
|
-
SWIGINTERN VALUE
|
5211
|
-
_wrap_aqua_get(VALUE self) {
|
5212
|
-
VALUE _val;
|
5213
|
-
|
5214
|
-
_val = SWIG_NewPointerObj(SWIG_as_voidptr(&Gosu::Colors::aqua), SWIGTYPE_p_Gosu__Color, 0 );
|
5215
|
-
return _val;
|
5216
|
-
}
|
5217
|
-
|
5218
|
-
|
5219
|
-
SWIGINTERN VALUE
|
5220
|
-
_wrap_red_get(VALUE self) {
|
5221
|
-
VALUE _val;
|
5222
|
-
|
5223
|
-
_val = SWIG_NewPointerObj(SWIG_as_voidptr(&Gosu::Colors::red), SWIGTYPE_p_Gosu__Color, 0 );
|
5224
|
-
return _val;
|
5225
|
-
}
|
5226
|
-
|
5227
|
-
|
5228
|
-
SWIGINTERN VALUE
|
5229
|
-
_wrap_green_get(VALUE self) {
|
5230
|
-
VALUE _val;
|
5231
|
-
|
5232
|
-
_val = SWIG_NewPointerObj(SWIG_as_voidptr(&Gosu::Colors::green), SWIGTYPE_p_Gosu__Color, 0 );
|
5233
|
-
return _val;
|
5234
|
-
}
|
5235
|
-
|
5236
|
-
|
5237
|
-
SWIGINTERN VALUE
|
5238
|
-
_wrap_blue_get(VALUE self) {
|
5239
|
-
VALUE _val;
|
5240
|
-
|
5241
|
-
_val = SWIG_NewPointerObj(SWIG_as_voidptr(&Gosu::Colors::blue), SWIGTYPE_p_Gosu__Color, 0 );
|
5242
|
-
return _val;
|
5243
|
-
}
|
5244
|
-
|
5245
|
-
|
5246
|
-
SWIGINTERN VALUE
|
5247
|
-
_wrap_yellow_get(VALUE self) {
|
5248
|
-
VALUE _val;
|
5249
|
-
|
5250
|
-
_val = SWIG_NewPointerObj(SWIG_as_voidptr(&Gosu::Colors::yellow), SWIGTYPE_p_Gosu__Color, 0 );
|
5251
|
-
return _val;
|
5252
|
-
}
|
5253
|
-
|
5254
|
-
|
5255
|
-
SWIGINTERN VALUE
|
5256
|
-
_wrap_fuchsia_get(VALUE self) {
|
5257
|
-
VALUE _val;
|
5258
|
-
|
5259
|
-
_val = SWIG_NewPointerObj(SWIG_as_voidptr(&Gosu::Colors::fuchsia), SWIGTYPE_p_Gosu__Color, 0 );
|
5260
|
-
return _val;
|
5261
|
-
}
|
5262
|
-
|
5263
|
-
|
5264
|
-
SWIGINTERN VALUE
|
5265
|
-
_wrap_cyan_get(VALUE self) {
|
5266
|
-
VALUE _val;
|
5267
|
-
|
5268
|
-
_val = SWIG_NewPointerObj(SWIG_as_voidptr(&Gosu::Colors::cyan), SWIGTYPE_p_Gosu__Color, 0 );
|
5269
|
-
return _val;
|
5270
|
-
}
|
5271
|
-
|
5272
|
-
|
5273
5080
|
static swig_class SwigClassFont;
|
5274
5081
|
|
5275
5082
|
SWIGINTERN VALUE
|
@@ -11047,18 +10854,18 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
11047
10854
|
|
11048
10855
|
/* -----------------------------------------------------------------------------
|
11049
10856
|
* Type initialization:
|
11050
|
-
* This problem is tough by the requirement that no dynamic
|
11051
|
-
* memory is used. Also, since swig_type_info structures store pointers to
|
10857
|
+
* This problem is tough by the requirement that no dynamic
|
10858
|
+
* memory is used. Also, since swig_type_info structures store pointers to
|
11052
10859
|
* swig_cast_info structures and swig_cast_info structures store pointers back
|
11053
|
-
* to swig_type_info structures, we need some lookup code at initialization.
|
11054
|
-
* The idea is that swig generates all the structures that are needed.
|
11055
|
-
* The runtime then collects these partially filled structures.
|
11056
|
-
* The SWIG_InitializeModule function takes these initial arrays out of
|
10860
|
+
* to swig_type_info structures, we need some lookup code at initialization.
|
10861
|
+
* The idea is that swig generates all the structures that are needed.
|
10862
|
+
* The runtime then collects these partially filled structures.
|
10863
|
+
* The SWIG_InitializeModule function takes these initial arrays out of
|
11057
10864
|
* swig_module, and does all the lookup, filling in the swig_module.types
|
11058
10865
|
* array with the correct data and linking the correct swig_cast_info
|
11059
10866
|
* structures together.
|
11060
10867
|
*
|
11061
|
-
* The generated swig_type_info structures are assigned staticly to an initial
|
10868
|
+
* The generated swig_type_info structures are assigned staticly to an initial
|
11062
10869
|
* array. We just loop through that array, and handle each type individually.
|
11063
10870
|
* First we lookup if this type has been already loaded, and if so, use the
|
11064
10871
|
* loaded structure instead of the generated one. Then we have to fill in the
|
@@ -11068,17 +10875,17 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
11068
10875
|
* a column is one of the swig_cast_info structures for that type.
|
11069
10876
|
* The cast_initial array is actually an array of arrays, because each row has
|
11070
10877
|
* a variable number of columns. So to actually build the cast linked list,
|
11071
|
-
* we find the array of casts associated with the type, and loop through it
|
10878
|
+
* we find the array of casts associated with the type, and loop through it
|
11072
10879
|
* adding the casts to the list. The one last trick we need to do is making
|
11073
10880
|
* sure the type pointer in the swig_cast_info struct is correct.
|
11074
10881
|
*
|
11075
|
-
* First off, we lookup the cast->type name to see if it is already loaded.
|
10882
|
+
* First off, we lookup the cast->type name to see if it is already loaded.
|
11076
10883
|
* There are three cases to handle:
|
11077
10884
|
* 1) If the cast->type has already been loaded AND the type we are adding
|
11078
10885
|
* casting info to has not been loaded (it is in this module), THEN we
|
11079
10886
|
* replace the cast->type pointer with the type pointer that has already
|
11080
10887
|
* been loaded.
|
11081
|
-
* 2) If BOTH types (the one we are adding casting info to, and the
|
10888
|
+
* 2) If BOTH types (the one we are adding casting info to, and the
|
11082
10889
|
* cast->type) are loaded, THEN the cast info has already been loaded by
|
11083
10890
|
* the previous module so we just ignore it.
|
11084
10891
|
* 3) Finally, if cast->type has not already been loaded, then we add that
|
@@ -11141,7 +10948,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
11141
10948
|
module_head->next = &swig_module;
|
11142
10949
|
}
|
11143
10950
|
|
11144
|
-
/* When multiple
|
10951
|
+
/* When multiple interpreters are used, a module could have already been initialized in
|
11145
10952
|
a different interpreter, but not yet have a pointer in this interpreter.
|
11146
10953
|
In this case, we do not want to continue adding types... everything should be
|
11147
10954
|
set up already */
|
@@ -11155,7 +10962,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
11155
10962
|
swig_type_info *type = 0;
|
11156
10963
|
swig_type_info *ret;
|
11157
10964
|
swig_cast_info *cast;
|
11158
|
-
|
10965
|
+
|
11159
10966
|
#ifdef SWIGRUNTIME_DEBUG
|
11160
10967
|
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
|
11161
10968
|
#endif
|
@@ -11182,7 +10989,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
11182
10989
|
/* Insert casting types */
|
11183
10990
|
cast = swig_module.cast_initial[i];
|
11184
10991
|
while (cast->type) {
|
11185
|
-
|
10992
|
+
|
11186
10993
|
/* Don't need to add information already in the list */
|
11187
10994
|
ret = 0;
|
11188
10995
|
#ifdef SWIGRUNTIME_DEBUG
|
@@ -11300,8 +11107,8 @@ SWIGEXPORT void Init_gosu(void) {
|
|
11300
11107
|
SWIG_RubyInitializeTrackings();
|
11301
11108
|
rb_define_const(mGosu, "MAJOR_VERSION", SWIG_From_int(static_cast< int >(0)));
|
11302
11109
|
rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(7)));
|
11303
|
-
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(
|
11304
|
-
rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.7.
|
11110
|
+
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(50)));
|
11111
|
+
rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.7.50"));
|
11305
11112
|
rb_define_const(mGosu, "GOSU_COPYRIGHT_NOTICE", SWIG_FromCharPtr(" \t\t GNU LIBRARY GENERAL PUBLIC LICENSE\t\t Version 2, June 1991\n\n\n\n Copyright (C) 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n\n[This is the first released version of the library GPL. It is numbered 2 because it goes with version 2 of the ordinary GPL.]\n\n\t\t\t Preamble\n\n The licenses for most software are designed to take away yourfreedom to share and change it. By contrast, the GNU General PublicLicenses are intended to guarantee your freedom to share and changefree software--to make sure the software is free for all its users.\n\n This license, the Library General Public License, applies to somespecially designated Free Software Foundation software, and to anyother libraries whose authors decide to use it. You can use it foryour libraries, too.\n\n When we speak of free software, we are referring to freedom, notprice. Our General Public Licenses are designed to make sure that youhave the freedom to distribute copies of free software (and charge forthis service if you wish), that you receive source code or can get itif you want it, that you can change the software or use pieces of itin new free programs; and that you know you can do these things.\n\n To protect your rights, we need to make restrictions that forbidanyone to deny you these rights or to ask you to surrender the rights.These restrictions translate to certain responsibilities for you ifyou distribute copies of the library, or if you modify it.\n\n For example, if you distribute copies of the library, whether gratisor for a fee, you must give the recipients all the rights that we gaveyou. You must make sure that they, too, receive or can get the sourcecode. If you link a program with the library, you must providecomplete object files to the recipients so that they can relink themwith the library, after making changes to the library and recompilingit. And you must show them these terms so they know their rights.\n\n Our method of protecting your rights has two steps: (1) copyrightthe library, and (2) offer you this license which gives you legalpermission to copy, distribute and/or modify the library.\n\n Also, for each distributor\'s protection, we want to make certainthat everyone understands that there is no warranty for this freelibrary. If the library is modified by someone else and passed on, wewant its recipients to know that what they have is not the originalversion, so that any problems introduced by others will not reflect onthe original authors\' reputations.\14 Finally, any free program is threatened constantly by softwarepatents. We wish to avoid the danger that companies distributing freesoftware will individually obtain patent licenses, thus in effecttransforming the program into proprietary software. To prevent this,we have made it clear that any patent must be licensed for everyone\'sfree use or not licensed at all.\n\n Most GNU software, including some libraries, is covered by the ordinaryGNU General Public License, which was designed for utility programs. Thislicense, the GNU Library General Public License, applies to certaindesignated libraries. This license is quite different from the ordinaryone; be sure to read it in full, and don\'t assume that anything in it isthe same as in the ordinary license.\n\n The reason we have a separate public license for some libraries is thatthey blur the distinction we usually make between modifying or adding to aprogram and simply using it. Linking a program with a library, withoutchanging the library, is in some sense simply using the library, and isanalogous to running a utility program or application program. However, ina textual and legal sense, the linked executable is a combined work, aderivative of the original library, and the ordinary General Public Licensetreats it as such.\n\n Because of this blurred distinction, using the ordinary GeneralPublic License for libraries did not effectively promote softwaresharing, because most developers did not use the libraries. Weconcluded that weaker conditions might promote sharing better.\n\n However, unrestricted linking of non-free programs would deprive theusers of those programs of all benefit from the free status of thelibraries themselves. This Library General Public License is intended topermit developers of non-free programs to use free libraries, whilepreserving your freedom as a user of such programs to change the freelibraries that are incorporated in them. (We have not seen how to achievethis as regards changes in header files, but we have achieved it as regardschanges in the actual functions of the Library.) The hope is that thiswill lead to faster development of free libraries.\n\n The precise terms and conditions for copying, distribution andmodification follow. Pay close attention to the difference between a\"work based on the library\" and a \"work that uses the library\". Theformer contains code derived from the library, while the latter onlyworks together with the library.\n\n Note that it is possible for a library to be covered by the ordinaryGeneral Public License rather than by this special one.\14\t\t GNU LIBRARY GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. This License Agreement applies to any software library whichcontains a notice placed by the copyright holder or other authorizedparty saying it may be distributed under the terms of this LibraryGeneral Public License (also called \"this License\"). Each licensee isaddressed as \"you\".\n\n A \"library\" means a collection of software functions and/or dataprepared so as to be conveniently linked with application programs(which use some of those functions and data) to form executables.\n\n The \"Library\", below, refers to any such software library or workwhich has been distributed under these terms. A \"work based on theLibrary\" means either the Library or any derivative work undercopyright law: that is to say, a work containing the Library or aportion of it, either verbatim or with modifications and/or translatedstraightforwardly into another language. (Hereinafter, translation isincluded without limitation in the term \"modification\".)\n\n \"Source code\" for a work means the preferred form of the work formaking modifications to it. For a library, complete source code meansall the source code for all modules it contains, plus any associatedinterface definition files, plus the scripts used to control compilationand installation of the library.\n\n Activities other than copying, distribution and modification are notcovered by this License; they are outside its scope. The act ofrunning a program using the Library is not restricted, and output fromsuch a program is covered only if its contents constitute a work basedon the Library (independent of the use of the Library in a tool forwriting it). Whether that is true depends on what the Library doesand what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library\'scomplete source code as you receive it, in any medium, provided thatyou conspicuously and appropriately publish on each copy anappropriate copyright notice and disclaimer of warranty; keep intactall the notices that refer to this License and to the absence of anywarranty; and distribute a copy of this License along with theLibrary.\n\n You may charge a fee for the physical act of transferring a copy,and you may at your option offer warranty protection in exchange for afee.\14 2. You may modify your copy or copies of the Library or any portionof it, thus forming a work based on the Library, and copy anddistribute such modifications or work under the terms of Section 1above, provided that you also meet all of these conditions:\n\n a) The modified work must itself be a software library.\n\n b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change.\n\n c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License.\n\n d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful.\n\n (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.)\n\nThese requirements apply to the modified work as a whole. Ifidentifiable sections of that work are not derived from the Library,and can be reasonably considered independent and separate works inthemselves, then this License, and its terms, do not apply to thosesections when you distribute them as separate works. But when youdistribute the same sections as part of a whole which is a work basedon the Library, the distribution of the whole must be on the terms ofthis License, whose permissions for other licensees extend to theentire whole, and thus to each and every part regardless of who wroteit.\n\nThus, it is not the intent of this section to claim rights or contestyour rights to work written entirely by you; rather, the intent is toexercise the right to control the distribution of derivative orcollective works based on the Library.\n\nIn addition, mere aggregation of another work not based on the Librarywith the Library (or with a work based on the Library) on a volume ofa storage or distribution medium does not bring the other work underthe scope of this License.\n\n 3. You may opt to apply the terms of the ordinary GNU General PublicLicense instead of this License to a given copy of the Library. To dothis, you must alter all the notices that refer to this License, sothat they refer to the ordinary GNU General Public License, version 2,instead of to this License. (If a newer version than version 2 of theordinary GNU General Public License has appeared, then you can specifythat version instead if you wish.) Do not make any other change inthese notices.\14 Once this change is made in a given copy, it is irreversible forthat copy, so the ordinary GNU General Public License applies to allsubsequent copies and derivative works made from that copy.\n\n This option is useful when you wish to copy part of the code ofthe Library into a program that is not a library.\n\n 4. You may copy and distribute the Library (or a portion orderivative of it, under Section 2) in object code or executable formunder the terms of Sections 1 and 2 above provided that you accompanyit with the complete corresponding machine-readable source code, whichmust be distributed under the terms of Sections 1 and 2 above on amedium customarily used for software interchange.\n\n If distribution of object code is made by offering access to copyfrom a designated place, then offering equivalent access to copy thesource code from the same place satisfies the requirement todistribute the source code, even though third parties are notcompelled to copy the source along with the object code.\n\n 5. A program that contains no derivative of any portion of theLibrary, but is designed to work with the Library by being compiled orlinked with it, is called a \"work that uses the Library\". Such awork, in isolation, is not a derivative work of the Library, andtherefore falls outside the scope of this License.\n\n However, linking a \"work that uses the Library\" with the Librarycreates an executable that is a derivative of the Library (because itcontains portions of the Library), rather than a \"work that uses thelibrary\". The executable is therefore covered by this License.Section 6 states terms for distribution of such executables.\n\n When a \"work that uses the Library\" uses material from a header filethat is part of the Library, the object code for the work may be aderivative work of the Library even though the source code is not.Whether this is true is especially significant if the work can belinked without the Library, or if the work is itself a library. Thethreshold for this to be true is not precisely defined by law.\n\n If such an object file uses only numerical parameters, datastructure layouts and accessors, and small macros and small inlinefunctions (ten lines or less in length), then the use of the objectfile is unrestricted, regardless of whether it is legally a derivativework. (Executables containing this object code plus portions of theLibrary will still fall under Section 6.)\n\n Otherwise, if the work is a derivative of the Library, you maydistribute the object code for the work under the terms of Section 6.Any executables containing that work also fall under Section 6,whether or not they are linked directly with the Library itself.\14 6. As an exception to the Sections above, you may also compile orlink a \"work that uses the Library\" with the Library to produce awork containing portions of the Library, and distribute that workunder terms of your choice, provided that the terms permitmodification of the work for the customer\'s own use and reverseengineering for debugging such modifications.\n\n You must give prominent notice with each copy of the work that theLibrary is used in it and that the Library and its use are covered bythis License. You must supply a copy of this License. If the workduring execution displays copyright notices, you must include thecopyright notice for the Library among them, as well as a referencedirecting the user to the copy of this License. Also, you must do oneof these things:\n\n a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable \"work that uses the Library\", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.)\n\n b) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution.\n\n c) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place.\n\n d) Verify that the user has already received a copy of these materials or that you have already sent this user a copy.\n\n For an executable, the required form of the \"work that uses theLibrary\" must include any data and utility programs needed forreproducing the executable from it. However, as a special exception,the source code distributed need not include anything that is normallydistributed (in either source or binary form) with the majorcomponents (compiler, kernel, and so on) of the operating system onwhich the executable runs, unless that component itself accompaniesthe executable.\n\n It may happen that this requirement contradicts the licenserestrictions of other proprietary libraries that do not normallyaccompany the operating system. Such a contradiction means you cannotuse both them and the Library together in an executable that youdistribute.\14 7. You may place library facilities that are a work based on theLibrary side-by-side in a single library together with other libraryfacilities not covered by this License, and distribute such a combinedlibrary, provided that the separate distribution of the work based onthe Library and of the other library facilities is otherwisepermitted, and provided that you do these two things:\n\n a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above.\n\n b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.\n\n 8. You may not copy, modify, sublicense, link with, or distributethe Library except as expressly provided under this License. Anyattempt otherwise to copy, modify, sublicense, link with, ordistribute the Library is void, and will automatically terminate yourrights under this License. However, parties who have received copies,or rights, from you under this License will not have their licensesterminated so long as such parties remain in full compliance.\n\n 9. You are not required to accept this License, since you have notsigned it. However, nothing else grants you permission to modify ordistribute the Library or its derivative works. These actions areprohibited by law if you do not accept this License. Therefore, bymodifying or distributing the Library (or any work based on theLibrary), you indicate your acceptance of this License to do so, andall its terms and conditions for copying, distributing or modifyingthe Library or works based on it.\n\n 10. Each time you redistribute the Library (or any work based on theLibrary), the recipient automatically receives a license from theoriginal licensor to copy, distribute, link with or modify the Librarysubject to these terms and conditions. You may not impose any furtherrestrictions on the recipients\' exercise of the rights granted herein.You are not responsible for enforcing compliance by third parties tothis License.\14 11. If, as a consequence of a court judgment or allegation of patentinfringement or for any other reason (not limited to patent issues),conditions are imposed on you (whether by court order, agreement orotherwise) that contradict the conditions of this License, they do notexcuse you from the conditions of this License. If you cannotdistribute so as to satisfy simultaneously your obligations under thisLicense and any other pertinent obligations, then as a consequence youmay not distribute the Library at all. For example, if a patentlicense would not permit royalty-free redistribution of the Library byall those who receive copies directly or indirectly through you, thenthe only way you could satisfy both it and this License would be torefrain entirely from distribution of the Library.\n\nIf any portion of this section is held invalid or unenforceable under anyparticular circumstance, the balance of the section is intended to apply,and the section as a whole is intended to apply in other circumstances.\n\nIt is not the purpose of this section to induce you to infringe anypatents or other property right claims or to contest validity of anysuch claims; this section has the sole purpose of protecting theintegrity of the free software distribution system which isimplemented by public license practices. Many people have madegenerous contributions to the wide range of software distributedthrough that system in reliance on consistent application of thatsystem; it is up to the author/donor to decide if he or she is willingto distribute software through any other system and a licensee cannotimpose that choice.\n\nThis section is intended to make thoroughly clear what is believed tobe a consequence of the rest of this License.\n\n 12. If the distribution and/or use of the Library is restricted incertain countries either by patents or by copyrighted interfaces, theoriginal copyright holder who places the Library under this License may addan explicit geographical distribution limitation excluding those countries,so that distribution is permitted only in or among countries not thusexcluded. In such case, this License incorporates the limitation as ifwritten in the body of this License.\n\n 13. The Free Software Foundation may publish revised and/or newversions of the Library General Public License from time to time.Such new versions will be similar in spirit to the present version,but may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number. If the Libraryspecifies a version number of this License which applies to it and\"any later version\", you have the option of following the terms andconditions either of that version or of any later version published bythe Free Software Foundation. If the Library does not specify alicense version number, you may choose any version ever published bythe Free Software Foundation.\14 14. If you wish to incorporate parts of the Library into other freeprograms whose distribution conditions are incompatible with these,write to the author to ask for permission. For software which iscopyrighted by the Free Software Foundation, write to the FreeSoftware Foundation; we sometimes make exceptions for this. Ourdecision will be guided by the two goals of preserving the free statusof all derivatives of our free software and of promoting the sharingand reuse of software generally.\n\n\t\t\t NO WARRANTY\n\n 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NOWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OROTHER PARTIES PROVIDE THE LIBRARY \"AS IS\" WITHOUT WARRANTY OF ANYKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULARPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THELIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUMETHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO INWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFYAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOUFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL ORCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THELIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEINGRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR AFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IFSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCHDAMAGES.\n\n\t\t END OF TERMS AND CONDITIONS\14 Appendix: How to Apply These Terms to Your New Libraries\n\n If you develop a new library, and you want it to be of the greatestpossible use to the public, we recommend making it free software thateveryone can redistribute and change. You can do so by permittingredistribution under these terms (or, alternatively, under the terms of theordinary General Public License).\n\n To apply these terms, attach the following notices to the library. It issafest to attach them to the start of each source file to most effectivelyconvey the exclusion of warranty; and each file should have at least the\"copyright\" line and a pointer to where the full notice is found.\n\n <one line to give the library\'s name and a brief idea of what it does.> Copyright (C) <year> <name of author>\n\n This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\n\n This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.\n\n You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n\nAlso add information on how to contact you by electronic and paper mail.\n\nYou should also get your employer (if you work as a programmer) or yourschool, if any, to sign a \"copyright disclaimer\" for the library, ifnecessary. Here is a sample; alter the names:\n\n Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob\' (a library for tweaking knobs) written by James Random Hacker.\n\n <signature of Ty Coon>, 1 April 1990 Ty Coon, President of Vice\n\nThat\'s all there is to it!\n\nSee http://www.gnu.org/copyleft/lesser.html.May contain `ogg\', `vorbis\' libraries (c) 2002-2008 Xiph.org Foundation\n\nRedistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditionsare met:\n\n- Redistributions of source code must retain the above copyrightnotice, this list of conditions and the following disclaimer.\n\n- Redistributions in binary form must reproduce the above copyrightnotice, this list of conditions and the following disclaimer in thedocumentation and/or other materials provided with the distribution.\n\n- Neither the name of the Xiph.org Foundation nor the names of itscontributors may be used to endorse or promote products derived fromthis software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS``AS IS\'\' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FORA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATIONOR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."));
|
11306
11113
|
rb_define_module_function(mGosu, "milliseconds", VALUEFUNC(_wrap_milliseconds), -1);
|
11307
11114
|
rb_define_module_function(mGosu, "random", VALUEFUNC(_wrap_random), -1);
|
@@ -11358,19 +11165,6 @@ SWIGEXPORT void Init_gosu(void) {
|
|
11358
11165
|
SwigClassColor.mark = 0;
|
11359
11166
|
SwigClassColor.destroy = (void (*)(void *)) free_Gosu_Color;
|
11360
11167
|
SwigClassColor.trackObjects = 1;
|
11361
|
-
rb_define_module_function(mGosu, "interpolate", VALUEFUNC(_wrap_interpolate), -1);
|
11362
|
-
rb_define_module_function(mGosu, "multiply", VALUEFUNC(_wrap_multiply), -1);
|
11363
|
-
rb_define_singleton_method(mGosu, "none", VALUEFUNC(_wrap_none_get), 0);
|
11364
|
-
rb_define_singleton_method(mGosu, "black", VALUEFUNC(_wrap_black_get), 0);
|
11365
|
-
rb_define_singleton_method(mGosu, "gray", VALUEFUNC(_wrap_gray_get), 0);
|
11366
|
-
rb_define_singleton_method(mGosu, "white", VALUEFUNC(_wrap_white_get), 0);
|
11367
|
-
rb_define_singleton_method(mGosu, "aqua", VALUEFUNC(_wrap_aqua_get), 0);
|
11368
|
-
rb_define_singleton_method(mGosu, "red", VALUEFUNC(_wrap_red_get), 0);
|
11369
|
-
rb_define_singleton_method(mGosu, "green", VALUEFUNC(_wrap_green_get), 0);
|
11370
|
-
rb_define_singleton_method(mGosu, "blue", VALUEFUNC(_wrap_blue_get), 0);
|
11371
|
-
rb_define_singleton_method(mGosu, "yellow", VALUEFUNC(_wrap_yellow_get), 0);
|
11372
|
-
rb_define_singleton_method(mGosu, "fuchsia", VALUEFUNC(_wrap_fuchsia_get), 0);
|
11373
|
-
rb_define_singleton_method(mGosu, "cyan", VALUEFUNC(_wrap_cyan_get), 0);
|
11374
11168
|
|
11375
11169
|
SwigClassFont.klass = rb_define_class_under(mGosu, "Font", rb_cObject);
|
11376
11170
|
SWIG_TypeClientData(SWIGTYPE_p_Gosu__Font, (void *) &SwigClassFont);
|
data/GosuImpl/RubyGosu_wrap.h
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version 2.0.
|
4
|
-
*
|
5
|
-
* This file is not intended to be easily readable and contains a number of
|
3
|
+
* Version 2.0.11
|
4
|
+
*
|
5
|
+
* This file is not intended to be easily readable and contains a number of
|
6
6
|
* coding conventions designed to improve portability and efficiency. Do not make
|
7
|
-
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
-
* interface file instead.
|
7
|
+
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
+
* interface file instead.
|
9
9
|
* ----------------------------------------------------------------------------- */
|
10
10
|
|
11
11
|
#ifndef SWIG_Gosu_WRAP_H_
|
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.7.
|
4
|
+
version: 0.7.50
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Raschke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
2D game development library.
|