gosu 1.4.5 → 1.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -8
- data/dependencies/SDL/include/SDL.h +1 -1
- data/dependencies/SDL/include/SDL_assert.h +4 -10
- data/dependencies/SDL/include/SDL_atomic.h +1 -1
- data/dependencies/SDL/include/SDL_audio.h +1 -1
- data/dependencies/SDL/include/SDL_bits.h +1 -1
- data/dependencies/SDL/include/SDL_blendmode.h +1 -1
- data/dependencies/SDL/include/SDL_clipboard.h +1 -1
- data/dependencies/SDL/include/SDL_config.h +2 -2
- data/dependencies/SDL/include/SDL_cpuinfo.h +1 -1
- data/dependencies/SDL/include/SDL_egl.h +1 -1
- data/dependencies/SDL/include/SDL_endian.h +1 -1
- data/dependencies/SDL/include/SDL_error.h +1 -1
- data/dependencies/SDL/include/SDL_events.h +1 -1
- data/dependencies/SDL/include/SDL_filesystem.h +1 -1
- data/dependencies/SDL/include/SDL_gamecontroller.h +1 -1
- data/dependencies/SDL/include/SDL_gesture.h +1 -1
- data/dependencies/SDL/include/SDL_guid.h +1 -1
- data/dependencies/SDL/include/SDL_haptic.h +1 -1
- data/dependencies/SDL/include/SDL_hidapi.h +1 -1
- data/dependencies/SDL/include/SDL_hints.h +1 -1
- data/dependencies/SDL/include/SDL_joystick.h +1 -1
- data/dependencies/SDL/include/SDL_keyboard.h +1 -1
- data/dependencies/SDL/include/SDL_keycode.h +1 -1
- data/dependencies/SDL/include/SDL_loadso.h +1 -1
- data/dependencies/SDL/include/SDL_locale.h +1 -1
- data/dependencies/SDL/include/SDL_log.h +1 -1
- data/dependencies/SDL/include/SDL_main.h +1 -1
- data/dependencies/SDL/include/SDL_messagebox.h +1 -1
- data/dependencies/SDL/include/SDL_metal.h +1 -1
- data/dependencies/SDL/include/SDL_misc.h +1 -1
- data/dependencies/SDL/include/SDL_mouse.h +1 -1
- data/dependencies/SDL/include/SDL_mutex.h +1 -1
- data/dependencies/SDL/include/SDL_name.h +1 -1
- data/dependencies/SDL/include/SDL_opengl.h +1 -1
- data/dependencies/SDL/include/SDL_opengles.h +1 -1
- data/dependencies/SDL/include/SDL_opengles2.h +1 -1
- data/dependencies/SDL/include/SDL_pixels.h +1 -1
- data/dependencies/SDL/include/SDL_platform.h +1 -1
- data/dependencies/SDL/include/SDL_power.h +1 -1
- data/dependencies/SDL/include/SDL_quit.h +1 -1
- data/dependencies/SDL/include/SDL_rect.h +1 -1
- data/dependencies/SDL/include/SDL_render.h +1 -1
- data/dependencies/SDL/include/SDL_revision.h +2 -2
- data/dependencies/SDL/include/SDL_rwops.h +1 -1
- data/dependencies/SDL/include/SDL_scancode.h +1 -1
- data/dependencies/SDL/include/SDL_sensor.h +1 -1
- data/dependencies/SDL/include/SDL_shape.h +1 -1
- data/dependencies/SDL/include/SDL_stdinc.h +1 -1
- data/dependencies/SDL/include/SDL_surface.h +1 -1
- data/dependencies/SDL/include/SDL_system.h +1 -1
- data/dependencies/SDL/include/SDL_syswm.h +1 -1
- data/dependencies/SDL/include/SDL_test.h +1 -1
- data/dependencies/SDL/include/SDL_test_assert.h +1 -1
- data/dependencies/SDL/include/SDL_test_common.h +1 -1
- data/dependencies/SDL/include/SDL_test_compare.h +1 -1
- data/dependencies/SDL/include/SDL_test_crc32.h +1 -1
- data/dependencies/SDL/include/SDL_test_font.h +1 -1
- data/dependencies/SDL/include/SDL_test_fuzzer.h +1 -1
- data/dependencies/SDL/include/SDL_test_harness.h +1 -1
- data/dependencies/SDL/include/SDL_test_images.h +1 -1
- data/dependencies/SDL/include/SDL_test_log.h +1 -1
- data/dependencies/SDL/include/SDL_test_md5.h +1 -1
- data/dependencies/SDL/include/SDL_test_memory.h +1 -1
- data/dependencies/SDL/include/SDL_test_random.h +1 -1
- data/dependencies/SDL/include/SDL_thread.h +3 -3
- data/dependencies/SDL/include/SDL_timer.h +1 -1
- data/dependencies/SDL/include/SDL_touch.h +1 -1
- data/dependencies/SDL/include/SDL_types.h +1 -1
- data/dependencies/SDL/include/SDL_version.h +2 -2
- data/dependencies/SDL/include/SDL_video.h +1 -1
- data/dependencies/SDL/include/begin_code.h +1 -1
- data/dependencies/SDL/include/close_code.h +1 -1
- data/dependencies/SDL/lib/x64/libSDL2.dll.a +0 -0
- data/dependencies/SDL/lib/x86/libSDL2.dll.a +0 -0
- data/dependencies/SDL_sound/SDL_sound_internal.h +3 -3
- data/dependencies/SDL_sound/SDL_sound_wav.c +5 -0
- data/dependencies/mojoAL/mojoal.c +41 -30
- data/dependencies/stb/stb_image.h +117 -27
- data/ext/gosu/extconf.rb +1 -1
- data/include/Gosu/Version.hpp +1 -1
- data/lib/SDL2.dll +0 -0
- data/lib64/SDL2.dll +0 -0
- data/src/AudioFile.hpp +1 -1
- data/src/AudioFileSDLSound.cpp +2 -0
- data/src/AudioImpl.hpp +2 -2
- data/src/Input.cpp +30 -26
- data/src/RubyGosu.cxx +146 -93
- data/src/RubyGosu.h +5 -7
- metadata +3 -13
- data/dependencies/SDL/include/SDL_config_android.h +0 -157
- data/dependencies/SDL/include/SDL_config_iphoneos.h +0 -166
- data/dependencies/SDL/include/SDL_config_macosx.h +0 -197
- data/dependencies/SDL/include/SDL_config_minimal.h +0 -82
- data/dependencies/SDL/include/SDL_config_pandora.h +0 -128
- data/dependencies/SDL/include/SDL_config_psp.h +0 -144
- data/dependencies/SDL/include/SDL_config_windows.h +0 -225
- data/dependencies/SDL/include/SDL_config_winrt.h +0 -215
- data/dependencies/SDL/include/SDL_config_wiz.h +0 -121
- data/dependencies/SDL/include/SDL_copying.h +0 -20
data/src/RubyGosu.cxx
CHANGED
@@ -1,44 +1,16 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
|
-
* This file was automatically generated by SWIG (
|
3
|
-
* Version 4.
|
2
|
+
* This file was automatically generated by SWIG (https://www.swig.org).
|
3
|
+
* Version 4.1.1
|
4
4
|
*
|
5
|
-
*
|
6
|
-
*
|
7
|
-
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
-
* interface file instead.
|
5
|
+
* Do not make changes to this file unless you know what you are doing - modify
|
6
|
+
* the SWIG interface file instead.
|
9
7
|
* ----------------------------------------------------------------------------- */
|
10
8
|
|
11
9
|
|
12
|
-
#
|
10
|
+
#define SWIG_VERSION 0x040101
|
13
11
|
#define SWIGRUBY
|
14
|
-
#endif
|
15
|
-
|
16
12
|
#define SWIG_DIRECTORS
|
17
13
|
|
18
|
-
|
19
|
-
#ifdef __cplusplus
|
20
|
-
/* SwigValueWrapper is described in swig.swg */
|
21
|
-
template<typename T> class SwigValueWrapper {
|
22
|
-
struct SwigMovePointer {
|
23
|
-
T *ptr;
|
24
|
-
SwigMovePointer(T *p) : ptr(p) { }
|
25
|
-
~SwigMovePointer() { delete ptr; }
|
26
|
-
SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
|
27
|
-
} pointer;
|
28
|
-
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
|
29
|
-
SwigValueWrapper(const SwigValueWrapper<T>& rhs);
|
30
|
-
public:
|
31
|
-
SwigValueWrapper() : pointer(0) { }
|
32
|
-
SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
|
33
|
-
operator T&() const { return *pointer.ptr; }
|
34
|
-
T *operator&() { return pointer.ptr; }
|
35
|
-
};
|
36
|
-
|
37
|
-
template <typename T> T SwigValueInit() {
|
38
|
-
return T();
|
39
|
-
}
|
40
|
-
#endif
|
41
|
-
|
42
14
|
/* -----------------------------------------------------------------------------
|
43
15
|
* This section contains generic SWIG labels for method/variable
|
44
16
|
* declarations/attributes, and other compiler dependent labels.
|
@@ -333,6 +305,8 @@ template <typename T> T SwigValueInit() {
|
|
333
305
|
#define SWIG_POINTER_DISOWN 0x1
|
334
306
|
#define SWIG_CAST_NEW_MEMORY 0x2
|
335
307
|
#define SWIG_POINTER_NO_NULL 0x4
|
308
|
+
#define SWIG_POINTER_CLEAR 0x8
|
309
|
+
#define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
|
336
310
|
|
337
311
|
/* Flags for new pointer objects */
|
338
312
|
#define SWIG_POINTER_OWN 0x1
|
@@ -404,7 +378,7 @@ template <typename T> T SwigValueInit() {
|
|
404
378
|
SWIG errors code.
|
405
379
|
|
406
380
|
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
|
407
|
-
allows
|
381
|
+
allows returning the 'cast rank', for example, if you have this
|
408
382
|
|
409
383
|
int food(double)
|
410
384
|
int fooi(int);
|
@@ -418,7 +392,13 @@ template <typename T> T SwigValueInit() {
|
|
418
392
|
*/
|
419
393
|
|
420
394
|
#define SWIG_OK (0)
|
395
|
+
/* Runtime errors are < 0 */
|
421
396
|
#define SWIG_ERROR (-1)
|
397
|
+
/* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
|
398
|
+
/* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
|
399
|
+
/* Errors < -200 are generic runtime specific errors */
|
400
|
+
#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
|
401
|
+
|
422
402
|
#define SWIG_IsOK(r) (r >= 0)
|
423
403
|
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
424
404
|
|
@@ -433,7 +413,7 @@ template <typename T> T SwigValueInit() {
|
|
433
413
|
#define SWIG_OLDOBJ (SWIG_OK)
|
434
414
|
#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
|
435
415
|
#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
|
436
|
-
/* Check, add and del mask methods */
|
416
|
+
/* Check, add and del object mask methods */
|
437
417
|
#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
|
438
418
|
#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
|
439
419
|
#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
|
@@ -579,7 +559,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) {
|
|
579
559
|
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
|
580
560
|
*/
|
581
561
|
SWIGRUNTIME swig_cast_info *
|
582
|
-
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
|
562
|
+
SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) {
|
583
563
|
if (ty) {
|
584
564
|
swig_cast_info *iter = ty->cast;
|
585
565
|
while (iter) {
|
@@ -639,9 +619,9 @@ SWIG_TypeName(const swig_type_info *ty) {
|
|
639
619
|
SWIGRUNTIME const char *
|
640
620
|
SWIG_TypePrettyName(const swig_type_info *type) {
|
641
621
|
/* The "str" field contains the equivalent pretty names of the
|
642
|
-
type, separated by vertical-bar characters.
|
643
|
-
|
644
|
-
|
622
|
+
type, separated by vertical-bar characters. Choose the last
|
623
|
+
name. It should be the most specific; a fully resolved name
|
624
|
+
but not necessarily with default template parameters expanded. */
|
645
625
|
if (!type) return NULL;
|
646
626
|
if (type->str != NULL) {
|
647
627
|
const char *last_name = type->str;
|
@@ -861,7 +841,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
861
841
|
}
|
862
842
|
#endif
|
863
843
|
|
864
|
-
/*
|
844
|
+
/* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
|
865
845
|
#define SWIG_UnknownError -1
|
866
846
|
#define SWIG_IOError -2
|
867
847
|
#define SWIG_RuntimeError -3
|
@@ -877,9 +857,25 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
877
857
|
#define SWIG_NullReferenceError -13
|
878
858
|
|
879
859
|
|
860
|
+
#if __GNUC__ >= 7
|
861
|
+
#pragma GCC diagnostic push
|
862
|
+
#if defined(__cplusplus)
|
863
|
+
#pragma GCC diagnostic ignored "-Wregister"
|
864
|
+
#if __GNUC__ >= 10
|
865
|
+
#pragma GCC diagnostic ignored "-Wvolatile"
|
866
|
+
#if __GNUC__ >= 11
|
867
|
+
#pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion"
|
868
|
+
#endif
|
869
|
+
#endif
|
870
|
+
#endif
|
871
|
+
#endif
|
880
872
|
|
881
873
|
#include <ruby.h>
|
882
874
|
|
875
|
+
#if __GNUC__ >= 7
|
876
|
+
#pragma GCC diagnostic pop
|
877
|
+
#endif
|
878
|
+
|
883
879
|
/* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
|
884
880
|
* breaks using rb_intern as an lvalue, as SWIG does. We work around this
|
885
881
|
* issue for now by disabling this.
|
@@ -1659,6 +1655,11 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1659
1655
|
own->own = 0;
|
1660
1656
|
}
|
1661
1657
|
|
1658
|
+
if (((flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE)) {
|
1659
|
+
if (!RDATA(obj)->dfree)
|
1660
|
+
return SWIG_ERROR_RELEASE_NOT_OWNED;
|
1661
|
+
}
|
1662
|
+
|
1662
1663
|
/* Check to see if the input object is giving up ownership
|
1663
1664
|
of the underlying C struct or C++ object. If so then we
|
1664
1665
|
need to reset the destructor since the Ruby object no
|
@@ -1670,7 +1671,7 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1670
1671
|
swig_class *sklass = (swig_class *) ty->clientdata;
|
1671
1672
|
track = sklass->trackObjects;
|
1672
1673
|
}
|
1673
|
-
|
1674
|
+
|
1674
1675
|
if (track) {
|
1675
1676
|
/* We are tracking objects for this class. Thus we change the destructor
|
1676
1677
|
* to SWIG_RubyRemoveTracking. This allows us to
|
@@ -1684,6 +1685,10 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1684
1685
|
}
|
1685
1686
|
}
|
1686
1687
|
|
1688
|
+
if (flags & SWIG_POINTER_CLEAR) {
|
1689
|
+
DATA_PTR(obj) = 0;
|
1690
|
+
}
|
1691
|
+
|
1687
1692
|
/* Do type-checking if type info was provided */
|
1688
1693
|
if (ty) {
|
1689
1694
|
if (ty->clientdata) {
|
@@ -1791,6 +1796,7 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
|
|
1791
1796
|
{
|
1792
1797
|
/* register a new class */
|
1793
1798
|
VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
|
1799
|
+
rb_undef_alloc_func(cl);
|
1794
1800
|
/* create and store the structure pointer to a global variable */
|
1795
1801
|
swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
|
1796
1802
|
rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
|
@@ -1821,7 +1827,7 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1821
1827
|
{
|
1822
1828
|
if ( rb_respond_to( proc, swig_arity_id ) )
|
1823
1829
|
{
|
1824
|
-
VALUE num =
|
1830
|
+
VALUE num = rb_funcall2( proc, swig_arity_id, 0, 0 );
|
1825
1831
|
int arity = NUM2INT(num);
|
1826
1832
|
if ( arity < 0 && (arity+1) < -minimal ) return 1;
|
1827
1833
|
if ( arity == minimal ) return 1;
|
@@ -1839,7 +1845,7 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1839
1845
|
|
1840
1846
|
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
|
1841
1847
|
|
1842
|
-
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; }
|
1848
|
+
#define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0)
|
1843
1849
|
|
1844
1850
|
|
1845
1851
|
|
@@ -2199,12 +2205,56 @@ static swig_module_info swig_module = {swig_types, 13, 0, 0, 0, 0};
|
|
2199
2205
|
|
2200
2206
|
static VALUE mGosu;
|
2201
2207
|
|
2202
|
-
#
|
2203
|
-
#
|
2208
|
+
#ifdef __cplusplus
|
2209
|
+
#include <utility>
|
2210
|
+
/* SwigValueWrapper is described in swig.swg */
|
2211
|
+
template<typename T> class SwigValueWrapper {
|
2212
|
+
struct SwigSmartPointer {
|
2213
|
+
T *ptr;
|
2214
|
+
SwigSmartPointer(T *p) : ptr(p) { }
|
2215
|
+
~SwigSmartPointer() { delete ptr; }
|
2216
|
+
SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
|
2217
|
+
void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
|
2218
|
+
} pointer;
|
2219
|
+
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
|
2220
|
+
SwigValueWrapper(const SwigValueWrapper<T>& rhs);
|
2221
|
+
public:
|
2222
|
+
SwigValueWrapper() : pointer(0) { }
|
2223
|
+
SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
|
2224
|
+
#if __cplusplus >=201103L
|
2225
|
+
SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
|
2226
|
+
operator T&&() const { return std::move(*pointer.ptr); }
|
2227
|
+
#else
|
2228
|
+
operator T&() const { return *pointer.ptr; }
|
2229
|
+
#endif
|
2230
|
+
T *operator&() const { return pointer.ptr; }
|
2231
|
+
static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
|
2232
|
+
};
|
2204
2233
|
|
2234
|
+
/*
|
2235
|
+
* SwigValueInit() is a generic initialisation solution as the following approach:
|
2236
|
+
*
|
2237
|
+
* T c_result = T();
|
2238
|
+
*
|
2239
|
+
* doesn't compile for all types for example:
|
2240
|
+
*
|
2241
|
+
* unsigned int c_result = unsigned int();
|
2242
|
+
*/
|
2243
|
+
template <typename T> T SwigValueInit() {
|
2244
|
+
return T();
|
2245
|
+
}
|
2205
2246
|
|
2206
|
-
#
|
2207
|
-
#define
|
2247
|
+
#if __cplusplus >=201103L
|
2248
|
+
# define SWIG_STD_MOVE(OBJ) std::move(OBJ)
|
2249
|
+
#else
|
2250
|
+
# define SWIG_STD_MOVE(OBJ) OBJ
|
2251
|
+
#endif
|
2252
|
+
|
2253
|
+
#endif
|
2254
|
+
|
2255
|
+
|
2256
|
+
#define SWIG_RUBY_THREAD_BEGIN_BLOCK
|
2257
|
+
#define SWIG_RUBY_THREAD_END_BLOCK
|
2208
2258
|
|
2209
2259
|
|
2210
2260
|
#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
|
@@ -2529,7 +2579,7 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
|
|
2529
2579
|
}
|
2530
2580
|
|
2531
2581
|
|
2532
|
-
/*@SWIG:/opt/homebrew/Cellar/swig/4.
|
2582
|
+
/*@SWIG:/opt/homebrew/Cellar/swig/4.1.1/share/swig/4.1.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2533
2583
|
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE arg)
|
2534
2584
|
{
|
2535
2585
|
VALUE *args = (VALUE *)arg;
|
@@ -2579,7 +2629,7 @@ SWIG_From_unsigned_SS_char (unsigned char value)
|
|
2579
2629
|
}
|
2580
2630
|
|
2581
2631
|
|
2582
|
-
/*@SWIG:/opt/homebrew/Cellar/swig/4.
|
2632
|
+
/*@SWIG:/opt/homebrew/Cellar/swig/4.1.1/share/swig/4.1.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2583
2633
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
|
2584
2634
|
{
|
2585
2635
|
VALUE *args = (VALUE *)arg;
|
@@ -2765,7 +2815,7 @@ SWIG_AsPtr_std_string (VALUE obj, std::string **val)
|
|
2765
2815
|
}
|
2766
2816
|
|
2767
2817
|
|
2768
|
-
/*@SWIG:/opt/homebrew/Cellar/swig/4.
|
2818
|
+
/*@SWIG:/opt/homebrew/Cellar/swig/4.1.1/share/swig/4.1.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2769
2819
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
|
2770
2820
|
{
|
2771
2821
|
VALUE *args = (VALUE *)arg;
|
@@ -3317,7 +3367,7 @@ std::string SwigDirector_TextInput::filter(std::string text) const {
|
|
3317
3367
|
}
|
3318
3368
|
|
3319
3369
|
|
3320
|
-
SwigDirector_Window::SwigDirector_Window(VALUE self,
|
3370
|
+
SwigDirector_Window::SwigDirector_Window(VALUE self,int width,int height,unsigned int window_flags,double update_interval): Gosu::Window(width, height, window_flags, update_interval), Swig::Director(self) {
|
3321
3371
|
|
3322
3372
|
}
|
3323
3373
|
|
@@ -4253,7 +4303,7 @@ SWIGINTERN VALUE _wrap_new_Color(int nargs, VALUE *args, VALUE self) {
|
|
4253
4303
|
return _wrap_new_Color__SWIG_0(nargs, args, self);
|
4254
4304
|
}
|
4255
4305
|
if (argc == 1) {
|
4256
|
-
int _v;
|
4306
|
+
int _v = 0;
|
4257
4307
|
{
|
4258
4308
|
int res = SWIG_AsVal_unsigned_SS_long(argv[0], NULL);
|
4259
4309
|
_v = SWIG_CheckState(res);
|
@@ -4263,7 +4313,7 @@ SWIGINTERN VALUE _wrap_new_Color(int nargs, VALUE *args, VALUE self) {
|
|
4263
4313
|
}
|
4264
4314
|
}
|
4265
4315
|
if (argc == 3) {
|
4266
|
-
int _v;
|
4316
|
+
int _v = 0;
|
4267
4317
|
{
|
4268
4318
|
_v = !!rb_respond_to(argv[0], rb_intern("to_i"));
|
4269
4319
|
}
|
@@ -4320,7 +4370,7 @@ _wrap_Color_with_alpha(int argc, VALUE *argv, VALUE self) {
|
|
4320
4370
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
4321
4371
|
}
|
4322
4372
|
}
|
4323
|
-
vresult = SWIG_NewPointerObj((new Gosu::Color(
|
4373
|
+
vresult = SWIG_NewPointerObj((new Gosu::Color(result)), SWIGTYPE_p_Gosu__Color, SWIG_POINTER_OWN | 0 );
|
4324
4374
|
return vresult;
|
4325
4375
|
fail:
|
4326
4376
|
return Qnil;
|
@@ -4367,7 +4417,7 @@ _wrap_Color_from_hsv(int argc, VALUE *argv, VALUE self) {
|
|
4367
4417
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
4368
4418
|
}
|
4369
4419
|
}
|
4370
|
-
vresult = SWIG_NewPointerObj((new Gosu::Color(
|
4420
|
+
vresult = SWIG_NewPointerObj((new Gosu::Color(result)), SWIGTYPE_p_Gosu__Color, SWIG_POINTER_OWN | 0 );
|
4371
4421
|
return vresult;
|
4372
4422
|
fail:
|
4373
4423
|
return Qnil;
|
@@ -4721,13 +4771,13 @@ _wrap_Color_rgb(int argc, VALUE *argv, VALUE self) {
|
|
4721
4771
|
}
|
4722
4772
|
{
|
4723
4773
|
try {
|
4724
|
-
result = Gosu_Color_rgb(arg1,arg2,arg3);
|
4774
|
+
result = Gosu_Color_rgb(SWIG_STD_MOVE(arg1),SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
|
4725
4775
|
}
|
4726
4776
|
catch (const std::exception& e) {
|
4727
4777
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
4728
4778
|
}
|
4729
4779
|
}
|
4730
|
-
vresult = SWIG_NewPointerObj((new Gosu::Color(
|
4780
|
+
vresult = SWIG_NewPointerObj((new Gosu::Color(result)), SWIGTYPE_p_Gosu__Color, SWIG_POINTER_OWN | 0 );
|
4731
4781
|
return vresult;
|
4732
4782
|
fail:
|
4733
4783
|
return Qnil;
|
@@ -4760,13 +4810,13 @@ _wrap_Color_rgba__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
4760
4810
|
}
|
4761
4811
|
{
|
4762
4812
|
try {
|
4763
|
-
result = Gosu_Color_rgba__SWIG_0(arg1,arg2,arg3,arg4);
|
4813
|
+
result = Gosu_Color_rgba__SWIG_0(SWIG_STD_MOVE(arg1),SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),SWIG_STD_MOVE(arg4));
|
4764
4814
|
}
|
4765
4815
|
catch (const std::exception& e) {
|
4766
4816
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
4767
4817
|
}
|
4768
4818
|
}
|
4769
|
-
vresult = SWIG_NewPointerObj((new Gosu::Color(
|
4819
|
+
vresult = SWIG_NewPointerObj((new Gosu::Color(result)), SWIGTYPE_p_Gosu__Color, SWIG_POINTER_OWN | 0 );
|
4770
4820
|
return vresult;
|
4771
4821
|
fail:
|
4772
4822
|
return Qnil;
|
@@ -4791,13 +4841,13 @@ _wrap_Color_rgba__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
4791
4841
|
arg1 = static_cast< std::uint32_t >(val1);
|
4792
4842
|
{
|
4793
4843
|
try {
|
4794
|
-
result = Gosu_Color_rgba__SWIG_1(arg1);
|
4844
|
+
result = Gosu_Color_rgba__SWIG_1(SWIG_STD_MOVE(arg1));
|
4795
4845
|
}
|
4796
4846
|
catch (const std::exception& e) {
|
4797
4847
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
4798
4848
|
}
|
4799
4849
|
}
|
4800
|
-
vresult = SWIG_NewPointerObj((new Gosu::Color(
|
4850
|
+
vresult = SWIG_NewPointerObj((new Gosu::Color(result)), SWIGTYPE_p_Gosu__Color, SWIG_POINTER_OWN | 0 );
|
4801
4851
|
return vresult;
|
4802
4852
|
fail:
|
4803
4853
|
return Qnil;
|
@@ -4815,7 +4865,7 @@ SWIGINTERN VALUE _wrap_Color_rgba(int nargs, VALUE *args, VALUE self) {
|
|
4815
4865
|
argv[ii] = args[ii];
|
4816
4866
|
}
|
4817
4867
|
if (argc == 1) {
|
4818
|
-
int _v;
|
4868
|
+
int _v = 0;
|
4819
4869
|
{
|
4820
4870
|
int res = SWIG_AsVal_unsigned_SS_long(argv[0], NULL);
|
4821
4871
|
_v = SWIG_CheckState(res);
|
@@ -4825,7 +4875,7 @@ SWIGINTERN VALUE _wrap_Color_rgba(int nargs, VALUE *args, VALUE self) {
|
|
4825
4875
|
}
|
4826
4876
|
}
|
4827
4877
|
if (argc == 4) {
|
4828
|
-
int _v;
|
4878
|
+
int _v = 0;
|
4829
4879
|
{
|
4830
4880
|
_v = !!rb_respond_to(argv[0], rb_intern("to_i"));
|
4831
4881
|
}
|
@@ -4884,13 +4934,13 @@ _wrap_Color_argb__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
4884
4934
|
}
|
4885
4935
|
{
|
4886
4936
|
try {
|
4887
|
-
result = Gosu_Color_argb__SWIG_1(arg1,arg2,arg3,arg4);
|
4937
|
+
result = Gosu_Color_argb__SWIG_1(SWIG_STD_MOVE(arg1),SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),SWIG_STD_MOVE(arg4));
|
4888
4938
|
}
|
4889
4939
|
catch (const std::exception& e) {
|
4890
4940
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
4891
4941
|
}
|
4892
4942
|
}
|
4893
|
-
vresult = SWIG_NewPointerObj((new Gosu::Color(
|
4943
|
+
vresult = SWIG_NewPointerObj((new Gosu::Color(result)), SWIGTYPE_p_Gosu__Color, SWIG_POINTER_OWN | 0 );
|
4894
4944
|
return vresult;
|
4895
4945
|
fail:
|
4896
4946
|
return Qnil;
|
@@ -4915,13 +4965,13 @@ _wrap_Color_argb__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
|
4915
4965
|
arg1 = static_cast< std::uint32_t >(val1);
|
4916
4966
|
{
|
4917
4967
|
try {
|
4918
|
-
result = Gosu_Color_argb__SWIG_2(arg1);
|
4968
|
+
result = Gosu_Color_argb__SWIG_2(SWIG_STD_MOVE(arg1));
|
4919
4969
|
}
|
4920
4970
|
catch (const std::exception& e) {
|
4921
4971
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
4922
4972
|
}
|
4923
4973
|
}
|
4924
|
-
vresult = SWIG_NewPointerObj((new Gosu::Color(
|
4974
|
+
vresult = SWIG_NewPointerObj((new Gosu::Color(result)), SWIGTYPE_p_Gosu__Color, SWIG_POINTER_OWN | 0 );
|
4925
4975
|
return vresult;
|
4926
4976
|
fail:
|
4927
4977
|
return Qnil;
|
@@ -4939,7 +4989,7 @@ SWIGINTERN VALUE _wrap_Color_argb(int nargs, VALUE *args, VALUE self) {
|
|
4939
4989
|
argv[ii] = args[ii];
|
4940
4990
|
}
|
4941
4991
|
if (argc == 1) {
|
4942
|
-
int _v;
|
4992
|
+
int _v = 0;
|
4943
4993
|
void *vptr = 0;
|
4944
4994
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gosu__Color, 0);
|
4945
4995
|
_v = SWIG_CheckState(res);
|
@@ -4948,7 +4998,7 @@ SWIGINTERN VALUE _wrap_Color_argb(int nargs, VALUE *args, VALUE self) {
|
|
4948
4998
|
}
|
4949
4999
|
}
|
4950
5000
|
if (argc == 1) {
|
4951
|
-
int _v;
|
5001
|
+
int _v = 0;
|
4952
5002
|
{
|
4953
5003
|
int res = SWIG_AsVal_unsigned_SS_long(argv[0], NULL);
|
4954
5004
|
_v = SWIG_CheckState(res);
|
@@ -4958,7 +5008,7 @@ SWIGINTERN VALUE _wrap_Color_argb(int nargs, VALUE *args, VALUE self) {
|
|
4958
5008
|
}
|
4959
5009
|
}
|
4960
5010
|
if (argc == 4) {
|
4961
|
-
int _v;
|
5011
|
+
int _v = 0;
|
4962
5012
|
{
|
4963
5013
|
_v = !!rb_respond_to(argv[0], rb_intern("to_i"));
|
4964
5014
|
}
|
@@ -5030,13 +5080,13 @@ _wrap_Color_from_ahsv(int argc, VALUE *argv, VALUE self) {
|
|
5030
5080
|
arg4 = static_cast< double >(val4);
|
5031
5081
|
{
|
5032
5082
|
try {
|
5033
|
-
result = Gosu_Color_from_ahsv(arg1,arg2,arg3,arg4);
|
5083
|
+
result = Gosu_Color_from_ahsv(SWIG_STD_MOVE(arg1),arg2,arg3,arg4);
|
5034
5084
|
}
|
5035
5085
|
catch (const std::exception& e) {
|
5036
5086
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
5037
5087
|
}
|
5038
5088
|
}
|
5039
|
-
vresult = SWIG_NewPointerObj((new Gosu::Color(
|
5089
|
+
vresult = SWIG_NewPointerObj((new Gosu::Color(result)), SWIGTYPE_p_Gosu__Color, SWIG_POINTER_OWN | 0 );
|
5040
5090
|
return vresult;
|
5041
5091
|
fail:
|
5042
5092
|
return Qnil;
|
@@ -5114,7 +5164,7 @@ _wrap_Color_dup(int argc, VALUE *argv, VALUE self) {
|
|
5114
5164
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
5115
5165
|
}
|
5116
5166
|
}
|
5117
|
-
vresult = SWIG_NewPointerObj((new Gosu::Color(
|
5167
|
+
vresult = SWIG_NewPointerObj((new Gosu::Color(result)), SWIGTYPE_p_Gosu__Color, SWIG_POINTER_OWN | 0 );
|
5118
5168
|
return vresult;
|
5119
5169
|
fail:
|
5120
5170
|
return Qnil;
|
@@ -5823,7 +5873,7 @@ _wrap_Font_set_image(int argc, VALUE *argv, VALUE self) {
|
|
5823
5873
|
Gosu::Image *arg3 = 0 ;
|
5824
5874
|
void *argp1 = 0 ;
|
5825
5875
|
int res1 = 0 ;
|
5826
|
-
void *argp3 ;
|
5876
|
+
void *argp3 = 0 ;
|
5827
5877
|
int res3 = 0 ;
|
5828
5878
|
|
5829
5879
|
if ((argc < 2) || (argc > 2)) {
|
@@ -5985,7 +6035,7 @@ SWIGINTERN VALUE _wrap_new_Font(int nargs, VALUE *args, VALUE self) {
|
|
5985
6035
|
argv[ii] = args[ii];
|
5986
6036
|
}
|
5987
6037
|
if ((argc >= 1) && (argc <= 2)) {
|
5988
|
-
int _v;
|
6038
|
+
int _v = 0;
|
5989
6039
|
{
|
5990
6040
|
int res = SWIG_AsVal_int(argv[0], NULL);
|
5991
6041
|
_v = SWIG_CheckState(res);
|
@@ -6001,7 +6051,7 @@ SWIGINTERN VALUE _wrap_new_Font(int nargs, VALUE *args, VALUE self) {
|
|
6001
6051
|
}
|
6002
6052
|
}
|
6003
6053
|
if (argc == 3) {
|
6004
|
-
int _v;
|
6054
|
+
int _v = 0;
|
6005
6055
|
void *vptr = 0;
|
6006
6056
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gosu__Window, SWIG_POINTER_NO_NULL);
|
6007
6057
|
_v = SWIG_CheckState(res);
|
@@ -7178,7 +7228,7 @@ _wrap_Image_draw_as_quad(int argc, VALUE *argv, VALUE self) {
|
|
7178
7228
|
}
|
7179
7229
|
{
|
7180
7230
|
try {
|
7181
|
-
Gosu_Image_draw_as_quad(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15);
|
7231
|
+
Gosu_Image_draw_as_quad(arg1,arg2,arg3,SWIG_STD_MOVE(arg4),arg5,arg6,SWIG_STD_MOVE(arg7),arg8,arg9,SWIG_STD_MOVE(arg10),arg11,arg12,SWIG_STD_MOVE(arg13),arg14,arg15);
|
7182
7232
|
}
|
7183
7233
|
catch (const std::exception& e) {
|
7184
7234
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
@@ -7514,7 +7564,7 @@ SWIGINTERN VALUE _wrap_Image_load_tiles(int nargs, VALUE *args, VALUE self) {
|
|
7514
7564
|
argv[ii] = args[ii];
|
7515
7565
|
}
|
7516
7566
|
if ((argc >= 3) && (argc <= 4)) {
|
7517
|
-
int _v;
|
7567
|
+
int _v = 0;
|
7518
7568
|
_v = (argv[0] != 0);
|
7519
7569
|
if (_v) {
|
7520
7570
|
{
|
@@ -7539,7 +7589,7 @@ SWIGINTERN VALUE _wrap_Image_load_tiles(int nargs, VALUE *args, VALUE self) {
|
|
7539
7589
|
}
|
7540
7590
|
}
|
7541
7591
|
if (argc == 5) {
|
7542
|
-
int _v;
|
7592
|
+
int _v = 0;
|
7543
7593
|
void *vptr = 0;
|
7544
7594
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Gosu__Window, SWIG_POINTER_NO_NULL);
|
7545
7595
|
_v = SWIG_CheckState(res);
|
@@ -8251,7 +8301,7 @@ _wrap_Sample_play(int argc, VALUE *argv, VALUE self) {
|
|
8251
8301
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
8252
8302
|
}
|
8253
8303
|
}
|
8254
|
-
vresult = SWIG_NewPointerObj((new Gosu::Channel(
|
8304
|
+
vresult = SWIG_NewPointerObj((new Gosu::Channel(result)), SWIGTYPE_p_Gosu__Channel, SWIG_POINTER_OWN | 0 );
|
8255
8305
|
return vresult;
|
8256
8306
|
fail:
|
8257
8307
|
return Qnil;
|
@@ -8320,7 +8370,7 @@ _wrap_Sample_play_pan(int argc, VALUE *argv, VALUE self) {
|
|
8320
8370
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
8321
8371
|
}
|
8322
8372
|
}
|
8323
|
-
vresult = SWIG_NewPointerObj((new Gosu::Channel(
|
8373
|
+
vresult = SWIG_NewPointerObj((new Gosu::Channel(result)), SWIGTYPE_p_Gosu__Channel, SWIG_POINTER_OWN | 0 );
|
8324
8374
|
return vresult;
|
8325
8375
|
fail:
|
8326
8376
|
return Qnil;
|
@@ -10774,7 +10824,7 @@ _wrap_char_to_button_id(int argc, VALUE *argv, VALUE self) {
|
|
10774
10824
|
}
|
10775
10825
|
{
|
10776
10826
|
try {
|
10777
|
-
result = (Gosu::Button)Gosu::char_to_button_id(arg1);
|
10827
|
+
result = (Gosu::Button)Gosu::char_to_button_id(SWIG_STD_MOVE(arg1));
|
10778
10828
|
}
|
10779
10829
|
catch (const std::exception& e) {
|
10780
10830
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
@@ -11094,7 +11144,7 @@ _wrap_draw_line(int argc, VALUE *argv, VALUE self) {
|
|
11094
11144
|
}
|
11095
11145
|
{
|
11096
11146
|
try {
|
11097
|
-
Gosu::draw_line(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
11147
|
+
Gosu::draw_line(arg1,arg2,SWIG_STD_MOVE(arg3),arg4,arg5,SWIG_STD_MOVE(arg6),arg7,arg8);
|
11098
11148
|
}
|
11099
11149
|
catch (const std::exception& e) {
|
11100
11150
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
@@ -11249,7 +11299,7 @@ _wrap_draw_triangle(int argc, VALUE *argv, VALUE self) {
|
|
11249
11299
|
}
|
11250
11300
|
{
|
11251
11301
|
try {
|
11252
|
-
Gosu::draw_triangle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
|
11302
|
+
Gosu::draw_triangle(arg1,arg2,SWIG_STD_MOVE(arg3),arg4,arg5,SWIG_STD_MOVE(arg6),arg7,arg8,SWIG_STD_MOVE(arg9),arg10,arg11);
|
11253
11303
|
}
|
11254
11304
|
catch (const std::exception& e) {
|
11255
11305
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
@@ -11439,7 +11489,7 @@ _wrap_draw_quad(int argc, VALUE *argv, VALUE self) {
|
|
11439
11489
|
}
|
11440
11490
|
{
|
11441
11491
|
try {
|
11442
|
-
Gosu::draw_quad(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14);
|
11492
|
+
Gosu::draw_quad(arg1,arg2,SWIG_STD_MOVE(arg3),arg4,arg5,SWIG_STD_MOVE(arg6),arg7,arg8,SWIG_STD_MOVE(arg9),arg10,arg11,SWIG_STD_MOVE(arg12),arg13,arg14);
|
11443
11493
|
}
|
11444
11494
|
catch (const std::exception& e) {
|
11445
11495
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
@@ -11540,7 +11590,7 @@ _wrap_draw_rect(int argc, VALUE *argv, VALUE self) {
|
|
11540
11590
|
}
|
11541
11591
|
{
|
11542
11592
|
try {
|
11543
|
-
Gosu::draw_rect(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
11593
|
+
Gosu::draw_rect(arg1,arg2,arg3,arg4,SWIG_STD_MOVE(arg5),arg6,arg7);
|
11544
11594
|
}
|
11545
11595
|
catch (const std::exception& e) {
|
11546
11596
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
@@ -11632,7 +11682,7 @@ SWIGINTERN VALUE _wrap_unsafe_gl(int nargs, VALUE *args, VALUE self) {
|
|
11632
11682
|
return _wrap_unsafe_gl__SWIG_0(nargs, args, self);
|
11633
11683
|
}
|
11634
11684
|
if (argc == 1) {
|
11635
|
-
int _v;
|
11685
|
+
int _v = 0;
|
11636
11686
|
{
|
11637
11687
|
int res = SWIG_AsVal_double(argv[0], NULL);
|
11638
11688
|
_v = SWIG_CheckState(res);
|
@@ -12108,7 +12158,7 @@ SWIGINTERN VALUE _wrap_scale(int nargs, VALUE *args, VALUE self) {
|
|
12108
12158
|
argv[ii] = args[ii];
|
12109
12159
|
}
|
12110
12160
|
if (argc == 1) {
|
12111
|
-
int _v;
|
12161
|
+
int _v = 0;
|
12112
12162
|
{
|
12113
12163
|
int res = SWIG_AsVal_double(argv[0], NULL);
|
12114
12164
|
_v = SWIG_CheckState(res);
|
@@ -12118,7 +12168,7 @@ SWIGINTERN VALUE _wrap_scale(int nargs, VALUE *args, VALUE self) {
|
|
12118
12168
|
}
|
12119
12169
|
}
|
12120
12170
|
if (argc == 2) {
|
12121
|
-
int _v;
|
12171
|
+
int _v = 0;
|
12122
12172
|
{
|
12123
12173
|
int res = SWIG_AsVal_double(argv[0], NULL);
|
12124
12174
|
_v = SWIG_CheckState(res);
|
@@ -12134,7 +12184,7 @@ SWIGINTERN VALUE _wrap_scale(int nargs, VALUE *args, VALUE self) {
|
|
12134
12184
|
}
|
12135
12185
|
}
|
12136
12186
|
if (argc == 4) {
|
12137
|
-
int _v;
|
12187
|
+
int _v = 0;
|
12138
12188
|
{
|
12139
12189
|
int res = SWIG_AsVal_double(argv[0], NULL);
|
12140
12190
|
_v = SWIG_CheckState(res);
|
@@ -12222,7 +12272,7 @@ static swig_type_info _swigt__p_Gosu__TextInput = {"_p_Gosu__TextInput", "Gosu::
|
|
12222
12272
|
static swig_type_info _swigt__p_Gosu__Window = {"_p_Gosu__Window", "Gosu::Window *", 0, 0, (void*)0, 0};
|
12223
12273
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
12224
12274
|
static swig_type_info _swigt__p_double = {"_p_double", "Gosu::ZPos *|double *", 0, 0, (void*)0, 0};
|
12225
|
-
static swig_type_info _swigt__p_std__arrayT_double_16_t = {"_p_std__arrayT_double_16_t", "std::array< double,16 >
|
12275
|
+
static swig_type_info _swigt__p_std__arrayT_double_16_t = {"_p_std__arrayT_double_16_t", "Gosu::Transform *|std::array< double,16 > *", 0, 0, (void*)0, 0};
|
12226
12276
|
static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *", 0, 0, (void*)0, 0};
|
12227
12277
|
|
12228
12278
|
static swig_type_info *swig_type_initial[] = {
|
@@ -12326,9 +12376,12 @@ extern "C" {
|
|
12326
12376
|
#define SWIGRUNTIME_DEBUG
|
12327
12377
|
#endif
|
12328
12378
|
|
12379
|
+
#ifndef SWIG_INIT_CLIENT_DATA_TYPE
|
12380
|
+
#define SWIG_INIT_CLIENT_DATA_TYPE void *
|
12381
|
+
#endif
|
12329
12382
|
|
12330
12383
|
SWIGRUNTIME void
|
12331
|
-
SWIG_InitializeModule(
|
12384
|
+
SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
|
12332
12385
|
size_t i;
|
12333
12386
|
swig_module_info *module_head, *iter;
|
12334
12387
|
int init;
|
@@ -12527,7 +12580,7 @@ SWIGEXPORT void Init_gosu(void) {
|
|
12527
12580
|
rb_define_const(mGosu, "LICENSES", SWIG_From_std_string(static_cast< std::string >(Gosu::LICENSES)));
|
12528
12581
|
rb_define_const(mGosu, "MAJOR_VERSION", SWIG_From_int(static_cast< int >(1)));
|
12529
12582
|
rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(4)));
|
12530
|
-
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(
|
12583
|
+
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(6)));
|
12531
12584
|
rb_define_module_function(mGosu, "milliseconds", VALUEFUNC(_wrap_milliseconds), -1);
|
12532
12585
|
rb_define_module_function(mGosu, "random", VALUEFUNC(_wrap_random), -1);
|
12533
12586
|
rb_define_module_function(mGosu, "degrees_to_radians", VALUEFUNC(_wrap_degrees_to_radians), -1);
|
data/src/RubyGosu.h
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
|
-
* This file was automatically generated by SWIG (
|
3
|
-
* Version 4.
|
2
|
+
* This file was automatically generated by SWIG (https://www.swig.org).
|
3
|
+
* Version 4.1.1
|
4
4
|
*
|
5
|
-
*
|
6
|
-
*
|
7
|
-
* changes to this file unless you know what you are doing--modify the SWIG
|
8
|
-
* interface file instead.
|
5
|
+
* Do not make changes to this file unless you know what you are doing - modify
|
6
|
+
* the SWIG interface file instead.
|
9
7
|
* ----------------------------------------------------------------------------- */
|
10
8
|
|
11
9
|
#ifndef SWIG_Gosu_WRAP_H_
|
@@ -28,7 +26,7 @@ public:
|
|
28
26
|
class SwigDirector_Window : public Gosu::Window, public Swig::Director {
|
29
27
|
|
30
28
|
public:
|
31
|
-
SwigDirector_Window(VALUE self,
|
29
|
+
SwigDirector_Window(VALUE self,int width,int height,unsigned int window_flags=Gosu::WF_WINDOWED,double update_interval=16.666666);
|
32
30
|
virtual ~SwigDirector_Window();
|
33
31
|
virtual void show();
|
34
32
|
virtual bool tick();
|