gosu 0.10.7 → 0.10.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gosu/Version.hpp +2 -2
- data/README.md +1 -1
- data/ext/gosu/extconf.rb +21 -32
- data/ext/gosu/gosu_wrap.cxx +122 -129
- data/ext/gosu/gosu_wrap.h +1 -1
- data/lib/gosu/patches.rb +5 -0
- data/rdoc/gosu.rb +6 -0
- data/src/DirectoriesWin.cpp +25 -3
- data/src/FileWin.cpp +1 -1
- data/src/Input/Input.cpp +7 -2
- data/src/Text/TextApple.mm +2 -1
- data/src/Text/TextWin.cpp +1 -1
- data/src/UtilityApple.mm +3 -2
- data/src/UtilityWin.cpp +1 -1
- data/src/WinUtility.cpp +2 -100
- data/src/WinUtility.hpp +30 -0
- data/src/stb_image.h +235 -102
- metadata +11 -12
- data/Gosu/WinUtility.hpp +0 -75
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8963dd609d139e1770b521802b7d1299d59011c1
|
4
|
+
data.tar.gz: 92aa3703994926810541ebceb6afbc10a74755e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84b4953763c888611231168c69f81e48c54e1d64e6da495089a9e5145a972e09fa5c69ffa5b4087cd86b7c04bf7a2123531905ea36fab60e2083ebfbbb167fac
|
7
|
+
data.tar.gz: db53c27a4f9aaefd8ae401edc1dd374f67f03415702f9121f137beb4a5189c812b6d8357823c05bb78e9a8c147c34c841ce2f2092883f2fdd0db2a2bff00a183
|
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 8
|
7
|
+
#define GOSU_VERSION "0.10.8"
|
8
8
|
|
9
9
|
#define GOSU_COPYRIGHT_NOTICE \
|
10
10
|
"This software uses the following third-party libraries:\n" \
|
data/README.md
CHANGED
@@ -15,6 +15,6 @@ Complaints, questions, feedback?
|
|
15
15
|
- Try your luck in the (mostly idle) [IRC channel](https://webchat.freenode.net/?channels=gosu)
|
16
16
|
- Or [email me](mailto:julian@raschke.de) :)
|
17
17
|
|
18
|
-
[![Build Status](https://travis-ci.org/gosu/gosu.svg?branch=master)](https://travis-ci.org/gosu/gosu) Linux
|
18
|
+
[![Build Status](https://travis-ci.org/gosu/gosu.svg?branch=master)](https://travis-ci.org/gosu/gosu) Linux, OS X and iOS builds
|
19
19
|
|
20
20
|
[![Build status](https://ci.appveyor.com/api/projects/status/v0liohs47jono1eq?svg=true)](https://ci.appveyor.com/project/gosu-ci/gosu) Windows builds
|
data/ext/gosu/extconf.rb
CHANGED
@@ -10,12 +10,11 @@ end
|
|
10
10
|
|
11
11
|
puts 'The Gosu gem requires some libraries to be installed system-wide.'
|
12
12
|
puts 'See the following site for a list:'
|
13
|
-
if `uname`.chomp ==
|
13
|
+
if `uname`.chomp == 'Darwin' then
|
14
14
|
puts 'https://github.com/gosu/gosu/wiki/Getting-Started-on-OS-X'
|
15
15
|
else
|
16
16
|
puts 'https://github.com/gosu/gosu/wiki/Getting-Started-on-Linux'
|
17
17
|
end
|
18
|
-
puts
|
19
18
|
|
20
19
|
BASE_FILES = %w(
|
21
20
|
Bitmap/Bitmap.cpp
|
@@ -64,49 +63,36 @@ require 'fileutils'
|
|
64
63
|
|
65
64
|
# Silence internal deprecation warnings in Gosu
|
66
65
|
$CFLAGS << " -DGOSU_DEPRECATED="
|
66
|
+
|
67
67
|
$CXXFLAGS ||= ''
|
68
68
|
|
69
69
|
$INCFLAGS << " -I../.. -I../../src"
|
70
70
|
|
71
71
|
if `uname`.chomp == 'Darwin' then
|
72
|
-
HOMEBREW_DEPENDENCIES = %w(SDL2)
|
73
|
-
FRAMEWORKS = %w(AppKit ApplicationServices AudioToolbox Carbon ForceFeedback Foundation IOKit OpenAL OpenGL)
|
74
|
-
|
75
72
|
SOURCE_FILES = BASE_FILES + MAC_FILES
|
76
73
|
|
77
74
|
# To make everything work with the Objective C runtime
|
78
|
-
$CFLAGS
|
75
|
+
$CFLAGS << " -x objective-c -fobjc-arc -DNDEBUG"
|
79
76
|
# Compile all C++ files as Objective C++ on OS X since mkmf does not support .mm
|
80
77
|
# files.
|
81
|
-
|
82
|
-
|
83
|
-
#
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
if `uname -r`.to_i >= 13 then
|
88
|
-
$CXXFLAGS << " -std=gnu++11"
|
89
|
-
|
90
|
-
# rvm-specific fix:
|
91
|
-
# Explicitly set libc++ as the C++ standard library. Otherwise the gem will
|
92
|
-
# end up being compiled against libstdc++, but linked against libc++, and
|
93
|
-
# fail to load, see: https://github.com/shawn42/gamebox/issues/96
|
94
|
-
$CXXFLAGS << " -stdlib=libc++"
|
95
|
-
end
|
78
|
+
$CXXFLAGS << " -x objective-c++ -fobjc-arc -DNDEBUG"
|
79
|
+
|
80
|
+
# Enable C++ 11, and explicitly specify libc++ as the standard library.
|
81
|
+
# rvm will sometimes try to override this:
|
82
|
+
# https://github.com/shawn42/gamebox/issues/96
|
83
|
+
$CXXFLAGS << " -std=gnu++11 -stdlib=libc++"
|
96
84
|
|
97
|
-
# Dependencies
|
85
|
+
# Dependencies.
|
98
86
|
$CXXFLAGS << " #{`sdl2-config --cflags`.chomp}"
|
99
|
-
|
87
|
+
# Prefer statically linking SDL 2.
|
88
|
+
$LDFLAGS << " #{`sdl2-config --static-libs`.chomp} -framework OpenGL -framework OpenAL"
|
100
89
|
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
end
|
108
|
-
|
109
|
-
$LDFLAGS << FRAMEWORKS.map { |f| " -framework #{f}" }.join
|
90
|
+
# Disable building of 32-bit slices in Apple's Ruby.
|
91
|
+
# (RbConfig::CONFIG['CXXFLAGS'] on 10.11: -arch x86_64 -arch i386 -g -Os -pipe)
|
92
|
+
$CFLAGS.gsub! "-arch i386", ""
|
93
|
+
$CXXFLAGS.gsub! "-arch i386", ""
|
94
|
+
$LDFLAGS.gsub! "-arch i386", ""
|
95
|
+
CONFIG['LDSHARED'].gsub! "-arch i386", ""
|
110
96
|
else
|
111
97
|
SOURCE_FILES = BASE_FILES + LINUX_FILES
|
112
98
|
|
@@ -143,6 +129,9 @@ SOURCE_FILES.each do |file|
|
|
143
129
|
end
|
144
130
|
end
|
145
131
|
|
132
|
+
# This is necessary to build on stock Ruby on OS X 10.7.
|
133
|
+
CONFIG['CXXFLAGS'] ||= $CXXFLAGS
|
134
|
+
|
146
135
|
if RUBY_VERSION >= '1.9.3' and RUBY_VERSION < '2.2.0' then
|
147
136
|
# In some versions of Ruby and mkmf, the $CXXFLAGS variable is badly broken.
|
148
137
|
# We can modify CONFIG instead, and our changes will end up in the Makefile.
|
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.10
|
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
|
@@ -106,9 +106,11 @@ template <typename T> T SwigValueInit() {
|
|
106
106
|
#endif
|
107
107
|
|
108
108
|
/* exporting methods */
|
109
|
-
#if (__GNUC__
|
110
|
-
#
|
111
|
-
#
|
109
|
+
#if defined(__GNUC__)
|
110
|
+
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
111
|
+
# ifndef GCC_HASCLASSVISIBILITY
|
112
|
+
# define GCC_HASCLASSVISIBILITY
|
113
|
+
# endif
|
112
114
|
# endif
|
113
115
|
#endif
|
114
116
|
|
@@ -228,9 +230,11 @@ template <typename T> T SwigValueInit() {
|
|
228
230
|
#endif
|
229
231
|
|
230
232
|
/* exporting methods */
|
231
|
-
#if (__GNUC__
|
232
|
-
#
|
233
|
-
#
|
233
|
+
#if defined(__GNUC__)
|
234
|
+
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
235
|
+
# ifndef GCC_HASCLASSVISIBILITY
|
236
|
+
# define GCC_HASCLASSVISIBILITY
|
237
|
+
# endif
|
234
238
|
# endif
|
235
239
|
#endif
|
236
240
|
|
@@ -780,16 +784,16 @@ SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|
780
784
|
char d = *(c++);
|
781
785
|
unsigned char uu;
|
782
786
|
if ((d >= '0') && (d <= '9'))
|
783
|
-
uu = ((d - '0') << 4);
|
787
|
+
uu = (unsigned char)((d - '0') << 4);
|
784
788
|
else if ((d >= 'a') && (d <= 'f'))
|
785
|
-
uu = ((d - ('a'-10)) << 4);
|
789
|
+
uu = (unsigned char)((d - ('a'-10)) << 4);
|
786
790
|
else
|
787
791
|
return (char *) 0;
|
788
792
|
d = *(c++);
|
789
793
|
if ((d >= '0') && (d <= '9'))
|
790
|
-
uu |= (d - '0');
|
794
|
+
uu |= (unsigned char)(d - '0');
|
791
795
|
else if ((d >= 'a') && (d <= 'f'))
|
792
|
-
uu |= (d - ('a'-10));
|
796
|
+
uu |= (unsigned char)(d - ('a'-10));
|
793
797
|
else
|
794
798
|
return (char *) 0;
|
795
799
|
*u = uu;
|
@@ -1662,6 +1666,14 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1662
1666
|
|
1663
1667
|
/* Do type-checking if type info was provided */
|
1664
1668
|
if (ty) {
|
1669
|
+
if (ty->clientdata) {
|
1670
|
+
if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
|
1671
|
+
if (vptr == 0) {
|
1672
|
+
/* The object has already been deleted */
|
1673
|
+
return SWIG_ObjectPreviouslyDeletedError;
|
1674
|
+
}
|
1675
|
+
}
|
1676
|
+
}
|
1665
1677
|
if ((c = SWIG_MangleStr(obj)) == NULL) {
|
1666
1678
|
return SWIG_ERROR;
|
1667
1679
|
}
|
@@ -1669,10 +1681,6 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1669
1681
|
if (!tc) {
|
1670
1682
|
return SWIG_ERROR;
|
1671
1683
|
} else {
|
1672
|
-
if (vptr == 0) {
|
1673
|
-
/* The object has already been deleted */
|
1674
|
-
return SWIG_ObjectPreviouslyDeletedError;
|
1675
|
-
}
|
1676
1684
|
if (ptr) {
|
1677
1685
|
if (tc->type == ty) {
|
1678
1686
|
*ptr = vptr;
|
@@ -2212,7 +2220,7 @@ static VALUE mGosu;
|
|
2212
2220
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
2213
2221
|
|
2214
2222
|
|
2215
|
-
#define SWIGVERSION
|
2223
|
+
#define SWIGVERSION 0x030010
|
2216
2224
|
#define SWIG_VERSION SWIGVERSION
|
2217
2225
|
|
2218
2226
|
|
@@ -2496,7 +2504,7 @@ SWIG_ruby_failed(void)
|
|
2496
2504
|
}
|
2497
2505
|
|
2498
2506
|
|
2499
|
-
/*@SWIG:/usr/local/Cellar/swig/3.0.
|
2507
|
+
/*@SWIG:/usr/local/Cellar/swig/3.0.10/share/swig/3.0.10/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2500
2508
|
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
|
2501
2509
|
{
|
2502
2510
|
VALUE obj = args[0];
|
@@ -2538,7 +2546,7 @@ SWIG_From_unsigned_SS_int (unsigned int value)
|
|
2538
2546
|
#include <string>
|
2539
2547
|
|
2540
2548
|
|
2541
|
-
/*@SWIG:/usr/local/Cellar/swig/3.0.
|
2549
|
+
/*@SWIG:/usr/local/Cellar/swig/3.0.10/share/swig/3.0.10/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2542
2550
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
2543
2551
|
{
|
2544
2552
|
VALUE obj = args[0];
|
@@ -2637,7 +2645,7 @@ SWIG_From_bool (bool value)
|
|
2637
2645
|
}
|
2638
2646
|
|
2639
2647
|
|
2640
|
-
/*@SWIG:/usr/local/Cellar/swig/3.0.
|
2648
|
+
/*@SWIG:/usr/local/Cellar/swig/3.0.10/share/swig/3.0.10/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2641
2649
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
2642
2650
|
{
|
2643
2651
|
VALUE obj = args[0];
|
@@ -2730,8 +2738,11 @@ SWIGINTERN void Gosu_Font_set_image(Gosu::Font *self,wchar_t wc,VALUE source){
|
|
2730
2738
|
|
2731
2739
|
/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
|
2732
2740
|
#ifndef SWIG_isfinite
|
2741
|
+
/* isfinite() is a macro for C99, but a function in namespace std for C++11. */
|
2733
2742
|
# if defined(isfinite)
|
2734
2743
|
# define SWIG_isfinite(X) (isfinite(X))
|
2744
|
+
# elif defined __cplusplus && __cplusplus >= 201103L
|
2745
|
+
# define SWIG_isfinite(X) (std::isfinite(X))
|
2735
2746
|
# elif defined(_MSC_VER)
|
2736
2747
|
# define SWIG_isfinite(X) (_finite(X))
|
2737
2748
|
# elif defined(__sun) && defined(__SVR4)
|
@@ -3098,14 +3109,14 @@ bool SwigDirector_Window::tick() {
|
|
3098
3109
|
void SwigDirector_Window::update() {
|
3099
3110
|
VALUE result;
|
3100
3111
|
|
3101
|
-
result = rb_funcall(swig_get_self(), rb_intern("
|
3112
|
+
result = rb_funcall(swig_get_self(), rb_intern("protected_update"), 0, NULL);
|
3102
3113
|
}
|
3103
3114
|
|
3104
3115
|
|
3105
3116
|
void SwigDirector_Window::draw() {
|
3106
3117
|
VALUE result;
|
3107
3118
|
|
3108
|
-
result = rb_funcall(swig_get_self(), rb_intern("
|
3119
|
+
result = rb_funcall(swig_get_self(), rb_intern("protected_draw_2"), 0, NULL);
|
3109
3120
|
}
|
3110
3121
|
|
3111
3122
|
|
@@ -3113,7 +3124,7 @@ bool SwigDirector_Window::needsRedraw() const {
|
|
3113
3124
|
bool c_result ;
|
3114
3125
|
VALUE result;
|
3115
3126
|
|
3116
|
-
result = rb_funcall(swig_get_self(), rb_intern("
|
3127
|
+
result = rb_funcall(swig_get_self(), rb_intern("protected_needs_redraw?"), 0, NULL);
|
3117
3128
|
bool swig_val;
|
3118
3129
|
int swig_res = SWIG_AsVal_bool(result, &swig_val);
|
3119
3130
|
if (!SWIG_IsOK(swig_res)) {
|
@@ -3128,7 +3139,7 @@ bool SwigDirector_Window::needsCursor() const {
|
|
3128
3139
|
bool c_result ;
|
3129
3140
|
VALUE result;
|
3130
3141
|
|
3131
|
-
result = rb_funcall(swig_get_self(), rb_intern("
|
3142
|
+
result = rb_funcall(swig_get_self(), rb_intern("protected_needs_cursor?"), 0, NULL);
|
3132
3143
|
bool swig_val;
|
3133
3144
|
int swig_res = SWIG_AsVal_bool(result, &swig_val);
|
3134
3145
|
if (!SWIG_IsOK(swig_res)) {
|
@@ -3142,7 +3153,7 @@ bool SwigDirector_Window::needsCursor() const {
|
|
3142
3153
|
void SwigDirector_Window::loseFocus() {
|
3143
3154
|
VALUE result;
|
3144
3155
|
|
3145
|
-
result = rb_funcall(swig_get_self(), rb_intern("
|
3156
|
+
result = rb_funcall(swig_get_self(), rb_intern("protected_lose_focus"), 0, NULL);
|
3146
3157
|
}
|
3147
3158
|
|
3148
3159
|
|
@@ -3163,7 +3174,7 @@ void SwigDirector_Window::buttonDown(Gosu::Button arg0) {
|
|
3163
3174
|
else
|
3164
3175
|
obj0 = LONG2NUM((&arg0)->id());
|
3165
3176
|
}
|
3166
|
-
result = rb_funcall(swig_get_self(), rb_intern("
|
3177
|
+
result = rb_funcall(swig_get_self(), rb_intern("protected_button_down"), 1,obj0);
|
3167
3178
|
}
|
3168
3179
|
|
3169
3180
|
|
@@ -3177,7 +3188,7 @@ void SwigDirector_Window::buttonUp(Gosu::Button arg0) {
|
|
3177
3188
|
else
|
3178
3189
|
obj0 = LONG2NUM((&arg0)->id());
|
3179
3190
|
}
|
3180
|
-
result = rb_funcall(swig_get_self(), rb_intern("
|
3191
|
+
result = rb_funcall(swig_get_self(), rb_intern("protected_button_up"), 1,obj0);
|
3181
3192
|
}
|
3182
3193
|
|
3183
3194
|
|
@@ -3774,22 +3785,20 @@ fail:
|
|
3774
3785
|
}
|
3775
3786
|
|
3776
3787
|
|
3777
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
3778
3788
|
SWIGINTERN VALUE
|
3779
|
-
|
3789
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
3790
|
+
_wrap_Color_allocate(VALUE self)
|
3780
3791
|
#else
|
3781
|
-
|
3782
|
-
_wrap_Color_allocate(int argc, VALUE *argv, VALUE self) {
|
3792
|
+
_wrap_Color_allocate(int argc, VALUE *argv, VALUE self)
|
3783
3793
|
#endif
|
3784
|
-
|
3785
|
-
|
3786
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__Color);
|
3794
|
+
{
|
3795
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__Color);
|
3787
3796
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
3788
|
-
|
3797
|
+
rb_obj_call_init(vresult, argc, argv);
|
3789
3798
|
#endif
|
3790
|
-
|
3791
|
-
|
3792
|
-
|
3799
|
+
return vresult;
|
3800
|
+
}
|
3801
|
+
|
3793
3802
|
|
3794
3803
|
SWIGINTERN VALUE
|
3795
3804
|
_wrap_new_Color__SWIG_3(int argc, VALUE *argv, VALUE self) {
|
@@ -4843,7 +4852,7 @@ SWIGINTERN VALUE _wrap_Color_argb(int nargs, VALUE *args, VALUE self) {
|
|
4843
4852
|
|
4844
4853
|
fail:
|
4845
4854
|
Ruby_Format_OverloadedError( argc, 4, "Color.argb",
|
4846
|
-
"
|
4855
|
+
" std::tr1::uint32_t Color.argb(Gosu::Color const *self)\n"
|
4847
4856
|
" Gosu::Color Color.argb(Gosu::Color::Channel a, Gosu::Color::Channel r, Gosu::Color::Channel g, Gosu::Color::Channel b)\n"
|
4848
4857
|
" Gosu::Color Color.argb(std::tr1::uint32_t argb)\n");
|
4849
4858
|
|
@@ -5531,22 +5540,20 @@ fail:
|
|
5531
5540
|
}
|
5532
5541
|
|
5533
5542
|
|
5534
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
5535
5543
|
SWIGINTERN VALUE
|
5536
|
-
|
5544
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
5545
|
+
_wrap_Font_allocate(VALUE self)
|
5537
5546
|
#else
|
5538
|
-
|
5539
|
-
_wrap_Font_allocate(int argc, VALUE *argv, VALUE self) {
|
5547
|
+
_wrap_Font_allocate(int argc, VALUE *argv, VALUE self)
|
5540
5548
|
#endif
|
5541
|
-
|
5542
|
-
|
5543
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__Font);
|
5549
|
+
{
|
5550
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__Font);
|
5544
5551
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
5545
|
-
|
5552
|
+
rb_obj_call_init(vresult, argc, argv);
|
5546
5553
|
#endif
|
5547
|
-
|
5548
|
-
|
5549
|
-
|
5554
|
+
return vresult;
|
5555
|
+
}
|
5556
|
+
|
5550
5557
|
|
5551
5558
|
SWIGINTERN VALUE
|
5552
5559
|
_wrap_new_Font__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
@@ -5954,22 +5961,20 @@ fail:
|
|
5954
5961
|
}
|
5955
5962
|
|
5956
5963
|
|
5957
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
5958
5964
|
SWIGINTERN VALUE
|
5959
|
-
|
5965
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
5966
|
+
_wrap_GLTexInfo_allocate(VALUE self)
|
5960
5967
|
#else
|
5961
|
-
|
5962
|
-
_wrap_GLTexInfo_allocate(int argc, VALUE *argv, VALUE self) {
|
5968
|
+
_wrap_GLTexInfo_allocate(int argc, VALUE *argv, VALUE self)
|
5963
5969
|
#endif
|
5964
|
-
|
5965
|
-
|
5966
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__GLTexInfo);
|
5970
|
+
{
|
5971
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__GLTexInfo);
|
5967
5972
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
5968
|
-
|
5973
|
+
rb_obj_call_init(vresult, argc, argv);
|
5969
5974
|
#endif
|
5970
|
-
|
5971
|
-
|
5972
|
-
|
5975
|
+
return vresult;
|
5976
|
+
}
|
5977
|
+
|
5973
5978
|
|
5974
5979
|
SWIGINTERN VALUE
|
5975
5980
|
_wrap_new_GLTexInfo(int argc, VALUE *argv, VALUE self) {
|
@@ -6451,22 +6456,20 @@ fail:
|
|
6451
6456
|
}
|
6452
6457
|
|
6453
6458
|
|
6454
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
6455
6459
|
SWIGINTERN VALUE
|
6456
|
-
|
6460
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
6461
|
+
_wrap_Image_allocate(VALUE self)
|
6457
6462
|
#else
|
6458
|
-
|
6459
|
-
_wrap_Image_allocate(int argc, VALUE *argv, VALUE self) {
|
6463
|
+
_wrap_Image_allocate(int argc, VALUE *argv, VALUE self)
|
6460
6464
|
#endif
|
6461
|
-
|
6462
|
-
|
6463
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__Image);
|
6465
|
+
{
|
6466
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__Image);
|
6464
6467
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
6465
|
-
|
6468
|
+
rb_obj_call_init(vresult, argc, argv);
|
6466
6469
|
#endif
|
6467
|
-
|
6468
|
-
|
6469
|
-
|
6470
|
+
return vresult;
|
6471
|
+
}
|
6472
|
+
|
6470
6473
|
|
6471
6474
|
SWIGINTERN VALUE
|
6472
6475
|
_wrap_new_Image(int argc, VALUE *argv, VALUE self) {
|
@@ -7209,22 +7212,20 @@ fail:
|
|
7209
7212
|
|
7210
7213
|
static swig_class SwigClassSampleInstance;
|
7211
7214
|
|
7212
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
7213
7215
|
SWIGINTERN VALUE
|
7214
|
-
|
7216
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
7217
|
+
_wrap_SampleInstance_allocate(VALUE self)
|
7215
7218
|
#else
|
7216
|
-
|
7217
|
-
_wrap_SampleInstance_allocate(int argc, VALUE *argv, VALUE self) {
|
7219
|
+
_wrap_SampleInstance_allocate(int argc, VALUE *argv, VALUE self)
|
7218
7220
|
#endif
|
7219
|
-
|
7220
|
-
|
7221
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__SampleInstance);
|
7221
|
+
{
|
7222
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__SampleInstance);
|
7222
7223
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
7223
|
-
|
7224
|
+
rb_obj_call_init(vresult, argc, argv);
|
7224
7225
|
#endif
|
7225
|
-
|
7226
|
-
|
7227
|
-
|
7226
|
+
return vresult;
|
7227
|
+
}
|
7228
|
+
|
7228
7229
|
|
7229
7230
|
SWIGINTERN VALUE
|
7230
7231
|
_wrap_new_SampleInstance(int argc, VALUE *argv, VALUE self) {
|
@@ -7520,22 +7521,20 @@ free_Gosu_SampleInstance(void *self) {
|
|
7520
7521
|
|
7521
7522
|
static swig_class SwigClassSample;
|
7522
7523
|
|
7523
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
7524
7524
|
SWIGINTERN VALUE
|
7525
|
-
|
7525
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
7526
|
+
_wrap_Sample_allocate(VALUE self)
|
7526
7527
|
#else
|
7527
|
-
|
7528
|
-
_wrap_Sample_allocate(int argc, VALUE *argv, VALUE self) {
|
7528
|
+
_wrap_Sample_allocate(int argc, VALUE *argv, VALUE self)
|
7529
7529
|
#endif
|
7530
|
-
|
7531
|
-
|
7532
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__Sample);
|
7530
|
+
{
|
7531
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__Sample);
|
7533
7532
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
7534
|
-
|
7533
|
+
rb_obj_call_init(vresult, argc, argv);
|
7535
7534
|
#endif
|
7536
|
-
|
7537
|
-
|
7538
|
-
|
7535
|
+
return vresult;
|
7536
|
+
}
|
7537
|
+
|
7539
7538
|
|
7540
7539
|
SWIGINTERN VALUE
|
7541
7540
|
_wrap_new_Sample(int argc, VALUE *argv, VALUE self) {
|
@@ -7704,22 +7703,20 @@ free_Gosu_Sample(void *self) {
|
|
7704
7703
|
|
7705
7704
|
static swig_class SwigClassSong;
|
7706
7705
|
|
7707
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
7708
7706
|
SWIGINTERN VALUE
|
7709
|
-
|
7707
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
7708
|
+
_wrap_Song_allocate(VALUE self)
|
7710
7709
|
#else
|
7711
|
-
|
7712
|
-
_wrap_Song_allocate(int argc, VALUE *argv, VALUE self) {
|
7710
|
+
_wrap_Song_allocate(int argc, VALUE *argv, VALUE self)
|
7713
7711
|
#endif
|
7714
|
-
|
7715
|
-
|
7716
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__Song);
|
7712
|
+
{
|
7713
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__Song);
|
7717
7714
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
7718
|
-
|
7715
|
+
rb_obj_call_init(vresult, argc, argv);
|
7719
7716
|
#endif
|
7720
|
-
|
7721
|
-
|
7722
|
-
|
7717
|
+
return vresult;
|
7718
|
+
}
|
7719
|
+
|
7723
7720
|
|
7724
7721
|
SWIGINTERN VALUE
|
7725
7722
|
_wrap_new_Song(int argc, VALUE *argv, VALUE self) {
|
@@ -8016,22 +8013,20 @@ fail:
|
|
8016
8013
|
|
8017
8014
|
static swig_class SwigClassTextInput;
|
8018
8015
|
|
8019
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
8020
8016
|
SWIGINTERN VALUE
|
8021
|
-
|
8017
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
8018
|
+
_wrap_TextInput_allocate(VALUE self)
|
8022
8019
|
#else
|
8023
|
-
|
8024
|
-
_wrap_TextInput_allocate(int argc, VALUE *argv, VALUE self) {
|
8020
|
+
_wrap_TextInput_allocate(int argc, VALUE *argv, VALUE self)
|
8025
8021
|
#endif
|
8026
|
-
|
8027
|
-
|
8028
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__TextInput);
|
8022
|
+
{
|
8023
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__TextInput);
|
8029
8024
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
8030
|
-
|
8025
|
+
rb_obj_call_init(vresult, argc, argv);
|
8031
8026
|
#endif
|
8032
|
-
|
8033
|
-
|
8034
|
-
|
8027
|
+
return vresult;
|
8028
|
+
}
|
8029
|
+
|
8035
8030
|
|
8036
8031
|
SWIGINTERN VALUE
|
8037
8032
|
_wrap_new_TextInput(int argc, VALUE *argv, VALUE self) {
|
@@ -8436,22 +8431,20 @@ fail:
|
|
8436
8431
|
|
8437
8432
|
static swig_class SwigClassWindow;
|
8438
8433
|
|
8439
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
8440
8434
|
SWIGINTERN VALUE
|
8441
|
-
|
8435
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
8436
|
+
_wrap_Window_allocate(VALUE self)
|
8442
8437
|
#else
|
8443
|
-
|
8444
|
-
_wrap_Window_allocate(int argc, VALUE *argv, VALUE self) {
|
8438
|
+
_wrap_Window_allocate(int argc, VALUE *argv, VALUE self)
|
8445
8439
|
#endif
|
8446
|
-
|
8447
|
-
|
8448
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__Window);
|
8440
|
+
{
|
8441
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__Window);
|
8449
8442
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
8450
|
-
|
8443
|
+
rb_obj_call_init(vresult, argc, argv);
|
8451
8444
|
#endif
|
8452
|
-
|
8453
|
-
|
8454
|
-
|
8445
|
+
return vresult;
|
8446
|
+
}
|
8447
|
+
|
8455
8448
|
|
8456
8449
|
SWIGINTERN VALUE
|
8457
8450
|
_wrap_new_Window(int argc, VALUE *argv, VALUE self) {
|
@@ -10977,9 +10970,9 @@ SWIGEXPORT void Init_gosu(void) {
|
|
10977
10970
|
SWIG_RubyInitializeTrackings();
|
10978
10971
|
rb_define_const(mGosu, "MAJOR_VERSION", SWIG_From_int(static_cast< int >(0)));
|
10979
10972
|
rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(10)));
|
10980
|
-
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(
|
10981
|
-
rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.10.
|
10982
|
-
rb_define_const(mGosu, "GOSU_COPYRIGHT_NOTICE", SWIG_FromCharPtr("This software uses the following third-party libraries:\n\nGosu,
|
10973
|
+
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(8)));
|
10974
|
+
rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.10.8"));
|
10975
|
+
rb_define_const(mGosu, "GOSU_COPYRIGHT_NOTICE", SWIG_FromCharPtr("This software uses the following third-party libraries:\n\nGosu, https://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"));
|
10983
10976
|
rb_define_module_function(mGosu, "milliseconds", VALUEFUNC(_wrap_milliseconds), -1);
|
10984
10977
|
rb_define_module_function(mGosu, "random", VALUEFUNC(_wrap_random), -1);
|
10985
10978
|
rb_define_module_function(mGosu, "degrees_to_radians", VALUEFUNC(_wrap_degrees_to_radians), -1);
|