gosu 1.0.0 → 1.2.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/COPYING +1 -1
- data/ext/gosu/extconf.rb +5 -1
- data/include/Gosu/Font.hpp +7 -9
- data/include/Gosu/Graphics.hpp +6 -4
- data/include/Gosu/GraphicsBase.hpp +6 -6
- data/include/Gosu/Image.hpp +3 -3
- data/include/Gosu/ImageData.hpp +1 -1
- data/include/Gosu/Text.hpp +4 -4
- data/include/Gosu/Utility.hpp +10 -8
- data/include/Gosu/Version.hpp +1 -1
- data/include/Gosu/Window.hpp +23 -9
- data/lib/gosu/compat.rb +4 -0
- data/lib/gosu/swig_patches.rb +11 -10
- data/rdoc/gosu.rb +14 -1
- data/src/EmptyImageData.hpp +1 -1
- data/src/Font.cpp +4 -4
- data/src/Graphics.cpp +4 -4
- data/src/Image.cpp +4 -3
- data/src/Input.cpp +1 -10
- data/src/LargeImageData.cpp +1 -1
- data/src/LargeImageData.hpp +1 -1
- data/src/Macro.cpp +100 -143
- data/src/Macro.hpp +1 -1
- data/src/RenderState.hpp +5 -5
- data/src/Resolution.cpp +111 -63
- data/src/RubyGosu.cxx +222 -124
- data/src/RubyGosu.h +2 -2
- data/src/TexChunk.cpp +1 -1
- data/src/TexChunk.hpp +1 -1
- data/src/TrueTypeFontApple.cpp +10 -2
- data/src/TrueTypeFontWin.cpp +3 -3
- data/src/Utility.cpp +52 -23
- data/src/Window.cpp +60 -31
- data/src/WindowUIKit.cpp +21 -9
- metadata +3 -25
- data/include/Gosu/Channel.h +0 -25
- data/include/Gosu/Color.h +0 -38
- data/include/Gosu/Font.h +0 -36
- data/include/Gosu/Gosu.h +0 -82
- data/include/Gosu/Image.h +0 -54
- data/include/Gosu/Sample.h +0 -19
- data/include/Gosu/Song.h +0 -24
- data/include/Gosu/TextInput.h +0 -30
- data/include/Gosu/Window.h +0 -63
- data/src/ChannelWrapper.cpp +0 -50
- data/src/ColorWrapper.cpp +0 -126
- data/src/Constants.cpp +0 -338
- data/src/FontWrapper.cpp +0 -74
- data/src/GosuWrapper.cpp +0 -251
- data/src/ImageWrapper.cpp +0 -168
- data/src/MPEGFile.hpp +0 -90
- data/src/SampleWrapper.cpp +0 -30
- data/src/SongWrapper.cpp +0 -52
- data/src/TextInputWrapper.cpp +0 -101
- data/src/UtilityApple.cpp +0 -16
- data/src/UtilityWin.cpp +0 -17
- data/src/WindowWrapper.cpp +0 -317
data/src/RubyGosu.cxx
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version 4.
|
3
|
+
* Version 4.0.2
|
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
|
@@ -2203,7 +2203,7 @@ static VALUE mGosu;
|
|
2203
2203
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
2204
2204
|
|
2205
2205
|
|
2206
|
-
#define SWIGVERSION
|
2206
|
+
#define SWIGVERSION 0x040002
|
2207
2207
|
#define SWIG_VERSION SWIGVERSION
|
2208
2208
|
|
2209
2209
|
|
@@ -2353,7 +2353,7 @@ namespace Gosu
|
|
2353
2353
|
{
|
2354
2354
|
void draw_line(double x1, double y1, Gosu::Color c1,
|
2355
2355
|
double x2, double y2, Gosu::Color c2,
|
2356
|
-
Gosu::ZPos z = 0, Gosu::
|
2356
|
+
Gosu::ZPos z = 0, Gosu::BlendMode mode = Gosu::BM_DEFAULT)
|
2357
2357
|
{
|
2358
2358
|
Gosu::Graphics::draw_line(x1, y1, c1, x2, y2, c2, z, mode);
|
2359
2359
|
}
|
@@ -2361,7 +2361,7 @@ namespace Gosu
|
|
2361
2361
|
void draw_triangle(double x1, double y1, Gosu::Color c1,
|
2362
2362
|
double x2, double y2, Gosu::Color c2,
|
2363
2363
|
double x3, double y3, Gosu::Color c3,
|
2364
|
-
Gosu::ZPos z = 0, Gosu::
|
2364
|
+
Gosu::ZPos z = 0, Gosu::BlendMode mode = Gosu::BM_DEFAULT)
|
2365
2365
|
{
|
2366
2366
|
Gosu::Graphics::draw_triangle(x1, y1, c1, x2, y2, c2, x3, y3, c3, z, mode);
|
2367
2367
|
}
|
@@ -2370,13 +2370,13 @@ namespace Gosu
|
|
2370
2370
|
double x2, double y2, Gosu::Color c2,
|
2371
2371
|
double x3, double y3, Gosu::Color c3,
|
2372
2372
|
double x4, double y4, Gosu::Color c4,
|
2373
|
-
Gosu::ZPos z = 0, Gosu::
|
2373
|
+
Gosu::ZPos z = 0, Gosu::BlendMode mode = Gosu::BM_DEFAULT)
|
2374
2374
|
{
|
2375
2375
|
Gosu::Graphics::draw_quad(x1, y1, c1, x2, y2, c2, x3, y3, c3, x4, y4, c4, z, mode);
|
2376
2376
|
}
|
2377
2377
|
|
2378
2378
|
void draw_rect(double x, double y, double width, double height, Gosu::Color c,
|
2379
|
-
Gosu::ZPos z = 0, Gosu::
|
2379
|
+
Gosu::ZPos z = 0, Gosu::BlendMode mode = Gosu::BM_DEFAULT)
|
2380
2380
|
{
|
2381
2381
|
Gosu::Graphics::draw_rect(x, y, width, height, c, z, mode);
|
2382
2382
|
}
|
@@ -2519,7 +2519,7 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
|
|
2519
2519
|
}
|
2520
2520
|
|
2521
2521
|
|
2522
|
-
/*@SWIG:/
|
2522
|
+
/*@SWIG:/opt/homebrew/Cellar/swig/4.0.2/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2523
2523
|
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE arg)
|
2524
2524
|
{
|
2525
2525
|
VALUE *args = (VALUE *)arg;
|
@@ -2562,7 +2562,7 @@ SWIG_From_unsigned_SS_int (unsigned int value)
|
|
2562
2562
|
#include <string>
|
2563
2563
|
|
2564
2564
|
|
2565
|
-
/*@SWIG:/
|
2565
|
+
/*@SWIG:/opt/homebrew/Cellar/swig/4.0.2/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2566
2566
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
|
2567
2567
|
{
|
2568
2568
|
VALUE *args = (VALUE *)arg;
|
@@ -2768,7 +2768,7 @@ SWIG_AsPtr_std_string (VALUE obj, std::string **val)
|
|
2768
2768
|
}
|
2769
2769
|
|
2770
2770
|
|
2771
|
-
/*@SWIG:/
|
2771
|
+
/*@SWIG:/opt/homebrew/Cellar/swig/4.0.2/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2772
2772
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
|
2773
2773
|
{
|
2774
2774
|
VALUE *args = (VALUE *)arg;
|
@@ -2923,7 +2923,7 @@ SWIGINTERN Gosu::Image *new_Gosu_Image(VALUE source,VALUE options=0){
|
|
2923
2923
|
|
2924
2924
|
return new Gosu::Image(bmp, src_x, src_y, src_width, src_height, flags);
|
2925
2925
|
}
|
2926
|
-
SWIGINTERN void Gosu_Image_draw_as_quad(Gosu::Image *self,double x1,double y1,Gosu::Color c1,double x2,double y2,Gosu::Color c2,double x3,double y3,Gosu::Color c3,double x4,double y4,Gosu::Color c4,Gosu::ZPos z,Gosu::
|
2926
|
+
SWIGINTERN void Gosu_Image_draw_as_quad(Gosu::Image *self,double x1,double y1,Gosu::Color c1,double x2,double y2,Gosu::Color c2,double x3,double y3,Gosu::Color c3,double x4,double y4,Gosu::Color c4,Gosu::ZPos z,Gosu::BlendMode mode=Gosu::BM_DEFAULT){
|
2927
2927
|
self->data().draw(x1, y1, c1, x2, y2, c2, x3, y3, c3, x4, y4, c4, z, mode);
|
2928
2928
|
}
|
2929
2929
|
SWIGINTERN Gosu::GLTexInfo *Gosu_Image_gl_tex_info(Gosu::Image const *self){
|
@@ -3300,7 +3300,7 @@ std::string SwigDirector_TextInput::filter(std::string text) const {
|
|
3300
3300
|
}
|
3301
3301
|
|
3302
3302
|
|
3303
|
-
SwigDirector_Window::SwigDirector_Window(VALUE self,
|
3303
|
+
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) {
|
3304
3304
|
|
3305
3305
|
}
|
3306
3306
|
|
@@ -3864,8 +3864,8 @@ fail:
|
|
3864
3864
|
|
3865
3865
|
|
3866
3866
|
SWIGINTERN VALUE
|
3867
|
-
|
3868
|
-
std::string result;
|
3867
|
+
_wrap_user_languages(int argc, VALUE *argv, VALUE self) {
|
3868
|
+
SwigValueWrapper< std::vector< std::string > > result;
|
3869
3869
|
VALUE vresult = Qnil;
|
3870
3870
|
|
3871
3871
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3873,15 +3873,17 @@ _wrap_language(int argc, VALUE *argv, VALUE self) {
|
|
3873
3873
|
}
|
3874
3874
|
{
|
3875
3875
|
try {
|
3876
|
-
result = Gosu::
|
3876
|
+
result = Gosu::user_languages();
|
3877
3877
|
}
|
3878
3878
|
catch (const std::exception& e) {
|
3879
3879
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
3880
3880
|
}
|
3881
3881
|
}
|
3882
3882
|
{
|
3883
|
-
vresult =
|
3884
|
-
|
3883
|
+
vresult = rb_ary_new2((&result)->size());
|
3884
|
+
for (std::size_t i = 0; i < (&result)->size(); i++) {
|
3885
|
+
rb_ary_store(vresult, i, rb_str_new2((*&result)[i].c_str()));
|
3886
|
+
}
|
3885
3887
|
}
|
3886
3888
|
return vresult;
|
3887
3889
|
fail:
|
@@ -5373,7 +5375,7 @@ _wrap_Font_draw_text(int argc, VALUE *argv, VALUE self) {
|
|
5373
5375
|
double arg6 = (double) 1 ;
|
5374
5376
|
double arg7 = (double) 1 ;
|
5375
5377
|
Gosu::Color arg8 = (Gosu::Color) Gosu::Color::WHITE ;
|
5376
|
-
Gosu::
|
5378
|
+
Gosu::BlendMode arg9 = (Gosu::BlendMode) Gosu::BM_DEFAULT ;
|
5377
5379
|
void *argp1 = 0 ;
|
5378
5380
|
int res1 = 0 ;
|
5379
5381
|
int res2 = SWIG_OLDOBJ ;
|
@@ -5461,16 +5463,16 @@ _wrap_Font_draw_text(int argc, VALUE *argv, VALUE self) {
|
|
5461
5463
|
const char* cstr = Gosu::cstr_from_symbol(argv[7]);
|
5462
5464
|
|
5463
5465
|
if (!strcmp(cstr, "default")) {
|
5464
|
-
arg9 = Gosu::
|
5466
|
+
arg9 = Gosu::BM_DEFAULT;
|
5465
5467
|
}
|
5466
5468
|
else if (!strcmp(cstr, "add") || !strcmp(cstr, "additive")) {
|
5467
|
-
arg9 = Gosu::
|
5469
|
+
arg9 = Gosu::BM_ADD;
|
5468
5470
|
}
|
5469
5471
|
else if (!strcmp(cstr, "multiply")) {
|
5470
|
-
arg9 = Gosu::
|
5472
|
+
arg9 = Gosu::BM_MULTIPLY;
|
5471
5473
|
}
|
5472
5474
|
else {
|
5473
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid
|
5475
|
+
SWIG_exception_fail(SWIG_ValueError, "invalid blend mode (expected one of :default, :add, "
|
5474
5476
|
":multiply)");
|
5475
5477
|
}
|
5476
5478
|
}
|
@@ -5501,7 +5503,7 @@ _wrap_Font_draw_markup(int argc, VALUE *argv, VALUE self) {
|
|
5501
5503
|
double arg6 = (double) 1 ;
|
5502
5504
|
double arg7 = (double) 1 ;
|
5503
5505
|
Gosu::Color arg8 = (Gosu::Color) Gosu::Color::WHITE ;
|
5504
|
-
Gosu::
|
5506
|
+
Gosu::BlendMode arg9 = (Gosu::BlendMode) Gosu::BM_DEFAULT ;
|
5505
5507
|
void *argp1 = 0 ;
|
5506
5508
|
int res1 = 0 ;
|
5507
5509
|
int res2 = SWIG_OLDOBJ ;
|
@@ -5589,16 +5591,16 @@ _wrap_Font_draw_markup(int argc, VALUE *argv, VALUE self) {
|
|
5589
5591
|
const char* cstr = Gosu::cstr_from_symbol(argv[7]);
|
5590
5592
|
|
5591
5593
|
if (!strcmp(cstr, "default")) {
|
5592
|
-
arg9 = Gosu::
|
5594
|
+
arg9 = Gosu::BM_DEFAULT;
|
5593
5595
|
}
|
5594
5596
|
else if (!strcmp(cstr, "add") || !strcmp(cstr, "additive")) {
|
5595
|
-
arg9 = Gosu::
|
5597
|
+
arg9 = Gosu::BM_ADD;
|
5596
5598
|
}
|
5597
5599
|
else if (!strcmp(cstr, "multiply")) {
|
5598
|
-
arg9 = Gosu::
|
5600
|
+
arg9 = Gosu::BM_MULTIPLY;
|
5599
5601
|
}
|
5600
5602
|
else {
|
5601
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid
|
5603
|
+
SWIG_exception_fail(SWIG_ValueError, "invalid blend mode (expected one of :default, :add, "
|
5602
5604
|
":multiply)");
|
5603
5605
|
}
|
5604
5606
|
}
|
@@ -5631,7 +5633,7 @@ _wrap_Font_draw_text_rel(int argc, VALUE *argv, VALUE self) {
|
|
5631
5633
|
double arg8 = (double) 1 ;
|
5632
5634
|
double arg9 = (double) 1 ;
|
5633
5635
|
Gosu::Color arg10 = (Gosu::Color) Gosu::Color::WHITE ;
|
5634
|
-
Gosu::
|
5636
|
+
Gosu::BlendMode arg11 = (Gosu::BlendMode) Gosu::BM_DEFAULT ;
|
5635
5637
|
void *argp1 = 0 ;
|
5636
5638
|
int res1 = 0 ;
|
5637
5639
|
int res2 = SWIG_OLDOBJ ;
|
@@ -5733,16 +5735,16 @@ _wrap_Font_draw_text_rel(int argc, VALUE *argv, VALUE self) {
|
|
5733
5735
|
const char* cstr = Gosu::cstr_from_symbol(argv[9]);
|
5734
5736
|
|
5735
5737
|
if (!strcmp(cstr, "default")) {
|
5736
|
-
arg11 = Gosu::
|
5738
|
+
arg11 = Gosu::BM_DEFAULT;
|
5737
5739
|
}
|
5738
5740
|
else if (!strcmp(cstr, "add") || !strcmp(cstr, "additive")) {
|
5739
|
-
arg11 = Gosu::
|
5741
|
+
arg11 = Gosu::BM_ADD;
|
5740
5742
|
}
|
5741
5743
|
else if (!strcmp(cstr, "multiply")) {
|
5742
|
-
arg11 = Gosu::
|
5744
|
+
arg11 = Gosu::BM_MULTIPLY;
|
5743
5745
|
}
|
5744
5746
|
else {
|
5745
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid
|
5747
|
+
SWIG_exception_fail(SWIG_ValueError, "invalid blend mode (expected one of :default, :add, "
|
5746
5748
|
":multiply)");
|
5747
5749
|
}
|
5748
5750
|
}
|
@@ -5775,7 +5777,7 @@ _wrap_Font_draw_markup_rel(int argc, VALUE *argv, VALUE self) {
|
|
5775
5777
|
double arg8 = (double) 1 ;
|
5776
5778
|
double arg9 = (double) 1 ;
|
5777
5779
|
Gosu::Color arg10 = (Gosu::Color) Gosu::Color::WHITE ;
|
5778
|
-
Gosu::
|
5780
|
+
Gosu::BlendMode arg11 = (Gosu::BlendMode) Gosu::BM_DEFAULT ;
|
5779
5781
|
void *argp1 = 0 ;
|
5780
5782
|
int res1 = 0 ;
|
5781
5783
|
int res2 = SWIG_OLDOBJ ;
|
@@ -5877,16 +5879,16 @@ _wrap_Font_draw_markup_rel(int argc, VALUE *argv, VALUE self) {
|
|
5877
5879
|
const char* cstr = Gosu::cstr_from_symbol(argv[9]);
|
5878
5880
|
|
5879
5881
|
if (!strcmp(cstr, "default")) {
|
5880
|
-
arg11 = Gosu::
|
5882
|
+
arg11 = Gosu::BM_DEFAULT;
|
5881
5883
|
}
|
5882
5884
|
else if (!strcmp(cstr, "add") || !strcmp(cstr, "additive")) {
|
5883
|
-
arg11 = Gosu::
|
5885
|
+
arg11 = Gosu::BM_ADD;
|
5884
5886
|
}
|
5885
5887
|
else if (!strcmp(cstr, "multiply")) {
|
5886
|
-
arg11 = Gosu::
|
5888
|
+
arg11 = Gosu::BM_MULTIPLY;
|
5887
5889
|
}
|
5888
5890
|
else {
|
5889
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid
|
5891
|
+
SWIG_exception_fail(SWIG_ValueError, "invalid blend mode (expected one of :default, :add, "
|
5890
5892
|
":multiply)");
|
5891
5893
|
}
|
5892
5894
|
}
|
@@ -6625,7 +6627,7 @@ _wrap_Image_draw(int argc, VALUE *argv, VALUE self) {
|
|
6625
6627
|
double arg5 = (double) 1 ;
|
6626
6628
|
double arg6 = (double) 1 ;
|
6627
6629
|
Gosu::Color arg7 = (Gosu::Color) Gosu::Color::WHITE ;
|
6628
|
-
Gosu::
|
6630
|
+
Gosu::BlendMode arg8 = (Gosu::BlendMode) Gosu::BM_DEFAULT ;
|
6629
6631
|
void *argp1 = 0 ;
|
6630
6632
|
int res1 = 0 ;
|
6631
6633
|
double val2 ;
|
@@ -6703,16 +6705,16 @@ _wrap_Image_draw(int argc, VALUE *argv, VALUE self) {
|
|
6703
6705
|
const char* cstr = Gosu::cstr_from_symbol(argv[6]);
|
6704
6706
|
|
6705
6707
|
if (!strcmp(cstr, "default")) {
|
6706
|
-
arg8 = Gosu::
|
6708
|
+
arg8 = Gosu::BM_DEFAULT;
|
6707
6709
|
}
|
6708
6710
|
else if (!strcmp(cstr, "add") || !strcmp(cstr, "additive")) {
|
6709
|
-
arg8 = Gosu::
|
6711
|
+
arg8 = Gosu::BM_ADD;
|
6710
6712
|
}
|
6711
6713
|
else if (!strcmp(cstr, "multiply")) {
|
6712
|
-
arg8 = Gosu::
|
6714
|
+
arg8 = Gosu::BM_MULTIPLY;
|
6713
6715
|
}
|
6714
6716
|
else {
|
6715
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid
|
6717
|
+
SWIG_exception_fail(SWIG_ValueError, "invalid blend mode (expected one of :default, :add, "
|
6716
6718
|
":multiply)");
|
6717
6719
|
}
|
6718
6720
|
}
|
@@ -6743,7 +6745,7 @@ _wrap_Image_draw_mod(int argc, VALUE *argv, VALUE self) {
|
|
6743
6745
|
Gosu::Color arg8 ;
|
6744
6746
|
Gosu::Color arg9 ;
|
6745
6747
|
Gosu::Color arg10 ;
|
6746
|
-
Gosu::
|
6748
|
+
Gosu::BlendMode arg11 = (Gosu::BlendMode) Gosu::BM_DEFAULT ;
|
6747
6749
|
void *argp1 = 0 ;
|
6748
6750
|
int res1 = 0 ;
|
6749
6751
|
double val2 ;
|
@@ -6867,16 +6869,16 @@ _wrap_Image_draw_mod(int argc, VALUE *argv, VALUE self) {
|
|
6867
6869
|
const char* cstr = Gosu::cstr_from_symbol(argv[9]);
|
6868
6870
|
|
6869
6871
|
if (!strcmp(cstr, "default")) {
|
6870
|
-
arg11 = Gosu::
|
6872
|
+
arg11 = Gosu::BM_DEFAULT;
|
6871
6873
|
}
|
6872
6874
|
else if (!strcmp(cstr, "add") || !strcmp(cstr, "additive")) {
|
6873
|
-
arg11 = Gosu::
|
6875
|
+
arg11 = Gosu::BM_ADD;
|
6874
6876
|
}
|
6875
6877
|
else if (!strcmp(cstr, "multiply")) {
|
6876
|
-
arg11 = Gosu::
|
6878
|
+
arg11 = Gosu::BM_MULTIPLY;
|
6877
6879
|
}
|
6878
6880
|
else {
|
6879
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid
|
6881
|
+
SWIG_exception_fail(SWIG_ValueError, "invalid blend mode (expected one of :default, :add, "
|
6880
6882
|
":multiply)");
|
6881
6883
|
}
|
6882
6884
|
}
|
@@ -6907,7 +6909,7 @@ _wrap_Image_draw_rot(int argc, VALUE *argv, VALUE self) {
|
|
6907
6909
|
double arg8 = (double) 1 ;
|
6908
6910
|
double arg9 = (double) 1 ;
|
6909
6911
|
Gosu::Color arg10 = (Gosu::Color) Gosu::Color::WHITE ;
|
6910
|
-
Gosu::
|
6912
|
+
Gosu::BlendMode arg11 = (Gosu::BlendMode) Gosu::BM_DEFAULT ;
|
6911
6913
|
void *argp1 = 0 ;
|
6912
6914
|
int res1 = 0 ;
|
6913
6915
|
double val2 ;
|
@@ -7012,16 +7014,16 @@ _wrap_Image_draw_rot(int argc, VALUE *argv, VALUE self) {
|
|
7012
7014
|
const char* cstr = Gosu::cstr_from_symbol(argv[9]);
|
7013
7015
|
|
7014
7016
|
if (!strcmp(cstr, "default")) {
|
7015
|
-
arg11 = Gosu::
|
7017
|
+
arg11 = Gosu::BM_DEFAULT;
|
7016
7018
|
}
|
7017
7019
|
else if (!strcmp(cstr, "add") || !strcmp(cstr, "additive")) {
|
7018
|
-
arg11 = Gosu::
|
7020
|
+
arg11 = Gosu::BM_ADD;
|
7019
7021
|
}
|
7020
7022
|
else if (!strcmp(cstr, "multiply")) {
|
7021
|
-
arg11 = Gosu::
|
7023
|
+
arg11 = Gosu::BM_MULTIPLY;
|
7022
7024
|
}
|
7023
7025
|
else {
|
7024
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid
|
7026
|
+
SWIG_exception_fail(SWIG_ValueError, "invalid blend mode (expected one of :default, :add, "
|
7025
7027
|
":multiply)");
|
7026
7028
|
}
|
7027
7029
|
}
|
@@ -7101,7 +7103,7 @@ _wrap_Image_draw_as_quad(int argc, VALUE *argv, VALUE self) {
|
|
7101
7103
|
double arg12 ;
|
7102
7104
|
Gosu::Color arg13 ;
|
7103
7105
|
Gosu::ZPos arg14 ;
|
7104
|
-
Gosu::
|
7106
|
+
Gosu::BlendMode arg15 = (Gosu::BlendMode) Gosu::BM_DEFAULT ;
|
7105
7107
|
void *argp1 = 0 ;
|
7106
7108
|
int res1 = 0 ;
|
7107
7109
|
double val2 ;
|
@@ -7253,16 +7255,16 @@ _wrap_Image_draw_as_quad(int argc, VALUE *argv, VALUE self) {
|
|
7253
7255
|
const char* cstr = Gosu::cstr_from_symbol(argv[13]);
|
7254
7256
|
|
7255
7257
|
if (!strcmp(cstr, "default")) {
|
7256
|
-
arg15 = Gosu::
|
7258
|
+
arg15 = Gosu::BM_DEFAULT;
|
7257
7259
|
}
|
7258
7260
|
else if (!strcmp(cstr, "add") || !strcmp(cstr, "additive")) {
|
7259
|
-
arg15 = Gosu::
|
7261
|
+
arg15 = Gosu::BM_ADD;
|
7260
7262
|
}
|
7261
7263
|
else if (!strcmp(cstr, "multiply")) {
|
7262
|
-
arg15 = Gosu::
|
7264
|
+
arg15 = Gosu::BM_MULTIPLY;
|
7263
7265
|
}
|
7264
7266
|
else {
|
7265
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid
|
7267
|
+
SWIG_exception_fail(SWIG_ValueError, "invalid blend mode (expected one of :default, :add, "
|
7266
7268
|
":multiply)");
|
7267
7269
|
}
|
7268
7270
|
}
|
@@ -9198,44 +9200,41 @@ _wrap_Window_allocate(int argc, VALUE *argv, VALUE self)
|
|
9198
9200
|
SWIGINTERN VALUE
|
9199
9201
|
_wrap_new_Window(int argc, VALUE *argv, VALUE self) {
|
9200
9202
|
VALUE arg1 = (VALUE) 0 ;
|
9201
|
-
|
9202
|
-
|
9203
|
-
|
9203
|
+
int arg2 ;
|
9204
|
+
int arg3 ;
|
9205
|
+
unsigned int arg4 = (unsigned int) Gosu::WF_WINDOWED ;
|
9204
9206
|
double arg5 = (double) 16.666666 ;
|
9205
|
-
|
9206
|
-
unsigned int val2 ;
|
9207
|
+
int val2 ;
|
9207
9208
|
int ecode2 = 0 ;
|
9208
|
-
|
9209
|
+
int val3 ;
|
9209
9210
|
int ecode3 = 0 ;
|
9210
|
-
|
9211
|
+
unsigned int val4 ;
|
9211
9212
|
int ecode4 = 0 ;
|
9212
9213
|
double val5 ;
|
9213
9214
|
int ecode5 = 0 ;
|
9214
|
-
bool val6 ;
|
9215
|
-
int ecode6 = 0 ;
|
9216
9215
|
const char *classname SWIGUNUSED = "Gosu::Window";
|
9217
9216
|
Gosu::Window *result = 0 ;
|
9218
9217
|
|
9219
|
-
if ((argc < 2) || (argc >
|
9218
|
+
if ((argc < 2) || (argc > 4)) {
|
9220
9219
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
9221
9220
|
}
|
9222
9221
|
arg1 = self;
|
9223
|
-
ecode2 =
|
9222
|
+
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
9224
9223
|
if (!SWIG_IsOK(ecode2)) {
|
9225
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "
|
9224
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","Window", 2, argv[0] ));
|
9226
9225
|
}
|
9227
|
-
arg2 = static_cast<
|
9228
|
-
ecode3 =
|
9226
|
+
arg2 = static_cast< int >(val2);
|
9227
|
+
ecode3 = SWIG_AsVal_int(argv[1], &val3);
|
9229
9228
|
if (!SWIG_IsOK(ecode3)) {
|
9230
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "
|
9229
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","Window", 3, argv[1] ));
|
9231
9230
|
}
|
9232
|
-
arg3 = static_cast<
|
9231
|
+
arg3 = static_cast< int >(val3);
|
9233
9232
|
if (argc > 2) {
|
9234
|
-
ecode4 =
|
9233
|
+
ecode4 = SWIG_AsVal_unsigned_SS_int(argv[2], &val4);
|
9235
9234
|
if (!SWIG_IsOK(ecode4)) {
|
9236
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "
|
9235
|
+
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","Window", 4, argv[2] ));
|
9237
9236
|
}
|
9238
|
-
arg4 = static_cast<
|
9237
|
+
arg4 = static_cast< unsigned int >(val4);
|
9239
9238
|
}
|
9240
9239
|
if (argc > 3) {
|
9241
9240
|
ecode5 = SWIG_AsVal_double(argv[3], &val5);
|
@@ -9244,20 +9243,13 @@ _wrap_new_Window(int argc, VALUE *argv, VALUE self) {
|
|
9244
9243
|
}
|
9245
9244
|
arg5 = static_cast< double >(val5);
|
9246
9245
|
}
|
9247
|
-
if (argc > 4) {
|
9248
|
-
ecode6 = SWIG_AsVal_bool(argv[4], &val6);
|
9249
|
-
if (!SWIG_IsOK(ecode6)) {
|
9250
|
-
SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "bool","Window", 6, argv[4] ));
|
9251
|
-
}
|
9252
|
-
arg6 = static_cast< bool >(val6);
|
9253
|
-
}
|
9254
9246
|
{
|
9255
9247
|
try {
|
9256
9248
|
if ( strcmp(rb_obj_classname(self), classname) != 0 ) {
|
9257
9249
|
/* subclassed */
|
9258
|
-
result = (Gosu::Window *)new SwigDirector_Window(arg1,arg2,arg3,arg4,arg5
|
9250
|
+
result = (Gosu::Window *)new SwigDirector_Window(arg1,arg2,arg3,arg4,arg5);
|
9259
9251
|
} else {
|
9260
|
-
result = (Gosu::Window *)new Gosu::Window(arg2,arg3,arg4,arg5
|
9252
|
+
result = (Gosu::Window *)new Gosu::Window(arg2,arg3,arg4,arg5);
|
9261
9253
|
}
|
9262
9254
|
|
9263
9255
|
DATA_PTR(self) = result;
|
@@ -9285,7 +9277,7 @@ _wrap_Window_width(int argc, VALUE *argv, VALUE self) {
|
|
9285
9277
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
9286
9278
|
void *argp1 = 0 ;
|
9287
9279
|
int res1 = 0 ;
|
9288
|
-
|
9280
|
+
int result;
|
9289
9281
|
VALUE vresult = Qnil;
|
9290
9282
|
|
9291
9283
|
if ((argc < 0) || (argc > 0)) {
|
@@ -9298,13 +9290,13 @@ _wrap_Window_width(int argc, VALUE *argv, VALUE self) {
|
|
9298
9290
|
arg1 = reinterpret_cast< Gosu::Window * >(argp1);
|
9299
9291
|
{
|
9300
9292
|
try {
|
9301
|
-
result = (
|
9293
|
+
result = (int)((Gosu::Window const *)arg1)->width();
|
9302
9294
|
}
|
9303
9295
|
catch (const std::exception& e) {
|
9304
9296
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
9305
9297
|
}
|
9306
9298
|
}
|
9307
|
-
vresult =
|
9299
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
9308
9300
|
return vresult;
|
9309
9301
|
fail:
|
9310
9302
|
return Qnil;
|
@@ -9316,7 +9308,7 @@ _wrap_Window_height(int argc, VALUE *argv, VALUE self) {
|
|
9316
9308
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
9317
9309
|
void *argp1 = 0 ;
|
9318
9310
|
int res1 = 0 ;
|
9319
|
-
|
9311
|
+
int result;
|
9320
9312
|
VALUE vresult = Qnil;
|
9321
9313
|
|
9322
9314
|
if ((argc < 0) || (argc > 0)) {
|
@@ -9329,13 +9321,13 @@ _wrap_Window_height(int argc, VALUE *argv, VALUE self) {
|
|
9329
9321
|
arg1 = reinterpret_cast< Gosu::Window * >(argp1);
|
9330
9322
|
{
|
9331
9323
|
try {
|
9332
|
-
result = (
|
9324
|
+
result = (int)((Gosu::Window const *)arg1)->height();
|
9333
9325
|
}
|
9334
9326
|
catch (const std::exception& e) {
|
9335
9327
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
9336
9328
|
}
|
9337
9329
|
}
|
9338
|
-
vresult =
|
9330
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
9339
9331
|
return vresult;
|
9340
9332
|
fail:
|
9341
9333
|
return Qnil;
|
@@ -9404,6 +9396,109 @@ fail:
|
|
9404
9396
|
}
|
9405
9397
|
|
9406
9398
|
|
9399
|
+
SWIGINTERN VALUE
|
9400
|
+
_wrap_Window_resizablee___(int argc, VALUE *argv, VALUE self) {
|
9401
|
+
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
9402
|
+
bool arg2 ;
|
9403
|
+
void *argp1 = 0 ;
|
9404
|
+
int res1 = 0 ;
|
9405
|
+
bool val2 ;
|
9406
|
+
int ecode2 = 0 ;
|
9407
|
+
|
9408
|
+
if ((argc < 1) || (argc > 1)) {
|
9409
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
9410
|
+
}
|
9411
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Window, 0 | 0 );
|
9412
|
+
if (!SWIG_IsOK(res1)) {
|
9413
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Window *","set_resizable", 1, self ));
|
9414
|
+
}
|
9415
|
+
arg1 = reinterpret_cast< Gosu::Window * >(argp1);
|
9416
|
+
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
9417
|
+
if (!SWIG_IsOK(ecode2)) {
|
9418
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","set_resizable", 2, argv[0] ));
|
9419
|
+
}
|
9420
|
+
arg2 = static_cast< bool >(val2);
|
9421
|
+
{
|
9422
|
+
try {
|
9423
|
+
(arg1)->set_resizable(arg2);
|
9424
|
+
}
|
9425
|
+
catch (const std::exception& e) {
|
9426
|
+
SWIG_exception(SWIG_RuntimeError, e.what());
|
9427
|
+
}
|
9428
|
+
}
|
9429
|
+
return Qnil;
|
9430
|
+
fail:
|
9431
|
+
return Qnil;
|
9432
|
+
}
|
9433
|
+
|
9434
|
+
|
9435
|
+
SWIGINTERN VALUE
|
9436
|
+
_wrap_Window_borderlessq___(int argc, VALUE *argv, VALUE self) {
|
9437
|
+
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
9438
|
+
void *argp1 = 0 ;
|
9439
|
+
int res1 = 0 ;
|
9440
|
+
bool result;
|
9441
|
+
VALUE vresult = Qnil;
|
9442
|
+
|
9443
|
+
if ((argc < 0) || (argc > 0)) {
|
9444
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
9445
|
+
}
|
9446
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Window, 0 | 0 );
|
9447
|
+
if (!SWIG_IsOK(res1)) {
|
9448
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Window const *","borderless", 1, self ));
|
9449
|
+
}
|
9450
|
+
arg1 = reinterpret_cast< Gosu::Window * >(argp1);
|
9451
|
+
{
|
9452
|
+
try {
|
9453
|
+
result = (bool)((Gosu::Window const *)arg1)->borderless();
|
9454
|
+
}
|
9455
|
+
catch (const std::exception& e) {
|
9456
|
+
SWIG_exception(SWIG_RuntimeError, e.what());
|
9457
|
+
}
|
9458
|
+
}
|
9459
|
+
vresult = SWIG_From_bool(static_cast< bool >(result));
|
9460
|
+
return vresult;
|
9461
|
+
fail:
|
9462
|
+
return Qnil;
|
9463
|
+
}
|
9464
|
+
|
9465
|
+
|
9466
|
+
SWIGINTERN VALUE
|
9467
|
+
_wrap_Window_borderlesse___(int argc, VALUE *argv, VALUE self) {
|
9468
|
+
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
9469
|
+
bool arg2 ;
|
9470
|
+
void *argp1 = 0 ;
|
9471
|
+
int res1 = 0 ;
|
9472
|
+
bool val2 ;
|
9473
|
+
int ecode2 = 0 ;
|
9474
|
+
|
9475
|
+
if ((argc < 1) || (argc > 1)) {
|
9476
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
9477
|
+
}
|
9478
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Window, 0 | 0 );
|
9479
|
+
if (!SWIG_IsOK(res1)) {
|
9480
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Window *","set_borderless", 1, self ));
|
9481
|
+
}
|
9482
|
+
arg1 = reinterpret_cast< Gosu::Window * >(argp1);
|
9483
|
+
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
9484
|
+
if (!SWIG_IsOK(ecode2)) {
|
9485
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","set_borderless", 2, argv[0] ));
|
9486
|
+
}
|
9487
|
+
arg2 = static_cast< bool >(val2);
|
9488
|
+
{
|
9489
|
+
try {
|
9490
|
+
(arg1)->set_borderless(arg2);
|
9491
|
+
}
|
9492
|
+
catch (const std::exception& e) {
|
9493
|
+
SWIG_exception(SWIG_RuntimeError, e.what());
|
9494
|
+
}
|
9495
|
+
}
|
9496
|
+
return Qnil;
|
9497
|
+
fail:
|
9498
|
+
return Qnil;
|
9499
|
+
}
|
9500
|
+
|
9501
|
+
|
9407
9502
|
SWIGINTERN VALUE
|
9408
9503
|
_wrap_Window_update_interval(int argc, VALUE *argv, VALUE self) {
|
9409
9504
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -10584,7 +10679,7 @@ _wrap_screen_width(int argc, VALUE *argv, VALUE self) {
|
|
10584
10679
|
Gosu::Window *arg1 = (Gosu::Window *) nullptr ;
|
10585
10680
|
void *argp1 = 0 ;
|
10586
10681
|
int res1 = 0 ;
|
10587
|
-
|
10682
|
+
int result;
|
10588
10683
|
VALUE vresult = Qnil;
|
10589
10684
|
|
10590
10685
|
if ((argc < 0) || (argc > 1)) {
|
@@ -10599,13 +10694,13 @@ _wrap_screen_width(int argc, VALUE *argv, VALUE self) {
|
|
10599
10694
|
}
|
10600
10695
|
{
|
10601
10696
|
try {
|
10602
|
-
result = (
|
10697
|
+
result = (int)Gosu::screen_width(arg1);
|
10603
10698
|
}
|
10604
10699
|
catch (const std::exception& e) {
|
10605
10700
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
10606
10701
|
}
|
10607
10702
|
}
|
10608
|
-
vresult =
|
10703
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
10609
10704
|
return vresult;
|
10610
10705
|
fail:
|
10611
10706
|
return Qnil;
|
@@ -10617,7 +10712,7 @@ _wrap_screen_height(int argc, VALUE *argv, VALUE self) {
|
|
10617
10712
|
Gosu::Window *arg1 = (Gosu::Window *) nullptr ;
|
10618
10713
|
void *argp1 = 0 ;
|
10619
10714
|
int res1 = 0 ;
|
10620
|
-
|
10715
|
+
int result;
|
10621
10716
|
VALUE vresult = Qnil;
|
10622
10717
|
|
10623
10718
|
if ((argc < 0) || (argc > 1)) {
|
@@ -10632,13 +10727,13 @@ _wrap_screen_height(int argc, VALUE *argv, VALUE self) {
|
|
10632
10727
|
}
|
10633
10728
|
{
|
10634
10729
|
try {
|
10635
|
-
result = (
|
10730
|
+
result = (int)Gosu::screen_height(arg1);
|
10636
10731
|
}
|
10637
10732
|
catch (const std::exception& e) {
|
10638
10733
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
10639
10734
|
}
|
10640
10735
|
}
|
10641
|
-
vresult =
|
10736
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
10642
10737
|
return vresult;
|
10643
10738
|
fail:
|
10644
10739
|
return Qnil;
|
@@ -10650,7 +10745,7 @@ _wrap_available_width(int argc, VALUE *argv, VALUE self) {
|
|
10650
10745
|
Gosu::Window *arg1 = (Gosu::Window *) nullptr ;
|
10651
10746
|
void *argp1 = 0 ;
|
10652
10747
|
int res1 = 0 ;
|
10653
|
-
|
10748
|
+
int result;
|
10654
10749
|
VALUE vresult = Qnil;
|
10655
10750
|
|
10656
10751
|
if ((argc < 0) || (argc > 1)) {
|
@@ -10665,13 +10760,13 @@ _wrap_available_width(int argc, VALUE *argv, VALUE self) {
|
|
10665
10760
|
}
|
10666
10761
|
{
|
10667
10762
|
try {
|
10668
|
-
result = (
|
10763
|
+
result = (int)Gosu::available_width(arg1);
|
10669
10764
|
}
|
10670
10765
|
catch (const std::exception& e) {
|
10671
10766
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
10672
10767
|
}
|
10673
10768
|
}
|
10674
|
-
vresult =
|
10769
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
10675
10770
|
return vresult;
|
10676
10771
|
fail:
|
10677
10772
|
return Qnil;
|
@@ -10683,7 +10778,7 @@ _wrap_available_height(int argc, VALUE *argv, VALUE self) {
|
|
10683
10778
|
Gosu::Window *arg1 = (Gosu::Window *) nullptr ;
|
10684
10779
|
void *argp1 = 0 ;
|
10685
10780
|
int res1 = 0 ;
|
10686
|
-
|
10781
|
+
int result;
|
10687
10782
|
VALUE vresult = Qnil;
|
10688
10783
|
|
10689
10784
|
if ((argc < 0) || (argc > 1)) {
|
@@ -10698,13 +10793,13 @@ _wrap_available_height(int argc, VALUE *argv, VALUE self) {
|
|
10698
10793
|
}
|
10699
10794
|
{
|
10700
10795
|
try {
|
10701
|
-
result = (
|
10796
|
+
result = (int)Gosu::available_height(arg1);
|
10702
10797
|
}
|
10703
10798
|
catch (const std::exception& e) {
|
10704
10799
|
SWIG_exception(SWIG_RuntimeError, e.what());
|
10705
10800
|
}
|
10706
10801
|
}
|
10707
|
-
vresult =
|
10802
|
+
vresult = SWIG_From_int(static_cast< int >(result));
|
10708
10803
|
return vresult;
|
10709
10804
|
fail:
|
10710
10805
|
return Qnil;
|
@@ -10894,7 +10989,7 @@ _wrap_draw_line(int argc, VALUE *argv, VALUE self) {
|
|
10894
10989
|
double arg5 ;
|
10895
10990
|
Gosu::Color arg6 ;
|
10896
10991
|
Gosu::ZPos arg7 = (Gosu::ZPos) 0 ;
|
10897
|
-
Gosu::
|
10992
|
+
Gosu::BlendMode arg8 = (Gosu::BlendMode) Gosu::BM_DEFAULT ;
|
10898
10993
|
double val1 ;
|
10899
10994
|
int ecode1 = 0 ;
|
10900
10995
|
double val2 ;
|
@@ -10977,16 +11072,16 @@ _wrap_draw_line(int argc, VALUE *argv, VALUE self) {
|
|
10977
11072
|
const char* cstr = Gosu::cstr_from_symbol(argv[7]);
|
10978
11073
|
|
10979
11074
|
if (!strcmp(cstr, "default")) {
|
10980
|
-
arg8 = Gosu::
|
11075
|
+
arg8 = Gosu::BM_DEFAULT;
|
10981
11076
|
}
|
10982
11077
|
else if (!strcmp(cstr, "add") || !strcmp(cstr, "additive")) {
|
10983
|
-
arg8 = Gosu::
|
11078
|
+
arg8 = Gosu::BM_ADD;
|
10984
11079
|
}
|
10985
11080
|
else if (!strcmp(cstr, "multiply")) {
|
10986
|
-
arg8 = Gosu::
|
11081
|
+
arg8 = Gosu::BM_MULTIPLY;
|
10987
11082
|
}
|
10988
11083
|
else {
|
10989
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid
|
11084
|
+
SWIG_exception_fail(SWIG_ValueError, "invalid blend mode (expected one of :default, :add, "
|
10990
11085
|
":multiply)");
|
10991
11086
|
}
|
10992
11087
|
}
|
@@ -11017,7 +11112,7 @@ _wrap_draw_triangle(int argc, VALUE *argv, VALUE self) {
|
|
11017
11112
|
double arg8 ;
|
11018
11113
|
Gosu::Color arg9 ;
|
11019
11114
|
Gosu::ZPos arg10 = (Gosu::ZPos) 0 ;
|
11020
|
-
Gosu::
|
11115
|
+
Gosu::BlendMode arg11 = (Gosu::BlendMode) Gosu::BM_DEFAULT ;
|
11021
11116
|
double val1 ;
|
11022
11117
|
int ecode1 = 0 ;
|
11023
11118
|
double val2 ;
|
@@ -11132,16 +11227,16 @@ _wrap_draw_triangle(int argc, VALUE *argv, VALUE self) {
|
|
11132
11227
|
const char* cstr = Gosu::cstr_from_symbol(argv[10]);
|
11133
11228
|
|
11134
11229
|
if (!strcmp(cstr, "default")) {
|
11135
|
-
arg11 = Gosu::
|
11230
|
+
arg11 = Gosu::BM_DEFAULT;
|
11136
11231
|
}
|
11137
11232
|
else if (!strcmp(cstr, "add") || !strcmp(cstr, "additive")) {
|
11138
|
-
arg11 = Gosu::
|
11233
|
+
arg11 = Gosu::BM_ADD;
|
11139
11234
|
}
|
11140
11235
|
else if (!strcmp(cstr, "multiply")) {
|
11141
|
-
arg11 = Gosu::
|
11236
|
+
arg11 = Gosu::BM_MULTIPLY;
|
11142
11237
|
}
|
11143
11238
|
else {
|
11144
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid
|
11239
|
+
SWIG_exception_fail(SWIG_ValueError, "invalid blend mode (expected one of :default, :add, "
|
11145
11240
|
":multiply)");
|
11146
11241
|
}
|
11147
11242
|
}
|
@@ -11175,7 +11270,7 @@ _wrap_draw_quad(int argc, VALUE *argv, VALUE self) {
|
|
11175
11270
|
double arg11 ;
|
11176
11271
|
Gosu::Color arg12 ;
|
11177
11272
|
Gosu::ZPos arg13 = (Gosu::ZPos) 0 ;
|
11178
|
-
Gosu::
|
11273
|
+
Gosu::BlendMode arg14 = (Gosu::BlendMode) Gosu::BM_DEFAULT ;
|
11179
11274
|
double val1 ;
|
11180
11275
|
int ecode1 = 0 ;
|
11181
11276
|
double val2 ;
|
@@ -11322,16 +11417,16 @@ _wrap_draw_quad(int argc, VALUE *argv, VALUE self) {
|
|
11322
11417
|
const char* cstr = Gosu::cstr_from_symbol(argv[13]);
|
11323
11418
|
|
11324
11419
|
if (!strcmp(cstr, "default")) {
|
11325
|
-
arg14 = Gosu::
|
11420
|
+
arg14 = Gosu::BM_DEFAULT;
|
11326
11421
|
}
|
11327
11422
|
else if (!strcmp(cstr, "add") || !strcmp(cstr, "additive")) {
|
11328
|
-
arg14 = Gosu::
|
11423
|
+
arg14 = Gosu::BM_ADD;
|
11329
11424
|
}
|
11330
11425
|
else if (!strcmp(cstr, "multiply")) {
|
11331
|
-
arg14 = Gosu::
|
11426
|
+
arg14 = Gosu::BM_MULTIPLY;
|
11332
11427
|
}
|
11333
11428
|
else {
|
11334
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid
|
11429
|
+
SWIG_exception_fail(SWIG_ValueError, "invalid blend mode (expected one of :default, :add, "
|
11335
11430
|
":multiply)");
|
11336
11431
|
}
|
11337
11432
|
}
|
@@ -11358,7 +11453,7 @@ _wrap_draw_rect(int argc, VALUE *argv, VALUE self) {
|
|
11358
11453
|
double arg4 ;
|
11359
11454
|
Gosu::Color arg5 ;
|
11360
11455
|
Gosu::ZPos arg6 = (Gosu::ZPos) 0 ;
|
11361
|
-
Gosu::
|
11456
|
+
Gosu::BlendMode arg7 = (Gosu::BlendMode) Gosu::BM_DEFAULT ;
|
11362
11457
|
double val1 ;
|
11363
11458
|
int ecode1 = 0 ;
|
11364
11459
|
double val2 ;
|
@@ -11423,16 +11518,16 @@ _wrap_draw_rect(int argc, VALUE *argv, VALUE self) {
|
|
11423
11518
|
const char* cstr = Gosu::cstr_from_symbol(argv[6]);
|
11424
11519
|
|
11425
11520
|
if (!strcmp(cstr, "default")) {
|
11426
|
-
arg7 = Gosu::
|
11521
|
+
arg7 = Gosu::BM_DEFAULT;
|
11427
11522
|
}
|
11428
11523
|
else if (!strcmp(cstr, "add") || !strcmp(cstr, "additive")) {
|
11429
|
-
arg7 = Gosu::
|
11524
|
+
arg7 = Gosu::BM_ADD;
|
11430
11525
|
}
|
11431
11526
|
else if (!strcmp(cstr, "multiply")) {
|
11432
|
-
arg7 = Gosu::
|
11527
|
+
arg7 = Gosu::BM_MULTIPLY;
|
11433
11528
|
}
|
11434
11529
|
else {
|
11435
|
-
SWIG_exception_fail(SWIG_ValueError, "invalid
|
11530
|
+
SWIG_exception_fail(SWIG_ValueError, "invalid blend mode (expected one of :default, :add, "
|
11436
11531
|
":multiply)");
|
11437
11532
|
}
|
11438
11533
|
}
|
@@ -12425,7 +12520,7 @@ SWIGEXPORT void Init_gosu(void) {
|
|
12425
12520
|
rb_define_const(mGosu, "VERSION", SWIG_From_std_string(static_cast< std::string >(Gosu::VERSION)));
|
12426
12521
|
rb_define_const(mGosu, "LICENSES", SWIG_From_std_string(static_cast< std::string >(Gosu::LICENSES)));
|
12427
12522
|
rb_define_const(mGosu, "MAJOR_VERSION", SWIG_From_int(static_cast< int >(1)));
|
12428
|
-
rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(
|
12523
|
+
rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(2)));
|
12429
12524
|
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(0)));
|
12430
12525
|
rb_define_module_function(mGosu, "milliseconds", VALUEFUNC(_wrap_milliseconds), -1);
|
12431
12526
|
rb_define_module_function(mGosu, "random", VALUEFUNC(_wrap_random), -1);
|
@@ -12439,7 +12534,7 @@ SWIGEXPORT void Init_gosu(void) {
|
|
12439
12534
|
rb_define_module_function(mGosu, "distance", VALUEFUNC(_wrap_distance), -1);
|
12440
12535
|
rb_define_module_function(mGosu, "default_font_name", VALUEFUNC(_wrap_default_font_name), -1);
|
12441
12536
|
rb_define_const(mGosu, "MAX_TEXTURE_SIZE", SWIG_From_unsigned_SS_int(static_cast< unsigned int >(Gosu::MAX_TEXTURE_SIZE)));
|
12442
|
-
rb_define_module_function(mGosu, "
|
12537
|
+
rb_define_module_function(mGosu, "user_languages", VALUEFUNC(_wrap_user_languages), -1);
|
12443
12538
|
rb_define_module_function(mGosu, "enable_undocumented_retrofication", VALUEFUNC(_wrap_enable_undocumented_retrofication), -1);
|
12444
12539
|
|
12445
12540
|
SwigClassColor.klass = rb_define_class_under(mGosu, "Color", rb_cObject);
|
@@ -12881,6 +12976,9 @@ SWIGEXPORT void Init_gosu(void) {
|
|
12881
12976
|
rb_define_method(SwigClassWindow.klass, "height", VALUEFUNC(_wrap_Window_height), -1);
|
12882
12977
|
rb_define_method(SwigClassWindow.klass, "fullscreen?", VALUEFUNC(_wrap_Window_fullscreenq___), -1);
|
12883
12978
|
rb_define_method(SwigClassWindow.klass, "resizable?", VALUEFUNC(_wrap_Window_resizableq___), -1);
|
12979
|
+
rb_define_method(SwigClassWindow.klass, "resizable=", VALUEFUNC(_wrap_Window_resizablee___), -1);
|
12980
|
+
rb_define_method(SwigClassWindow.klass, "borderless?", VALUEFUNC(_wrap_Window_borderlessq___), -1);
|
12981
|
+
rb_define_method(SwigClassWindow.klass, "borderless=", VALUEFUNC(_wrap_Window_borderlesse___), -1);
|
12884
12982
|
rb_define_method(SwigClassWindow.klass, "update_interval", VALUEFUNC(_wrap_Window_update_interval), -1);
|
12885
12983
|
rb_define_method(SwigClassWindow.klass, "update_interval=", VALUEFUNC(_wrap_Window_update_intervale___), -1);
|
12886
12984
|
rb_define_method(SwigClassWindow.klass, "caption", VALUEFUNC(_wrap_Window_caption), -1);
|