gosu 0.12.1 → 0.13.0
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/Gosu/Audio.hpp +23 -25
- data/Gosu/Graphics.hpp +16 -12
- data/Gosu/Image.hpp +3 -0
- data/Gosu/Version.hpp +2 -2
- data/lib/gosu.rb +2 -2
- data/lib/gosu/compat.rb +1 -1
- data/lib/gosu/patches.rb +5 -0
- data/lib/gosu/swig_patches.rb +1 -1
- data/rdoc/gosu.rb +10 -10
- data/src/Audio.cpp +93 -228
- data/src/AudioImpl.cpp +94 -0
- data/src/AudioImpl.hpp +33 -0
- data/src/AudioToolboxFile.hpp +14 -18
- data/src/Bitmap.cpp +36 -30
- data/src/BitmapIO.cpp +14 -23
- data/src/BlockAllocator.cpp +7 -10
- data/src/BlockAllocator.hpp +2 -4
- data/src/Channel.cpp +89 -0
- data/src/Color.cpp +4 -9
- data/src/DirectoriesApple.cpp +13 -13
- data/src/DirectoriesUnix.cpp +8 -7
- data/src/DirectoriesWin.cpp +12 -11
- data/src/EmptyImageData.hpp +54 -0
- data/src/FileUnix.cpp +12 -9
- data/src/FileWin.cpp +8 -7
- data/src/Font.cpp +12 -13
- data/src/FormattedString.cpp +237 -0
- data/src/FormattedString.hpp +14 -265
- data/src/GosuViewController.cpp +2 -5
- data/src/Graphics.cpp +38 -39
- data/src/IO.cpp +11 -10
- data/src/Image.cpp +16 -9
- data/src/Input.cpp +16 -15
- data/src/InputUIKit.cpp +8 -7
- data/src/Macro.cpp +11 -11
- data/src/Math.cpp +9 -8
- data/src/RubyGosu.cxx +129 -99
- data/src/TextApple.cpp +19 -13
- data/src/TextInput.cpp +23 -22
- data/src/TextWin.cpp +17 -19
- data/src/Texture.cpp +15 -10
- data/src/Transform.cpp +13 -17
- data/src/Utility.cpp +3 -2
- data/src/UtilityApple.cpp +10 -11
- data/src/UtilityWin.cpp +2 -1
- data/src/Version.cpp +5 -4
- data/src/WinMain.cpp +3 -3
- data/src/WinUtility.cpp +7 -6
- data/src/Window.cpp +11 -10
- data/src/WindowUIKit.cpp +9 -8
- data/src/stb_image.h +782 -480
- data/src/stb_image_write.h +425 -15
- data/src/stb_vorbis.c +82 -32
- metadata +8 -4
- data/src/ALChannelManagement.hpp +0 -119
data/src/InputUIKit.cpp
CHANGED
@@ -5,12 +5,13 @@
|
|
5
5
|
#import <Gosu/TextInput.hpp>
|
6
6
|
#import <functional>
|
7
7
|
#import <UIKit/UIKit.h>
|
8
|
+
using namespace std;
|
8
9
|
|
9
10
|
struct Gosu::TextInput::Impl {};
|
10
11
|
Gosu::TextInput::TextInput() {}
|
11
12
|
Gosu::TextInput::~TextInput() {}
|
12
|
-
|
13
|
-
void Gosu::TextInput::set_text(const
|
13
|
+
string Gosu::TextInput::text() const { return ""; }
|
14
|
+
void Gosu::TextInput::set_text(const string& text) {}
|
14
15
|
unsigned Gosu::TextInput::caret_pos() const { return 0; }
|
15
16
|
void Gosu::TextInput::set_caret_pos(unsigned) {}
|
16
17
|
unsigned Gosu::TextInput::selection_start() const { return 0; }
|
@@ -24,7 +25,7 @@ struct Gosu::Input::Impl
|
|
24
25
|
float update_interval;
|
25
26
|
|
26
27
|
NSMutableSet* current_touches_set;
|
27
|
-
|
28
|
+
unique_ptr<Gosu::Touches> current_touches_vector;
|
28
29
|
|
29
30
|
Touch translate_touch(UITouch* ui_touch)
|
30
31
|
{
|
@@ -58,7 +59,7 @@ void Gosu::Input::feed_touch_event(int type, void* touches)
|
|
58
59
|
|
59
60
|
pimpl->current_touches_vector.reset();
|
60
61
|
|
61
|
-
|
62
|
+
function<void (Touch)>* callback = nullptr;
|
62
63
|
|
63
64
|
if (type == 0) {
|
64
65
|
[pimpl->current_touches_set unionSet:ui_touches];
|
@@ -83,12 +84,12 @@ void Gosu::Input::feed_touch_event(int type, void* touches)
|
|
83
84
|
}
|
84
85
|
}
|
85
86
|
|
86
|
-
|
87
|
+
string Gosu::Input::id_to_char(Button btn)
|
87
88
|
{
|
88
|
-
return
|
89
|
+
return string();
|
89
90
|
}
|
90
91
|
|
91
|
-
Gosu::Button Gosu::Input::char_to_id(
|
92
|
+
Gosu::Button Gosu::Input::char_to_id(string ch)
|
92
93
|
{
|
93
94
|
return NO_BUTTON;
|
94
95
|
}
|
data/src/Macro.cpp
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
#include <functional>
|
6
6
|
#include <memory>
|
7
7
|
#include <stdexcept>
|
8
|
+
using namespace std;
|
8
9
|
|
9
10
|
struct Gosu::Macro::Impl
|
10
11
|
{
|
@@ -75,9 +76,9 @@ struct Gosu::Macro::Impl
|
|
75
76
|
|
76
77
|
bool swap_rows78 = x2 == x4;
|
77
78
|
if (swap_rows78) {
|
78
|
-
|
79
|
-
|
80
|
-
|
79
|
+
swap(left_cell7, left_cell8);
|
80
|
+
swap(right_cell7, right_cell8);
|
81
|
+
swap(orig_right_side7, orig_right_side8);
|
81
82
|
}
|
82
83
|
|
83
84
|
// 0, 0, 1, 0, 0, 0, 0, 0 | x1
|
@@ -144,7 +145,7 @@ struct Gosu::Macro::Impl
|
|
144
145
|
c[4] = right_side6 / rem_cell6;
|
145
146
|
|
146
147
|
if (swap_rows78) {
|
147
|
-
|
148
|
+
swap(c[6], c[7]);
|
148
149
|
}
|
149
150
|
|
150
151
|
// Let's hope I never have to debug/understand this again! :D
|
@@ -205,13 +206,12 @@ void Gosu::Macro::draw(double x1, double y1, Color c1, double x2, double y2, Col
|
|
205
206
|
double x3, double y3, Color c3, double x4, double y4, Color c4, ZPos z, AlphaMode mode) const
|
206
207
|
{
|
207
208
|
if (c1 != Color::WHITE || c2 != Color::WHITE || c3 != Color::WHITE || c4 != Color::WHITE) {
|
208
|
-
throw
|
209
|
+
throw invalid_argument("Macros cannot be tinted with colors");
|
209
210
|
}
|
210
211
|
|
211
212
|
normalize_coordinates(x1, y1, x2, y2, x3, y3, c3, x4, y4, c4);
|
212
213
|
|
213
|
-
|
214
|
-
Gosu::Graphics::gl(z, f);
|
214
|
+
Gosu::Graphics::gl(z, [=] { pimpl->draw_vertex_arrays(x1, y1, x2, y2, x3, y3, x4, y4); });
|
215
215
|
}
|
216
216
|
|
217
217
|
const Gosu::GLTexInfo* Gosu::Macro::gl_tex_info() const
|
@@ -221,15 +221,15 @@ const Gosu::GLTexInfo* Gosu::Macro::gl_tex_info() const
|
|
221
221
|
|
222
222
|
Gosu::Bitmap Gosu::Macro::to_bitmap() const
|
223
223
|
{
|
224
|
-
throw
|
224
|
+
throw logic_error("Gosu::Macro cannot be rendered as Gosu::Bitmap yet");
|
225
225
|
}
|
226
226
|
|
227
|
-
|
227
|
+
unique_ptr<Gosu::ImageData> Gosu::Macro::subimage(int x, int y, int width, int height) const
|
228
228
|
{
|
229
|
-
return
|
229
|
+
return unique_ptr<ImageData>();
|
230
230
|
}
|
231
231
|
|
232
232
|
void Gosu::Macro::insert(const Bitmap& bitmap, int x, int y)
|
233
233
|
{
|
234
|
-
throw
|
234
|
+
throw logic_error("Gosu::Macro cannot be updated with a Gosu::Bitmap yet");
|
235
235
|
}
|
data/src/Math.cpp
CHANGED
@@ -1,20 +1,21 @@
|
|
1
1
|
#include <Gosu/Math.hpp>
|
2
2
|
#include <cstdlib>
|
3
|
+
using namespace std;
|
3
4
|
|
4
5
|
double Gosu::random(double min, double max)
|
5
6
|
{
|
6
|
-
double rnd =
|
7
|
+
double rnd = rand();
|
7
8
|
return rnd / (static_cast<double>(RAND_MAX) + 1) * (max - min) + min;
|
8
9
|
}
|
9
10
|
|
10
11
|
double Gosu::offset_x(double angle, double radius)
|
11
12
|
{
|
12
|
-
return +
|
13
|
+
return +sin(angle / 180 * M_PI) * radius;
|
13
14
|
}
|
14
15
|
|
15
16
|
double Gosu::offset_y(double angle, double radius)
|
16
17
|
{
|
17
|
-
return -
|
18
|
+
return -cos(angle / 180 * M_PI) * radius;
|
18
19
|
}
|
19
20
|
|
20
21
|
double Gosu::angle(double from_x, double from_y, double to_x, double to_y, double def)
|
@@ -24,12 +25,12 @@ double Gosu::angle(double from_x, double from_y, double to_x, double to_y, doubl
|
|
24
25
|
|
25
26
|
if (dist_x == 0 && dist_y == 0) return def;
|
26
27
|
|
27
|
-
return normalize_angle(radians_to_gosu(
|
28
|
+
return normalize_angle(radians_to_gosu(atan2(dist_y, dist_x)));
|
28
29
|
}
|
29
30
|
|
30
31
|
double Gosu::angle_diff(double from, double to)
|
31
32
|
{
|
32
|
-
return
|
33
|
+
return normalize_angle(to - from + 180) - 180;
|
33
34
|
}
|
34
35
|
|
35
36
|
double Gosu::normalize_angle(double angle)
|
@@ -45,17 +46,17 @@ int Gosu::wrap(int value, int min, int max)
|
|
45
46
|
|
46
47
|
float Gosu::wrap(float value, float min, float max)
|
47
48
|
{
|
48
|
-
double result =
|
49
|
+
double result = fmod(value - min, max - min);
|
49
50
|
return result < 0 ? result + max : result + min;
|
50
51
|
}
|
51
52
|
|
52
53
|
double Gosu::wrap(double value, double min, double max)
|
53
54
|
{
|
54
|
-
double result =
|
55
|
+
double result = fmod(value - min, max - min);
|
55
56
|
return result < 0 ? result + max : result + min;
|
56
57
|
}
|
57
58
|
|
58
59
|
double Gosu::distance(double x1, double y1, double x2, double y2)
|
59
60
|
{
|
60
|
-
return
|
61
|
+
return sqrt(distance_sqr(x1, y1, x2, y2));
|
61
62
|
}
|
data/src/RubyGosu.cxx
CHANGED
@@ -2192,12 +2192,12 @@ namespace Swig {
|
|
2192
2192
|
/* -------- TYPES TABLE (BEGIN) -------- */
|
2193
2193
|
|
2194
2194
|
#define SWIGTYPE_p_Gosu__Button swig_types[0]
|
2195
|
-
#define
|
2196
|
-
#define
|
2197
|
-
#define
|
2198
|
-
#define
|
2199
|
-
#define
|
2200
|
-
#define
|
2195
|
+
#define SWIGTYPE_p_Gosu__Channel swig_types[1]
|
2196
|
+
#define SWIGTYPE_p_Gosu__Color swig_types[2]
|
2197
|
+
#define SWIGTYPE_p_Gosu__Font swig_types[3]
|
2198
|
+
#define SWIGTYPE_p_Gosu__GLTexInfo swig_types[4]
|
2199
|
+
#define SWIGTYPE_p_Gosu__Image swig_types[5]
|
2200
|
+
#define SWIGTYPE_p_Gosu__Sample swig_types[6]
|
2201
2201
|
#define SWIGTYPE_p_Gosu__Song swig_types[7]
|
2202
2202
|
#define SWIGTYPE_p_Gosu__TextInput swig_types[8]
|
2203
2203
|
#define SWIGTYPE_p_Gosu__Window swig_types[9]
|
@@ -2268,7 +2268,7 @@ namespace Gosu
|
|
2268
2268
|
undocumented_retrofication = true;
|
2269
2269
|
}
|
2270
2270
|
|
2271
|
-
void
|
2271
|
+
void al_shutdown();
|
2272
2272
|
|
2273
2273
|
void register_entity(const std::string& name, Gosu::Image* image)
|
2274
2274
|
{
|
@@ -2388,9 +2388,7 @@ namespace Gosu
|
|
2388
2388
|
void draw_rect(double x, double y, double width, double height, Gosu::Color c,
|
2389
2389
|
Gosu::ZPos z = 0, Gosu::AlphaMode mode = Gosu::AM_DEFAULT)
|
2390
2390
|
{
|
2391
|
-
Gosu::Graphics::
|
2392
|
-
x, y + height, c, x + width, y + height, c,
|
2393
|
-
z, mode);
|
2391
|
+
Gosu::Graphics::draw_rect(x, y, width, height, c, z, mode);
|
2394
2392
|
}
|
2395
2393
|
|
2396
2394
|
void flush()
|
@@ -3809,7 +3807,7 @@ _wrap__release_all_openal_resources(int argc, VALUE *argv, VALUE self) {
|
|
3809
3807
|
}
|
3810
3808
|
{
|
3811
3809
|
try {
|
3812
|
-
Gosu::
|
3810
|
+
Gosu::al_shutdown();
|
3813
3811
|
}
|
3814
3812
|
catch (const std::exception& e) {
|
3815
3813
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
@@ -7512,16 +7510,16 @@ fail:
|
|
7512
7510
|
}
|
7513
7511
|
|
7514
7512
|
|
7515
|
-
static swig_class
|
7513
|
+
static swig_class SwigClassChannel;
|
7516
7514
|
|
7517
7515
|
SWIGINTERN VALUE
|
7518
7516
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
7519
|
-
|
7517
|
+
_wrap_Channel_allocate(VALUE self)
|
7520
7518
|
#else
|
7521
|
-
|
7519
|
+
_wrap_Channel_allocate(int argc, VALUE *argv, VALUE self)
|
7522
7520
|
#endif
|
7523
7521
|
{
|
7524
|
-
VALUE vresult = SWIG_NewClassInstance(self,
|
7522
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Gosu__Channel);
|
7525
7523
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
7526
7524
|
rb_obj_call_init(vresult, argc, argv);
|
7527
7525
|
#endif
|
@@ -7530,32 +7528,32 @@ _wrap_SampleInstance_allocate(int argc, VALUE *argv, VALUE self)
|
|
7530
7528
|
|
7531
7529
|
|
7532
7530
|
SWIGINTERN VALUE
|
7533
|
-
|
7531
|
+
_wrap_new_Channel(int argc, VALUE *argv, VALUE self) {
|
7534
7532
|
int arg1 ;
|
7535
7533
|
int arg2 ;
|
7536
7534
|
int val1 ;
|
7537
7535
|
int ecode1 = 0 ;
|
7538
7536
|
int val2 ;
|
7539
7537
|
int ecode2 = 0 ;
|
7540
|
-
const char *classname SWIGUNUSED = "Gosu::
|
7541
|
-
Gosu::
|
7538
|
+
const char *classname SWIGUNUSED = "Gosu::Channel";
|
7539
|
+
Gosu::Channel *result = 0 ;
|
7542
7540
|
|
7543
7541
|
if ((argc < 2) || (argc > 2)) {
|
7544
7542
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
7545
7543
|
}
|
7546
7544
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
7547
7545
|
if (!SWIG_IsOK(ecode1)) {
|
7548
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","
|
7546
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","Channel", 1, argv[0] ));
|
7549
7547
|
}
|
7550
7548
|
arg1 = static_cast< int >(val1);
|
7551
7549
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
7552
7550
|
if (!SWIG_IsOK(ecode2)) {
|
7553
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","
|
7551
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","Channel", 2, argv[1] ));
|
7554
7552
|
}
|
7555
7553
|
arg2 = static_cast< int >(val2);
|
7556
7554
|
{
|
7557
7555
|
try {
|
7558
|
-
result = (Gosu::
|
7556
|
+
result = (Gosu::Channel *)new Gosu::Channel(arg1,arg2);
|
7559
7557
|
DATA_PTR(self) = result;
|
7560
7558
|
SWIG_RubyAddTracking(result, self);
|
7561
7559
|
}
|
@@ -7570,8 +7568,39 @@ fail:
|
|
7570
7568
|
|
7571
7569
|
|
7572
7570
|
SWIGINTERN VALUE
|
7573
|
-
|
7574
|
-
Gosu::
|
7571
|
+
_wrap_Channel_current_channel(int argc, VALUE *argv, VALUE self) {
|
7572
|
+
Gosu::Channel *arg1 = (Gosu::Channel *) 0 ;
|
7573
|
+
void *argp1 = 0 ;
|
7574
|
+
int res1 = 0 ;
|
7575
|
+
int result;
|
7576
|
+
VALUE vresult = Qnil;
|
7577
|
+
|
7578
|
+
if ((argc < 0) || (argc > 0)) {
|
7579
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
7580
|
+
}
|
7581
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Channel, 0 | 0 );
|
7582
|
+
if (!SWIG_IsOK(res1)) {
|
7583
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Channel const *","current_channel", 1, self ));
|
7584
|
+
}
|
7585
|
+
arg1 = reinterpret_cast< Gosu::Channel * >(argp1);
|
7586
|
+
{
|
7587
|
+
try {
|
7588
|
+
result = (int)((Gosu::Channel const *)arg1)->current_channel();
|
7589
|
+
}
|
7590
|
+
catch (const std::exception& e) {
|
7591
|
+
SWIG_exception(SWIG_RuntimeError, e.what());
|
7592
|
+
}
|
7593
|
+
}
|
7594
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
7595
|
+
return vresult;
|
7596
|
+
fail:
|
7597
|
+
return Qnil;
|
7598
|
+
}
|
7599
|
+
|
7600
|
+
|
7601
|
+
SWIGINTERN VALUE
|
7602
|
+
_wrap_Channel_playingq___(int argc, VALUE *argv, VALUE self) {
|
7603
|
+
Gosu::Channel *arg1 = (Gosu::Channel *) 0 ;
|
7575
7604
|
void *argp1 = 0 ;
|
7576
7605
|
int res1 = 0 ;
|
7577
7606
|
bool result;
|
@@ -7580,14 +7609,14 @@ _wrap_SampleInstance_playingq___(int argc, VALUE *argv, VALUE self) {
|
|
7580
7609
|
if ((argc < 0) || (argc > 0)) {
|
7581
7610
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
7582
7611
|
}
|
7583
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
7612
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Channel, 0 | 0 );
|
7584
7613
|
if (!SWIG_IsOK(res1)) {
|
7585
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::
|
7614
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Channel const *","playing", 1, self ));
|
7586
7615
|
}
|
7587
|
-
arg1 = reinterpret_cast< Gosu::
|
7616
|
+
arg1 = reinterpret_cast< Gosu::Channel * >(argp1);
|
7588
7617
|
{
|
7589
7618
|
try {
|
7590
|
-
result = (bool)((Gosu::
|
7619
|
+
result = (bool)((Gosu::Channel const *)arg1)->playing();
|
7591
7620
|
}
|
7592
7621
|
catch (const std::exception& e) {
|
7593
7622
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
@@ -7601,8 +7630,8 @@ fail:
|
|
7601
7630
|
|
7602
7631
|
|
7603
7632
|
SWIGINTERN VALUE
|
7604
|
-
|
7605
|
-
Gosu::
|
7633
|
+
_wrap_Channel_pausedq___(int argc, VALUE *argv, VALUE self) {
|
7634
|
+
Gosu::Channel *arg1 = (Gosu::Channel *) 0 ;
|
7606
7635
|
void *argp1 = 0 ;
|
7607
7636
|
int res1 = 0 ;
|
7608
7637
|
bool result;
|
@@ -7611,14 +7640,14 @@ _wrap_SampleInstance_pausedq___(int argc, VALUE *argv, VALUE self) {
|
|
7611
7640
|
if ((argc < 0) || (argc > 0)) {
|
7612
7641
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
7613
7642
|
}
|
7614
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
7643
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Channel, 0 | 0 );
|
7615
7644
|
if (!SWIG_IsOK(res1)) {
|
7616
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::
|
7645
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Channel const *","paused", 1, self ));
|
7617
7646
|
}
|
7618
|
-
arg1 = reinterpret_cast< Gosu::
|
7647
|
+
arg1 = reinterpret_cast< Gosu::Channel * >(argp1);
|
7619
7648
|
{
|
7620
7649
|
try {
|
7621
|
-
result = (bool)((Gosu::
|
7650
|
+
result = (bool)((Gosu::Channel const *)arg1)->paused();
|
7622
7651
|
}
|
7623
7652
|
catch (const std::exception& e) {
|
7624
7653
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
@@ -7632,19 +7661,19 @@ fail:
|
|
7632
7661
|
|
7633
7662
|
|
7634
7663
|
SWIGINTERN VALUE
|
7635
|
-
|
7636
|
-
Gosu::
|
7664
|
+
_wrap_Channel_pause(int argc, VALUE *argv, VALUE self) {
|
7665
|
+
Gosu::Channel *arg1 = (Gosu::Channel *) 0 ;
|
7637
7666
|
void *argp1 = 0 ;
|
7638
7667
|
int res1 = 0 ;
|
7639
7668
|
|
7640
7669
|
if ((argc < 0) || (argc > 0)) {
|
7641
7670
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
7642
7671
|
}
|
7643
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
7672
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Channel, 0 | 0 );
|
7644
7673
|
if (!SWIG_IsOK(res1)) {
|
7645
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::
|
7674
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Channel *","pause", 1, self ));
|
7646
7675
|
}
|
7647
|
-
arg1 = reinterpret_cast< Gosu::
|
7676
|
+
arg1 = reinterpret_cast< Gosu::Channel * >(argp1);
|
7648
7677
|
{
|
7649
7678
|
try {
|
7650
7679
|
(arg1)->pause();
|
@@ -7660,19 +7689,19 @@ fail:
|
|
7660
7689
|
|
7661
7690
|
|
7662
7691
|
SWIGINTERN VALUE
|
7663
|
-
|
7664
|
-
Gosu::
|
7692
|
+
_wrap_Channel_resume(int argc, VALUE *argv, VALUE self) {
|
7693
|
+
Gosu::Channel *arg1 = (Gosu::Channel *) 0 ;
|
7665
7694
|
void *argp1 = 0 ;
|
7666
7695
|
int res1 = 0 ;
|
7667
7696
|
|
7668
7697
|
if ((argc < 0) || (argc > 0)) {
|
7669
7698
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
7670
7699
|
}
|
7671
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
7700
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Channel, 0 | 0 );
|
7672
7701
|
if (!SWIG_IsOK(res1)) {
|
7673
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::
|
7702
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Channel *","resume", 1, self ));
|
7674
7703
|
}
|
7675
|
-
arg1 = reinterpret_cast< Gosu::
|
7704
|
+
arg1 = reinterpret_cast< Gosu::Channel * >(argp1);
|
7676
7705
|
{
|
7677
7706
|
try {
|
7678
7707
|
(arg1)->resume();
|
@@ -7688,19 +7717,19 @@ fail:
|
|
7688
7717
|
|
7689
7718
|
|
7690
7719
|
SWIGINTERN VALUE
|
7691
|
-
|
7692
|
-
Gosu::
|
7720
|
+
_wrap_Channel_stop(int argc, VALUE *argv, VALUE self) {
|
7721
|
+
Gosu::Channel *arg1 = (Gosu::Channel *) 0 ;
|
7693
7722
|
void *argp1 = 0 ;
|
7694
7723
|
int res1 = 0 ;
|
7695
7724
|
|
7696
7725
|
if ((argc < 0) || (argc > 0)) {
|
7697
7726
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
7698
7727
|
}
|
7699
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
7728
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Channel, 0 | 0 );
|
7700
7729
|
if (!SWIG_IsOK(res1)) {
|
7701
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::
|
7730
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Channel *","stop", 1, self ));
|
7702
7731
|
}
|
7703
|
-
arg1 = reinterpret_cast< Gosu::
|
7732
|
+
arg1 = reinterpret_cast< Gosu::Channel * >(argp1);
|
7704
7733
|
{
|
7705
7734
|
try {
|
7706
7735
|
(arg1)->stop();
|
@@ -7716,8 +7745,8 @@ fail:
|
|
7716
7745
|
|
7717
7746
|
|
7718
7747
|
SWIGINTERN VALUE
|
7719
|
-
|
7720
|
-
Gosu::
|
7748
|
+
_wrap_Channel_volumee___(int argc, VALUE *argv, VALUE self) {
|
7749
|
+
Gosu::Channel *arg1 = (Gosu::Channel *) 0 ;
|
7721
7750
|
double arg2 ;
|
7722
7751
|
void *argp1 = 0 ;
|
7723
7752
|
int res1 = 0 ;
|
@@ -7727,19 +7756,19 @@ _wrap_SampleInstance_volumee___(int argc, VALUE *argv, VALUE self) {
|
|
7727
7756
|
if ((argc < 1) || (argc > 1)) {
|
7728
7757
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
7729
7758
|
}
|
7730
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
7759
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Channel, 0 | 0 );
|
7731
7760
|
if (!SWIG_IsOK(res1)) {
|
7732
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::
|
7761
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Channel *","set_volume", 1, self ));
|
7733
7762
|
}
|
7734
|
-
arg1 = reinterpret_cast< Gosu::
|
7763
|
+
arg1 = reinterpret_cast< Gosu::Channel * >(argp1);
|
7735
7764
|
ecode2 = SWIG_AsVal_double(argv[0], &val2);
|
7736
7765
|
if (!SWIG_IsOK(ecode2)) {
|
7737
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","
|
7766
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","set_volume", 2, argv[0] ));
|
7738
7767
|
}
|
7739
7768
|
arg2 = static_cast< double >(val2);
|
7740
7769
|
{
|
7741
7770
|
try {
|
7742
|
-
(arg1)->
|
7771
|
+
(arg1)->set_volume(arg2);
|
7743
7772
|
}
|
7744
7773
|
catch (const std::exception& e) {
|
7745
7774
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
@@ -7752,8 +7781,8 @@ fail:
|
|
7752
7781
|
|
7753
7782
|
|
7754
7783
|
SWIGINTERN VALUE
|
7755
|
-
|
7756
|
-
Gosu::
|
7784
|
+
_wrap_Channel_pane___(int argc, VALUE *argv, VALUE self) {
|
7785
|
+
Gosu::Channel *arg1 = (Gosu::Channel *) 0 ;
|
7757
7786
|
double arg2 ;
|
7758
7787
|
void *argp1 = 0 ;
|
7759
7788
|
int res1 = 0 ;
|
@@ -7763,19 +7792,19 @@ _wrap_SampleInstance_pane___(int argc, VALUE *argv, VALUE self) {
|
|
7763
7792
|
if ((argc < 1) || (argc > 1)) {
|
7764
7793
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
7765
7794
|
}
|
7766
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
7795
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Channel, 0 | 0 );
|
7767
7796
|
if (!SWIG_IsOK(res1)) {
|
7768
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::
|
7797
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Channel *","set_pan", 1, self ));
|
7769
7798
|
}
|
7770
|
-
arg1 = reinterpret_cast< Gosu::
|
7799
|
+
arg1 = reinterpret_cast< Gosu::Channel * >(argp1);
|
7771
7800
|
ecode2 = SWIG_AsVal_double(argv[0], &val2);
|
7772
7801
|
if (!SWIG_IsOK(ecode2)) {
|
7773
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","
|
7802
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","set_pan", 2, argv[0] ));
|
7774
7803
|
}
|
7775
7804
|
arg2 = static_cast< double >(val2);
|
7776
7805
|
{
|
7777
7806
|
try {
|
7778
|
-
(arg1)->
|
7807
|
+
(arg1)->set_pan(arg2);
|
7779
7808
|
}
|
7780
7809
|
catch (const std::exception& e) {
|
7781
7810
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
@@ -7788,8 +7817,8 @@ fail:
|
|
7788
7817
|
|
7789
7818
|
|
7790
7819
|
SWIGINTERN VALUE
|
7791
|
-
|
7792
|
-
Gosu::
|
7820
|
+
_wrap_Channel_speede___(int argc, VALUE *argv, VALUE self) {
|
7821
|
+
Gosu::Channel *arg1 = (Gosu::Channel *) 0 ;
|
7793
7822
|
double arg2 ;
|
7794
7823
|
void *argp1 = 0 ;
|
7795
7824
|
int res1 = 0 ;
|
@@ -7799,19 +7828,19 @@ _wrap_SampleInstance_speede___(int argc, VALUE *argv, VALUE self) {
|
|
7799
7828
|
if ((argc < 1) || (argc > 1)) {
|
7800
7829
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
7801
7830
|
}
|
7802
|
-
res1 = SWIG_ConvertPtr(self, &argp1,
|
7831
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Channel, 0 | 0 );
|
7803
7832
|
if (!SWIG_IsOK(res1)) {
|
7804
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::
|
7833
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Channel *","set_speed", 1, self ));
|
7805
7834
|
}
|
7806
|
-
arg1 = reinterpret_cast< Gosu::
|
7835
|
+
arg1 = reinterpret_cast< Gosu::Channel * >(argp1);
|
7807
7836
|
ecode2 = SWIG_AsVal_double(argv[0], &val2);
|
7808
7837
|
if (!SWIG_IsOK(ecode2)) {
|
7809
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","
|
7838
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","set_speed", 2, argv[0] ));
|
7810
7839
|
}
|
7811
7840
|
arg2 = static_cast< double >(val2);
|
7812
7841
|
{
|
7813
7842
|
try {
|
7814
|
-
(arg1)->
|
7843
|
+
(arg1)->set_speed(arg2);
|
7815
7844
|
}
|
7816
7845
|
catch (const std::exception& e) {
|
7817
7846
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
@@ -7824,8 +7853,8 @@ fail:
|
|
7824
7853
|
|
7825
7854
|
|
7826
7855
|
SWIGINTERN void
|
7827
|
-
|
7828
|
-
Gosu::
|
7856
|
+
free_Gosu_Channel(void *self) {
|
7857
|
+
Gosu::Channel *arg1 = (Gosu::Channel *)self;
|
7829
7858
|
SWIG_RubyRemoveTracking(arg1);
|
7830
7859
|
delete arg1;
|
7831
7860
|
}
|
@@ -7900,7 +7929,7 @@ _wrap_Sample_play(int argc, VALUE *argv, VALUE self) {
|
|
7900
7929
|
int ecode3 = 0 ;
|
7901
7930
|
bool val4 ;
|
7902
7931
|
int ecode4 = 0 ;
|
7903
|
-
SwigValueWrapper< Gosu::
|
7932
|
+
SwigValueWrapper< Gosu::Channel > result;
|
7904
7933
|
VALUE vresult = Qnil;
|
7905
7934
|
|
7906
7935
|
if ((argc < 0) || (argc > 3)) {
|
@@ -7940,7 +7969,7 @@ _wrap_Sample_play(int argc, VALUE *argv, VALUE self) {
|
|
7940
7969
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
7941
7970
|
}
|
7942
7971
|
}
|
7943
|
-
vresult = SWIG_NewPointerObj((new Gosu::
|
7972
|
+
vresult = SWIG_NewPointerObj((new Gosu::Channel(static_cast< const Gosu::Channel& >(result))), SWIGTYPE_p_Gosu__Channel, SWIG_POINTER_OWN | 0 );
|
7944
7973
|
return vresult;
|
7945
7974
|
fail:
|
7946
7975
|
return Qnil;
|
@@ -7964,7 +7993,7 @@ _wrap_Sample_play_pan(int argc, VALUE *argv, VALUE self) {
|
|
7964
7993
|
int ecode4 = 0 ;
|
7965
7994
|
bool val5 ;
|
7966
7995
|
int ecode5 = 0 ;
|
7967
|
-
SwigValueWrapper< Gosu::
|
7996
|
+
SwigValueWrapper< Gosu::Channel > result;
|
7968
7997
|
VALUE vresult = Qnil;
|
7969
7998
|
|
7970
7999
|
if ((argc < 1) || (argc > 4)) {
|
@@ -8009,7 +8038,7 @@ _wrap_Sample_play_pan(int argc, VALUE *argv, VALUE self) {
|
|
8009
8038
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
8010
8039
|
}
|
8011
8040
|
}
|
8012
|
-
vresult = SWIG_NewPointerObj((new Gosu::
|
8041
|
+
vresult = SWIG_NewPointerObj((new Gosu::Channel(static_cast< const Gosu::Channel& >(result))), SWIGTYPE_p_Gosu__Channel, SWIG_POINTER_OWN | 0 );
|
8013
8042
|
return vresult;
|
8014
8043
|
fail:
|
8015
8044
|
return Qnil;
|
@@ -8310,17 +8339,17 @@ _wrap_Song_volumee___(int argc, VALUE *argv, VALUE self) {
|
|
8310
8339
|
}
|
8311
8340
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Song, 0 | 0 );
|
8312
8341
|
if (!SWIG_IsOK(res1)) {
|
8313
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Song *","
|
8342
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Song *","set_volume", 1, self ));
|
8314
8343
|
}
|
8315
8344
|
arg1 = reinterpret_cast< Gosu::Song * >(argp1);
|
8316
8345
|
ecode2 = SWIG_AsVal_double(argv[0], &val2);
|
8317
8346
|
if (!SWIG_IsOK(ecode2)) {
|
8318
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","
|
8347
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","set_volume", 2, argv[0] ));
|
8319
8348
|
}
|
8320
8349
|
arg2 = static_cast< double >(val2);
|
8321
8350
|
{
|
8322
8351
|
try {
|
8323
|
-
(arg1)->
|
8352
|
+
(arg1)->set_volume(arg2);
|
8324
8353
|
}
|
8325
8354
|
catch (const std::exception& e) {
|
8326
8355
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
@@ -11308,12 +11337,12 @@ fail:
|
|
11308
11337
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
11309
11338
|
|
11310
11339
|
static swig_type_info _swigt__p_Gosu__Button = {"_p_Gosu__Button", "Gosu::Button *", 0, 0, (void*)0, 0};
|
11340
|
+
static swig_type_info _swigt__p_Gosu__Channel = {"_p_Gosu__Channel", "Gosu::Channel *", 0, 0, (void*)0, 0};
|
11311
11341
|
static swig_type_info _swigt__p_Gosu__Color = {"_p_Gosu__Color", "Gosu::Color *", 0, 0, (void*)0, 0};
|
11312
11342
|
static swig_type_info _swigt__p_Gosu__Font = {"_p_Gosu__Font", "Gosu::Font *", 0, 0, (void*)0, 0};
|
11313
11343
|
static swig_type_info _swigt__p_Gosu__GLTexInfo = {"_p_Gosu__GLTexInfo", "Gosu::GLTexInfo *", 0, 0, (void*)0, 0};
|
11314
11344
|
static swig_type_info _swigt__p_Gosu__Image = {"_p_Gosu__Image", "Gosu::Image *", 0, 0, (void*)0, 0};
|
11315
11345
|
static swig_type_info _swigt__p_Gosu__Sample = {"_p_Gosu__Sample", "Gosu::Sample *", 0, 0, (void*)0, 0};
|
11316
|
-
static swig_type_info _swigt__p_Gosu__SampleInstance = {"_p_Gosu__SampleInstance", "Gosu::SampleInstance *", 0, 0, (void*)0, 0};
|
11317
11346
|
static swig_type_info _swigt__p_Gosu__Song = {"_p_Gosu__Song", "Gosu::Song *", 0, 0, (void*)0, 0};
|
11318
11347
|
static swig_type_info _swigt__p_Gosu__TextInput = {"_p_Gosu__TextInput", "Gosu::TextInput *", 0, 0, (void*)0, 0};
|
11319
11348
|
static swig_type_info _swigt__p_Gosu__Window = {"_p_Gosu__Window", "Gosu::Window *", 0, 0, (void*)0, 0};
|
@@ -11324,12 +11353,12 @@ static swig_type_info _swigt__p_std__string = {"_p_std__string", "std::string *"
|
|
11324
11353
|
|
11325
11354
|
static swig_type_info *swig_type_initial[] = {
|
11326
11355
|
&_swigt__p_Gosu__Button,
|
11356
|
+
&_swigt__p_Gosu__Channel,
|
11327
11357
|
&_swigt__p_Gosu__Color,
|
11328
11358
|
&_swigt__p_Gosu__Font,
|
11329
11359
|
&_swigt__p_Gosu__GLTexInfo,
|
11330
11360
|
&_swigt__p_Gosu__Image,
|
11331
11361
|
&_swigt__p_Gosu__Sample,
|
11332
|
-
&_swigt__p_Gosu__SampleInstance,
|
11333
11362
|
&_swigt__p_Gosu__Song,
|
11334
11363
|
&_swigt__p_Gosu__TextInput,
|
11335
11364
|
&_swigt__p_Gosu__Window,
|
@@ -11340,12 +11369,12 @@ static swig_type_info *swig_type_initial[] = {
|
|
11340
11369
|
};
|
11341
11370
|
|
11342
11371
|
static swig_cast_info _swigc__p_Gosu__Button[] = { {&_swigt__p_Gosu__Button, 0, 0, 0},{0, 0, 0, 0}};
|
11372
|
+
static swig_cast_info _swigc__p_Gosu__Channel[] = { {&_swigt__p_Gosu__Channel, 0, 0, 0},{0, 0, 0, 0}};
|
11343
11373
|
static swig_cast_info _swigc__p_Gosu__Color[] = { {&_swigt__p_Gosu__Color, 0, 0, 0},{0, 0, 0, 0}};
|
11344
11374
|
static swig_cast_info _swigc__p_Gosu__Font[] = { {&_swigt__p_Gosu__Font, 0, 0, 0},{0, 0, 0, 0}};
|
11345
11375
|
static swig_cast_info _swigc__p_Gosu__GLTexInfo[] = { {&_swigt__p_Gosu__GLTexInfo, 0, 0, 0},{0, 0, 0, 0}};
|
11346
11376
|
static swig_cast_info _swigc__p_Gosu__Image[] = { {&_swigt__p_Gosu__Image, 0, 0, 0},{0, 0, 0, 0}};
|
11347
11377
|
static swig_cast_info _swigc__p_Gosu__Sample[] = { {&_swigt__p_Gosu__Sample, 0, 0, 0},{0, 0, 0, 0}};
|
11348
|
-
static swig_cast_info _swigc__p_Gosu__SampleInstance[] = { {&_swigt__p_Gosu__SampleInstance, 0, 0, 0},{0, 0, 0, 0}};
|
11349
11378
|
static swig_cast_info _swigc__p_Gosu__Song[] = { {&_swigt__p_Gosu__Song, 0, 0, 0},{0, 0, 0, 0}};
|
11350
11379
|
static swig_cast_info _swigc__p_Gosu__TextInput[] = { {&_swigt__p_Gosu__TextInput, 0, 0, 0},{0, 0, 0, 0}};
|
11351
11380
|
static swig_cast_info _swigc__p_Gosu__Window[] = { {&_swigt__p_Gosu__Window, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -11356,12 +11385,12 @@ static swig_cast_info _swigc__p_std__string[] = { {&_swigt__p_std__string, 0, 0
|
|
11356
11385
|
|
11357
11386
|
static swig_cast_info *swig_cast_initial[] = {
|
11358
11387
|
_swigc__p_Gosu__Button,
|
11388
|
+
_swigc__p_Gosu__Channel,
|
11359
11389
|
_swigc__p_Gosu__Color,
|
11360
11390
|
_swigc__p_Gosu__Font,
|
11361
11391
|
_swigc__p_Gosu__GLTexInfo,
|
11362
11392
|
_swigc__p_Gosu__Image,
|
11363
11393
|
_swigc__p_Gosu__Sample,
|
11364
|
-
_swigc__p_Gosu__SampleInstance,
|
11365
11394
|
_swigc__p_Gosu__Song,
|
11366
11395
|
_swigc__p_Gosu__TextInput,
|
11367
11396
|
_swigc__p_Gosu__Window,
|
@@ -11626,8 +11655,8 @@ SWIGEXPORT void Init_gosu(void) {
|
|
11626
11655
|
rb_define_const(mGosu, "VERSION", SWIG_From_std_string(static_cast< std::string >(Gosu::VERSION)));
|
11627
11656
|
rb_define_const(mGosu, "LICENSES", SWIG_From_std_string(static_cast< std::string >(Gosu::LICENSES)));
|
11628
11657
|
rb_define_const(mGosu, "MAJOR_VERSION", SWIG_From_int(static_cast< int >(0)));
|
11629
|
-
rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(
|
11630
|
-
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(
|
11658
|
+
rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(13)));
|
11659
|
+
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(0)));
|
11631
11660
|
rb_define_module_function(mGosu, "milliseconds", VALUEFUNC(_wrap_milliseconds), -1);
|
11632
11661
|
rb_define_module_function(mGosu, "random", VALUEFUNC(_wrap_random), -1);
|
11633
11662
|
rb_define_module_function(mGosu, "degrees_to_radians", VALUEFUNC(_wrap_degrees_to_radians), -1);
|
@@ -11736,21 +11765,22 @@ SWIGEXPORT void Init_gosu(void) {
|
|
11736
11765
|
SwigClassImage.trackObjects = 1;
|
11737
11766
|
rb_define_module_function(mGosu, "fps", VALUEFUNC(_wrap_fps), -1);
|
11738
11767
|
|
11739
|
-
|
11740
|
-
SWIG_TypeClientData(
|
11741
|
-
rb_define_alloc_func(
|
11742
|
-
rb_define_method(
|
11743
|
-
rb_define_method(
|
11744
|
-
rb_define_method(
|
11745
|
-
rb_define_method(
|
11746
|
-
rb_define_method(
|
11747
|
-
rb_define_method(
|
11748
|
-
rb_define_method(
|
11749
|
-
rb_define_method(
|
11750
|
-
rb_define_method(
|
11751
|
-
|
11752
|
-
|
11753
|
-
|
11768
|
+
SwigClassChannel.klass = rb_define_class_under(mGosu, "Channel", rb_cObject);
|
11769
|
+
SWIG_TypeClientData(SWIGTYPE_p_Gosu__Channel, (void *) &SwigClassChannel);
|
11770
|
+
rb_define_alloc_func(SwigClassChannel.klass, _wrap_Channel_allocate);
|
11771
|
+
rb_define_method(SwigClassChannel.klass, "initialize", VALUEFUNC(_wrap_new_Channel), -1);
|
11772
|
+
rb_define_method(SwigClassChannel.klass, "current_channel", VALUEFUNC(_wrap_Channel_current_channel), -1);
|
11773
|
+
rb_define_method(SwigClassChannel.klass, "playing?", VALUEFUNC(_wrap_Channel_playingq___), -1);
|
11774
|
+
rb_define_method(SwigClassChannel.klass, "paused?", VALUEFUNC(_wrap_Channel_pausedq___), -1);
|
11775
|
+
rb_define_method(SwigClassChannel.klass, "pause", VALUEFUNC(_wrap_Channel_pause), -1);
|
11776
|
+
rb_define_method(SwigClassChannel.klass, "resume", VALUEFUNC(_wrap_Channel_resume), -1);
|
11777
|
+
rb_define_method(SwigClassChannel.klass, "stop", VALUEFUNC(_wrap_Channel_stop), -1);
|
11778
|
+
rb_define_method(SwigClassChannel.klass, "volume=", VALUEFUNC(_wrap_Channel_volumee___), -1);
|
11779
|
+
rb_define_method(SwigClassChannel.klass, "pan=", VALUEFUNC(_wrap_Channel_pane___), -1);
|
11780
|
+
rb_define_method(SwigClassChannel.klass, "speed=", VALUEFUNC(_wrap_Channel_speede___), -1);
|
11781
|
+
SwigClassChannel.mark = 0;
|
11782
|
+
SwigClassChannel.destroy = (void (*)(void *)) free_Gosu_Channel;
|
11783
|
+
SwigClassChannel.trackObjects = 1;
|
11754
11784
|
|
11755
11785
|
SwigClassSample.klass = rb_define_class_under(mGosu, "Sample", rb_cObject);
|
11756
11786
|
SWIG_TypeClientData(SWIGTYPE_p_Gosu__Sample, (void *) &SwigClassSample);
|