gosu 0.10.5.pre1 → 0.10.5
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/COPYING +1 -8
- data/Gosu/Version.hpp +2 -2
- data/ext/gosu/extconf.rb +1 -1
- data/ext/gosu/gosu_wrap.cxx +131 -93
- data/ext/gosu/gosu_wrap.h +1 -1
- data/src/Bitmap/BitmapIO.cpp +2 -0
- data/src/Graphics/Macro.cpp +2 -0
- data/src/stb_image.h +170 -98
- data/src/stb_image_write.h +367 -104
- data/src/stb_vorbis.c +290 -308
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 720a938ad883a798d38bf7b3608f1869ea6f55c2
|
|
4
|
+
data.tar.gz: 85a15c9e41c2e6717de163eb4ca45be8f498055f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 13f5e85de7eaad925b20def734945a968fb620e6d64daa43d209097216ca4ace21dd279f9963c5683a4bb8adb4713417a1a96596f21901c5d21f687500945feb
|
|
7
|
+
data.tar.gz: 8a4f69d223a28e10ba5616a1e23fc0f666affd62722fb89cad2d81a3bbce885190a158c606cbd0578d466d95dd1ca6ce7cdaac8d3e48f2dbccf2018270399ddf
|
data/COPYING
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (C) 2001-
|
|
1
|
+
Copyright (C) 2001-2016 Julian Raschke, Jan Lücker and all contributors.
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a
|
|
4
4
|
copy of this software and associated documentation files (the "Software"),
|
|
@@ -20,10 +20,3 @@ DEALINGS IN THE SOFTWARE.
|
|
|
20
20
|
|
|
21
21
|
Julian Raschke <julian@raschke.de> & contributors
|
|
22
22
|
http://www.libgosu.org/
|
|
23
|
-
|
|
24
|
-
***
|
|
25
|
-
|
|
26
|
-
This does NOT apply to libogg and libvorbis, which are included in all source
|
|
27
|
-
and binary distributions of Gosu. These projects are licensed under a BSD-like
|
|
28
|
-
license, and their copyright terms need to be supplied even with binary
|
|
29
|
-
redistributions (e.g. Gosu games).
|
data/Gosu/Version.hpp
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
#define GOSU_MAJOR_VERSION 0
|
|
5
5
|
#define GOSU_MINOR_VERSION 10
|
|
6
|
-
#define GOSU_POINT_VERSION
|
|
7
|
-
#define GOSU_VERSION "0.10.
|
|
6
|
+
#define GOSU_POINT_VERSION 5
|
|
7
|
+
#define GOSU_VERSION "0.10.5"
|
|
8
8
|
|
|
9
9
|
#define GOSU_COPYRIGHT_NOTICE \
|
|
10
10
|
"This software uses the following third-party libraries:\n" \
|
data/ext/gosu/extconf.rb
CHANGED
|
@@ -103,7 +103,7 @@ if `uname`.chomp == 'Darwin' then
|
|
|
103
103
|
# Otherwise, the resulting gosu.bundle is still dependent on libSDL2-2.0.0.dylib, see `otool -L gosu.bundle`
|
|
104
104
|
$LDFLAGS << HOMEBREW_DEPENDENCIES.map { |lib| " /usr/local/lib/lib#{lib}.a" }.join
|
|
105
105
|
else
|
|
106
|
-
$LDFLAGS << " #{`sdl2-config --
|
|
106
|
+
$LDFLAGS << " #{`sdl2-config --libs`.chomp}"
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
$LDFLAGS << FRAMEWORKS.map { |f| " -framework #{f}" }.join
|
data/ext/gosu/gosu_wrap.cxx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
3
|
-
* Version 3.0.
|
|
3
|
+
* Version 3.0.8
|
|
4
4
|
*
|
|
5
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
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
* interface file instead.
|
|
9
9
|
* ----------------------------------------------------------------------------- */
|
|
10
10
|
|
|
11
|
-
// This file was afterwards patched using the following instructions:
|
|
12
|
-
// http://sourceforge.net/tracker/index.php?func=detail&aid=2034216&group_id=1645&atid=101645
|
|
13
|
-
// (Many thanks to Kevin Burge for that.)
|
|
14
11
|
|
|
12
|
+
#ifndef SWIGRUBY
|
|
15
13
|
#define SWIGRUBY
|
|
14
|
+
#endif
|
|
15
|
+
|
|
16
16
|
#define SWIG_DIRECTORS
|
|
17
17
|
|
|
18
18
|
|
|
@@ -874,7 +874,6 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
|
874
874
|
|
|
875
875
|
|
|
876
876
|
#include <ruby.h>
|
|
877
|
-
#include <map>
|
|
878
877
|
|
|
879
878
|
/* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
|
|
880
879
|
* breaks using rb_intern as an lvalue, as SWIG does. We work around this
|
|
@@ -1200,6 +1199,11 @@ void Ruby_Format_OverloadedError(
|
|
|
1200
1199
|
extern "C" {
|
|
1201
1200
|
#endif
|
|
1202
1201
|
|
|
1202
|
+
#if !defined(ST_DATA_T_DEFINED)
|
|
1203
|
+
/* Needs to be explicitly included for Ruby 1.8 and earlier */
|
|
1204
|
+
#include <st.h>
|
|
1205
|
+
#endif
|
|
1206
|
+
|
|
1203
1207
|
/* Ruby 1.8 actually assumes the first case. */
|
|
1204
1208
|
#if SIZEOF_VOIDP == SIZEOF_LONG
|
|
1205
1209
|
# define SWIG2NUM(v) LONG2NUM((unsigned long)v)
|
|
@@ -1211,19 +1215,19 @@ extern "C" {
|
|
|
1211
1215
|
# error sizeof(void*) is not the same as long or long long
|
|
1212
1216
|
#endif
|
|
1213
1217
|
|
|
1214
|
-
|
|
1215
|
-
/* Global Ruby hash table to store Trackings from C/C++
|
|
1218
|
+
/* Global hash table to store Trackings from C/C++
|
|
1216
1219
|
structs to Ruby Objects.
|
|
1217
1220
|
*/
|
|
1218
|
-
static
|
|
1221
|
+
static st_table* swig_ruby_trackings = NULL;
|
|
1222
|
+
|
|
1223
|
+
static VALUE swig_ruby_trackings_count(ANYARGS) {
|
|
1224
|
+
return SWIG2NUM(swig_ruby_trackings->num_entries);
|
|
1225
|
+
}
|
|
1219
1226
|
|
|
1220
|
-
/* Global variable that stores a reference to the ruby
|
|
1221
|
-
hash table delete function. */
|
|
1222
|
-
static ID swig_ruby_hash_delete;
|
|
1223
1227
|
|
|
1224
|
-
/* Setup a
|
|
1228
|
+
/* Setup a hash table to store Trackings */
|
|
1225
1229
|
SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
|
1226
|
-
/* Create a
|
|
1230
|
+
/* Create a hash table to store Trackings from C++
|
|
1227
1231
|
objects to Ruby objects. */
|
|
1228
1232
|
|
|
1229
1233
|
/* Try to see if some other .so has already created a
|
|
@@ -1232,49 +1236,46 @@ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
|
|
1232
1236
|
This is done to allow multiple DSOs to share the same
|
|
1233
1237
|
tracking table.
|
|
1234
1238
|
*/
|
|
1239
|
+
VALUE trackings_value = Qnil;
|
|
1240
|
+
/* change the variable name so that we can mix modules
|
|
1241
|
+
compiled with older SWIG's - this used to be called "@__trackings__" */
|
|
1242
|
+
ID trackings_id = rb_intern( "@__safetrackings__" );
|
|
1235
1243
|
VALUE verbose = rb_gv_get("VERBOSE");
|
|
1236
1244
|
rb_gv_set("VERBOSE", Qfalse);
|
|
1245
|
+
trackings_value = rb_ivar_get( _mSWIG, trackings_id );
|
|
1237
1246
|
rb_gv_set("VERBOSE", verbose);
|
|
1238
1247
|
|
|
1239
|
-
/*
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
and then store a reference to it using
|
|
1251
|
-
a Ruby number object. */
|
|
1252
|
-
|
|
1253
|
-
/* Convert the Object to a Ruby number */
|
|
1254
|
-
return SWIG2NUM(object);
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
/* Get a Ruby object from a previously stored reference */
|
|
1258
|
-
SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
|
|
1259
|
-
/* The provided Ruby number object is a reference
|
|
1260
|
-
to the Ruby object we want.*/
|
|
1248
|
+
/* The trick here is that we have to store the hash table
|
|
1249
|
+
pointer in a Ruby variable. We do not want Ruby's GC to
|
|
1250
|
+
treat this pointer as a Ruby object, so we convert it to
|
|
1251
|
+
a Ruby numeric value. */
|
|
1252
|
+
if (trackings_value == Qnil) {
|
|
1253
|
+
/* No, it hasn't. Create one ourselves */
|
|
1254
|
+
swig_ruby_trackings = st_init_numtable();
|
|
1255
|
+
rb_ivar_set( _mSWIG, trackings_id, SWIG2NUM(swig_ruby_trackings) );
|
|
1256
|
+
} else {
|
|
1257
|
+
swig_ruby_trackings = (st_table*)NUM2SWIG(trackings_value);
|
|
1258
|
+
}
|
|
1261
1259
|
|
|
1262
|
-
|
|
1263
|
-
return NUM2SWIG(reference);
|
|
1260
|
+
rb_define_virtual_variable("SWIG_TRACKINGS_COUNT", swig_ruby_trackings_count, NULL);
|
|
1264
1261
|
}
|
|
1265
1262
|
|
|
1266
1263
|
/* Add a Tracking from a C/C++ struct to a Ruby object */
|
|
1267
1264
|
SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
|
|
1268
1265
|
/* Store the mapping to the global hash table. */
|
|
1269
|
-
swig_ruby_trackings
|
|
1266
|
+
st_insert(swig_ruby_trackings, (st_data_t)ptr, object);
|
|
1270
1267
|
}
|
|
1271
1268
|
|
|
1272
1269
|
/* Get the Ruby object that owns the specified C/C++ struct */
|
|
1273
1270
|
SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
|
|
1274
|
-
|
|
1271
|
+
/* Now lookup the value stored in the global hash table */
|
|
1272
|
+
VALUE value;
|
|
1273
|
+
|
|
1274
|
+
if (st_lookup(swig_ruby_trackings, (st_data_t)ptr, &value)) {
|
|
1275
|
+
return value;
|
|
1276
|
+
} else {
|
|
1275
1277
|
return Qnil;
|
|
1276
|
-
|
|
1277
|
-
return swig_ruby_trackings[ptr];
|
|
1278
|
+
}
|
|
1278
1279
|
}
|
|
1279
1280
|
|
|
1280
1281
|
/* Remove a Tracking from a C/C++ struct to a Ruby object. It
|
|
@@ -1282,7 +1283,8 @@ SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
|
|
|
1282
1283
|
since the same memory address may be reused later to create
|
|
1283
1284
|
a new object. */
|
|
1284
1285
|
SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
|
|
1285
|
-
|
|
1286
|
+
/* Delete the object from the hash table */
|
|
1287
|
+
st_delete(swig_ruby_trackings, (st_data_t *)&ptr, NULL);
|
|
1286
1288
|
}
|
|
1287
1289
|
|
|
1288
1290
|
/* This is a helper method that unlinks a Ruby object from its
|
|
@@ -1292,10 +1294,25 @@ SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
|
|
|
1292
1294
|
VALUE object = SWIG_RubyInstanceFor(ptr);
|
|
1293
1295
|
|
|
1294
1296
|
if (object != Qnil) {
|
|
1297
|
+
if (TYPE(object) != T_DATA)
|
|
1298
|
+
abort();
|
|
1295
1299
|
DATA_PTR(object) = 0;
|
|
1296
1300
|
}
|
|
1297
1301
|
}
|
|
1298
1302
|
|
|
1303
|
+
/* This is a helper method that iterates over all the trackings
|
|
1304
|
+
passing the C++ object pointer and its related Ruby object
|
|
1305
|
+
to the passed callback function. */
|
|
1306
|
+
|
|
1307
|
+
/* Proxy method to abstract the internal trackings datatype */
|
|
1308
|
+
static int swig_ruby_internal_iterate_callback(void* ptr, VALUE obj, void(*meth)(void* ptr, VALUE obj)) {
|
|
1309
|
+
(*meth)(ptr, obj);
|
|
1310
|
+
return ST_CONTINUE;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
SWIGRUNTIME void SWIG_RubyIterateTrackings( void(*meth)(void* ptr, VALUE obj) ) {
|
|
1314
|
+
st_foreach(swig_ruby_trackings, (int (*)(ANYARGS))&swig_ruby_internal_iterate_callback, (st_data_t)meth);
|
|
1315
|
+
}
|
|
1299
1316
|
|
|
1300
1317
|
#ifdef __cplusplus
|
|
1301
1318
|
}
|
|
@@ -1354,7 +1371,7 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
|
1354
1371
|
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
|
|
1355
1372
|
#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags)
|
|
1356
1373
|
#define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own)
|
|
1357
|
-
#define swig_owntype
|
|
1374
|
+
#define swig_owntype swig_ruby_owntype
|
|
1358
1375
|
|
|
1359
1376
|
/* for raw packed data */
|
|
1360
1377
|
#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
|
|
@@ -1578,22 +1595,24 @@ SWIG_Ruby_MangleStr(VALUE obj)
|
|
|
1578
1595
|
}
|
|
1579
1596
|
|
|
1580
1597
|
/* Acquire a pointer value */
|
|
1581
|
-
typedef
|
|
1598
|
+
typedef struct {
|
|
1599
|
+
void (*datafree)(void *);
|
|
1600
|
+
int own;
|
|
1601
|
+
} swig_ruby_owntype;
|
|
1582
1602
|
|
|
1583
|
-
SWIGRUNTIME
|
|
1584
|
-
SWIG_Ruby_AcquirePtr(VALUE obj,
|
|
1603
|
+
SWIGRUNTIME swig_ruby_owntype
|
|
1604
|
+
SWIG_Ruby_AcquirePtr(VALUE obj, swig_ruby_owntype own) {
|
|
1605
|
+
swig_ruby_owntype oldown = {0, 0};
|
|
1585
1606
|
if (obj) {
|
|
1586
|
-
|
|
1587
|
-
RDATA(obj)->dfree = own;
|
|
1588
|
-
return oldown;
|
|
1589
|
-
} else {
|
|
1590
|
-
return 0;
|
|
1607
|
+
oldown.datafree = RDATA(obj)->dfree;
|
|
1608
|
+
RDATA(obj)->dfree = own.datafree;
|
|
1591
1609
|
}
|
|
1610
|
+
return oldown;
|
|
1592
1611
|
}
|
|
1593
1612
|
|
|
1594
1613
|
/* Convert a pointer value */
|
|
1595
1614
|
SWIGRUNTIME int
|
|
1596
|
-
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1615
|
+
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, swig_ruby_owntype *own)
|
|
1597
1616
|
{
|
|
1598
1617
|
char *c;
|
|
1599
1618
|
swig_cast_info *tc;
|
|
@@ -1601,7 +1620,8 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
|
1601
1620
|
|
|
1602
1621
|
/* Grab the pointer */
|
|
1603
1622
|
if (NIL_P(obj)) {
|
|
1604
|
-
|
|
1623
|
+
if (ptr)
|
|
1624
|
+
*ptr = 0;
|
|
1605
1625
|
return SWIG_OK;
|
|
1606
1626
|
} else {
|
|
1607
1627
|
if (TYPE(obj) != T_DATA) {
|
|
@@ -1610,7 +1630,10 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
|
1610
1630
|
Data_Get_Struct(obj, void, vptr);
|
|
1611
1631
|
}
|
|
1612
1632
|
|
|
1613
|
-
if (own)
|
|
1633
|
+
if (own) {
|
|
1634
|
+
own->datafree = RDATA(obj)->dfree;
|
|
1635
|
+
own->own = 0;
|
|
1636
|
+
}
|
|
1614
1637
|
|
|
1615
1638
|
/* Check to see if the input object is giving up ownership
|
|
1616
1639
|
of the underlying C struct or C++ object. If so then we
|
|
@@ -1639,16 +1662,6 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
|
1639
1662
|
|
|
1640
1663
|
/* Do type-checking if type info was provided */
|
|
1641
1664
|
if (ty) {
|
|
1642
|
-
if (ty->clientdata) {
|
|
1643
|
-
if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
|
|
1644
|
-
if (vptr == 0) {
|
|
1645
|
-
/* The object has already been deleted */
|
|
1646
|
-
return SWIG_ObjectPreviouslyDeletedError;
|
|
1647
|
-
}
|
|
1648
|
-
*ptr = vptr;
|
|
1649
|
-
return SWIG_OK;
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
1665
|
if ((c = SWIG_MangleStr(obj)) == NULL) {
|
|
1653
1666
|
return SWIG_ERROR;
|
|
1654
1667
|
}
|
|
@@ -1656,12 +1669,27 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
|
1656
1669
|
if (!tc) {
|
|
1657
1670
|
return SWIG_ERROR;
|
|
1658
1671
|
} else {
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1672
|
+
if (vptr == 0) {
|
|
1673
|
+
/* The object has already been deleted */
|
|
1674
|
+
return SWIG_ObjectPreviouslyDeletedError;
|
|
1675
|
+
}
|
|
1676
|
+
if (ptr) {
|
|
1677
|
+
if (tc->type == ty) {
|
|
1678
|
+
*ptr = vptr;
|
|
1679
|
+
} else {
|
|
1680
|
+
int newmemory = 0;
|
|
1681
|
+
*ptr = SWIG_TypeCast(tc, vptr, &newmemory);
|
|
1682
|
+
if (newmemory == SWIG_CAST_NEW_MEMORY) {
|
|
1683
|
+
assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
|
|
1684
|
+
if (own)
|
|
1685
|
+
own->own = own->own | SWIG_CAST_NEW_MEMORY;
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1662
1689
|
}
|
|
1663
1690
|
} else {
|
|
1664
|
-
|
|
1691
|
+
if (ptr)
|
|
1692
|
+
*ptr = vptr;
|
|
1665
1693
|
}
|
|
1666
1694
|
|
|
1667
1695
|
return SWIG_OK;
|
|
@@ -1835,8 +1863,9 @@ namespace Swig {
|
|
|
1835
1863
|
virtual ~GCItem() {
|
|
1836
1864
|
}
|
|
1837
1865
|
|
|
1838
|
-
virtual
|
|
1839
|
-
|
|
1866
|
+
virtual swig_ruby_owntype get_own() const {
|
|
1867
|
+
swig_ruby_owntype own = {0, 0};
|
|
1868
|
+
return own;
|
|
1840
1869
|
}
|
|
1841
1870
|
};
|
|
1842
1871
|
|
|
@@ -1878,18 +1907,18 @@ namespace Swig {
|
|
|
1878
1907
|
};
|
|
1879
1908
|
|
|
1880
1909
|
struct GCItem_Object : GCItem {
|
|
1881
|
-
GCItem_Object(
|
|
1910
|
+
GCItem_Object(swig_ruby_owntype own) : _own(own) {
|
|
1882
1911
|
}
|
|
1883
1912
|
|
|
1884
1913
|
virtual ~GCItem_Object() {
|
|
1885
1914
|
}
|
|
1886
1915
|
|
|
1887
|
-
|
|
1916
|
+
swig_ruby_owntype get_own() const {
|
|
1888
1917
|
return _own;
|
|
1889
1918
|
}
|
|
1890
1919
|
|
|
1891
1920
|
private:
|
|
1892
|
-
|
|
1921
|
+
swig_ruby_owntype _own;
|
|
1893
1922
|
};
|
|
1894
1923
|
|
|
1895
1924
|
template <typename Type>
|
|
@@ -2129,20 +2158,20 @@ namespace Swig {
|
|
|
2129
2158
|
}
|
|
2130
2159
|
}
|
|
2131
2160
|
|
|
2132
|
-
void swig_acquire_ownership_obj(void *vptr,
|
|
2133
|
-
if (vptr && own) {
|
|
2161
|
+
void swig_acquire_ownership_obj(void *vptr, swig_ruby_owntype own) const {
|
|
2162
|
+
if (vptr && own.datafree) {
|
|
2134
2163
|
SWIG_GUARD(swig_mutex_own);
|
|
2135
2164
|
swig_owner[vptr] = new GCItem_Object(own);
|
|
2136
2165
|
}
|
|
2137
2166
|
}
|
|
2138
2167
|
|
|
2139
|
-
|
|
2140
|
-
|
|
2168
|
+
swig_ruby_owntype swig_release_ownership(void *vptr) const {
|
|
2169
|
+
swig_ruby_owntype own = {0, 0};
|
|
2141
2170
|
if (vptr) {
|
|
2142
2171
|
SWIG_GUARD(swig_mutex_own);
|
|
2143
2172
|
swig_ownership_map::iterator iter = swig_owner.find(vptr);
|
|
2144
2173
|
if (iter != swig_owner.end()) {
|
|
2145
|
-
own = iter->second->get_own();
|
|
2174
|
+
own.datafree = iter->second->get_own().datafree;
|
|
2146
2175
|
swig_owner.erase(iter);
|
|
2147
2176
|
}
|
|
2148
2177
|
}
|
|
@@ -2183,7 +2212,7 @@ static VALUE mGosu;
|
|
|
2183
2212
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
|
2184
2213
|
|
|
2185
2214
|
|
|
2186
|
-
#define SWIGVERSION
|
|
2215
|
+
#define SWIGVERSION 0x030008
|
|
2187
2216
|
#define SWIG_VERSION SWIGVERSION
|
|
2188
2217
|
|
|
2189
2218
|
|
|
@@ -2467,7 +2496,7 @@ SWIG_ruby_failed(void)
|
|
|
2467
2496
|
}
|
|
2468
2497
|
|
|
2469
2498
|
|
|
2470
|
-
/*@SWIG:/usr/local/Cellar/swig/3.0.
|
|
2499
|
+
/*@SWIG:/usr/local/Cellar/swig/3.0.8/share/swig/3.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
|
2471
2500
|
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
|
|
2472
2501
|
{
|
|
2473
2502
|
VALUE obj = args[0];
|
|
@@ -2509,7 +2538,7 @@ SWIG_From_unsigned_SS_int (unsigned int value)
|
|
|
2509
2538
|
#include <string>
|
|
2510
2539
|
|
|
2511
2540
|
|
|
2512
|
-
/*@SWIG:/usr/local/Cellar/swig/3.0.
|
|
2541
|
+
/*@SWIG:/usr/local/Cellar/swig/3.0.8/share/swig/3.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
|
2513
2542
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
|
2514
2543
|
{
|
|
2515
2544
|
VALUE obj = args[0];
|
|
@@ -2608,7 +2637,7 @@ SWIG_From_bool (bool value)
|
|
|
2608
2637
|
}
|
|
2609
2638
|
|
|
2610
2639
|
|
|
2611
|
-
/*@SWIG:/usr/local/Cellar/swig/3.0.
|
|
2640
|
+
/*@SWIG:/usr/local/Cellar/swig/3.0.8/share/swig/3.0.8/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
|
2612
2641
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
|
2613
2642
|
{
|
|
2614
2643
|
VALUE obj = args[0];
|
|
@@ -4942,7 +4971,8 @@ fail:
|
|
|
4942
4971
|
|
|
4943
4972
|
|
|
4944
4973
|
SWIGINTERN void
|
|
4945
|
-
free_Gosu_Color(
|
|
4974
|
+
free_Gosu_Color(void *self) {
|
|
4975
|
+
Gosu::Color *arg1 = (Gosu::Color *)self;
|
|
4946
4976
|
SWIG_RubyRemoveTracking(arg1);
|
|
4947
4977
|
delete arg1;
|
|
4948
4978
|
}
|
|
@@ -5651,7 +5681,8 @@ fail:
|
|
|
5651
5681
|
|
|
5652
5682
|
|
|
5653
5683
|
SWIGINTERN void
|
|
5654
|
-
free_Gosu_Font(
|
|
5684
|
+
free_Gosu_Font(void *self) {
|
|
5685
|
+
Gosu::Font *arg1 = (Gosu::Font *)self;
|
|
5655
5686
|
SWIG_RubyRemoveTracking(arg1);
|
|
5656
5687
|
delete arg1;
|
|
5657
5688
|
}
|
|
@@ -5964,7 +5995,8 @@ fail:
|
|
|
5964
5995
|
|
|
5965
5996
|
|
|
5966
5997
|
SWIGINTERN void
|
|
5967
|
-
free_Gosu_GLTexInfo(
|
|
5998
|
+
free_Gosu_GLTexInfo(void *self) {
|
|
5999
|
+
Gosu::GLTexInfo *arg1 = (Gosu::GLTexInfo *)self;
|
|
5968
6000
|
SWIG_RubyRemoveTracking(arg1);
|
|
5969
6001
|
delete arg1;
|
|
5970
6002
|
}
|
|
@@ -7147,7 +7179,8 @@ fail:
|
|
|
7147
7179
|
|
|
7148
7180
|
|
|
7149
7181
|
SWIGINTERN void
|
|
7150
|
-
free_Gosu_Image(
|
|
7182
|
+
free_Gosu_Image(void *self) {
|
|
7183
|
+
Gosu::Image *arg1 = (Gosu::Image *)self;
|
|
7151
7184
|
SWIG_RubyRemoveTracking(arg1);
|
|
7152
7185
|
delete arg1;
|
|
7153
7186
|
}
|
|
@@ -7479,7 +7512,8 @@ fail:
|
|
|
7479
7512
|
|
|
7480
7513
|
|
|
7481
7514
|
SWIGINTERN void
|
|
7482
|
-
free_Gosu_SampleInstance(
|
|
7515
|
+
free_Gosu_SampleInstance(void *self) {
|
|
7516
|
+
Gosu::SampleInstance *arg1 = (Gosu::SampleInstance *)self;
|
|
7483
7517
|
SWIG_RubyRemoveTracking(arg1);
|
|
7484
7518
|
delete arg1;
|
|
7485
7519
|
}
|
|
@@ -7662,7 +7696,8 @@ fail:
|
|
|
7662
7696
|
|
|
7663
7697
|
|
|
7664
7698
|
SWIGINTERN void
|
|
7665
|
-
free_Gosu_Sample(
|
|
7699
|
+
free_Gosu_Sample(void *self) {
|
|
7700
|
+
Gosu::Sample *arg1 = (Gosu::Sample *)self;
|
|
7666
7701
|
SWIG_RubyRemoveTracking(arg1);
|
|
7667
7702
|
delete arg1;
|
|
7668
7703
|
}
|
|
@@ -7717,7 +7752,8 @@ fail:
|
|
|
7717
7752
|
|
|
7718
7753
|
|
|
7719
7754
|
SWIGINTERN void
|
|
7720
|
-
free_Gosu_Song(
|
|
7755
|
+
free_Gosu_Song(void *self) {
|
|
7756
|
+
Gosu::Song *arg1 = (Gosu::Song *)self;
|
|
7721
7757
|
SWIG_RubyRemoveTracking(arg1);
|
|
7722
7758
|
delete arg1;
|
|
7723
7759
|
}
|
|
@@ -8029,7 +8065,8 @@ fail:
|
|
|
8029
8065
|
|
|
8030
8066
|
|
|
8031
8067
|
SWIGINTERN void
|
|
8032
|
-
free_Gosu_TextInput(
|
|
8068
|
+
free_Gosu_TextInput(void *self) {
|
|
8069
|
+
Gosu::TextInput *arg1 = (Gosu::TextInput *)self;
|
|
8033
8070
|
SWIG_RubyRemoveTracking(arg1);
|
|
8034
8071
|
delete arg1;
|
|
8035
8072
|
}
|
|
@@ -8484,7 +8521,8 @@ fail:
|
|
|
8484
8521
|
|
|
8485
8522
|
|
|
8486
8523
|
SWIGINTERN void
|
|
8487
|
-
free_Gosu_Window(
|
|
8524
|
+
free_Gosu_Window(void *self) {
|
|
8525
|
+
Gosu::Window *arg1 = (Gosu::Window *)self;
|
|
8488
8526
|
SWIG_RubyRemoveTracking(arg1);
|
|
8489
8527
|
delete arg1;
|
|
8490
8528
|
}
|
|
@@ -10939,8 +10977,8 @@ SWIGEXPORT void Init_gosu(void) {
|
|
|
10939
10977
|
SWIG_RubyInitializeTrackings();
|
|
10940
10978
|
rb_define_const(mGosu, "MAJOR_VERSION", SWIG_From_int(static_cast< int >(0)));
|
|
10941
10979
|
rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(10)));
|
|
10942
|
-
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(
|
|
10943
|
-
rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.10.
|
|
10980
|
+
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(5)));
|
|
10981
|
+
rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.10.5"));
|
|
10944
10982
|
rb_define_const(mGosu, "GOSU_COPYRIGHT_NOTICE", SWIG_FromCharPtr("This software uses the following third-party libraries:\n\nGosu, http://www.libgosu.org, MIT License, http://opensource.org/licenses/MIT\nSDL 2, http://www.libsdl.org, MIT License, http://opensource.org/licenses/MIT\nlibsndfile, http://www.mega-nerd.com/libsndfile, GNU LGPL 3, http://www.gnu.org/copyleft/lesser.html\nOpenAL Soft, http://kcat.strangesoft.net/openal.html, GNU LGPL 2, http://www.gnu.org/licenses/old-licenses/lgpl-2.0.html\n"));
|
|
10945
10983
|
rb_define_module_function(mGosu, "milliseconds", VALUEFUNC(_wrap_milliseconds), -1);
|
|
10946
10984
|
rb_define_module_function(mGosu, "random", VALUEFUNC(_wrap_random), -1);
|