gosu 0.7.13.3 → 0.7.14
Sign up to get free protection for your applications and to get access to all the features.
- data/Gosu/Audio.hpp +10 -4
- data/Gosu/Math.hpp +23 -10
- data/Gosu/Platform.hpp +2 -0
- data/Gosu/Version.hpp +9 -0
- data/GosuImpl/Audio/ALChannelManagement.hpp +13 -3
- data/GosuImpl/Audio/AudioFile.hpp +45 -0
- data/GosuImpl/Audio/AudioOpenAL.mm +533 -0
- data/GosuImpl/Audio/AudioToolboxFile.hpp +217 -0
- data/GosuImpl/Audio/OggFile.hpp +114 -0
- data/GosuImpl/AudioFmod.cpp +4 -0
- data/GosuImpl/AudioSDL.cpp +4 -0
- data/GosuImpl/Graphics/GosuView.mm +2 -2
- data/GosuImpl/Graphics/Texture.cpp +9 -4
- data/GosuImpl/Math.cpp +1 -1
- data/GosuImpl/RubyGosu.swg +10 -1
- data/GosuImpl/RubyGosu_wrap.cxx +175 -1416
- data/GosuImpl/RubyGosu_wrap.cxx.rej +187 -0
- data/GosuImpl/WinUtility.cpp +1 -1
- data/GosuImpl/WindowMac.mm +1 -0
- data/GosuImpl/WindowTouch.mm +1 -0
- data/README.txt +5 -5
- data/Rakefile +48 -9
- data/examples/media/Starfighter.bmp +0 -0
- data/linux/configure +1166 -975
- data/linux/configure.ac +14 -30
- data/linux/extconf.rb +2 -5
- data/mac/Gosu.xcodeproj/jlnr.pbxuser +330 -267
- data/mac/Gosu.xcodeproj/jlnr.perspectivev3 +48 -47
- data/mac/Gosu.xcodeproj/project.pbxproj +626 -74
- data/mac/RubyGosu App-Info.plist +1 -1
- data/reference/cpp/_audio_8hpp-source.html +81 -75
- data/reference/cpp/_math_8hpp-source.html +57 -48
- data/reference/cpp/_math_8hpp.html +7 -1
- data/reference/cpp/_platform_8hpp-source.html +58 -56
- data/reference/cpp/_platform_8hpp.html +21 -2
- data/reference/cpp/_version_8hpp-source.html +77 -0
- data/reference/cpp/_version_8hpp.html +153 -0
- data/reference/cpp/class_gosu_1_1_audio-members.html +1 -0
- data/reference/cpp/class_gosu_1_1_audio.html +22 -0
- data/reference/cpp/class_gosu_1_1_sample.html +1 -1
- data/reference/cpp/class_gosu_1_1_sample_instance.html +1 -1
- data/reference/cpp/class_gosu_1_1_song.html +2 -2
- data/reference/cpp/files.html +1 -0
- data/reference/cpp/functions_0x67.html +1 -3
- data/reference/cpp/functions_0x74.html +2 -2
- data/reference/cpp/functions_0x75.html +3 -2
- data/reference/cpp/functions_func_0x67.html +1 -3
- data/reference/cpp/functions_func_0x74.html +2 -2
- data/reference/cpp/functions_func_0x75.html +3 -2
- data/reference/cpp/globals.html +10 -0
- data/reference/cpp/globals_defs.html +10 -0
- data/reference/rdoc/classes/Gosu.html +1547 -0
- data/reference/rdoc/classes/Gosu/Color.html +563 -0
- data/reference/rdoc/classes/Gosu/Font.html +538 -0
- data/reference/rdoc/classes/Gosu/GLTexInfo.html +404 -0
- data/reference/rdoc/classes/Gosu/Image.html +702 -0
- data/reference/rdoc/classes/Gosu/Sample.html +469 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.html +516 -0
- data/reference/rdoc/classes/Gosu/Song.html +561 -0
- data/reference/rdoc/classes/Gosu/TextInput.html +398 -0
- data/reference/rdoc/classes/Gosu/Window.html +913 -0
- data/reference/rdoc/classes/Numeric.html +416 -0
- data/reference/rdoc/created.rid +1 -0
- data/reference/rdoc/files/COPYING_txt.html +386 -0
- data/reference/rdoc/files/README_txt.html +381 -0
- data/reference/rdoc/files/reference/DeploymentOnOSX_rdoc.html +390 -0
- data/reference/rdoc/files/reference/DeploymentOnWindows_rdoc.html +392 -0
- data/reference/rdoc/files/reference/DrawingWithColors_rdoc.html +357 -0
- data/reference/rdoc/files/reference/OrderOfCorners_rdoc.html +352 -0
- data/reference/rdoc/files/reference/Tileability_rdoc.html +368 -0
- data/reference/rdoc/files/reference/ZOrdering_rdoc.html +355 -0
- data/reference/rdoc/files/reference/gosu_rb.html +342 -0
- data/reference/rdoc/fr_class_index.html +12 -0
- data/reference/rdoc/fr_file_index.html +10 -0
- data/reference/rdoc/fr_method_index.html +63 -0
- data/reference/rdoc/index.html +1 -0
- data/reference/rdoc/rdoc-style.css +318 -0
- data/windows/Gosu.vcproj +33 -33
- data/windows/RubyGosu.vcproj +2 -2
- metadata +36 -400
- data/GosuImpl/Audio/AudioFileMac.hpp +0 -105
- data/GosuImpl/AudioOpenAL.mm +0 -486
- data/mac/libboost_thread_1_34_1_universal.a +0 -0
- data/mac/libboost_thread_d_1_34_1_universal.a +0 -0
- data/mac/libfmod_universal.a +0 -0
- data/mac/libpng_universal.a +0 -0
- data/mac/libz_universal.a +0 -0
- data/windows/zlib, libpng/libpng/ANNOUNCE +0 -61
- data/windows/zlib, libpng/libpng/CHANGES +0 -2173
- data/windows/zlib, libpng/libpng/INSTALL +0 -199
- data/windows/zlib, libpng/libpng/KNOWNBUG +0 -22
- data/windows/zlib, libpng/libpng/LICENSE +0 -109
- data/windows/zlib, libpng/libpng/README +0 -264
- data/windows/zlib, libpng/libpng/TODO +0 -24
- data/windows/zlib, libpng/libpng/Y2KINFO +0 -55
- data/windows/zlib, libpng/libpng/configure +0 -13
- data/windows/zlib, libpng/libpng/contrib/gregbook/COPYING +0 -340
- data/windows/zlib, libpng/libpng/contrib/gregbook/LICENSE +0 -50
- data/windows/zlib, libpng/libpng/contrib/gregbook/Makefile.mingw32 +0 -130
- data/windows/zlib, libpng/libpng/contrib/gregbook/Makefile.sgi +0 -104
- data/windows/zlib, libpng/libpng/contrib/gregbook/Makefile.unx +0 -132
- data/windows/zlib, libpng/libpng/contrib/gregbook/Makefile.w32 +0 -113
- data/windows/zlib, libpng/libpng/contrib/gregbook/README +0 -186
- data/windows/zlib, libpng/libpng/contrib/gregbook/makevms.com +0 -132
- data/windows/zlib, libpng/libpng/contrib/gregbook/readpng.c +0 -304
- data/windows/zlib, libpng/libpng/contrib/gregbook/readpng.h +0 -88
- data/windows/zlib, libpng/libpng/contrib/gregbook/readpng2.c +0 -645
- data/windows/zlib, libpng/libpng/contrib/gregbook/readpng2.h +0 -121
- data/windows/zlib, libpng/libpng/contrib/gregbook/readppm.c +0 -179
- data/windows/zlib, libpng/libpng/contrib/gregbook/rpng-win.c +0 -684
- data/windows/zlib, libpng/libpng/contrib/gregbook/rpng-x.c +0 -904
- data/windows/zlib, libpng/libpng/contrib/gregbook/rpng2-win.c +0 -1225
- data/windows/zlib, libpng/libpng/contrib/gregbook/rpng2-x.c +0 -2127
- data/windows/zlib, libpng/libpng/contrib/gregbook/toucan.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/gregbook/wpng.c +0 -853
- data/windows/zlib, libpng/libpng/contrib/gregbook/writepng.c +0 -392
- data/windows/zlib, libpng/libpng/contrib/gregbook/writepng.h +0 -133
- data/windows/zlib, libpng/libpng/contrib/pngminim/decoder/README +0 -6
- data/windows/zlib, libpng/libpng/contrib/pngminim/decoder/gather.sh +0 -8
- data/windows/zlib, libpng/libpng/contrib/pngminim/decoder/makefile.std +0 -44
- data/windows/zlib, libpng/libpng/contrib/pngminim/decoder/pngusr.h +0 -67
- data/windows/zlib, libpng/libpng/contrib/pngminim/encoder/README +0 -6
- data/windows/zlib, libpng/libpng/contrib/pngminim/encoder/dummy_inflate.c +0 -27
- data/windows/zlib, libpng/libpng/contrib/pngminim/encoder/gather.sh +0 -9
- data/windows/zlib, libpng/libpng/contrib/pngminim/encoder/makefile.std +0 -43
- data/windows/zlib, libpng/libpng/contrib/pngminim/encoder/pngusr.h +0 -66
- data/windows/zlib, libpng/libpng/contrib/pngminus/README +0 -153
- data/windows/zlib, libpng/libpng/contrib/pngminus/makefile.std +0 -65
- data/windows/zlib, libpng/libpng/contrib/pngminus/makefile.tc3 +0 -38
- data/windows/zlib, libpng/libpng/contrib/pngminus/makevms.com +0 -92
- data/windows/zlib, libpng/libpng/contrib/pngminus/png2pnm.bat +0 -41
- data/windows/zlib, libpng/libpng/contrib/pngminus/png2pnm.c +0 -430
- data/windows/zlib, libpng/libpng/contrib/pngminus/png2pnm.sh +0 -42
- data/windows/zlib, libpng/libpng/contrib/pngminus/pngminus.bat +0 -4
- data/windows/zlib, libpng/libpng/contrib/pngminus/pngminus.sh +0 -5
- data/windows/zlib, libpng/libpng/contrib/pngminus/pnm2png.bat +0 -41
- data/windows/zlib, libpng/libpng/contrib/pngminus/pnm2png.c +0 -533
- data/windows/zlib, libpng/libpng/contrib/pngminus/pnm2png.sh +0 -42
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn0g01.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn0g02.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn0g04.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn0g08.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn0g16.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn2c08.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn2c16.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn3p01.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn3p02.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn3p04.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn3p08.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn4a08.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn4a16.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn6a08.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/pngsuite/basn6a16.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/visupng/PngFile.c +0 -439
- data/windows/zlib, libpng/libpng/contrib/visupng/PngFile.h +0 -27
- data/windows/zlib, libpng/libpng/contrib/visupng/README.txt +0 -58
- data/windows/zlib, libpng/libpng/contrib/visupng/VisualPng.c +0 -961
- data/windows/zlib, libpng/libpng/contrib/visupng/VisualPng.dsp +0 -147
- data/windows/zlib, libpng/libpng/contrib/visupng/VisualPng.dsw +0 -29
- data/windows/zlib, libpng/libpng/contrib/visupng/VisualPng.ico +0 -0
- data/windows/zlib, libpng/libpng/contrib/visupng/VisualPng.png +0 -0
- data/windows/zlib, libpng/libpng/contrib/visupng/VisualPng.rc +0 -152
- data/windows/zlib, libpng/libpng/contrib/visupng/cexcept.h +0 -243
- data/windows/zlib, libpng/libpng/contrib/visupng/resource.h +0 -23
- data/windows/zlib, libpng/libpng/example.c +0 -814
- data/windows/zlib, libpng/libpng/libpng-1.2.29.txt +0 -2906
- data/windows/zlib, libpng/libpng/libpng.3 +0 -3680
- data/windows/zlib, libpng/libpng/libpngpf.3 +0 -274
- data/windows/zlib, libpng/libpng/png.5 +0 -74
- data/windows/zlib, libpng/libpng/png.c +0 -798
- data/windows/zlib, libpng/libpng/png.h +0 -3569
- data/windows/zlib, libpng/libpng/pngbar.jpg +0 -0
- data/windows/zlib, libpng/libpng/pngbar.png +0 -0
- data/windows/zlib, libpng/libpng/pngconf.h +0 -1481
- data/windows/zlib, libpng/libpng/pngerror.c +0 -343
- data/windows/zlib, libpng/libpng/pnggccrd.c +0 -103
- data/windows/zlib, libpng/libpng/pngget.c +0 -901
- data/windows/zlib, libpng/libpng/pngmem.c +0 -608
- data/windows/zlib, libpng/libpng/pngnow.png +0 -0
- data/windows/zlib, libpng/libpng/pngpread.c +0 -1598
- data/windows/zlib, libpng/libpng/pngread.c +0 -1479
- data/windows/zlib, libpng/libpng/pngrio.c +0 -167
- data/windows/zlib, libpng/libpng/pngrtran.c +0 -4292
- data/windows/zlib, libpng/libpng/pngrutil.c +0 -3183
- data/windows/zlib, libpng/libpng/pngset.c +0 -1268
- data/windows/zlib, libpng/libpng/pngtest.c +0 -1563
- data/windows/zlib, libpng/libpng/pngtest.png +0 -0
- data/windows/zlib, libpng/libpng/pngtrans.c +0 -662
- data/windows/zlib, libpng/libpng/pngvcrd.c +0 -1
- data/windows/zlib, libpng/libpng/pngwio.c +0 -234
- data/windows/zlib, libpng/libpng/pngwrite.c +0 -1532
- data/windows/zlib, libpng/libpng/pngwtran.c +0 -572
- data/windows/zlib, libpng/libpng/pngwutil.c +0 -2802
- data/windows/zlib, libpng/libpng/projects/beos/x86-shared.proj +0 -0
- data/windows/zlib, libpng/libpng/projects/beos/x86-shared.txt +0 -22
- data/windows/zlib, libpng/libpng/projects/beos/x86-static.proj +0 -0
- data/windows/zlib, libpng/libpng/projects/beos/x86-static.txt +0 -22
- data/windows/zlib, libpng/libpng/projects/cbuilder5/libpng.bpf +0 -22
- data/windows/zlib, libpng/libpng/projects/cbuilder5/libpng.bpg +0 -25
- data/windows/zlib, libpng/libpng/projects/cbuilder5/libpng.bpr +0 -157
- data/windows/zlib, libpng/libpng/projects/cbuilder5/libpng.cpp +0 -29
- data/windows/zlib, libpng/libpng/projects/cbuilder5/libpng.readme.txt +0 -25
- data/windows/zlib, libpng/libpng/projects/cbuilder5/libpngstat.bpf +0 -22
- data/windows/zlib, libpng/libpng/projects/cbuilder5/libpngstat.bpr +0 -109
- data/windows/zlib, libpng/libpng/projects/cbuilder5/zlib.readme.txt +0 -14
- data/windows/zlib, libpng/libpng/projects/netware.txt +0 -6
- data/windows/zlib, libpng/libpng/projects/visualc6/README.txt +0 -57
- data/windows/zlib, libpng/libpng/projects/visualc6/libpng.dsp +0 -472
- data/windows/zlib, libpng/libpng/projects/visualc6/libpng.dsw +0 -59
- data/windows/zlib, libpng/libpng/projects/visualc6/pngtest.dsp +0 -314
- data/windows/zlib, libpng/libpng/projects/visualc71/PRJ0041.mak +0 -21
- data/windows/zlib, libpng/libpng/projects/visualc71/README.txt +0 -57
- data/windows/zlib, libpng/libpng/projects/visualc71/README_zlib.txt +0 -44
- data/windows/zlib, libpng/libpng/projects/visualc71/libpng.sln +0 -88
- data/windows/zlib, libpng/libpng/projects/visualc71/libpng.vcproj +0 -702
- data/windows/zlib, libpng/libpng/projects/visualc71/pngtest.vcproj +0 -459
- data/windows/zlib, libpng/libpng/projects/visualc71/zlib.vcproj +0 -670
- data/windows/zlib, libpng/libpng/projects/wince.txt +0 -6
- data/windows/zlib, libpng/libpng/scripts/CMakeLists.txt +0 -210
- data/windows/zlib, libpng/libpng/scripts/SCOPTIONS.ppc +0 -7
- data/windows/zlib, libpng/libpng/scripts/descrip.mms +0 -52
- data/windows/zlib, libpng/libpng/scripts/libpng-config-body.in +0 -96
- data/windows/zlib, libpng/libpng/scripts/libpng-config-head.in +0 -21
- data/windows/zlib, libpng/libpng/scripts/libpng-config.in +0 -124
- data/windows/zlib, libpng/libpng/scripts/libpng.icc +0 -44
- data/windows/zlib, libpng/libpng/scripts/libpng.pc-configure.in +0 -10
- data/windows/zlib, libpng/libpng/scripts/libpng.pc.in +0 -10
- data/windows/zlib, libpng/libpng/scripts/makefile.32sunu +0 -254
- data/windows/zlib, libpng/libpng/scripts/makefile.64sunu +0 -254
- data/windows/zlib, libpng/libpng/scripts/makefile.acorn +0 -51
- data/windows/zlib, libpng/libpng/scripts/makefile.aix +0 -113
- data/windows/zlib, libpng/libpng/scripts/makefile.amiga +0 -48
- data/windows/zlib, libpng/libpng/scripts/makefile.atari +0 -51
- data/windows/zlib, libpng/libpng/scripts/makefile.bc32 +0 -152
- data/windows/zlib, libpng/libpng/scripts/makefile.beos +0 -226
- data/windows/zlib, libpng/libpng/scripts/makefile.bor +0 -162
- data/windows/zlib, libpng/libpng/scripts/makefile.cygwin +0 -299
- data/windows/zlib, libpng/libpng/scripts/makefile.darwin +0 -234
- data/windows/zlib, libpng/libpng/scripts/makefile.dec +0 -214
- data/windows/zlib, libpng/libpng/scripts/makefile.dj2 +0 -55
- data/windows/zlib, libpng/libpng/scripts/makefile.elf +0 -275
- data/windows/zlib, libpng/libpng/scripts/makefile.freebsd +0 -48
- data/windows/zlib, libpng/libpng/scripts/makefile.gcc +0 -79
- data/windows/zlib, libpng/libpng/scripts/makefile.gcmmx +0 -271
- data/windows/zlib, libpng/libpng/scripts/makefile.hp64 +0 -235
- data/windows/zlib, libpng/libpng/scripts/makefile.hpgcc +0 -245
- data/windows/zlib, libpng/libpng/scripts/makefile.hpux +0 -232
- data/windows/zlib, libpng/libpng/scripts/makefile.ibmc +0 -71
- data/windows/zlib, libpng/libpng/scripts/makefile.intel +0 -102
- data/windows/zlib, libpng/libpng/scripts/makefile.knr +0 -99
- data/windows/zlib, libpng/libpng/scripts/makefile.linux +0 -249
- data/windows/zlib, libpng/libpng/scripts/makefile.mingw +0 -289
- data/windows/zlib, libpng/libpng/scripts/makefile.mips +0 -83
- data/windows/zlib, libpng/libpng/scripts/makefile.msc +0 -86
- data/windows/zlib, libpng/libpng/scripts/makefile.ne12bsd +0 -45
- data/windows/zlib, libpng/libpng/scripts/makefile.netbsd +0 -45
- data/windows/zlib, libpng/libpng/scripts/makefile.nommx +0 -252
- data/windows/zlib, libpng/libpng/scripts/makefile.openbsd +0 -73
- data/windows/zlib, libpng/libpng/scripts/makefile.os2 +0 -69
- data/windows/zlib, libpng/libpng/scripts/makefile.sco +0 -229
- data/windows/zlib, libpng/libpng/scripts/makefile.sggcc +0 -242
- data/windows/zlib, libpng/libpng/scripts/makefile.sgi +0 -245
- data/windows/zlib, libpng/libpng/scripts/makefile.so9 +0 -251
- data/windows/zlib, libpng/libpng/scripts/makefile.solaris +0 -249
- data/windows/zlib, libpng/libpng/scripts/makefile.solaris-x86 +0 -248
- data/windows/zlib, libpng/libpng/scripts/makefile.std +0 -92
- data/windows/zlib, libpng/libpng/scripts/makefile.sunos +0 -97
- data/windows/zlib, libpng/libpng/scripts/makefile.tc3 +0 -89
- data/windows/zlib, libpng/libpng/scripts/makefile.vcawin32 +0 -99
- data/windows/zlib, libpng/libpng/scripts/makefile.vcwin32 +0 -99
- data/windows/zlib, libpng/libpng/scripts/makefile.watcom +0 -109
- data/windows/zlib, libpng/libpng/scripts/makevms.com +0 -144
- data/windows/zlib, libpng/libpng/scripts/pngos2.def +0 -257
- data/windows/zlib, libpng/libpng/scripts/pngw32.def +0 -238
- data/windows/zlib, libpng/libpng/scripts/pngw32.rc +0 -112
- data/windows/zlib, libpng/libpng/scripts/smakefile.ppc +0 -30
- data/windows/zlib, libpng/zlib/ChangeLog +0 -855
- data/windows/zlib, libpng/zlib/FAQ +0 -339
- data/windows/zlib, libpng/zlib/INDEX +0 -51
- data/windows/zlib, libpng/zlib/Makefile +0 -154
- data/windows/zlib, libpng/zlib/Makefile.in +0 -154
- data/windows/zlib, libpng/zlib/README +0 -125
- data/windows/zlib, libpng/zlib/adler32.c +0 -149
- data/windows/zlib, libpng/zlib/algorithm.txt +0 -209
- data/windows/zlib, libpng/zlib/amiga/Makefile.pup +0 -66
- data/windows/zlib, libpng/zlib/amiga/Makefile.sas +0 -65
- data/windows/zlib, libpng/zlib/as400/bndsrc +0 -132
- data/windows/zlib, libpng/zlib/as400/compile.clp +0 -123
- data/windows/zlib, libpng/zlib/as400/readme.txt +0 -111
- data/windows/zlib, libpng/zlib/as400/zlib.inc +0 -331
- data/windows/zlib, libpng/zlib/compress.c +0 -79
- data/windows/zlib, libpng/zlib/configure +0 -459
- data/windows/zlib, libpng/zlib/contrib/README.contrib +0 -71
- data/windows/zlib, libpng/zlib/contrib/ada/buffer_demo.adb +0 -106
- data/windows/zlib, libpng/zlib/contrib/ada/mtest.adb +0 -156
- data/windows/zlib, libpng/zlib/contrib/ada/read.adb +0 -156
- data/windows/zlib, libpng/zlib/contrib/ada/readme.txt +0 -65
- data/windows/zlib, libpng/zlib/contrib/ada/test.adb +0 -463
- data/windows/zlib, libpng/zlib/contrib/ada/zlib-streams.adb +0 -225
- data/windows/zlib, libpng/zlib/contrib/ada/zlib-streams.ads +0 -114
- data/windows/zlib, libpng/zlib/contrib/ada/zlib-thin.adb +0 -141
- data/windows/zlib, libpng/zlib/contrib/ada/zlib-thin.ads +0 -450
- data/windows/zlib, libpng/zlib/contrib/ada/zlib.adb +0 -701
- data/windows/zlib, libpng/zlib/contrib/ada/zlib.ads +0 -328
- data/windows/zlib, libpng/zlib/contrib/ada/zlib.gpr +0 -20
- data/windows/zlib, libpng/zlib/contrib/asm586/README.586 +0 -43
- data/windows/zlib, libpng/zlib/contrib/asm586/match.S +0 -364
- data/windows/zlib, libpng/zlib/contrib/asm686/README.686 +0 -34
- data/windows/zlib, libpng/zlib/contrib/asm686/match.S +0 -329
- data/windows/zlib, libpng/zlib/contrib/blast/Makefile +0 -8
- data/windows/zlib, libpng/zlib/contrib/blast/README +0 -4
- data/windows/zlib, libpng/zlib/contrib/blast/blast.c +0 -444
- data/windows/zlib, libpng/zlib/contrib/blast/blast.h +0 -71
- data/windows/zlib, libpng/zlib/contrib/blast/test.pk +0 -0
- data/windows/zlib, libpng/zlib/contrib/blast/test.txt +0 -1
- data/windows/zlib, libpng/zlib/contrib/delphi/ZLib.pas +0 -557
- data/windows/zlib, libpng/zlib/contrib/delphi/ZLibConst.pas +0 -11
- data/windows/zlib, libpng/zlib/contrib/delphi/readme.txt +0 -76
- data/windows/zlib, libpng/zlib/contrib/delphi/zlibd32.mak +0 -93
- data/windows/zlib, libpng/zlib/contrib/dotzlib/DotZLib.build +0 -33
- data/windows/zlib, libpng/zlib/contrib/dotzlib/DotZLib.chm +0 -0
- data/windows/zlib, libpng/zlib/contrib/dotzlib/DotZLib.sln +0 -21
- data/windows/zlib, libpng/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs +0 -58
- data/windows/zlib, libpng/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs +0 -202
- data/windows/zlib, libpng/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs +0 -83
- data/windows/zlib, libpng/zlib/contrib/dotzlib/DotZLib/CodecBase.cs +0 -198
- data/windows/zlib, libpng/zlib/contrib/dotzlib/DotZLib/Deflater.cs +0 -106
- data/windows/zlib, libpng/zlib/contrib/dotzlib/DotZLib/DotZLib.cs +0 -288
- data/windows/zlib, libpng/zlib/contrib/dotzlib/DotZLib/DotZLib.csproj +0 -141
- data/windows/zlib, libpng/zlib/contrib/dotzlib/DotZLib/GZipStream.cs +0 -301
- data/windows/zlib, libpng/zlib/contrib/dotzlib/DotZLib/Inflater.cs +0 -105
- data/windows/zlib, libpng/zlib/contrib/dotzlib/DotZLib/UnitTests.cs +0 -274
- data/windows/zlib, libpng/zlib/contrib/dotzlib/LICENSE_1_0.txt +0 -23
- data/windows/zlib, libpng/zlib/contrib/dotzlib/readme.txt +0 -58
- data/windows/zlib, libpng/zlib/contrib/infback9/README +0 -1
- data/windows/zlib, libpng/zlib/contrib/infback9/infback9.c +0 -608
- data/windows/zlib, libpng/zlib/contrib/infback9/infback9.h +0 -37
- data/windows/zlib, libpng/zlib/contrib/infback9/inffix9.h +0 -107
- data/windows/zlib, libpng/zlib/contrib/infback9/inflate9.h +0 -47
- data/windows/zlib, libpng/zlib/contrib/infback9/inftree9.c +0 -323
- data/windows/zlib, libpng/zlib/contrib/infback9/inftree9.h +0 -55
- data/windows/zlib, libpng/zlib/contrib/inflate86/inffas86.c +0 -1157
- data/windows/zlib, libpng/zlib/contrib/inflate86/inffast.S +0 -1368
- data/windows/zlib, libpng/zlib/contrib/iostream/test.cpp +0 -24
- data/windows/zlib, libpng/zlib/contrib/iostream/zfstream.cpp +0 -329
- data/windows/zlib, libpng/zlib/contrib/iostream/zfstream.h +0 -128
- data/windows/zlib, libpng/zlib/contrib/iostream2/zstream.h +0 -307
- data/windows/zlib, libpng/zlib/contrib/iostream2/zstream_test.cpp +0 -25
- data/windows/zlib, libpng/zlib/contrib/iostream3/README +0 -35
- data/windows/zlib, libpng/zlib/contrib/iostream3/TODO +0 -17
- data/windows/zlib, libpng/zlib/contrib/iostream3/test.cc +0 -50
- data/windows/zlib, libpng/zlib/contrib/iostream3/zfstream.cc +0 -479
- data/windows/zlib, libpng/zlib/contrib/iostream3/zfstream.h +0 -466
- data/windows/zlib, libpng/zlib/contrib/masm686/match.asm +0 -413
- data/windows/zlib, libpng/zlib/contrib/masmx64/bld_ml64.bat +0 -2
- data/windows/zlib, libpng/zlib/contrib/masmx64/gvmat64.asm +0 -513
- data/windows/zlib, libpng/zlib/contrib/masmx64/gvmat64.obj +0 -0
- data/windows/zlib, libpng/zlib/contrib/masmx64/inffas8664.c +0 -186
- data/windows/zlib, libpng/zlib/contrib/masmx64/inffasx64.asm +0 -392
- data/windows/zlib, libpng/zlib/contrib/masmx64/inffasx64.obj +0 -0
- data/windows/zlib, libpng/zlib/contrib/masmx64/readme.txt +0 -28
- data/windows/zlib, libpng/zlib/contrib/masmx86/bld_ml32.bat +0 -2
- data/windows/zlib, libpng/zlib/contrib/masmx86/gvmat32.asm +0 -972
- data/windows/zlib, libpng/zlib/contrib/masmx86/gvmat32.obj +0 -0
- data/windows/zlib, libpng/zlib/contrib/masmx86/gvmat32c.c +0 -62
- data/windows/zlib, libpng/zlib/contrib/masmx86/inffas32.asm +0 -1083
- data/windows/zlib, libpng/zlib/contrib/masmx86/inffas32.obj +0 -0
- data/windows/zlib, libpng/zlib/contrib/masmx86/mkasm.bat +0 -3
- data/windows/zlib, libpng/zlib/contrib/masmx86/readme.txt +0 -21
- data/windows/zlib, libpng/zlib/contrib/minizip/ChangeLogUnzip +0 -67
- data/windows/zlib, libpng/zlib/contrib/minizip/Makefile +0 -25
- data/windows/zlib, libpng/zlib/contrib/minizip/crypt.h +0 -132
- data/windows/zlib, libpng/zlib/contrib/minizip/ioapi.c +0 -177
- data/windows/zlib, libpng/zlib/contrib/minizip/ioapi.h +0 -75
- data/windows/zlib, libpng/zlib/contrib/minizip/iowin32.c +0 -270
- data/windows/zlib, libpng/zlib/contrib/minizip/iowin32.h +0 -21
- data/windows/zlib, libpng/zlib/contrib/minizip/miniunz.c +0 -585
- data/windows/zlib, libpng/zlib/contrib/minizip/minizip.c +0 -420
- data/windows/zlib, libpng/zlib/contrib/minizip/mztools.c +0 -281
- data/windows/zlib, libpng/zlib/contrib/minizip/mztools.h +0 -31
- data/windows/zlib, libpng/zlib/contrib/minizip/unzip.c +0 -1598
- data/windows/zlib, libpng/zlib/contrib/minizip/unzip.h +0 -354
- data/windows/zlib, libpng/zlib/contrib/minizip/zip.c +0 -1219
- data/windows/zlib, libpng/zlib/contrib/minizip/zip.h +0 -235
- data/windows/zlib, libpng/zlib/contrib/pascal/example.pas +0 -599
- data/windows/zlib, libpng/zlib/contrib/pascal/readme.txt +0 -76
- data/windows/zlib, libpng/zlib/contrib/pascal/zlibd32.mak +0 -93
- data/windows/zlib, libpng/zlib/contrib/pascal/zlibpas.pas +0 -236
- data/windows/zlib, libpng/zlib/contrib/puff/Makefile +0 -8
- data/windows/zlib, libpng/zlib/contrib/puff/README +0 -63
- data/windows/zlib, libpng/zlib/contrib/puff/puff.c +0 -837
- data/windows/zlib, libpng/zlib/contrib/puff/puff.h +0 -31
- data/windows/zlib, libpng/zlib/contrib/puff/zeros.raw +0 -0
- data/windows/zlib, libpng/zlib/contrib/testzlib/testzlib.c +0 -275
- data/windows/zlib, libpng/zlib/contrib/testzlib/testzlib.txt +0 -10
- data/windows/zlib, libpng/zlib/contrib/untgz/Makefile +0 -14
- data/windows/zlib, libpng/zlib/contrib/untgz/Makefile.msc +0 -17
- data/windows/zlib, libpng/zlib/contrib/untgz/untgz.c +0 -674
- data/windows/zlib, libpng/zlib/contrib/vstudio/readme.txt +0 -73
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc7/miniunz.vcproj +0 -126
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc7/minizip.vcproj +0 -126
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc7/testzlib.vcproj +0 -126
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc7/zlib.rc +0 -32
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc7/zlibstat.vcproj +0 -246
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc7/zlibvc.def +0 -92
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc7/zlibvc.sln +0 -78
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc7/zlibvc.vcproj +0 -445
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc8/miniunz.vcproj +0 -566
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc8/minizip.vcproj +0 -563
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc8/testzlib.vcproj +0 -948
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc8/testzlibdll.vcproj +0 -567
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc8/zlib.rc +0 -32
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc8/zlibstat.vcproj +0 -870
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc8/zlibvc.def +0 -92
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc8/zlibvc.sln +0 -144
- data/windows/zlib, libpng/zlib/contrib/vstudio/vc8/zlibvc.vcproj +0 -1219
- data/windows/zlib, libpng/zlib/crc32.c +0 -423
- data/windows/zlib, libpng/zlib/crc32.h +0 -441
- data/windows/zlib, libpng/zlib/deflate.c +0 -1736
- data/windows/zlib, libpng/zlib/deflate.h +0 -331
- data/windows/zlib, libpng/zlib/example.c +0 -565
- data/windows/zlib, libpng/zlib/examples/README.examples +0 -42
- data/windows/zlib, libpng/zlib/examples/fitblk.c +0 -233
- data/windows/zlib, libpng/zlib/examples/gun.c +0 -693
- data/windows/zlib, libpng/zlib/examples/gzappend.c +0 -500
- data/windows/zlib, libpng/zlib/examples/gzjoin.c +0 -448
- data/windows/zlib, libpng/zlib/examples/gzlog.c +0 -413
- data/windows/zlib, libpng/zlib/examples/gzlog.h +0 -58
- data/windows/zlib, libpng/zlib/examples/zlib_how.html +0 -523
- data/windows/zlib, libpng/zlib/examples/zpipe.c +0 -191
- data/windows/zlib, libpng/zlib/examples/zran.c +0 -404
- data/windows/zlib, libpng/zlib/gzio.c +0 -1026
- data/windows/zlib, libpng/zlib/infback.c +0 -623
- data/windows/zlib, libpng/zlib/inffast.c +0 -318
- data/windows/zlib, libpng/zlib/inffast.h +0 -11
- data/windows/zlib, libpng/zlib/inffixed.h +0 -94
- data/windows/zlib, libpng/zlib/inflate.c +0 -1368
- data/windows/zlib, libpng/zlib/inflate.h +0 -115
- data/windows/zlib, libpng/zlib/inftrees.c +0 -329
- data/windows/zlib, libpng/zlib/inftrees.h +0 -55
- data/windows/zlib, libpng/zlib/make_vms.com +0 -461
- data/windows/zlib, libpng/zlib/minigzip.c +0 -322
- data/windows/zlib, libpng/zlib/msdos/Makefile.bor +0 -109
- data/windows/zlib, libpng/zlib/msdos/Makefile.dj2 +0 -104
- data/windows/zlib, libpng/zlib/msdos/Makefile.emx +0 -69
- data/windows/zlib, libpng/zlib/msdos/Makefile.msc +0 -106
- data/windows/zlib, libpng/zlib/msdos/Makefile.tc +0 -94
- data/windows/zlib, libpng/zlib/old/Makefile.riscos +0 -151
- data/windows/zlib, libpng/zlib/old/README +0 -3
- data/windows/zlib, libpng/zlib/old/descrip.mms +0 -48
- data/windows/zlib, libpng/zlib/old/os2/Makefile.os2 +0 -136
- data/windows/zlib, libpng/zlib/old/os2/zlib.def +0 -51
- data/windows/zlib, libpng/zlib/old/visual-basic.txt +0 -160
- data/windows/zlib, libpng/zlib/old/zlib.html +0 -971
- data/windows/zlib, libpng/zlib/projects/README.projects +0 -41
- data/windows/zlib, libpng/zlib/projects/visualc6/README.txt +0 -73
- data/windows/zlib, libpng/zlib/projects/visualc6/example.dsp +0 -278
- data/windows/zlib, libpng/zlib/projects/visualc6/minigzip.dsp +0 -278
- data/windows/zlib, libpng/zlib/projects/visualc6/zlib.dsp +0 -609
- data/windows/zlib, libpng/zlib/projects/visualc6/zlib.dsw +0 -59
- data/windows/zlib, libpng/zlib/qnx/package.qpg +0 -141
- data/windows/zlib, libpng/zlib/trees.c +0 -1219
- data/windows/zlib, libpng/zlib/trees.h +0 -128
- data/windows/zlib, libpng/zlib/uncompr.c +0 -61
- data/windows/zlib, libpng/zlib/win32/DLL_FAQ.txt +0 -397
- data/windows/zlib, libpng/zlib/win32/Makefile.bor +0 -107
- data/windows/zlib, libpng/zlib/win32/Makefile.emx +0 -69
- data/windows/zlib, libpng/zlib/win32/Makefile.gcc +0 -141
- data/windows/zlib, libpng/zlib/win32/Makefile.msc +0 -126
- data/windows/zlib, libpng/zlib/win32/VisualC.txt +0 -3
- data/windows/zlib, libpng/zlib/win32/zlib.def +0 -60
- data/windows/zlib, libpng/zlib/win32/zlib1.rc +0 -39
- data/windows/zlib, libpng/zlib/zconf.h +0 -332
- data/windows/zlib, libpng/zlib/zconf.in.h +0 -332
- data/windows/zlib, libpng/zlib/zlib.3 +0 -159
- data/windows/zlib, libpng/zlib/zlib.h +0 -1357
- data/windows/zlib, libpng/zlib/zutil.c +0 -318
- data/windows/zlib, libpng/zlib/zutil.h +0 -269
@@ -0,0 +1,217 @@
|
|
1
|
+
#ifndef GOSU_AUDIO_AUDIOFILE_MAC_HPP
|
2
|
+
#define GOSU_AUDIO_AUDIOFILE_MAC_HPP
|
3
|
+
|
4
|
+
#include <GosuImpl/Audio/AudioFile.hpp>
|
5
|
+
#include <AudioToolbox/AudioToolbox.h>
|
6
|
+
#include <AudioToolbox/ExtendedAudioFile.h>
|
7
|
+
#include <OpenAL/al.h>
|
8
|
+
#include <Gosu/IO.hpp>
|
9
|
+
#include <GosuImpl/MacUtility.hpp>
|
10
|
+
#include <Gosu/Utility.hpp>
|
11
|
+
#include <Gosu/Platform.hpp>
|
12
|
+
#include <algorithm>
|
13
|
+
#include <vector>
|
14
|
+
#include <boost/lexical_cast.hpp>
|
15
|
+
#include <arpa/inet.h>
|
16
|
+
#import <Foundation/Foundation.h>
|
17
|
+
|
18
|
+
namespace Gosu
|
19
|
+
{
|
20
|
+
class AudioToolboxFile : public AudioFile
|
21
|
+
{
|
22
|
+
Gosu::Buffer buffer_;
|
23
|
+
AudioFileID fileID_;
|
24
|
+
ExtAudioFileRef file_;
|
25
|
+
SInt64 position_;
|
26
|
+
SInt64 seekOffset_;
|
27
|
+
|
28
|
+
ALenum format_;
|
29
|
+
ALuint sampleRate_;
|
30
|
+
UInt32 bytesPerFrame_;
|
31
|
+
bool bigEndian_;
|
32
|
+
|
33
|
+
static OSStatus AudioFile_ReadProc(void* inClientData, SInt64 inPosition,
|
34
|
+
UInt32 requestCount, void* buffer, UInt32* actualCount)
|
35
|
+
{
|
36
|
+
const Resource& res = *static_cast<Resource*>(inClientData);
|
37
|
+
*actualCount = std::min<UInt32>(requestCount, res.size() - inPosition);
|
38
|
+
res.read(inPosition, *actualCount, buffer);
|
39
|
+
return noErr;
|
40
|
+
}
|
41
|
+
|
42
|
+
static SInt64 AudioFile_GetSizeProc(void* inClientData)
|
43
|
+
{
|
44
|
+
const Resource& res = *static_cast<Resource*>(inClientData);
|
45
|
+
return res.size();
|
46
|
+
}
|
47
|
+
|
48
|
+
void initSeekOffset()
|
49
|
+
{
|
50
|
+
AudioConverterRef acRef;
|
51
|
+
UInt32 acrSize = sizeof acRef;
|
52
|
+
CHECK_OS(ExtAudioFileGetProperty(file_, kExtAudioFileProperty_AudioConverter,
|
53
|
+
&acrSize, &acRef));
|
54
|
+
|
55
|
+
AudioConverterPrimeInfo primeInfo;
|
56
|
+
UInt32 piSize = sizeof primeInfo;
|
57
|
+
OSStatus result = AudioConverterGetProperty(acRef, kAudioConverterPrimeInfo,
|
58
|
+
&piSize, &primeInfo);
|
59
|
+
if (result != kAudioConverterErr_PropertyNotSupported)
|
60
|
+
{
|
61
|
+
CHECK_OS(result);
|
62
|
+
seekOffset_ = primeInfo.leadingFrames;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
void initClientFormatBasedOn(const AudioStreamBasicDescription& base)
|
67
|
+
{
|
68
|
+
AudioStreamBasicDescription clientData = { 0 };
|
69
|
+
sampleRate_ = clientData.mSampleRate = 22050;
|
70
|
+
clientData.mFormatID = kAudioFormatLinearPCM;
|
71
|
+
clientData.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked;
|
72
|
+
clientData.mBitsPerChannel = 16;
|
73
|
+
clientData.mChannelsPerFrame = base.mChannelsPerFrame;
|
74
|
+
clientData.mFramesPerPacket = 1;
|
75
|
+
clientData.mBytesPerPacket =
|
76
|
+
clientData.mBytesPerFrame =
|
77
|
+
clientData.mChannelsPerFrame * clientData.mBitsPerChannel / 8;
|
78
|
+
CHECK_OS(ExtAudioFileSetProperty(file_,
|
79
|
+
kExtAudioFileProperty_ClientDataFormat,
|
80
|
+
sizeof clientData, &clientData));
|
81
|
+
|
82
|
+
initSeekOffset();
|
83
|
+
|
84
|
+
format_ = clientData.mChannelsPerFrame == 1 ?
|
85
|
+
AL_FORMAT_MONO16 :
|
86
|
+
AL_FORMAT_STEREO16;
|
87
|
+
}
|
88
|
+
|
89
|
+
void init()
|
90
|
+
{
|
91
|
+
// Streaming starts at beginning
|
92
|
+
position_ = 0;
|
93
|
+
|
94
|
+
// Unless overridden later, assume that the index into seek() is 0-based
|
95
|
+
seekOffset_ = 0;
|
96
|
+
|
97
|
+
AudioStreamBasicDescription desc;
|
98
|
+
UInt32 sizeOfProperty = sizeof desc;
|
99
|
+
CHECK_OS(ExtAudioFileGetProperty(file_, kExtAudioFileProperty_FileDataFormat,
|
100
|
+
&sizeOfProperty, &desc));
|
101
|
+
|
102
|
+
// Sample rate for OpenAL
|
103
|
+
sampleRate_ = desc.mSampleRate;
|
104
|
+
|
105
|
+
// Sanity checks
|
106
|
+
if (desc.mFormatFlags & kAudioFormatFlagIsNonInterleaved)
|
107
|
+
throw std::runtime_error("Non-interleaved formats are unsupported");
|
108
|
+
|
109
|
+
// Easy formats
|
110
|
+
format_ = 0;
|
111
|
+
if (desc.mChannelsPerFrame == 1)
|
112
|
+
/*if (desc.mBitsPerChannel == 8)
|
113
|
+
format_ = AL_FORMAT_MONO8;
|
114
|
+
else*/ if (desc.mBitsPerChannel == 16)
|
115
|
+
format_ = AL_FORMAT_MONO16;
|
116
|
+
else if (desc.mChannelsPerFrame == 2)
|
117
|
+
/*if (desc.mBitsPerChannel == 8)
|
118
|
+
format_ = AL_FORMAT_STEREO8;
|
119
|
+
else */if (desc.mBitsPerChannel == 16)
|
120
|
+
format_ = AL_FORMAT_STEREO16;
|
121
|
+
|
122
|
+
if (format_ == 0 ||
|
123
|
+
// If format not native for OpenAL, set client data format
|
124
|
+
// to enable conversion
|
125
|
+
desc.mFormatFlags & kAudioFormatFlagIsBigEndian ||
|
126
|
+
desc.mFormatFlags & kAudioFormatFlagIsFloat ||
|
127
|
+
!(desc.mFormatFlags & kAudioFormatFlagIsSignedInteger))
|
128
|
+
initClientFormatBasedOn(desc);
|
129
|
+
else
|
130
|
+
// Just set the old format as the client format so
|
131
|
+
// ExtAudioFileSeek will work for us.
|
132
|
+
CHECK_OS(ExtAudioFileSetProperty(file_,
|
133
|
+
kExtAudioFileProperty_ClientDataFormat,
|
134
|
+
sizeof desc, &desc));
|
135
|
+
}
|
136
|
+
|
137
|
+
public:
|
138
|
+
AudioToolboxFile(const std::wstring& filename)
|
139
|
+
{
|
140
|
+
ObjRef<NSString> utf8Filename([[NSString alloc] initWithUTF8String: wstringToUTF8(filename).c_str()]);
|
141
|
+
ObjRef<NSURL> url([[NSURL alloc] initFileURLWithPath: utf8Filename.get()]);
|
142
|
+
#ifdef GOSU_IS_IPHONE
|
143
|
+
CHECK_OS(ExtAudioFileOpenURL((CFURLRef)url.get(), &file_));
|
144
|
+
#else
|
145
|
+
// Use FSRef for compatibility with 10.4 Tiger.
|
146
|
+
FSRef fsRef;
|
147
|
+
CFURLGetFSRef(reinterpret_cast<CFURLRef>(url.get()), &fsRef);
|
148
|
+
try
|
149
|
+
{
|
150
|
+
CHECK_OS(ExtAudioFileOpen(&fsRef, &file_));
|
151
|
+
}
|
152
|
+
catch (const std::runtime_error&)
|
153
|
+
{
|
154
|
+
throw std::runtime_error("Unsupported audio file type (" +
|
155
|
+
Gosu::wstringToUTF8(filename) + ")");
|
156
|
+
}
|
157
|
+
#endif
|
158
|
+
|
159
|
+
fileID_ = 0;
|
160
|
+
|
161
|
+
init();
|
162
|
+
}
|
163
|
+
|
164
|
+
AudioToolboxFile(Gosu::Reader reader)
|
165
|
+
{
|
166
|
+
buffer_.resize(reader.resource().size() - reader.position());
|
167
|
+
reader.read(buffer_.data(), buffer_.size());
|
168
|
+
|
169
|
+
// TODO: For some reason, this fails on the iPhone with at least MP3 files.
|
170
|
+
// If this turns into a serious problem, the plain AudioFile API could be
|
171
|
+
// used which works for non-compressed formats at least.
|
172
|
+
|
173
|
+
void* clientData = &buffer_;
|
174
|
+
CHECK_OS(AudioFileOpenWithCallbacks(clientData, AudioFile_ReadProc, 0,
|
175
|
+
AudioFile_GetSizeProc, 0, 0, &fileID_));
|
176
|
+
CHECK_OS(ExtAudioFileWrapAudioFileID(fileID_, false, &file_));
|
177
|
+
init();
|
178
|
+
}
|
179
|
+
|
180
|
+
~AudioToolboxFile()
|
181
|
+
{
|
182
|
+
ExtAudioFileDispose(file_);
|
183
|
+
|
184
|
+
if (fileID_)
|
185
|
+
AudioFileClose(fileID_);
|
186
|
+
}
|
187
|
+
|
188
|
+
ALenum format() const
|
189
|
+
{
|
190
|
+
return format_;
|
191
|
+
}
|
192
|
+
|
193
|
+
ALuint sampleRate() const
|
194
|
+
{
|
195
|
+
return sampleRate_;
|
196
|
+
}
|
197
|
+
|
198
|
+
void rewind()
|
199
|
+
{
|
200
|
+
CHECK_OS(ExtAudioFileSeek(file_, 0 + seekOffset_));
|
201
|
+
}
|
202
|
+
|
203
|
+
std::size_t readData(void* dest, UInt32 length)
|
204
|
+
{
|
205
|
+
AudioBufferList abl;
|
206
|
+
abl.mNumberBuffers = 1;
|
207
|
+
abl.mBuffers[0].mNumberChannels = 1;
|
208
|
+
abl.mBuffers[0].mDataByteSize = length;
|
209
|
+
abl.mBuffers[0].mData = dest;
|
210
|
+
UInt32 numFrames = 0xffffffff; // give us as many frames as possible given our buffer
|
211
|
+
CHECK_OS(ExtAudioFileRead(file_, &numFrames, &abl));
|
212
|
+
return abl.mBuffers[0].mDataByteSize;
|
213
|
+
}
|
214
|
+
};
|
215
|
+
}
|
216
|
+
|
217
|
+
#endif
|
@@ -0,0 +1,114 @@
|
|
1
|
+
#ifndef GOSUIMPL_AUDIO_OGGFILE_HPP
|
2
|
+
#define GOSUIMPL_AUDIO_OGGFILE_HPP
|
3
|
+
|
4
|
+
#include <GosuImpl/Audio/AudioFile.hpp>
|
5
|
+
#include <vorbis/vorbisfile.h>
|
6
|
+
#include <algorithm>
|
7
|
+
#include <stdexcept>
|
8
|
+
|
9
|
+
// Based on the Drama Sound Engine for D
|
10
|
+
|
11
|
+
namespace Gosu
|
12
|
+
{
|
13
|
+
class OggFile : public AudioFile
|
14
|
+
{
|
15
|
+
Gosu::Buffer buffer_;
|
16
|
+
Gosu::Reader reader_;
|
17
|
+
ALenum format_;
|
18
|
+
ALenum sampleRate_;
|
19
|
+
OggVorbis_File file_;
|
20
|
+
|
21
|
+
// extern "C"
|
22
|
+
static std::size_t readCallback(void* ptr, std::size_t size, std::size_t nmemb, void* datasource)
|
23
|
+
{
|
24
|
+
OggFile* oggFile = static_cast<OggFile*>(datasource);
|
25
|
+
size = std::min(size * nmemb,
|
26
|
+
oggFile->buffer_.size() - oggFile->reader_.position());
|
27
|
+
oggFile->reader_.read(ptr, size);
|
28
|
+
return size;
|
29
|
+
}
|
30
|
+
|
31
|
+
void setup()
|
32
|
+
{
|
33
|
+
static const ov_callbacks cbs = { readCallback, 0, 0, 0 };
|
34
|
+
ov_open_callbacks(this, &file_, 0, 0, cbs);
|
35
|
+
|
36
|
+
vorbis_info* info = ov_info(&file_, -1); // -1 is current bitstream
|
37
|
+
if (ov_streams(&file_) != 1)
|
38
|
+
throw std::runtime_error("multi-stream vorbis files not supported");
|
39
|
+
|
40
|
+
format_ = info->channels == 1 ? AL_FORMAT_MONO16 : AL_FORMAT_STEREO16;
|
41
|
+
sampleRate_ = info->rate;
|
42
|
+
}
|
43
|
+
|
44
|
+
void teardown()
|
45
|
+
{
|
46
|
+
ov_clear(&file_);
|
47
|
+
}
|
48
|
+
|
49
|
+
public:
|
50
|
+
OggFile(Gosu::Reader reader)
|
51
|
+
: reader_(buffer_.frontReader())
|
52
|
+
{
|
53
|
+
buffer_.resize(reader.resource().size() - reader.position());
|
54
|
+
reader.read(buffer_.data(), buffer_.size());
|
55
|
+
|
56
|
+
setup();
|
57
|
+
}
|
58
|
+
|
59
|
+
~OggFile()
|
60
|
+
{
|
61
|
+
teardown();
|
62
|
+
}
|
63
|
+
|
64
|
+
ALenum format() const
|
65
|
+
{
|
66
|
+
return format_;
|
67
|
+
}
|
68
|
+
|
69
|
+
ALuint sampleRate() const
|
70
|
+
{
|
71
|
+
return sampleRate_;
|
72
|
+
}
|
73
|
+
|
74
|
+
std::size_t readData(void* dest, std::size_t length)
|
75
|
+
{
|
76
|
+
static const unsigned OGG_ENDIANNESS =
|
77
|
+
#ifdef GOSU_IS_BIG_ENDIAN
|
78
|
+
1;
|
79
|
+
#else
|
80
|
+
0;
|
81
|
+
#endif
|
82
|
+
|
83
|
+
char* ptr = static_cast<char*>(dest);
|
84
|
+
std::size_t size = 0;
|
85
|
+
int result;
|
86
|
+
int section;
|
87
|
+
while (size < length)
|
88
|
+
{
|
89
|
+
result = ov_read(&file_, ptr + size, length - size,
|
90
|
+
OGG_ENDIANNESS, 2 /* 16-bit */,
|
91
|
+
1 /* signed */, §ion);
|
92
|
+
assert(section == 0);
|
93
|
+
if (result > 0)
|
94
|
+
size += result;
|
95
|
+
else
|
96
|
+
if (result < 0)
|
97
|
+
throw std::runtime_error("error reading vorbis stream");
|
98
|
+
else
|
99
|
+
break;
|
100
|
+
}
|
101
|
+
|
102
|
+
return size;
|
103
|
+
}
|
104
|
+
|
105
|
+
void rewind()
|
106
|
+
{
|
107
|
+
teardown();
|
108
|
+
reader_ = buffer_.frontReader();
|
109
|
+
setup();
|
110
|
+
}
|
111
|
+
};
|
112
|
+
}
|
113
|
+
|
114
|
+
#endif
|
data/GosuImpl/AudioFmod.cpp
CHANGED
data/GosuImpl/AudioSDL.cpp
CHANGED
@@ -45,9 +45,9 @@ namespace {
|
|
45
45
|
CAEAGLLayer *eaglLayer = (CAEAGLLayer *)self.layer;
|
46
46
|
|
47
47
|
eaglLayer.opaque = YES;
|
48
|
-
eaglLayer.drawableProperties = [NSDictionary dictionaryWithObjectsAndKeys:
|
48
|
+
/*eaglLayer.drawableProperties = [NSDictionary new]; /*dictionaryWithObjectsAndKeys:
|
49
49
|
[NSNumber numberWithBool:NO], kEAGLDrawablePropertyRetainedBacking,
|
50
|
-
kEAGLColorFormatRGBA8, kEAGLDrawablePropertyColorFormat, nil]
|
50
|
+
kEAGLColorFormatRGBA8, kEAGLDrawablePropertyColorFormat, nil];*/
|
51
51
|
|
52
52
|
context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES1];
|
53
53
|
|
@@ -25,7 +25,7 @@ unsigned Gosu::Texture::maxTextureSize()
|
|
25
25
|
do
|
26
26
|
{
|
27
27
|
size *= 2;
|
28
|
-
glTexImage2D(GL_PROXY_TEXTURE_2D, 0,
|
28
|
+
glTexImage2D(GL_PROXY_TEXTURE_2D, 0, 4, size * 2, size * 2, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0);
|
29
29
|
glGetTexLevelParameteriv(GL_PROXY_TEXTURE_2D, 0, GL_TEXTURE_WIDTH, &width);
|
30
30
|
} while (width != 0 && size < MAX_SIZE);
|
31
31
|
}
|
@@ -44,16 +44,21 @@ Gosu::Texture::Texture(unsigned size)
|
|
44
44
|
|
45
45
|
// Create empty texture.
|
46
46
|
glBindTexture(GL_TEXTURE_2D, name);
|
47
|
-
#
|
48
|
-
glTexImage2D(GL_TEXTURE_2D, 0,
|
47
|
+
#ifdef GOSU_IS_IPHONE
|
48
|
+
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, allocator.width(), allocator.height(), 0,
|
49
49
|
GL_RGBA, GL_UNSIGNED_BYTE, 0);
|
50
50
|
#else
|
51
|
-
glTexImage2D(GL_TEXTURE_2D, 0,
|
51
|
+
glTexImage2D(GL_TEXTURE_2D, 0, 4, allocator.width(), allocator.height(), 0,
|
52
52
|
GL_RGBA, GL_UNSIGNED_BYTE, 0);
|
53
53
|
#endif
|
54
54
|
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
|
55
|
+
#ifdef GOSU_IS_WIN
|
55
56
|
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
|
56
57
|
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
|
58
|
+
#else
|
59
|
+
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
60
|
+
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
61
|
+
#endif
|
57
62
|
}
|
58
63
|
|
59
64
|
Gosu::Texture::~Texture()
|
data/GosuImpl/Math.cpp
CHANGED
data/GosuImpl/RubyGosu.swg
CHANGED
@@ -140,6 +140,7 @@
|
|
140
140
|
#include <Gosu/TextInput.hpp>
|
141
141
|
#include <Gosu/Timing.hpp>
|
142
142
|
#include <Gosu/Utility.hpp>
|
143
|
+
#include <Gosu/Version.hpp>
|
143
144
|
#include <Gosu/Window.hpp>
|
144
145
|
|
145
146
|
#include <sstream>
|
@@ -218,6 +219,13 @@ namespace Gosu
|
|
218
219
|
}
|
219
220
|
}
|
220
221
|
|
222
|
+
// Version constant
|
223
|
+
%rename("MAJOR_VERSION") GOSU_MAJOR_VERSION;
|
224
|
+
%rename("MINOR_VERSION") GOSU_MINOR_VERSION;
|
225
|
+
%rename("POINT_VERSION") GOSU_POINT_VERSION;
|
226
|
+
%rename("VERSION") GOSU_VERSION;
|
227
|
+
%include "../Gosu/Version.hpp"
|
228
|
+
|
221
229
|
// Miscellaneous functions (timing, math)
|
222
230
|
%ignore Gosu::sleep;
|
223
231
|
%include "../Gosu/Timing.hpp"
|
@@ -273,7 +281,8 @@ namespace Gosu
|
|
273
281
|
|
274
282
|
// Font
|
275
283
|
// Hackishly allow the user to pass Window& instead of Graphics&.
|
276
|
-
%ignore Gosu::Font::Font(Graphics& graphics, const std::wstring& fontName,
|
284
|
+
%ignore Gosu::Font::Font(Graphics& graphics, const std::wstring& fontName,
|
285
|
+
unsigned height, unsigned flags);
|
277
286
|
%include "../Gosu/Font.hpp"
|
278
287
|
%extend Gosu::Font {
|
279
288
|
Font(Gosu::Window& window, const std::wstring& fontName, unsigned height) {
|
data/GosuImpl/RubyGosu_wrap.cxx
CHANGED
@@ -2225,6 +2225,7 @@ static VALUE mGosu;
|
|
2225
2225
|
#include <Gosu/TextInput.hpp>
|
2226
2226
|
#include <Gosu/Timing.hpp>
|
2227
2227
|
#include <Gosu/Utility.hpp>
|
2228
|
+
#include <Gosu/Version.hpp>
|
2228
2229
|
#include <Gosu/Window.hpp>
|
2229
2230
|
|
2230
2231
|
#include <sstream>
|
@@ -2307,6 +2308,50 @@ namespace Gosu
|
|
2307
2308
|
#define SWIG_From_long LONG2NUM
|
2308
2309
|
|
2309
2310
|
|
2311
|
+
SWIGINTERNINLINE VALUE
|
2312
|
+
SWIG_From_int (int value)
|
2313
|
+
{
|
2314
|
+
return SWIG_From_long (value);
|
2315
|
+
}
|
2316
|
+
|
2317
|
+
|
2318
|
+
SWIGINTERN swig_type_info*
|
2319
|
+
SWIG_pchar_descriptor(void)
|
2320
|
+
{
|
2321
|
+
static int init = 0;
|
2322
|
+
static swig_type_info* info = 0;
|
2323
|
+
if (!init) {
|
2324
|
+
info = SWIG_TypeQuery("_p_char");
|
2325
|
+
init = 1;
|
2326
|
+
}
|
2327
|
+
return info;
|
2328
|
+
}
|
2329
|
+
|
2330
|
+
|
2331
|
+
SWIGINTERNINLINE VALUE
|
2332
|
+
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
2333
|
+
{
|
2334
|
+
if (carray) {
|
2335
|
+
if (size > LONG_MAX) {
|
2336
|
+
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
2337
|
+
return pchar_descriptor ?
|
2338
|
+
SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil;
|
2339
|
+
} else {
|
2340
|
+
return rb_str_new(carray, static_cast< long >(size));
|
2341
|
+
}
|
2342
|
+
} else {
|
2343
|
+
return Qnil;
|
2344
|
+
}
|
2345
|
+
}
|
2346
|
+
|
2347
|
+
|
2348
|
+
SWIGINTERNINLINE VALUE
|
2349
|
+
SWIG_FromCharPtr(const char *cptr)
|
2350
|
+
{
|
2351
|
+
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
|
2352
|
+
}
|
2353
|
+
|
2354
|
+
|
2310
2355
|
SWIGINTERNINLINE VALUE
|
2311
2356
|
SWIG_From_unsigned_SS_long (unsigned long value)
|
2312
2357
|
{
|
@@ -2423,36 +2468,6 @@ SWIGINTERN std::string Gosu_Color_toS(Gosu::Color const *self){
|
|
2423
2468
|
return stream.str();
|
2424
2469
|
}
|
2425
2470
|
|
2426
|
-
SWIGINTERN swig_type_info*
|
2427
|
-
SWIG_pchar_descriptor(void)
|
2428
|
-
{
|
2429
|
-
static int init = 0;
|
2430
|
-
static swig_type_info* info = 0;
|
2431
|
-
if (!init) {
|
2432
|
-
info = SWIG_TypeQuery("_p_char");
|
2433
|
-
init = 1;
|
2434
|
-
}
|
2435
|
-
return info;
|
2436
|
-
}
|
2437
|
-
|
2438
|
-
|
2439
|
-
SWIGINTERNINLINE VALUE
|
2440
|
-
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
2441
|
-
{
|
2442
|
-
if (carray) {
|
2443
|
-
if (size > LONG_MAX) {
|
2444
|
-
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
2445
|
-
return pchar_descriptor ?
|
2446
|
-
SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil;
|
2447
|
-
} else {
|
2448
|
-
return rb_str_new(carray, static_cast< long >(size));
|
2449
|
-
}
|
2450
|
-
} else {
|
2451
|
-
return Qnil;
|
2452
|
-
}
|
2453
|
-
}
|
2454
|
-
|
2455
|
-
|
2456
2471
|
SWIGINTERNINLINE VALUE
|
2457
2472
|
SWIG_From_std_string (const std::string& s)
|
2458
2473
|
{
|
@@ -2528,13 +2543,6 @@ SWIGINTERN Gosu::Font *new_Gosu_Font(Gosu::Window &window,std::wstring const &fo
|
|
2528
2543
|
return new Gosu::Font(window.graphics(), fontName, height);
|
2529
2544
|
}
|
2530
2545
|
|
2531
|
-
SWIGINTERNINLINE VALUE
|
2532
|
-
SWIG_From_int (int value)
|
2533
|
-
{
|
2534
|
-
return SWIG_From_long (value);
|
2535
|
-
}
|
2536
|
-
|
2537
|
-
|
2538
2546
|
SWIGINTERN int
|
2539
2547
|
SWIG_AsVal_bool (VALUE obj, bool *val)
|
2540
2548
|
{
|
@@ -2816,16 +2824,6 @@ void SwigDirector_Window::buttonUp(Gosu::Button arg0) {
|
|
2816
2824
|
}
|
2817
2825
|
|
2818
2826
|
|
2819
|
-
|
2820
|
-
/*
|
2821
|
-
Document-method: Gosu::Gosu.milliseconds
|
2822
|
-
|
2823
|
-
call-seq:
|
2824
|
-
milliseconds -> unsigned long
|
2825
|
-
|
2826
|
-
A module function.
|
2827
|
-
|
2828
|
-
*/
|
2829
2827
|
SWIGINTERN VALUE
|
2830
2828
|
_wrap_milliseconds(int argc, VALUE *argv, VALUE self) {
|
2831
2829
|
unsigned long result;
|
@@ -2848,16 +2846,6 @@ fail:
|
|
2848
2846
|
}
|
2849
2847
|
|
2850
2848
|
|
2851
|
-
|
2852
|
-
/*
|
2853
|
-
Document-method: Gosu::Gosu.random
|
2854
|
-
|
2855
|
-
call-seq:
|
2856
|
-
random(double min, double max) -> double
|
2857
|
-
|
2858
|
-
A module function.
|
2859
|
-
|
2860
|
-
*/
|
2861
2849
|
SWIGINTERN VALUE
|
2862
2850
|
_wrap_random(int argc, VALUE *argv, VALUE self) {
|
2863
2851
|
double arg1 ;
|
@@ -2896,16 +2884,66 @@ fail:
|
|
2896
2884
|
}
|
2897
2885
|
|
2898
2886
|
|
2887
|
+
SWIGINTERN VALUE
|
2888
|
+
_wrap_gosu_to_radian_scale(int argc, VALUE *argv, VALUE self) {
|
2889
|
+
double arg1 ;
|
2890
|
+
double val1 ;
|
2891
|
+
int ecode1 = 0 ;
|
2892
|
+
double result;
|
2893
|
+
VALUE vresult = Qnil;
|
2894
|
+
|
2895
|
+
if ((argc < 1) || (argc > 1)) {
|
2896
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2897
|
+
}
|
2898
|
+
ecode1 = SWIG_AsVal_double(argv[0], &val1);
|
2899
|
+
if (!SWIG_IsOK(ecode1)) {
|
2900
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","Gosu::gosuToRadianScale", 1, argv[0] ));
|
2901
|
+
}
|
2902
|
+
arg1 = static_cast< double >(val1);
|
2903
|
+
{
|
2904
|
+
try {
|
2905
|
+
result = (double)Gosu::gosuToRadianScale(arg1);
|
2906
|
+
} catch(const std::runtime_error& e) {
|
2907
|
+
SWIG_exception(SWIG_RuntimeError, e.what());
|
2908
|
+
}
|
2909
|
+
}
|
2910
|
+
vresult = SWIG_From_double(static_cast< double >(result));
|
2911
|
+
return vresult;
|
2912
|
+
fail:
|
2913
|
+
return Qnil;
|
2914
|
+
}
|
2899
2915
|
|
2900
|
-
/*
|
2901
|
-
Document-method: Gosu::Gosu.offset_x
|
2902
2916
|
|
2903
|
-
|
2904
|
-
|
2917
|
+
SWIGINTERN VALUE
|
2918
|
+
_wrap_radians_scale_to_gosu(int argc, VALUE *argv, VALUE self) {
|
2919
|
+
double arg1 ;
|
2920
|
+
double val1 ;
|
2921
|
+
int ecode1 = 0 ;
|
2922
|
+
double result;
|
2923
|
+
VALUE vresult = Qnil;
|
2924
|
+
|
2925
|
+
if ((argc < 1) || (argc > 1)) {
|
2926
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2927
|
+
}
|
2928
|
+
ecode1 = SWIG_AsVal_double(argv[0], &val1);
|
2929
|
+
if (!SWIG_IsOK(ecode1)) {
|
2930
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","Gosu::radiansScaleToGosu", 1, argv[0] ));
|
2931
|
+
}
|
2932
|
+
arg1 = static_cast< double >(val1);
|
2933
|
+
{
|
2934
|
+
try {
|
2935
|
+
result = (double)Gosu::radiansScaleToGosu(arg1);
|
2936
|
+
} catch(const std::runtime_error& e) {
|
2937
|
+
SWIG_exception(SWIG_RuntimeError, e.what());
|
2938
|
+
}
|
2939
|
+
}
|
2940
|
+
vresult = SWIG_From_double(static_cast< double >(result));
|
2941
|
+
return vresult;
|
2942
|
+
fail:
|
2943
|
+
return Qnil;
|
2944
|
+
}
|
2905
2945
|
|
2906
|
-
A module function.
|
2907
2946
|
|
2908
|
-
*/
|
2909
2947
|
SWIGINTERN VALUE
|
2910
2948
|
_wrap_offset_x(int argc, VALUE *argv, VALUE self) {
|
2911
2949
|
double arg1 ;
|
@@ -2944,16 +2982,6 @@ fail:
|
|
2944
2982
|
}
|
2945
2983
|
|
2946
2984
|
|
2947
|
-
|
2948
|
-
/*
|
2949
|
-
Document-method: Gosu::Gosu.offset_y
|
2950
|
-
|
2951
|
-
call-seq:
|
2952
|
-
offset_y(double angle, double radius) -> double
|
2953
|
-
|
2954
|
-
A module function.
|
2955
|
-
|
2956
|
-
*/
|
2957
2985
|
SWIGINTERN VALUE
|
2958
2986
|
_wrap_offset_y(int argc, VALUE *argv, VALUE self) {
|
2959
2987
|
double arg1 ;
|
@@ -2992,17 +3020,6 @@ fail:
|
|
2992
3020
|
}
|
2993
3021
|
|
2994
3022
|
|
2995
|
-
|
2996
|
-
/*
|
2997
|
-
Document-method: Gosu::Gosu.angle
|
2998
|
-
|
2999
|
-
call-seq:
|
3000
|
-
angle(double fromX, double fromY, double toX, double toY,
|
3001
|
-
double def=0) -> double
|
3002
|
-
|
3003
|
-
A module function.
|
3004
|
-
|
3005
|
-
*/
|
3006
3023
|
SWIGINTERN VALUE
|
3007
3024
|
_wrap_angle(int argc, VALUE *argv, VALUE self) {
|
3008
3025
|
double arg1 ;
|
@@ -3067,16 +3084,6 @@ fail:
|
|
3067
3084
|
}
|
3068
3085
|
|
3069
3086
|
|
3070
|
-
|
3071
|
-
/*
|
3072
|
-
Document-method: Gosu::Gosu.angle_diff
|
3073
|
-
|
3074
|
-
call-seq:
|
3075
|
-
angle_diff(double angle1, double angle2) -> double
|
3076
|
-
|
3077
|
-
A module function.
|
3078
|
-
|
3079
|
-
*/
|
3080
3087
|
SWIGINTERN VALUE
|
3081
3088
|
_wrap_angle_diff(int argc, VALUE *argv, VALUE self) {
|
3082
3089
|
double arg1 ;
|
@@ -3115,16 +3122,6 @@ fail:
|
|
3115
3122
|
}
|
3116
3123
|
|
3117
3124
|
|
3118
|
-
|
3119
|
-
/*
|
3120
|
-
Document-method: Gosu::Gosu.normalize_angle
|
3121
|
-
|
3122
|
-
call-seq:
|
3123
|
-
normalize_angle(double angle) -> double
|
3124
|
-
|
3125
|
-
A module function.
|
3126
|
-
|
3127
|
-
*/
|
3128
3125
|
SWIGINTERN VALUE
|
3129
3126
|
_wrap_normalize_angle(int argc, VALUE *argv, VALUE self) {
|
3130
3127
|
double arg1 ;
|
@@ -3155,16 +3152,6 @@ fail:
|
|
3155
3152
|
}
|
3156
3153
|
|
3157
3154
|
|
3158
|
-
|
3159
|
-
/*
|
3160
|
-
Document-method: Gosu::Gosu.distance
|
3161
|
-
|
3162
|
-
call-seq:
|
3163
|
-
distance(double x1, double y1, double x2, double y2) -> double
|
3164
|
-
|
3165
|
-
A module function.
|
3166
|
-
|
3167
|
-
*/
|
3168
3155
|
SWIGINTERN VALUE
|
3169
3156
|
_wrap_distance(int argc, VALUE *argv, VALUE self) {
|
3170
3157
|
double arg1 ;
|
@@ -3219,16 +3206,6 @@ fail:
|
|
3219
3206
|
}
|
3220
3207
|
|
3221
3208
|
|
3222
|
-
|
3223
|
-
/*
|
3224
|
-
Document-method: Gosu::Gosu.default_font_name
|
3225
|
-
|
3226
|
-
call-seq:
|
3227
|
-
default_font_name -> std::wstring
|
3228
|
-
|
3229
|
-
A module function.
|
3230
|
-
|
3231
|
-
*/
|
3232
3209
|
SWIGINTERN VALUE
|
3233
3210
|
_wrap_default_font_name(int argc, VALUE *argv, VALUE self) {
|
3234
3211
|
std::wstring result;
|
@@ -3253,16 +3230,6 @@ fail:
|
|
3253
3230
|
}
|
3254
3231
|
|
3255
3232
|
|
3256
|
-
|
3257
|
-
/*
|
3258
|
-
Document-method: Gosu::Gosu.screen_width
|
3259
|
-
|
3260
|
-
call-seq:
|
3261
|
-
screen_width -> unsigned int
|
3262
|
-
|
3263
|
-
A module function.
|
3264
|
-
|
3265
|
-
*/
|
3266
3233
|
SWIGINTERN VALUE
|
3267
3234
|
_wrap_screen_width(int argc, VALUE *argv, VALUE self) {
|
3268
3235
|
unsigned int result;
|
@@ -3285,16 +3252,6 @@ fail:
|
|
3285
3252
|
}
|
3286
3253
|
|
3287
3254
|
|
3288
|
-
|
3289
|
-
/*
|
3290
|
-
Document-method: Gosu::Gosu.screen_height
|
3291
|
-
|
3292
|
-
call-seq:
|
3293
|
-
screen_height -> unsigned int
|
3294
|
-
|
3295
|
-
A module function.
|
3296
|
-
|
3297
|
-
*/
|
3298
3255
|
SWIGINTERN VALUE
|
3299
3256
|
_wrap_screen_height(int argc, VALUE *argv, VALUE self) {
|
3300
3257
|
unsigned int result;
|
@@ -3317,29 +3274,8 @@ fail:
|
|
3317
3274
|
}
|
3318
3275
|
|
3319
3276
|
|
3320
|
-
|
3321
|
-
/*
|
3322
|
-
Document-class: Gosu::Color
|
3323
|
-
|
3324
|
-
Proxy of C++ Gosu::Color class
|
3325
|
-
|
3326
|
-
|
3327
|
-
*/
|
3328
3277
|
swig_class SwigClassColor;
|
3329
3278
|
|
3330
|
-
|
3331
|
-
/*
|
3332
|
-
Document-method: Gosu::Color.new
|
3333
|
-
|
3334
|
-
call-seq:
|
3335
|
-
Color.new
|
3336
|
-
Color.new(boost::uint32_t argb)
|
3337
|
-
Color.new(Channel red, Channel green, Channel blue)
|
3338
|
-
Color.new(Channel alpha, Channel red, Channel green, Channel blue)
|
3339
|
-
|
3340
|
-
Class constructor.
|
3341
|
-
|
3342
|
-
*/
|
3343
3279
|
SWIGINTERN VALUE
|
3344
3280
|
_wrap_new_Color__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
3345
3281
|
const char *classname SWIGUNUSED = "Gosu::Color";
|
@@ -3598,16 +3534,6 @@ fail:
|
|
3598
3534
|
}
|
3599
3535
|
|
3600
3536
|
|
3601
|
-
|
3602
|
-
/*
|
3603
|
-
Document-method: Gosu::Color.from_hsv
|
3604
|
-
|
3605
|
-
call-seq:
|
3606
|
-
from_hsv(double h, double s, double v) -> Color
|
3607
|
-
|
3608
|
-
A class method.
|
3609
|
-
|
3610
|
-
*/
|
3611
3537
|
SWIGINTERN VALUE
|
3612
3538
|
_wrap_Color_from_hsv(int argc, VALUE *argv, VALUE self) {
|
3613
3539
|
double arg1 ;
|
@@ -3654,16 +3580,6 @@ fail:
|
|
3654
3580
|
}
|
3655
3581
|
|
3656
3582
|
|
3657
|
-
|
3658
|
-
/*
|
3659
|
-
Document-method: Gosu::Color.from_ahsv
|
3660
|
-
|
3661
|
-
call-seq:
|
3662
|
-
from_ahsv(Channel alpha, double h, double s, double v) -> Color
|
3663
|
-
|
3664
|
-
A class method.
|
3665
|
-
|
3666
|
-
*/
|
3667
3583
|
SWIGINTERN VALUE
|
3668
3584
|
_wrap_Color_from_ahsv(int argc, VALUE *argv, VALUE self) {
|
3669
3585
|
Gosu::Color::Channel arg1 ;
|
@@ -3718,16 +3634,6 @@ fail:
|
|
3718
3634
|
}
|
3719
3635
|
|
3720
3636
|
|
3721
|
-
|
3722
|
-
/*
|
3723
|
-
Document-method: Gosu::Color.alpha
|
3724
|
-
|
3725
|
-
call-seq:
|
3726
|
-
alpha -> Channel
|
3727
|
-
|
3728
|
-
An instance method.
|
3729
|
-
|
3730
|
-
*/
|
3731
3637
|
SWIGINTERN VALUE
|
3732
3638
|
_wrap_Color_alpha(int argc, VALUE *argv, VALUE self) {
|
3733
3639
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -3758,16 +3664,6 @@ fail:
|
|
3758
3664
|
}
|
3759
3665
|
|
3760
3666
|
|
3761
|
-
|
3762
|
-
/*
|
3763
|
-
Document-method: Gosu::Color.red
|
3764
|
-
|
3765
|
-
call-seq:
|
3766
|
-
red -> Channel
|
3767
|
-
|
3768
|
-
An instance method.
|
3769
|
-
|
3770
|
-
*/
|
3771
3667
|
SWIGINTERN VALUE
|
3772
3668
|
_wrap_Color_red(int argc, VALUE *argv, VALUE self) {
|
3773
3669
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -3798,16 +3694,6 @@ fail:
|
|
3798
3694
|
}
|
3799
3695
|
|
3800
3696
|
|
3801
|
-
|
3802
|
-
/*
|
3803
|
-
Document-method: Gosu::Color.green
|
3804
|
-
|
3805
|
-
call-seq:
|
3806
|
-
green -> Channel
|
3807
|
-
|
3808
|
-
An instance method.
|
3809
|
-
|
3810
|
-
*/
|
3811
3697
|
SWIGINTERN VALUE
|
3812
3698
|
_wrap_Color_green(int argc, VALUE *argv, VALUE self) {
|
3813
3699
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -3838,16 +3724,6 @@ fail:
|
|
3838
3724
|
}
|
3839
3725
|
|
3840
3726
|
|
3841
|
-
|
3842
|
-
/*
|
3843
|
-
Document-method: Gosu::Color.blue
|
3844
|
-
|
3845
|
-
call-seq:
|
3846
|
-
blue -> Channel
|
3847
|
-
|
3848
|
-
An instance method.
|
3849
|
-
|
3850
|
-
*/
|
3851
3727
|
SWIGINTERN VALUE
|
3852
3728
|
_wrap_Color_blue(int argc, VALUE *argv, VALUE self) {
|
3853
3729
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -3878,16 +3754,6 @@ fail:
|
|
3878
3754
|
}
|
3879
3755
|
|
3880
3756
|
|
3881
|
-
|
3882
|
-
/*
|
3883
|
-
Document-method: Gosu::Color.alpha=
|
3884
|
-
|
3885
|
-
call-seq:
|
3886
|
-
alpha=(Channel value)
|
3887
|
-
|
3888
|
-
An instance method.
|
3889
|
-
|
3890
|
-
*/
|
3891
3757
|
SWIGINTERN VALUE
|
3892
3758
|
_wrap_Color_alphae___(int argc, VALUE *argv, VALUE self) {
|
3893
3759
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -3923,16 +3789,6 @@ fail:
|
|
3923
3789
|
}
|
3924
3790
|
|
3925
3791
|
|
3926
|
-
|
3927
|
-
/*
|
3928
|
-
Document-method: Gosu::Color.red=
|
3929
|
-
|
3930
|
-
call-seq:
|
3931
|
-
red=(Channel value)
|
3932
|
-
|
3933
|
-
An instance method.
|
3934
|
-
|
3935
|
-
*/
|
3936
3792
|
SWIGINTERN VALUE
|
3937
3793
|
_wrap_Color_rede___(int argc, VALUE *argv, VALUE self) {
|
3938
3794
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -3968,16 +3824,6 @@ fail:
|
|
3968
3824
|
}
|
3969
3825
|
|
3970
3826
|
|
3971
|
-
|
3972
|
-
/*
|
3973
|
-
Document-method: Gosu::Color.green=
|
3974
|
-
|
3975
|
-
call-seq:
|
3976
|
-
green=(Channel value)
|
3977
|
-
|
3978
|
-
An instance method.
|
3979
|
-
|
3980
|
-
*/
|
3981
3827
|
SWIGINTERN VALUE
|
3982
3828
|
_wrap_Color_greene___(int argc, VALUE *argv, VALUE self) {
|
3983
3829
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -4013,16 +3859,6 @@ fail:
|
|
4013
3859
|
}
|
4014
3860
|
|
4015
3861
|
|
4016
|
-
|
4017
|
-
/*
|
4018
|
-
Document-method: Gosu::Color.blue=
|
4019
|
-
|
4020
|
-
call-seq:
|
4021
|
-
blue=(Channel value)
|
4022
|
-
|
4023
|
-
An instance method.
|
4024
|
-
|
4025
|
-
*/
|
4026
3862
|
SWIGINTERN VALUE
|
4027
3863
|
_wrap_Color_bluee___(int argc, VALUE *argv, VALUE self) {
|
4028
3864
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -4058,16 +3894,6 @@ fail:
|
|
4058
3894
|
}
|
4059
3895
|
|
4060
3896
|
|
4061
|
-
|
4062
|
-
/*
|
4063
|
-
Document-method: Gosu::Color.hue
|
4064
|
-
|
4065
|
-
call-seq:
|
4066
|
-
hue -> double
|
4067
|
-
|
4068
|
-
An instance method.
|
4069
|
-
|
4070
|
-
*/
|
4071
3897
|
SWIGINTERN VALUE
|
4072
3898
|
_wrap_Color_hue(int argc, VALUE *argv, VALUE self) {
|
4073
3899
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -4098,16 +3924,6 @@ fail:
|
|
4098
3924
|
}
|
4099
3925
|
|
4100
3926
|
|
4101
|
-
|
4102
|
-
/*
|
4103
|
-
Document-method: Gosu::Color.hue=
|
4104
|
-
|
4105
|
-
call-seq:
|
4106
|
-
hue=(double h)
|
4107
|
-
|
4108
|
-
An instance method.
|
4109
|
-
|
4110
|
-
*/
|
4111
3927
|
SWIGINTERN VALUE
|
4112
3928
|
_wrap_Color_huee___(int argc, VALUE *argv, VALUE self) {
|
4113
3929
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -4143,16 +3959,6 @@ fail:
|
|
4143
3959
|
}
|
4144
3960
|
|
4145
3961
|
|
4146
|
-
|
4147
|
-
/*
|
4148
|
-
Document-method: Gosu::Color.saturation
|
4149
|
-
|
4150
|
-
call-seq:
|
4151
|
-
saturation -> double
|
4152
|
-
|
4153
|
-
An instance method.
|
4154
|
-
|
4155
|
-
*/
|
4156
3962
|
SWIGINTERN VALUE
|
4157
3963
|
_wrap_Color_saturation(int argc, VALUE *argv, VALUE self) {
|
4158
3964
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -4183,16 +3989,6 @@ fail:
|
|
4183
3989
|
}
|
4184
3990
|
|
4185
3991
|
|
4186
|
-
|
4187
|
-
/*
|
4188
|
-
Document-method: Gosu::Color.saturation=
|
4189
|
-
|
4190
|
-
call-seq:
|
4191
|
-
saturation=(double s)
|
4192
|
-
|
4193
|
-
An instance method.
|
4194
|
-
|
4195
|
-
*/
|
4196
3992
|
SWIGINTERN VALUE
|
4197
3993
|
_wrap_Color_saturatione___(int argc, VALUE *argv, VALUE self) {
|
4198
3994
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -4228,16 +4024,6 @@ fail:
|
|
4228
4024
|
}
|
4229
4025
|
|
4230
4026
|
|
4231
|
-
|
4232
|
-
/*
|
4233
|
-
Document-method: Gosu::Color.value
|
4234
|
-
|
4235
|
-
call-seq:
|
4236
|
-
value -> double
|
4237
|
-
|
4238
|
-
An instance method.
|
4239
|
-
|
4240
|
-
*/
|
4241
4027
|
SWIGINTERN VALUE
|
4242
4028
|
_wrap_Color_value(int argc, VALUE *argv, VALUE self) {
|
4243
4029
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -4268,16 +4054,6 @@ fail:
|
|
4268
4054
|
}
|
4269
4055
|
|
4270
4056
|
|
4271
|
-
|
4272
|
-
/*
|
4273
|
-
Document-method: Gosu::Color.value=
|
4274
|
-
|
4275
|
-
call-seq:
|
4276
|
-
value=(double v)
|
4277
|
-
|
4278
|
-
An instance method.
|
4279
|
-
|
4280
|
-
*/
|
4281
4057
|
SWIGINTERN VALUE
|
4282
4058
|
_wrap_Color_valuee___(int argc, VALUE *argv, VALUE self) {
|
4283
4059
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -4313,16 +4089,6 @@ fail:
|
|
4313
4089
|
}
|
4314
4090
|
|
4315
4091
|
|
4316
|
-
|
4317
|
-
/*
|
4318
|
-
Document-method: Gosu::Color.argb
|
4319
|
-
|
4320
|
-
call-seq:
|
4321
|
-
argb -> boost::uint32_t
|
4322
|
-
|
4323
|
-
An instance method.
|
4324
|
-
|
4325
|
-
*/
|
4326
4092
|
SWIGINTERN VALUE
|
4327
4093
|
_wrap_Color_argb(int argc, VALUE *argv, VALUE self) {
|
4328
4094
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -4353,16 +4119,6 @@ fail:
|
|
4353
4119
|
}
|
4354
4120
|
|
4355
4121
|
|
4356
|
-
|
4357
|
-
/*
|
4358
|
-
Document-method: Gosu::Color.bgr
|
4359
|
-
|
4360
|
-
call-seq:
|
4361
|
-
bgr -> boost::uint32_t
|
4362
|
-
|
4363
|
-
An instance method.
|
4364
|
-
|
4365
|
-
*/
|
4366
4122
|
SWIGINTERN VALUE
|
4367
4123
|
_wrap_Color_bgr(int argc, VALUE *argv, VALUE self) {
|
4368
4124
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -4393,16 +4149,6 @@ fail:
|
|
4393
4149
|
}
|
4394
4150
|
|
4395
4151
|
|
4396
|
-
|
4397
|
-
/*
|
4398
|
-
Document-method: Gosu::Color.abgr
|
4399
|
-
|
4400
|
-
call-seq:
|
4401
|
-
abgr -> boost::uint32_t
|
4402
|
-
|
4403
|
-
An instance method.
|
4404
|
-
|
4405
|
-
*/
|
4406
4152
|
SWIGINTERN VALUE
|
4407
4153
|
_wrap_Color_abgr(int argc, VALUE *argv, VALUE self) {
|
4408
4154
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -4433,16 +4179,6 @@ fail:
|
|
4433
4179
|
}
|
4434
4180
|
|
4435
4181
|
|
4436
|
-
|
4437
|
-
/*
|
4438
|
-
Document-method: Gosu::Color.to_s
|
4439
|
-
|
4440
|
-
call-seq:
|
4441
|
-
to_s -> string
|
4442
|
-
|
4443
|
-
An instance method.
|
4444
|
-
|
4445
|
-
*/
|
4446
4182
|
SWIGINTERN VALUE
|
4447
4183
|
_wrap_Color_to_s(int argc, VALUE *argv, VALUE self) {
|
4448
4184
|
Gosu::Color *arg1 = (Gosu::Color *) 0 ;
|
@@ -4479,16 +4215,6 @@ free_Gosu_Color(Gosu::Color *arg1) {
|
|
4479
4215
|
delete arg1;
|
4480
4216
|
}
|
4481
4217
|
|
4482
|
-
|
4483
|
-
/*
|
4484
|
-
Document-method: Gosu::Gosu.interpolate
|
4485
|
-
|
4486
|
-
call-seq:
|
4487
|
-
interpolate(Color a, Color b, double weight=0.5) -> Color
|
4488
|
-
|
4489
|
-
A module function.
|
4490
|
-
|
4491
|
-
*/
|
4492
4218
|
SWIGINTERN VALUE
|
4493
4219
|
_wrap_interpolate(int argc, VALUE *argv, VALUE self) {
|
4494
4220
|
Gosu::Color arg1 ;
|
@@ -4545,16 +4271,6 @@ fail:
|
|
4545
4271
|
}
|
4546
4272
|
|
4547
4273
|
|
4548
|
-
|
4549
|
-
/*
|
4550
|
-
Document-method: Gosu::Gosu.multiply
|
4551
|
-
|
4552
|
-
call-seq:
|
4553
|
-
multiply(Color a, Color b) -> Color
|
4554
|
-
|
4555
|
-
A module function.
|
4556
|
-
|
4557
|
-
*/
|
4558
4274
|
SWIGINTERN VALUE
|
4559
4275
|
_wrap_multiply(int argc, VALUE *argv, VALUE self) {
|
4560
4276
|
Gosu::Color arg1 ;
|
@@ -4601,16 +4317,6 @@ fail:
|
|
4601
4317
|
}
|
4602
4318
|
|
4603
4319
|
|
4604
|
-
|
4605
|
-
/*
|
4606
|
-
Document-method: Gosu::Colors.none
|
4607
|
-
|
4608
|
-
call-seq:
|
4609
|
-
none -> Color
|
4610
|
-
|
4611
|
-
Get value of attribute.
|
4612
|
-
|
4613
|
-
*/
|
4614
4320
|
SWIGINTERN VALUE
|
4615
4321
|
_wrap_none_get(VALUE self) {
|
4616
4322
|
VALUE _val;
|
@@ -4620,16 +4326,6 @@ _wrap_none_get(VALUE self) {
|
|
4620
4326
|
}
|
4621
4327
|
|
4622
4328
|
|
4623
|
-
|
4624
|
-
/*
|
4625
|
-
Document-method: Gosu::Colors.black
|
4626
|
-
|
4627
|
-
call-seq:
|
4628
|
-
black -> Color
|
4629
|
-
|
4630
|
-
Get value of attribute.
|
4631
|
-
|
4632
|
-
*/
|
4633
4329
|
SWIGINTERN VALUE
|
4634
4330
|
_wrap_black_get(VALUE self) {
|
4635
4331
|
VALUE _val;
|
@@ -4639,16 +4335,6 @@ _wrap_black_get(VALUE self) {
|
|
4639
4335
|
}
|
4640
4336
|
|
4641
4337
|
|
4642
|
-
|
4643
|
-
/*
|
4644
|
-
Document-method: Gosu::Colors.gray
|
4645
|
-
|
4646
|
-
call-seq:
|
4647
|
-
gray -> Color
|
4648
|
-
|
4649
|
-
Get value of attribute.
|
4650
|
-
|
4651
|
-
*/
|
4652
4338
|
SWIGINTERN VALUE
|
4653
4339
|
_wrap_gray_get(VALUE self) {
|
4654
4340
|
VALUE _val;
|
@@ -4658,16 +4344,6 @@ _wrap_gray_get(VALUE self) {
|
|
4658
4344
|
}
|
4659
4345
|
|
4660
4346
|
|
4661
|
-
|
4662
|
-
/*
|
4663
|
-
Document-method: Gosu::Colors.white
|
4664
|
-
|
4665
|
-
call-seq:
|
4666
|
-
white -> Color
|
4667
|
-
|
4668
|
-
Get value of attribute.
|
4669
|
-
|
4670
|
-
*/
|
4671
4347
|
SWIGINTERN VALUE
|
4672
4348
|
_wrap_white_get(VALUE self) {
|
4673
4349
|
VALUE _val;
|
@@ -4677,16 +4353,6 @@ _wrap_white_get(VALUE self) {
|
|
4677
4353
|
}
|
4678
4354
|
|
4679
4355
|
|
4680
|
-
|
4681
|
-
/*
|
4682
|
-
Document-method: Gosu::Colors.red
|
4683
|
-
|
4684
|
-
call-seq:
|
4685
|
-
red -> Color
|
4686
|
-
|
4687
|
-
Get value of attribute.
|
4688
|
-
|
4689
|
-
*/
|
4690
4356
|
SWIGINTERN VALUE
|
4691
4357
|
_wrap_red_get(VALUE self) {
|
4692
4358
|
VALUE _val;
|
@@ -4696,16 +4362,6 @@ _wrap_red_get(VALUE self) {
|
|
4696
4362
|
}
|
4697
4363
|
|
4698
4364
|
|
4699
|
-
|
4700
|
-
/*
|
4701
|
-
Document-method: Gosu::Colors.green
|
4702
|
-
|
4703
|
-
call-seq:
|
4704
|
-
green -> Color
|
4705
|
-
|
4706
|
-
Get value of attribute.
|
4707
|
-
|
4708
|
-
*/
|
4709
4365
|
SWIGINTERN VALUE
|
4710
4366
|
_wrap_green_get(VALUE self) {
|
4711
4367
|
VALUE _val;
|
@@ -4715,16 +4371,6 @@ _wrap_green_get(VALUE self) {
|
|
4715
4371
|
}
|
4716
4372
|
|
4717
4373
|
|
4718
|
-
|
4719
|
-
/*
|
4720
|
-
Document-method: Gosu::Colors.blue
|
4721
|
-
|
4722
|
-
call-seq:
|
4723
|
-
blue -> Color
|
4724
|
-
|
4725
|
-
Get value of attribute.
|
4726
|
-
|
4727
|
-
*/
|
4728
4374
|
SWIGINTERN VALUE
|
4729
4375
|
_wrap_blue_get(VALUE self) {
|
4730
4376
|
VALUE _val;
|
@@ -4734,16 +4380,6 @@ _wrap_blue_get(VALUE self) {
|
|
4734
4380
|
}
|
4735
4381
|
|
4736
4382
|
|
4737
|
-
|
4738
|
-
/*
|
4739
|
-
Document-method: Gosu::Colors.yellow
|
4740
|
-
|
4741
|
-
call-seq:
|
4742
|
-
yellow -> Color
|
4743
|
-
|
4744
|
-
Get value of attribute.
|
4745
|
-
|
4746
|
-
*/
|
4747
4383
|
SWIGINTERN VALUE
|
4748
4384
|
_wrap_yellow_get(VALUE self) {
|
4749
4385
|
VALUE _val;
|
@@ -4753,16 +4389,6 @@ _wrap_yellow_get(VALUE self) {
|
|
4753
4389
|
}
|
4754
4390
|
|
4755
4391
|
|
4756
|
-
|
4757
|
-
/*
|
4758
|
-
Document-method: Gosu::Colors.fuchsia
|
4759
|
-
|
4760
|
-
call-seq:
|
4761
|
-
fuchsia -> Color
|
4762
|
-
|
4763
|
-
Get value of attribute.
|
4764
|
-
|
4765
|
-
*/
|
4766
4392
|
SWIGINTERN VALUE
|
4767
4393
|
_wrap_fuchsia_get(VALUE self) {
|
4768
4394
|
VALUE _val;
|
@@ -4772,16 +4398,6 @@ _wrap_fuchsia_get(VALUE self) {
|
|
4772
4398
|
}
|
4773
4399
|
|
4774
4400
|
|
4775
|
-
|
4776
|
-
/*
|
4777
|
-
Document-method: Gosu::Colors.cyan
|
4778
|
-
|
4779
|
-
call-seq:
|
4780
|
-
cyan -> Color
|
4781
|
-
|
4782
|
-
Get value of attribute.
|
4783
|
-
|
4784
|
-
*/
|
4785
4401
|
SWIGINTERN VALUE
|
4786
4402
|
_wrap_cyan_get(VALUE self) {
|
4787
4403
|
VALUE _val;
|
@@ -4791,14 +4407,6 @@ _wrap_cyan_get(VALUE self) {
|
|
4791
4407
|
}
|
4792
4408
|
|
4793
4409
|
|
4794
|
-
|
4795
|
-
/*
|
4796
|
-
Document-class: Gosu::Font
|
4797
|
-
|
4798
|
-
Proxy of C++ Gosu::Font class
|
4799
|
-
|
4800
|
-
|
4801
|
-
*/
|
4802
4410
|
swig_class SwigClassFont;
|
4803
4411
|
|
4804
4412
|
SWIGINTERN void
|
@@ -4807,16 +4415,38 @@ free_Gosu_Font(Gosu::Font *arg1) {
|
|
4807
4415
|
delete arg1;
|
4808
4416
|
}
|
4809
4417
|
|
4418
|
+
SWIGINTERN VALUE
|
4419
|
+
_wrap_Font_name(int argc, VALUE *argv, VALUE self) {
|
4420
|
+
Gosu::Font *arg1 = (Gosu::Font *) 0 ;
|
4421
|
+
void *argp1 = 0 ;
|
4422
|
+
int res1 = 0 ;
|
4423
|
+
std::wstring result;
|
4424
|
+
VALUE vresult = Qnil;
|
4425
|
+
|
4426
|
+
if ((argc < 0) || (argc > 0)) {
|
4427
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4428
|
+
}
|
4429
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Font, 0 | 0 );
|
4430
|
+
if (!SWIG_IsOK(res1)) {
|
4431
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Font const *","name", 1, self ));
|
4432
|
+
}
|
4433
|
+
arg1 = reinterpret_cast< Gosu::Font * >(argp1);
|
4434
|
+
{
|
4435
|
+
try {
|
4436
|
+
result = ((Gosu::Font const *)arg1)->name();
|
4437
|
+
} catch(const std::runtime_error& e) {
|
4438
|
+
SWIG_exception(SWIG_RuntimeError, e.what());
|
4439
|
+
}
|
4440
|
+
}
|
4441
|
+
{
|
4442
|
+
vresult = rb_str_new2(Gosu::wstringToUTF8(result).c_str());
|
4443
|
+
}
|
4444
|
+
return vresult;
|
4445
|
+
fail:
|
4446
|
+
return Qnil;
|
4447
|
+
}
|
4810
4448
|
|
4811
|
-
/*
|
4812
|
-
Document-method: Gosu::Font.height
|
4813
|
-
|
4814
|
-
call-seq:
|
4815
|
-
height -> unsigned int
|
4816
|
-
|
4817
|
-
An instance method.
|
4818
4449
|
|
4819
|
-
*/
|
4820
4450
|
SWIGINTERN VALUE
|
4821
4451
|
_wrap_Font_height(int argc, VALUE *argv, VALUE self) {
|
4822
4452
|
Gosu::Font *arg1 = (Gosu::Font *) 0 ;
|
@@ -4847,16 +4477,36 @@ fail:
|
|
4847
4477
|
}
|
4848
4478
|
|
4849
4479
|
|
4480
|
+
SWIGINTERN VALUE
|
4481
|
+
_wrap_Font_flags(int argc, VALUE *argv, VALUE self) {
|
4482
|
+
Gosu::Font *arg1 = (Gosu::Font *) 0 ;
|
4483
|
+
void *argp1 = 0 ;
|
4484
|
+
int res1 = 0 ;
|
4485
|
+
unsigned int result;
|
4486
|
+
VALUE vresult = Qnil;
|
4487
|
+
|
4488
|
+
if ((argc < 0) || (argc > 0)) {
|
4489
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4490
|
+
}
|
4491
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Gosu__Font, 0 | 0 );
|
4492
|
+
if (!SWIG_IsOK(res1)) {
|
4493
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gosu::Font const *","flags", 1, self ));
|
4494
|
+
}
|
4495
|
+
arg1 = reinterpret_cast< Gosu::Font * >(argp1);
|
4496
|
+
{
|
4497
|
+
try {
|
4498
|
+
result = (unsigned int)((Gosu::Font const *)arg1)->flags();
|
4499
|
+
} catch(const std::runtime_error& e) {
|
4500
|
+
SWIG_exception(SWIG_RuntimeError, e.what());
|
4501
|
+
}
|
4502
|
+
}
|
4503
|
+
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
4504
|
+
return vresult;
|
4505
|
+
fail:
|
4506
|
+
return Qnil;
|
4507
|
+
}
|
4850
4508
|
|
4851
|
-
/*
|
4852
|
-
Document-method: Gosu::Font.text_width
|
4853
|
-
|
4854
|
-
call-seq:
|
4855
|
-
text_width(std::wstring text, double factorX=1) -> double
|
4856
|
-
|
4857
|
-
An instance method.
|
4858
4509
|
|
4859
|
-
*/
|
4860
4510
|
SWIGINTERN VALUE
|
4861
4511
|
_wrap_Font_text_width(int argc, VALUE *argv, VALUE self) {
|
4862
4512
|
Gosu::Font *arg1 = (Gosu::Font *) 0 ;
|
@@ -4904,18 +4554,6 @@ fail:
|
|
4904
4554
|
}
|
4905
4555
|
|
4906
4556
|
|
4907
|
-
|
4908
|
-
/*
|
4909
|
-
Document-method: Gosu::Font.draw
|
4910
|
-
|
4911
|
-
call-seq:
|
4912
|
-
draw(std::wstring text, double x, double y, ZPos z, double factorX=1,
|
4913
|
-
double factorY=1, Color c=white,
|
4914
|
-
mode=AmDefault)
|
4915
|
-
|
4916
|
-
An instance method.
|
4917
|
-
|
4918
|
-
*/
|
4919
4557
|
SWIGINTERN VALUE
|
4920
4558
|
_wrap_Font_draw(int argc, VALUE *argv, VALUE self) {
|
4921
4559
|
Gosu::Font *arg1 = (Gosu::Font *) 0 ;
|
@@ -5020,18 +4658,6 @@ fail:
|
|
5020
4658
|
}
|
5021
4659
|
|
5022
4660
|
|
5023
|
-
|
5024
|
-
/*
|
5025
|
-
Document-method: Gosu::Font.draw_rel
|
5026
|
-
|
5027
|
-
call-seq:
|
5028
|
-
draw_rel(std::wstring text, double x, double y, ZPos z, double relX,
|
5029
|
-
double relY, double factorX=1, double factorY=1,
|
5030
|
-
Color c=white, mode=AmDefault)
|
5031
|
-
|
5032
|
-
An instance method.
|
5033
|
-
|
5034
|
-
*/
|
5035
4661
|
SWIGINTERN VALUE
|
5036
4662
|
_wrap_Font_draw_rel(int argc, VALUE *argv, VALUE self) {
|
5037
4663
|
Gosu::Font *arg1 = (Gosu::Font *) 0 ;
|
@@ -5152,18 +4778,6 @@ fail:
|
|
5152
4778
|
}
|
5153
4779
|
|
5154
4780
|
|
5155
|
-
|
5156
|
-
/*
|
5157
|
-
Document-method: Gosu::Font.draw_rot
|
5158
|
-
|
5159
|
-
call-seq:
|
5160
|
-
draw_rot(std::wstring text, double x, double y, ZPos z, double angle,
|
5161
|
-
double factorX=1, double factorY=1,
|
5162
|
-
Color c=white, mode=AmDefault)
|
5163
|
-
|
5164
|
-
An instance method.
|
5165
|
-
|
5166
|
-
*/
|
5167
4781
|
SWIGINTERN VALUE
|
5168
4782
|
_wrap_Font_draw_rot(int argc, VALUE *argv, VALUE self) {
|
5169
4783
|
Gosu::Font *arg1 = (Gosu::Font *) 0 ;
|
@@ -5293,16 +4907,6 @@ _wrap_Font_allocate(VALUE self) {
|
|
5293
4907
|
}
|
5294
4908
|
|
5295
4909
|
|
5296
|
-
|
5297
|
-
/*
|
5298
|
-
Document-method: Gosu::Font.new
|
5299
|
-
|
5300
|
-
call-seq:
|
5301
|
-
Font.new(Window window, std::wstring fontName, unsigned int height)
|
5302
|
-
|
5303
|
-
Class constructor.
|
5304
|
-
|
5305
|
-
*/
|
5306
4910
|
SWIGINTERN VALUE
|
5307
4911
|
_wrap_new_Font(int argc, VALUE *argv, VALUE self) {
|
5308
4912
|
Gosu::Window *arg1 = 0 ;
|
@@ -5349,39 +4953,11 @@ _wrap_new_Font(int argc, VALUE *argv, VALUE self) {
|
|
5349
4953
|
return self;
|
5350
4954
|
fail:
|
5351
4955
|
return Qnil;
|
5352
|
-
}
|
5353
|
-
|
5354
|
-
|
5355
|
-
|
5356
|
-
/*
|
5357
|
-
Document-class: Gosu::GLTexInfo
|
5358
|
-
|
5359
|
-
Proxy of C++ Gosu::GLTexInfo class
|
4956
|
+
}
|
5360
4957
|
|
5361
4958
|
|
5362
|
-
*/
|
5363
4959
|
swig_class SwigClassGLTexInfo;
|
5364
4960
|
|
5365
|
-
|
5366
|
-
/*
|
5367
|
-
Document-method: Gosu::GLTexInfo.tex_name
|
5368
|
-
|
5369
|
-
call-seq:
|
5370
|
-
tex_name -> int
|
5371
|
-
|
5372
|
-
Get value of attribute.
|
5373
|
-
|
5374
|
-
*/
|
5375
|
-
|
5376
|
-
/*
|
5377
|
-
Document-method: Gosu::GLTexInfo.tex_name=
|
5378
|
-
|
5379
|
-
call-seq:
|
5380
|
-
tex_name=(x) -> int
|
5381
|
-
|
5382
|
-
Set new value for attribute.
|
5383
|
-
|
5384
|
-
*/
|
5385
4961
|
SWIGINTERN VALUE
|
5386
4962
|
_wrap_GLTexInfo_tex_name_set(int argc, VALUE *argv, VALUE self) {
|
5387
4963
|
Gosu::GLTexInfo *arg1 = (Gosu::GLTexInfo *) 0 ;
|
@@ -5435,26 +5011,6 @@ fail:
|
|
5435
5011
|
}
|
5436
5012
|
|
5437
5013
|
|
5438
|
-
|
5439
|
-
/*
|
5440
|
-
Document-method: Gosu::GLTexInfo.left
|
5441
|
-
|
5442
|
-
call-seq:
|
5443
|
-
left -> double
|
5444
|
-
|
5445
|
-
Get value of attribute.
|
5446
|
-
|
5447
|
-
*/
|
5448
|
-
|
5449
|
-
/*
|
5450
|
-
Document-method: Gosu::GLTexInfo.left=
|
5451
|
-
|
5452
|
-
call-seq:
|
5453
|
-
left=(x) -> double
|
5454
|
-
|
5455
|
-
Set new value for attribute.
|
5456
|
-
|
5457
|
-
*/
|
5458
5014
|
SWIGINTERN VALUE
|
5459
5015
|
_wrap_GLTexInfo_left_set(int argc, VALUE *argv, VALUE self) {
|
5460
5016
|
Gosu::GLTexInfo *arg1 = (Gosu::GLTexInfo *) 0 ;
|
@@ -5508,26 +5064,6 @@ fail:
|
|
5508
5064
|
}
|
5509
5065
|
|
5510
5066
|
|
5511
|
-
|
5512
|
-
/*
|
5513
|
-
Document-method: Gosu::GLTexInfo.right
|
5514
|
-
|
5515
|
-
call-seq:
|
5516
|
-
right -> double
|
5517
|
-
|
5518
|
-
Get value of attribute.
|
5519
|
-
|
5520
|
-
*/
|
5521
|
-
|
5522
|
-
/*
|
5523
|
-
Document-method: Gosu::GLTexInfo.right=
|
5524
|
-
|
5525
|
-
call-seq:
|
5526
|
-
right=(x) -> double
|
5527
|
-
|
5528
|
-
Set new value for attribute.
|
5529
|
-
|
5530
|
-
*/
|
5531
5067
|
SWIGINTERN VALUE
|
5532
5068
|
_wrap_GLTexInfo_right_set(int argc, VALUE *argv, VALUE self) {
|
5533
5069
|
Gosu::GLTexInfo *arg1 = (Gosu::GLTexInfo *) 0 ;
|
@@ -5581,26 +5117,6 @@ fail:
|
|
5581
5117
|
}
|
5582
5118
|
|
5583
5119
|
|
5584
|
-
|
5585
|
-
/*
|
5586
|
-
Document-method: Gosu::GLTexInfo.top
|
5587
|
-
|
5588
|
-
call-seq:
|
5589
|
-
top -> double
|
5590
|
-
|
5591
|
-
Get value of attribute.
|
5592
|
-
|
5593
|
-
*/
|
5594
|
-
|
5595
|
-
/*
|
5596
|
-
Document-method: Gosu::GLTexInfo.top=
|
5597
|
-
|
5598
|
-
call-seq:
|
5599
|
-
top=(x) -> double
|
5600
|
-
|
5601
|
-
Set new value for attribute.
|
5602
|
-
|
5603
|
-
*/
|
5604
5120
|
SWIGINTERN VALUE
|
5605
5121
|
_wrap_GLTexInfo_top_set(int argc, VALUE *argv, VALUE self) {
|
5606
5122
|
Gosu::GLTexInfo *arg1 = (Gosu::GLTexInfo *) 0 ;
|
@@ -5654,26 +5170,6 @@ fail:
|
|
5654
5170
|
}
|
5655
5171
|
|
5656
5172
|
|
5657
|
-
|
5658
|
-
/*
|
5659
|
-
Document-method: Gosu::GLTexInfo.bottom
|
5660
|
-
|
5661
|
-
call-seq:
|
5662
|
-
bottom -> double
|
5663
|
-
|
5664
|
-
Get value of attribute.
|
5665
|
-
|
5666
|
-
*/
|
5667
|
-
|
5668
|
-
/*
|
5669
|
-
Document-method: Gosu::GLTexInfo.bottom=
|
5670
|
-
|
5671
|
-
call-seq:
|
5672
|
-
bottom=(x) -> double
|
5673
|
-
|
5674
|
-
Set new value for attribute.
|
5675
|
-
|
5676
|
-
*/
|
5677
5173
|
SWIGINTERN VALUE
|
5678
5174
|
_wrap_GLTexInfo_bottom_set(int argc, VALUE *argv, VALUE self) {
|
5679
5175
|
Gosu::GLTexInfo *arg1 = (Gosu::GLTexInfo *) 0 ;
|
@@ -5744,16 +5240,6 @@ _wrap_GLTexInfo_allocate(VALUE self) {
|
|
5744
5240
|
}
|
5745
5241
|
|
5746
5242
|
|
5747
|
-
|
5748
|
-
/*
|
5749
|
-
Document-method: Gosu::GLTexInfo.new
|
5750
|
-
|
5751
|
-
call-seq:
|
5752
|
-
GLTexInfo.new
|
5753
|
-
|
5754
|
-
Class constructor.
|
5755
|
-
|
5756
|
-
*/
|
5757
5243
|
SWIGINTERN VALUE
|
5758
5244
|
_wrap_new_GLTexInfo(int argc, VALUE *argv, VALUE self) {
|
5759
5245
|
const char *classname SWIGUNUSED = "Gosu::GLTexInfo";
|
@@ -5783,14 +5269,6 @@ free_Gosu_GLTexInfo(Gosu::GLTexInfo *arg1) {
|
|
5783
5269
|
delete arg1;
|
5784
5270
|
}
|
5785
5271
|
|
5786
|
-
|
5787
|
-
/*
|
5788
|
-
Document-class: Gosu::Image
|
5789
|
-
|
5790
|
-
Proxy of C++ Gosu::Image class
|
5791
|
-
|
5792
|
-
|
5793
|
-
*/
|
5794
5272
|
swig_class SwigClassImage;
|
5795
5273
|
|
5796
5274
|
SWIGINTERN void
|
@@ -5799,16 +5277,6 @@ free_Gosu_Image(Gosu::Image *arg1) {
|
|
5799
5277
|
delete arg1;
|
5800
5278
|
}
|
5801
5279
|
|
5802
|
-
|
5803
|
-
/*
|
5804
|
-
Document-method: Gosu::Image.width
|
5805
|
-
|
5806
|
-
call-seq:
|
5807
|
-
width -> unsigned int
|
5808
|
-
|
5809
|
-
An instance method.
|
5810
|
-
|
5811
|
-
*/
|
5812
5280
|
SWIGINTERN VALUE
|
5813
5281
|
_wrap_Image_width(int argc, VALUE *argv, VALUE self) {
|
5814
5282
|
Gosu::Image *arg1 = (Gosu::Image *) 0 ;
|
@@ -5839,16 +5307,6 @@ fail:
|
|
5839
5307
|
}
|
5840
5308
|
|
5841
5309
|
|
5842
|
-
|
5843
|
-
/*
|
5844
|
-
Document-method: Gosu::Image.height
|
5845
|
-
|
5846
|
-
call-seq:
|
5847
|
-
height -> unsigned int
|
5848
|
-
|
5849
|
-
An instance method.
|
5850
|
-
|
5851
|
-
*/
|
5852
5310
|
SWIGINTERN VALUE
|
5853
5311
|
_wrap_Image_height(int argc, VALUE *argv, VALUE self) {
|
5854
5312
|
Gosu::Image *arg1 = (Gosu::Image *) 0 ;
|
@@ -5879,17 +5337,6 @@ fail:
|
|
5879
5337
|
}
|
5880
5338
|
|
5881
5339
|
|
5882
|
-
|
5883
|
-
/*
|
5884
|
-
Document-method: Gosu::Image.draw
|
5885
|
-
|
5886
|
-
call-seq:
|
5887
|
-
draw(double x, double y, ZPos z, double factorX=1, double factorY=1,
|
5888
|
-
Color c=white, mode=AmDefault)
|
5889
|
-
|
5890
|
-
An instance method.
|
5891
|
-
|
5892
|
-
*/
|
5893
5340
|
SWIGINTERN VALUE
|
5894
5341
|
_wrap_Image_draw(int argc, VALUE *argv, VALUE self) {
|
5895
5342
|
Gosu::Image *arg1 = (Gosu::Image *) 0 ;
|
@@ -5987,18 +5434,6 @@ fail:
|
|
5987
5434
|
}
|
5988
5435
|
|
5989
5436
|
|
5990
|
-
|
5991
|
-
/*
|
5992
|
-
Document-method: Gosu::Image.draw_mod
|
5993
|
-
|
5994
|
-
call-seq:
|
5995
|
-
draw_mod(double x, double y, ZPos z, double factorX, double factorY,
|
5996
|
-
Color c1, Color c2, Color c3, Color c4,
|
5997
|
-
mode=AmDefault)
|
5998
|
-
|
5999
|
-
An instance method.
|
6000
|
-
|
6001
|
-
*/
|
6002
5437
|
SWIGINTERN VALUE
|
6003
5438
|
_wrap_Image_draw_mod(int argc, VALUE *argv, VALUE self) {
|
6004
5439
|
Gosu::Image *arg1 = (Gosu::Image *) 0 ;
|
@@ -6126,18 +5561,6 @@ fail:
|
|
6126
5561
|
}
|
6127
5562
|
|
6128
5563
|
|
6129
|
-
|
6130
|
-
/*
|
6131
|
-
Document-method: Gosu::Image.draw_rot
|
6132
|
-
|
6133
|
-
call-seq:
|
6134
|
-
draw_rot(double x, double y, ZPos z, double angle, double centerX=0.5,
|
6135
|
-
double centerY=0.5, double factorX=1,
|
6136
|
-
double factorY=1, Color c=white, mode=AmDefault)
|
6137
|
-
|
6138
|
-
An instance method.
|
6139
|
-
|
6140
|
-
*/
|
6141
5564
|
SWIGINTERN VALUE
|
6142
5565
|
_wrap_Image_draw_rot(int argc, VALUE *argv, VALUE self) {
|
6143
5566
|
Gosu::Image *arg1 = (Gosu::Image *) 0 ;
|
@@ -6263,19 +5686,6 @@ fail:
|
|
6263
5686
|
}
|
6264
5687
|
|
6265
5688
|
|
6266
|
-
|
6267
|
-
/*
|
6268
|
-
Document-method: Gosu::Image.new
|
6269
|
-
|
6270
|
-
call-seq:
|
6271
|
-
Image.new(Window window, VALUE source, bool tileable=false)
|
6272
|
-
Image.new(Window window, VALUE source, bool tileable, unsigned int srcX,
|
6273
|
-
unsigned int srcY, unsigned int srcWidth,
|
6274
|
-
unsigned int srcHeight)
|
6275
|
-
|
6276
|
-
Class constructor.
|
6277
|
-
|
6278
|
-
*/
|
6279
5689
|
SWIGINTERN VALUE
|
6280
5690
|
_wrap_new_Image__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
6281
5691
|
Gosu::Window *arg1 = 0 ;
|
@@ -6498,18 +5908,6 @@ fail:
|
|
6498
5908
|
}
|
6499
5909
|
|
6500
5910
|
|
6501
|
-
|
6502
|
-
/*
|
6503
|
-
Document-method: Gosu::Image.draw_as_quad
|
6504
|
-
|
6505
|
-
call-seq:
|
6506
|
-
draw_as_quad(double x1, double y1, Color c1, double x2, double y2,
|
6507
|
-
Color c2, double x3, double y3, Color c3,
|
6508
|
-
double x4, double y4, Color c4, ZPos z, mode=AmDefault)
|
6509
|
-
|
6510
|
-
An instance method.
|
6511
|
-
|
6512
|
-
*/
|
6513
5911
|
SWIGINTERN VALUE
|
6514
5912
|
_wrap_Image_draw_as_quad(int argc, VALUE *argv, VALUE self) {
|
6515
5913
|
Gosu::Image *arg1 = (Gosu::Image *) 0 ;
|
@@ -6669,16 +6067,6 @@ fail:
|
|
6669
6067
|
}
|
6670
6068
|
|
6671
6069
|
|
6672
|
-
|
6673
|
-
/*
|
6674
|
-
Document-method: Gosu::Image.gl_tex_info
|
6675
|
-
|
6676
|
-
call-seq:
|
6677
|
-
gl_tex_info -> GLTexInfo
|
6678
|
-
|
6679
|
-
An instance method.
|
6680
|
-
|
6681
|
-
*/
|
6682
6070
|
SWIGINTERN VALUE
|
6683
6071
|
_wrap_Image_gl_tex_info(int argc, VALUE *argv, VALUE self) {
|
6684
6072
|
Gosu::Image *arg1 = (Gosu::Image *) 0 ;
|
@@ -6709,17 +6097,6 @@ fail:
|
|
6709
6097
|
}
|
6710
6098
|
|
6711
6099
|
|
6712
|
-
|
6713
|
-
/*
|
6714
|
-
Document-method: Gosu::Image.from_text4
|
6715
|
-
|
6716
|
-
call-seq:
|
6717
|
-
from_text4(Window window, std::wstring text, std::wstring fontName,
|
6718
|
-
unsigned int fontHeight) -> Image
|
6719
|
-
|
6720
|
-
A class method.
|
6721
|
-
|
6722
|
-
*/
|
6723
6100
|
SWIGINTERN VALUE
|
6724
6101
|
_wrap_Image_from_text4(int argc, VALUE *argv, VALUE self) {
|
6725
6102
|
Gosu::Window *arg1 = 0 ;
|
@@ -6775,18 +6152,6 @@ fail:
|
|
6775
6152
|
}
|
6776
6153
|
|
6777
6154
|
|
6778
|
-
|
6779
|
-
/*
|
6780
|
-
Document-method: Gosu::Image.from_text7
|
6781
|
-
|
6782
|
-
call-seq:
|
6783
|
-
from_text7(Window window, std::wstring text, std::wstring fontName,
|
6784
|
-
unsigned int fontHeight, unsigned int lineSpacing,
|
6785
|
-
unsigned int maxWidth, align) -> Image
|
6786
|
-
|
6787
|
-
A class method.
|
6788
|
-
|
6789
|
-
*/
|
6790
6155
|
SWIGINTERN VALUE
|
6791
6156
|
_wrap_Image_from_text7(int argc, VALUE *argv, VALUE self) {
|
6792
6157
|
Gosu::Window *arg1 = 0 ;
|
@@ -6872,17 +6237,6 @@ fail:
|
|
6872
6237
|
}
|
6873
6238
|
|
6874
6239
|
|
6875
|
-
|
6876
|
-
/*
|
6877
|
-
Document-method: Gosu::Image.load_tiles
|
6878
|
-
|
6879
|
-
call-seq:
|
6880
|
-
load_tiles(Window window, VALUE source, int tileWidth, int tileHeight,
|
6881
|
-
bool tileable) -> std::vector<(p.Gosu::Image)>
|
6882
|
-
|
6883
|
-
A class method.
|
6884
|
-
|
6885
|
-
*/
|
6886
6240
|
SWIGINTERN VALUE
|
6887
6241
|
_wrap_Image_load_tiles(int argc, VALUE *argv, VALUE self) {
|
6888
6242
|
Gosu::Window *arg1 = 0 ;
|
@@ -6948,14 +6302,6 @@ fail:
|
|
6948
6302
|
}
|
6949
6303
|
|
6950
6304
|
|
6951
|
-
|
6952
|
-
/*
|
6953
|
-
Document-class: Gosu::SampleInstance
|
6954
|
-
|
6955
|
-
Proxy of C++ Gosu::SampleInstance class
|
6956
|
-
|
6957
|
-
|
6958
|
-
*/
|
6959
6305
|
swig_class SwigClassSampleInstance;
|
6960
6306
|
|
6961
6307
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
@@ -6975,16 +6321,6 @@ _wrap_SampleInstance_allocate(VALUE self) {
|
|
6975
6321
|
}
|
6976
6322
|
|
6977
6323
|
|
6978
|
-
|
6979
|
-
/*
|
6980
|
-
Document-method: Gosu::SampleInstance.new
|
6981
|
-
|
6982
|
-
call-seq:
|
6983
|
-
SampleInstance.new(int handle, int extra)
|
6984
|
-
|
6985
|
-
Class constructor.
|
6986
|
-
|
6987
|
-
*/
|
6988
6324
|
SWIGINTERN VALUE
|
6989
6325
|
_wrap_new_SampleInstance(int argc, VALUE *argv, VALUE self) {
|
6990
6326
|
int arg1 ;
|
@@ -7024,16 +6360,6 @@ fail:
|
|
7024
6360
|
}
|
7025
6361
|
|
7026
6362
|
|
7027
|
-
|
7028
|
-
/*
|
7029
|
-
Document-method: Gosu::SampleInstance.playing?
|
7030
|
-
|
7031
|
-
call-seq:
|
7032
|
-
playing? -> bool
|
7033
|
-
|
7034
|
-
An instance method.
|
7035
|
-
|
7036
|
-
*/
|
7037
6363
|
SWIGINTERN VALUE
|
7038
6364
|
_wrap_SampleInstance_playingq___(int argc, VALUE *argv, VALUE self) {
|
7039
6365
|
Gosu::SampleInstance *arg1 = (Gosu::SampleInstance *) 0 ;
|
@@ -7064,16 +6390,6 @@ fail:
|
|
7064
6390
|
}
|
7065
6391
|
|
7066
6392
|
|
7067
|
-
|
7068
|
-
/*
|
7069
|
-
Document-method: Gosu::SampleInstance.paused?
|
7070
|
-
|
7071
|
-
call-seq:
|
7072
|
-
paused? -> bool
|
7073
|
-
|
7074
|
-
An instance method.
|
7075
|
-
|
7076
|
-
*/
|
7077
6393
|
SWIGINTERN VALUE
|
7078
6394
|
_wrap_SampleInstance_pausedq___(int argc, VALUE *argv, VALUE self) {
|
7079
6395
|
Gosu::SampleInstance *arg1 = (Gosu::SampleInstance *) 0 ;
|
@@ -7104,16 +6420,6 @@ fail:
|
|
7104
6420
|
}
|
7105
6421
|
|
7106
6422
|
|
7107
|
-
|
7108
|
-
/*
|
7109
|
-
Document-method: Gosu::SampleInstance.pause
|
7110
|
-
|
7111
|
-
call-seq:
|
7112
|
-
pause
|
7113
|
-
|
7114
|
-
An instance method.
|
7115
|
-
|
7116
|
-
*/
|
7117
6423
|
SWIGINTERN VALUE
|
7118
6424
|
_wrap_SampleInstance_pause(int argc, VALUE *argv, VALUE self) {
|
7119
6425
|
Gosu::SampleInstance *arg1 = (Gosu::SampleInstance *) 0 ;
|
@@ -7141,16 +6447,6 @@ fail:
|
|
7141
6447
|
}
|
7142
6448
|
|
7143
6449
|
|
7144
|
-
|
7145
|
-
/*
|
7146
|
-
Document-method: Gosu::SampleInstance.resume
|
7147
|
-
|
7148
|
-
call-seq:
|
7149
|
-
resume
|
7150
|
-
|
7151
|
-
An instance method.
|
7152
|
-
|
7153
|
-
*/
|
7154
6450
|
SWIGINTERN VALUE
|
7155
6451
|
_wrap_SampleInstance_resume(int argc, VALUE *argv, VALUE self) {
|
7156
6452
|
Gosu::SampleInstance *arg1 = (Gosu::SampleInstance *) 0 ;
|
@@ -7178,16 +6474,6 @@ fail:
|
|
7178
6474
|
}
|
7179
6475
|
|
7180
6476
|
|
7181
|
-
|
7182
|
-
/*
|
7183
|
-
Document-method: Gosu::SampleInstance.stop
|
7184
|
-
|
7185
|
-
call-seq:
|
7186
|
-
stop
|
7187
|
-
|
7188
|
-
An instance method.
|
7189
|
-
|
7190
|
-
*/
|
7191
6477
|
SWIGINTERN VALUE
|
7192
6478
|
_wrap_SampleInstance_stop(int argc, VALUE *argv, VALUE self) {
|
7193
6479
|
Gosu::SampleInstance *arg1 = (Gosu::SampleInstance *) 0 ;
|
@@ -7215,16 +6501,6 @@ fail:
|
|
7215
6501
|
}
|
7216
6502
|
|
7217
6503
|
|
7218
|
-
|
7219
|
-
/*
|
7220
|
-
Document-method: Gosu::SampleInstance.volume=
|
7221
|
-
|
7222
|
-
call-seq:
|
7223
|
-
volume=(double volume)
|
7224
|
-
|
7225
|
-
An instance method.
|
7226
|
-
|
7227
|
-
*/
|
7228
6504
|
SWIGINTERN VALUE
|
7229
6505
|
_wrap_SampleInstance_volumee___(int argc, VALUE *argv, VALUE self) {
|
7230
6506
|
Gosu::SampleInstance *arg1 = (Gosu::SampleInstance *) 0 ;
|
@@ -7260,16 +6536,6 @@ fail:
|
|
7260
6536
|
}
|
7261
6537
|
|
7262
6538
|
|
7263
|
-
|
7264
|
-
/*
|
7265
|
-
Document-method: Gosu::SampleInstance.pan=
|
7266
|
-
|
7267
|
-
call-seq:
|
7268
|
-
pan=(double pan)
|
7269
|
-
|
7270
|
-
An instance method.
|
7271
|
-
|
7272
|
-
*/
|
7273
6539
|
SWIGINTERN VALUE
|
7274
6540
|
_wrap_SampleInstance_pane___(int argc, VALUE *argv, VALUE self) {
|
7275
6541
|
Gosu::SampleInstance *arg1 = (Gosu::SampleInstance *) 0 ;
|
@@ -7305,16 +6571,6 @@ fail:
|
|
7305
6571
|
}
|
7306
6572
|
|
7307
6573
|
|
7308
|
-
|
7309
|
-
/*
|
7310
|
-
Document-method: Gosu::SampleInstance.speed=
|
7311
|
-
|
7312
|
-
call-seq:
|
7313
|
-
speed=(double speed)
|
7314
|
-
|
7315
|
-
An instance method.
|
7316
|
-
|
7317
|
-
*/
|
7318
6574
|
SWIGINTERN VALUE
|
7319
6575
|
_wrap_SampleInstance_speede___(int argc, VALUE *argv, VALUE self) {
|
7320
6576
|
Gosu::SampleInstance *arg1 = (Gosu::SampleInstance *) 0 ;
|
@@ -7356,14 +6612,6 @@ free_Gosu_SampleInstance(Gosu::SampleInstance *arg1) {
|
|
7356
6612
|
delete arg1;
|
7357
6613
|
}
|
7358
6614
|
|
7359
|
-
|
7360
|
-
/*
|
7361
|
-
Document-class: Gosu::Sample
|
7362
|
-
|
7363
|
-
Proxy of C++ Gosu::Sample class
|
7364
|
-
|
7365
|
-
|
7366
|
-
*/
|
7367
6615
|
swig_class SwigClassSample;
|
7368
6616
|
|
7369
6617
|
SWIGINTERN void
|
@@ -7372,16 +6620,6 @@ free_Gosu_Sample(Gosu::Sample *arg1) {
|
|
7372
6620
|
delete arg1;
|
7373
6621
|
}
|
7374
6622
|
|
7375
|
-
|
7376
|
-
/*
|
7377
|
-
Document-method: Gosu::Sample.play
|
7378
|
-
|
7379
|
-
call-seq:
|
7380
|
-
play(double volume=1, double speed=1, bool looping=false) -> SampleInstance
|
7381
|
-
|
7382
|
-
An instance method.
|
7383
|
-
|
7384
|
-
*/
|
7385
6623
|
SWIGINTERN VALUE
|
7386
6624
|
_wrap_Sample_play(int argc, VALUE *argv, VALUE self) {
|
7387
6625
|
Gosu::Sample *arg1 = (Gosu::Sample *) 0 ;
|
@@ -7442,16 +6680,6 @@ fail:
|
|
7442
6680
|
}
|
7443
6681
|
|
7444
6682
|
|
7445
|
-
|
7446
|
-
/*
|
7447
|
-
Document-method: Gosu::Sample.play_pan
|
7448
|
-
|
7449
|
-
call-seq:
|
7450
|
-
play_pan(double pan, double volume=1, double speed=1, bool looping=false) -> SampleInstance
|
7451
|
-
|
7452
|
-
An instance method.
|
7453
|
-
|
7454
|
-
*/
|
7455
6683
|
SWIGINTERN VALUE
|
7456
6684
|
_wrap_Sample_play_pan(int argc, VALUE *argv, VALUE self) {
|
7457
6685
|
Gosu::Sample *arg1 = (Gosu::Sample *) 0 ;
|
@@ -7537,16 +6765,6 @@ _wrap_Sample_allocate(VALUE self) {
|
|
7537
6765
|
}
|
7538
6766
|
|
7539
6767
|
|
7540
|
-
|
7541
|
-
/*
|
7542
|
-
Document-method: Gosu::Sample.new
|
7543
|
-
|
7544
|
-
call-seq:
|
7545
|
-
Sample.new(Window window, string filename)
|
7546
|
-
|
7547
|
-
Class constructor.
|
7548
|
-
|
7549
|
-
*/
|
7550
6768
|
SWIGINTERN VALUE
|
7551
6769
|
_wrap_new_Sample(int argc, VALUE *argv, VALUE self) {
|
7552
6770
|
Gosu::Window *arg1 = 0 ;
|
@@ -7596,52 +6814,14 @@ fail:
|
|
7596
6814
|
}
|
7597
6815
|
|
7598
6816
|
|
7599
|
-
|
7600
|
-
/*
|
7601
|
-
Document-class: Gosu::Song
|
7602
|
-
|
7603
|
-
Proxy of C++ Gosu::Song class
|
7604
|
-
|
7605
|
-
|
7606
|
-
*/
|
7607
6817
|
swig_class SwigClassSong;
|
7608
6818
|
|
7609
|
-
|
7610
|
-
/*
|
7611
|
-
Document-method: Gosu::Type.StStream
|
7612
|
-
|
7613
|
-
call-seq:
|
7614
|
-
StStream -> int
|
7615
|
-
|
7616
|
-
A class method.
|
7617
|
-
|
7618
|
-
*/
|
7619
|
-
|
7620
|
-
/*
|
7621
|
-
Document-method: Gosu::Type.StModule
|
7622
|
-
|
7623
|
-
call-seq:
|
7624
|
-
StModule -> int
|
7625
|
-
|
7626
|
-
A class method.
|
7627
|
-
|
7628
|
-
*/
|
7629
6819
|
SWIGINTERN void
|
7630
6820
|
free_Gosu_Song(Gosu::Song *arg1) {
|
7631
6821
|
SWIG_RubyRemoveTracking(arg1);
|
7632
6822
|
delete arg1;
|
7633
6823
|
}
|
7634
6824
|
|
7635
|
-
|
7636
|
-
/*
|
7637
|
-
Document-method: Gosu::Song.current_song
|
7638
|
-
|
7639
|
-
call-seq:
|
7640
|
-
current_song -> Song
|
7641
|
-
|
7642
|
-
A class method.
|
7643
|
-
|
7644
|
-
*/
|
7645
6825
|
SWIGINTERN VALUE
|
7646
6826
|
_wrap_Song_current_song(int argc, VALUE *argv, VALUE self) {
|
7647
6827
|
Gosu::Song *result = 0 ;
|
@@ -7659,21 +6839,11 @@ _wrap_Song_current_song(int argc, VALUE *argv, VALUE self) {
|
|
7659
6839
|
}
|
7660
6840
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Gosu__Song, 0 | 0 );
|
7661
6841
|
return vresult;
|
7662
|
-
fail:
|
7663
|
-
return Qnil;
|
7664
|
-
}
|
7665
|
-
|
7666
|
-
|
7667
|
-
|
7668
|
-
/*
|
7669
|
-
Document-method: Gosu::Song.play
|
7670
|
-
|
7671
|
-
call-seq:
|
7672
|
-
play(bool looping=false)
|
6842
|
+
fail:
|
6843
|
+
return Qnil;
|
6844
|
+
}
|
7673
6845
|
|
7674
|
-
An instance method.
|
7675
6846
|
|
7676
|
-
*/
|
7677
6847
|
SWIGINTERN VALUE
|
7678
6848
|
_wrap_Song_play(int argc, VALUE *argv, VALUE self) {
|
7679
6849
|
Gosu::Song *arg1 = (Gosu::Song *) 0 ;
|
@@ -7711,16 +6881,6 @@ fail:
|
|
7711
6881
|
}
|
7712
6882
|
|
7713
6883
|
|
7714
|
-
|
7715
|
-
/*
|
7716
|
-
Document-method: Gosu::Song.pause
|
7717
|
-
|
7718
|
-
call-seq:
|
7719
|
-
pause
|
7720
|
-
|
7721
|
-
An instance method.
|
7722
|
-
|
7723
|
-
*/
|
7724
6884
|
SWIGINTERN VALUE
|
7725
6885
|
_wrap_Song_pause(int argc, VALUE *argv, VALUE self) {
|
7726
6886
|
Gosu::Song *arg1 = (Gosu::Song *) 0 ;
|
@@ -7748,16 +6908,6 @@ fail:
|
|
7748
6908
|
}
|
7749
6909
|
|
7750
6910
|
|
7751
|
-
|
7752
|
-
/*
|
7753
|
-
Document-method: Gosu::Song.paused?
|
7754
|
-
|
7755
|
-
call-seq:
|
7756
|
-
paused? -> bool
|
7757
|
-
|
7758
|
-
An instance method.
|
7759
|
-
|
7760
|
-
*/
|
7761
6911
|
SWIGINTERN VALUE
|
7762
6912
|
_wrap_Song_pausedq___(int argc, VALUE *argv, VALUE self) {
|
7763
6913
|
Gosu::Song *arg1 = (Gosu::Song *) 0 ;
|
@@ -7788,16 +6938,6 @@ fail:
|
|
7788
6938
|
}
|
7789
6939
|
|
7790
6940
|
|
7791
|
-
|
7792
|
-
/*
|
7793
|
-
Document-method: Gosu::Song.stop
|
7794
|
-
|
7795
|
-
call-seq:
|
7796
|
-
stop
|
7797
|
-
|
7798
|
-
An instance method.
|
7799
|
-
|
7800
|
-
*/
|
7801
6941
|
SWIGINTERN VALUE
|
7802
6942
|
_wrap_Song_stop(int argc, VALUE *argv, VALUE self) {
|
7803
6943
|
Gosu::Song *arg1 = (Gosu::Song *) 0 ;
|
@@ -7825,16 +6965,6 @@ fail:
|
|
7825
6965
|
}
|
7826
6966
|
|
7827
6967
|
|
7828
|
-
|
7829
|
-
/*
|
7830
|
-
Document-method: Gosu::Song.playing?
|
7831
|
-
|
7832
|
-
call-seq:
|
7833
|
-
playing? -> bool
|
7834
|
-
|
7835
|
-
An instance method.
|
7836
|
-
|
7837
|
-
*/
|
7838
6968
|
SWIGINTERN VALUE
|
7839
6969
|
_wrap_Song_playingq___(int argc, VALUE *argv, VALUE self) {
|
7840
6970
|
Gosu::Song *arg1 = (Gosu::Song *) 0 ;
|
@@ -7865,16 +6995,6 @@ fail:
|
|
7865
6995
|
}
|
7866
6996
|
|
7867
6997
|
|
7868
|
-
|
7869
|
-
/*
|
7870
|
-
Document-method: Gosu::Song.volume
|
7871
|
-
|
7872
|
-
call-seq:
|
7873
|
-
volume -> double
|
7874
|
-
|
7875
|
-
An instance method.
|
7876
|
-
|
7877
|
-
*/
|
7878
6998
|
SWIGINTERN VALUE
|
7879
6999
|
_wrap_Song_volume(int argc, VALUE *argv, VALUE self) {
|
7880
7000
|
Gosu::Song *arg1 = (Gosu::Song *) 0 ;
|
@@ -7905,16 +7025,6 @@ fail:
|
|
7905
7025
|
}
|
7906
7026
|
|
7907
7027
|
|
7908
|
-
|
7909
|
-
/*
|
7910
|
-
Document-method: Gosu::Song.volume=
|
7911
|
-
|
7912
|
-
call-seq:
|
7913
|
-
volume=(double volume)
|
7914
|
-
|
7915
|
-
An instance method.
|
7916
|
-
|
7917
|
-
*/
|
7918
7028
|
SWIGINTERN VALUE
|
7919
7029
|
_wrap_Song_volumee___(int argc, VALUE *argv, VALUE self) {
|
7920
7030
|
Gosu::Song *arg1 = (Gosu::Song *) 0 ;
|
@@ -7967,16 +7077,6 @@ _wrap_Song_allocate(VALUE self) {
|
|
7967
7077
|
}
|
7968
7078
|
|
7969
7079
|
|
7970
|
-
|
7971
|
-
/*
|
7972
|
-
Document-method: Gosu::Song.new
|
7973
|
-
|
7974
|
-
call-seq:
|
7975
|
-
Song.new(Window window, string filename)
|
7976
|
-
|
7977
|
-
Class constructor.
|
7978
|
-
|
7979
|
-
*/
|
7980
7080
|
SWIGINTERN VALUE
|
7981
7081
|
_wrap_new_Song(int argc, VALUE *argv, VALUE self) {
|
7982
7082
|
Gosu::Window *arg1 = 0 ;
|
@@ -8026,14 +7126,6 @@ fail:
|
|
8026
7126
|
}
|
8027
7127
|
|
8028
7128
|
|
8029
|
-
|
8030
|
-
/*
|
8031
|
-
Document-class: Gosu::TextInput
|
8032
|
-
|
8033
|
-
Proxy of C++ Gosu::TextInput class
|
8034
|
-
|
8035
|
-
|
8036
|
-
*/
|
8037
7129
|
swig_class SwigClassTextInput;
|
8038
7130
|
|
8039
7131
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
@@ -8053,16 +7145,6 @@ _wrap_TextInput_allocate(VALUE self) {
|
|
8053
7145
|
}
|
8054
7146
|
|
8055
7147
|
|
8056
|
-
|
8057
|
-
/*
|
8058
|
-
Document-method: Gosu::TextInput.new
|
8059
|
-
|
8060
|
-
call-seq:
|
8061
|
-
TextInput.new
|
8062
|
-
|
8063
|
-
Class constructor.
|
8064
|
-
|
8065
|
-
*/
|
8066
7148
|
SWIGINTERN VALUE
|
8067
7149
|
_wrap_new_TextInput(int argc, VALUE *argv, VALUE self) {
|
8068
7150
|
const char *classname SWIGUNUSED = "Gosu::TextInput";
|
@@ -8092,16 +7174,6 @@ free_Gosu_TextInput(Gosu::TextInput *arg1) {
|
|
8092
7174
|
delete arg1;
|
8093
7175
|
}
|
8094
7176
|
|
8095
|
-
|
8096
|
-
/*
|
8097
|
-
Document-method: Gosu::TextInput.text
|
8098
|
-
|
8099
|
-
call-seq:
|
8100
|
-
text -> std::wstring
|
8101
|
-
|
8102
|
-
An instance method.
|
8103
|
-
|
8104
|
-
*/
|
8105
7177
|
SWIGINTERN VALUE
|
8106
7178
|
_wrap_TextInput_text(int argc, VALUE *argv, VALUE self) {
|
8107
7179
|
Gosu::TextInput *arg1 = (Gosu::TextInput *) 0 ;
|
@@ -8134,16 +7206,6 @@ fail:
|
|
8134
7206
|
}
|
8135
7207
|
|
8136
7208
|
|
8137
|
-
|
8138
|
-
/*
|
8139
|
-
Document-method: Gosu::TextInput.text=
|
8140
|
-
|
8141
|
-
call-seq:
|
8142
|
-
text=(std::wstring text)
|
8143
|
-
|
8144
|
-
An instance method.
|
8145
|
-
|
8146
|
-
*/
|
8147
7209
|
SWIGINTERN VALUE
|
8148
7210
|
_wrap_TextInput_texte___(int argc, VALUE *argv, VALUE self) {
|
8149
7211
|
Gosu::TextInput *arg1 = (Gosu::TextInput *) 0 ;
|
@@ -8178,16 +7240,6 @@ fail:
|
|
8178
7240
|
}
|
8179
7241
|
|
8180
7242
|
|
8181
|
-
|
8182
|
-
/*
|
8183
|
-
Document-method: Gosu::TextInput.caret_pos
|
8184
|
-
|
8185
|
-
call-seq:
|
8186
|
-
caret_pos -> unsigned int
|
8187
|
-
|
8188
|
-
An instance method.
|
8189
|
-
|
8190
|
-
*/
|
8191
7243
|
SWIGINTERN VALUE
|
8192
7244
|
_wrap_TextInput_caret_pos(int argc, VALUE *argv, VALUE self) {
|
8193
7245
|
Gosu::TextInput *arg1 = (Gosu::TextInput *) 0 ;
|
@@ -8218,16 +7270,6 @@ fail:
|
|
8218
7270
|
}
|
8219
7271
|
|
8220
7272
|
|
8221
|
-
|
8222
|
-
/*
|
8223
|
-
Document-method: Gosu::TextInput.selection_start
|
8224
|
-
|
8225
|
-
call-seq:
|
8226
|
-
selection_start -> unsigned int
|
8227
|
-
|
8228
|
-
An instance method.
|
8229
|
-
|
8230
|
-
*/
|
8231
7273
|
SWIGINTERN VALUE
|
8232
7274
|
_wrap_TextInput_selection_start(int argc, VALUE *argv, VALUE self) {
|
8233
7275
|
Gosu::TextInput *arg1 = (Gosu::TextInput *) 0 ;
|
@@ -8258,14 +7300,6 @@ fail:
|
|
8258
7300
|
}
|
8259
7301
|
|
8260
7302
|
|
8261
|
-
|
8262
|
-
/*
|
8263
|
-
Document-class: Gosu::Window
|
8264
|
-
|
8265
|
-
Proxy of C++ Gosu::Window class
|
8266
|
-
|
8267
|
-
|
8268
|
-
*/
|
8269
7303
|
swig_class SwigClassWindow;
|
8270
7304
|
|
8271
7305
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
@@ -8285,17 +7319,6 @@ _wrap_Window_allocate(VALUE self) {
|
|
8285
7319
|
}
|
8286
7320
|
|
8287
7321
|
|
8288
|
-
|
8289
|
-
/*
|
8290
|
-
Document-method: Gosu::Window.new
|
8291
|
-
|
8292
|
-
call-seq:
|
8293
|
-
Window.new(unsigned int width, unsigned int height, bool fullscreen,
|
8294
|
-
double updateInterval=16.666666)
|
8295
|
-
|
8296
|
-
Class constructor.
|
8297
|
-
|
8298
|
-
*/
|
8299
7322
|
SWIGINTERN VALUE
|
8300
7323
|
_wrap_new_Window(int argc, VALUE *argv, VALUE self) {
|
8301
7324
|
VALUE arg1 = (VALUE) 0 ;
|
@@ -8367,16 +7390,6 @@ free_Gosu_Window(Gosu::Window *arg1) {
|
|
8367
7390
|
delete arg1;
|
8368
7391
|
}
|
8369
7392
|
|
8370
|
-
|
8371
|
-
/*
|
8372
|
-
Document-method: Gosu::Window.caption
|
8373
|
-
|
8374
|
-
call-seq:
|
8375
|
-
caption -> std::wstring
|
8376
|
-
|
8377
|
-
An instance method.
|
8378
|
-
|
8379
|
-
*/
|
8380
7393
|
SWIGINTERN VALUE
|
8381
7394
|
_wrap_Window_caption(int argc, VALUE *argv, VALUE self) {
|
8382
7395
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -8409,16 +7422,6 @@ fail:
|
|
8409
7422
|
}
|
8410
7423
|
|
8411
7424
|
|
8412
|
-
|
8413
|
-
/*
|
8414
|
-
Document-method: Gosu::Window.caption=
|
8415
|
-
|
8416
|
-
call-seq:
|
8417
|
-
caption=(std::wstring caption)
|
8418
|
-
|
8419
|
-
An instance method.
|
8420
|
-
|
8421
|
-
*/
|
8422
7425
|
SWIGINTERN VALUE
|
8423
7426
|
_wrap_Window_captione___(int argc, VALUE *argv, VALUE self) {
|
8424
7427
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -8453,16 +7456,6 @@ fail:
|
|
8453
7456
|
}
|
8454
7457
|
|
8455
7458
|
|
8456
|
-
|
8457
|
-
/*
|
8458
|
-
Document-method: Gosu::Window.update_interval
|
8459
|
-
|
8460
|
-
call-seq:
|
8461
|
-
update_interval -> double
|
8462
|
-
|
8463
|
-
An instance method.
|
8464
|
-
|
8465
|
-
*/
|
8466
7459
|
SWIGINTERN VALUE
|
8467
7460
|
_wrap_Window_update_interval(int argc, VALUE *argv, VALUE self) {
|
8468
7461
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -8493,16 +7486,6 @@ fail:
|
|
8493
7486
|
}
|
8494
7487
|
|
8495
7488
|
|
8496
|
-
|
8497
|
-
/*
|
8498
|
-
Document-method: Gosu::Window.show
|
8499
|
-
|
8500
|
-
call-seq:
|
8501
|
-
show
|
8502
|
-
|
8503
|
-
An instance method.
|
8504
|
-
|
8505
|
-
*/
|
8506
7489
|
SWIGINTERN VALUE
|
8507
7490
|
_wrap_Window_show(int argc, VALUE *argv, VALUE self) {
|
8508
7491
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -8530,16 +7513,6 @@ fail:
|
|
8530
7513
|
}
|
8531
7514
|
|
8532
7515
|
|
8533
|
-
|
8534
|
-
/*
|
8535
|
-
Document-method: Gosu::Window.close
|
8536
|
-
|
8537
|
-
call-seq:
|
8538
|
-
close
|
8539
|
-
|
8540
|
-
An instance method.
|
8541
|
-
|
8542
|
-
*/
|
8543
7516
|
SWIGINTERN VALUE
|
8544
7517
|
_wrap_Window_close(int argc, VALUE *argv, VALUE self) {
|
8545
7518
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -8567,16 +7540,6 @@ fail:
|
|
8567
7540
|
}
|
8568
7541
|
|
8569
7542
|
|
8570
|
-
|
8571
|
-
/*
|
8572
|
-
Document-method: Gosu::Window.update
|
8573
|
-
|
8574
|
-
call-seq:
|
8575
|
-
update
|
8576
|
-
|
8577
|
-
An instance method.
|
8578
|
-
|
8579
|
-
*/
|
8580
7543
|
SWIGINTERN VALUE
|
8581
7544
|
_wrap_Window_update(int argc, VALUE *argv, VALUE self) {
|
8582
7545
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -8617,16 +7580,6 @@ fail:
|
|
8617
7580
|
}
|
8618
7581
|
|
8619
7582
|
|
8620
|
-
|
8621
|
-
/*
|
8622
|
-
Document-method: Gosu::Window.draw
|
8623
|
-
|
8624
|
-
call-seq:
|
8625
|
-
draw
|
8626
|
-
|
8627
|
-
An instance method.
|
8628
|
-
|
8629
|
-
*/
|
8630
7583
|
SWIGINTERN VALUE
|
8631
7584
|
_wrap_Window_draw(int argc, VALUE *argv, VALUE self) {
|
8632
7585
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -8667,16 +7620,6 @@ fail:
|
|
8667
7620
|
}
|
8668
7621
|
|
8669
7622
|
|
8670
|
-
|
8671
|
-
/*
|
8672
|
-
Document-method: Gosu::Window.needs_redraw?
|
8673
|
-
|
8674
|
-
call-seq:
|
8675
|
-
needs_redraw? -> bool
|
8676
|
-
|
8677
|
-
An instance method.
|
8678
|
-
|
8679
|
-
*/
|
8680
7623
|
SWIGINTERN VALUE
|
8681
7624
|
_wrap_Window_needs_redrawq___(int argc, VALUE *argv, VALUE self) {
|
8682
7625
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -8720,16 +7663,6 @@ fail:
|
|
8720
7663
|
}
|
8721
7664
|
|
8722
7665
|
|
8723
|
-
|
8724
|
-
/*
|
8725
|
-
Document-method: Gosu::Window.button_down
|
8726
|
-
|
8727
|
-
call-seq:
|
8728
|
-
button_down(Gosu::Button arg0)
|
8729
|
-
|
8730
|
-
An instance method.
|
8731
|
-
|
8732
|
-
*/
|
8733
7666
|
SWIGINTERN VALUE
|
8734
7667
|
_wrap_Window_button_down(int argc, VALUE *argv, VALUE self) {
|
8735
7668
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -8777,16 +7710,6 @@ fail:
|
|
8777
7710
|
}
|
8778
7711
|
|
8779
7712
|
|
8780
|
-
|
8781
|
-
/*
|
8782
|
-
Document-method: Gosu::Window.button_up
|
8783
|
-
|
8784
|
-
call-seq:
|
8785
|
-
button_up(Gosu::Button arg0)
|
8786
|
-
|
8787
|
-
An instance method.
|
8788
|
-
|
8789
|
-
*/
|
8790
7713
|
SWIGINTERN VALUE
|
8791
7714
|
_wrap_Window_button_up(int argc, VALUE *argv, VALUE self) {
|
8792
7715
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -8834,17 +7757,6 @@ fail:
|
|
8834
7757
|
}
|
8835
7758
|
|
8836
7759
|
|
8837
|
-
|
8838
|
-
/*
|
8839
|
-
Document-method: Gosu::Window.draw_line
|
8840
|
-
|
8841
|
-
call-seq:
|
8842
|
-
draw_line(double x1, double y1, Color c1, double x2, double y2,
|
8843
|
-
Color c2, ZPos z=0, mode=AmDefault)
|
8844
|
-
|
8845
|
-
An instance method.
|
8846
|
-
|
8847
|
-
*/
|
8848
7760
|
SWIGINTERN VALUE
|
8849
7761
|
_wrap_Window_draw_line(int argc, VALUE *argv, VALUE self) {
|
8850
7762
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -8950,18 +7862,6 @@ fail:
|
|
8950
7862
|
}
|
8951
7863
|
|
8952
7864
|
|
8953
|
-
|
8954
|
-
/*
|
8955
|
-
Document-method: Gosu::Window.draw_triangle
|
8956
|
-
|
8957
|
-
call-seq:
|
8958
|
-
draw_triangle(double x1, double y1, Color c1, double x2, double y2,
|
8959
|
-
Color c2, double x3, double y3, Color c3,
|
8960
|
-
ZPos z=0, mode=AmDefault)
|
8961
|
-
|
8962
|
-
An instance method.
|
8963
|
-
|
8964
|
-
*/
|
8965
7865
|
SWIGINTERN VALUE
|
8966
7866
|
_wrap_Window_draw_triangle(int argc, VALUE *argv, VALUE self) {
|
8967
7867
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -9095,18 +7995,6 @@ fail:
|
|
9095
7995
|
}
|
9096
7996
|
|
9097
7997
|
|
9098
|
-
|
9099
|
-
/*
|
9100
|
-
Document-method: Gosu::Window.draw_quad
|
9101
|
-
|
9102
|
-
call-seq:
|
9103
|
-
draw_quad(double x1, double y1, Color c1, double x2, double y2,
|
9104
|
-
Color c2, double x3, double y3, Color c3,
|
9105
|
-
double x4, double y4, Color c4, ZPos z=0, mode=AmDefault)
|
9106
|
-
|
9107
|
-
An instance method.
|
9108
|
-
|
9109
|
-
*/
|
9110
7998
|
SWIGINTERN VALUE
|
9111
7999
|
_wrap_Window_draw_quad(int argc, VALUE *argv, VALUE self) {
|
9112
8000
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -9268,16 +8156,6 @@ fail:
|
|
9268
8156
|
}
|
9269
8157
|
|
9270
8158
|
|
9271
|
-
|
9272
|
-
/*
|
9273
|
-
Document-method: Gosu::Window.button_down?
|
9274
|
-
|
9275
|
-
call-seq:
|
9276
|
-
button_down?(Gosu::Button btn) -> bool
|
9277
|
-
|
9278
|
-
An instance method.
|
9279
|
-
|
9280
|
-
*/
|
9281
8159
|
SWIGINTERN VALUE
|
9282
8160
|
_wrap_Window_button_downq___(int argc, VALUE *argv, VALUE self) {
|
9283
8161
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -9315,16 +8193,6 @@ fail:
|
|
9315
8193
|
}
|
9316
8194
|
|
9317
8195
|
|
9318
|
-
|
9319
|
-
/*
|
9320
|
-
Document-method: Gosu::Window.char_to_button_id
|
9321
|
-
|
9322
|
-
call-seq:
|
9323
|
-
char_to_button_id(wchar_t ch) -> Gosu::Button
|
9324
|
-
|
9325
|
-
A class method.
|
9326
|
-
|
9327
|
-
*/
|
9328
8196
|
SWIGINTERN VALUE
|
9329
8197
|
_wrap_Window_char_to_button_id(int argc, VALUE *argv, VALUE self) {
|
9330
8198
|
wchar_t arg1 ;
|
@@ -9357,16 +8225,6 @@ fail:
|
|
9357
8225
|
}
|
9358
8226
|
|
9359
8227
|
|
9360
|
-
|
9361
|
-
/*
|
9362
|
-
Document-method: Gosu::Window.button_id_to_char
|
9363
|
-
|
9364
|
-
call-seq:
|
9365
|
-
button_id_to_char(Gosu::Button btn) -> wchar_t
|
9366
|
-
|
9367
|
-
A class method.
|
9368
|
-
|
9369
|
-
*/
|
9370
8228
|
SWIGINTERN VALUE
|
9371
8229
|
_wrap_Window_button_id_to_char(int argc, VALUE *argv, VALUE self) {
|
9372
8230
|
Gosu::Button arg1 ;
|
@@ -9401,16 +8259,6 @@ fail:
|
|
9401
8259
|
}
|
9402
8260
|
|
9403
8261
|
|
9404
|
-
|
9405
|
-
/*
|
9406
|
-
Document-method: Gosu::Window.text_input
|
9407
|
-
|
9408
|
-
call-seq:
|
9409
|
-
text_input -> TextInput
|
9410
|
-
|
9411
|
-
An instance method.
|
9412
|
-
|
9413
|
-
*/
|
9414
8262
|
SWIGINTERN VALUE
|
9415
8263
|
_wrap_Window_text_input(int argc, VALUE *argv, VALUE self) {
|
9416
8264
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -9441,16 +8289,6 @@ fail:
|
|
9441
8289
|
}
|
9442
8290
|
|
9443
8291
|
|
9444
|
-
|
9445
|
-
/*
|
9446
|
-
Document-method: Gosu::Window.text_input=
|
9447
|
-
|
9448
|
-
call-seq:
|
9449
|
-
text_input=(TextInput ti)
|
9450
|
-
|
9451
|
-
An instance method.
|
9452
|
-
|
9453
|
-
*/
|
9454
8292
|
SWIGINTERN VALUE
|
9455
8293
|
_wrap_Window_text_inpute___(int argc, VALUE *argv, VALUE self) {
|
9456
8294
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -9486,16 +8324,6 @@ fail:
|
|
9486
8324
|
}
|
9487
8325
|
|
9488
8326
|
|
9489
|
-
|
9490
|
-
/*
|
9491
|
-
Document-method: Gosu::Window.mouse_x
|
9492
|
-
|
9493
|
-
call-seq:
|
9494
|
-
mouse_x -> double
|
9495
|
-
|
9496
|
-
An instance method.
|
9497
|
-
|
9498
|
-
*/
|
9499
8327
|
SWIGINTERN VALUE
|
9500
8328
|
_wrap_Window_mouse_x(int argc, VALUE *argv, VALUE self) {
|
9501
8329
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -9526,16 +8354,6 @@ fail:
|
|
9526
8354
|
}
|
9527
8355
|
|
9528
8356
|
|
9529
|
-
|
9530
|
-
/*
|
9531
|
-
Document-method: Gosu::Window.mouse_y
|
9532
|
-
|
9533
|
-
call-seq:
|
9534
|
-
mouse_y -> double
|
9535
|
-
|
9536
|
-
An instance method.
|
9537
|
-
|
9538
|
-
*/
|
9539
8357
|
SWIGINTERN VALUE
|
9540
8358
|
_wrap_Window_mouse_y(int argc, VALUE *argv, VALUE self) {
|
9541
8359
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -9566,16 +8384,6 @@ fail:
|
|
9566
8384
|
}
|
9567
8385
|
|
9568
8386
|
|
9569
|
-
|
9570
|
-
/*
|
9571
|
-
Document-method: Gosu::Window.set_mouse_position
|
9572
|
-
|
9573
|
-
call-seq:
|
9574
|
-
set_mouse_position(double x, double y)
|
9575
|
-
|
9576
|
-
An instance method.
|
9577
|
-
|
9578
|
-
*/
|
9579
8387
|
SWIGINTERN VALUE
|
9580
8388
|
_wrap_Window_set_mouse_position(int argc, VALUE *argv, VALUE self) {
|
9581
8389
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -9619,16 +8427,6 @@ fail:
|
|
9619
8427
|
}
|
9620
8428
|
|
9621
8429
|
|
9622
|
-
|
9623
|
-
/*
|
9624
|
-
Document-method: Gosu::Window.mouse_x=
|
9625
|
-
|
9626
|
-
call-seq:
|
9627
|
-
mouse_x=(double x)
|
9628
|
-
|
9629
|
-
An instance method.
|
9630
|
-
|
9631
|
-
*/
|
9632
8430
|
SWIGINTERN VALUE
|
9633
8431
|
_wrap_Window_mouse_xe___(int argc, VALUE *argv, VALUE self) {
|
9634
8432
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -9664,16 +8462,6 @@ fail:
|
|
9664
8462
|
}
|
9665
8463
|
|
9666
8464
|
|
9667
|
-
|
9668
|
-
/*
|
9669
|
-
Document-method: Gosu::Window.mouse_y=
|
9670
|
-
|
9671
|
-
call-seq:
|
9672
|
-
mouse_y=(double y)
|
9673
|
-
|
9674
|
-
An instance method.
|
9675
|
-
|
9676
|
-
*/
|
9677
8465
|
SWIGINTERN VALUE
|
9678
8466
|
_wrap_Window_mouse_ye___(int argc, VALUE *argv, VALUE self) {
|
9679
8467
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -9709,16 +8497,6 @@ fail:
|
|
9709
8497
|
}
|
9710
8498
|
|
9711
8499
|
|
9712
|
-
|
9713
|
-
/*
|
9714
|
-
Document-method: Gosu::Window.width
|
9715
|
-
|
9716
|
-
call-seq:
|
9717
|
-
width -> int
|
9718
|
-
|
9719
|
-
An instance method.
|
9720
|
-
|
9721
|
-
*/
|
9722
8500
|
SWIGINTERN VALUE
|
9723
8501
|
_wrap_Window_width(int argc, VALUE *argv, VALUE self) {
|
9724
8502
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -9749,16 +8527,6 @@ fail:
|
|
9749
8527
|
}
|
9750
8528
|
|
9751
8529
|
|
9752
|
-
|
9753
|
-
/*
|
9754
|
-
Document-method: Gosu::Window.height
|
9755
|
-
|
9756
|
-
call-seq:
|
9757
|
-
height -> int
|
9758
|
-
|
9759
|
-
An instance method.
|
9760
|
-
|
9761
|
-
*/
|
9762
8530
|
SWIGINTERN VALUE
|
9763
8531
|
_wrap_Window_height(int argc, VALUE *argv, VALUE self) {
|
9764
8532
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -9789,16 +8557,6 @@ fail:
|
|
9789
8557
|
}
|
9790
8558
|
|
9791
8559
|
|
9792
|
-
|
9793
|
-
/*
|
9794
|
-
Document-method: Gosu::Window.gl
|
9795
|
-
|
9796
|
-
call-seq:
|
9797
|
-
gl
|
9798
|
-
|
9799
|
-
An instance method.
|
9800
|
-
|
9801
|
-
*/
|
9802
8560
|
SWIGINTERN VALUE
|
9803
8561
|
_wrap_Window_gl(int argc, VALUE *argv, VALUE self) {
|
9804
8562
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -9826,16 +8584,6 @@ fail:
|
|
9826
8584
|
}
|
9827
8585
|
|
9828
8586
|
|
9829
|
-
|
9830
|
-
/*
|
9831
|
-
Document-method: Gosu::Window.clip_to
|
9832
|
-
|
9833
|
-
call-seq:
|
9834
|
-
clip_to(int x, int y, unsigned int width, unsigned int height)
|
9835
|
-
|
9836
|
-
An instance method.
|
9837
|
-
|
9838
|
-
*/
|
9839
8587
|
SWIGINTERN VALUE
|
9840
8588
|
_wrap_Window_clip_to(int argc, VALUE *argv, VALUE self) {
|
9841
8589
|
Gosu::Window *arg1 = (Gosu::Window *) 0 ;
|
@@ -10245,8 +8993,14 @@ SWIGEXPORT void Init_gosu(void) {
|
|
10245
8993
|
}
|
10246
8994
|
|
10247
8995
|
SWIG_RubyInitializeTrackings();
|
8996
|
+
rb_define_const(mGosu, "MAJOR_VERSION", SWIG_From_int(static_cast< int >(0)));
|
8997
|
+
rb_define_const(mGosu, "MINOR_VERSION", SWIG_From_int(static_cast< int >(7)));
|
8998
|
+
rb_define_const(mGosu, "POINT_VERSION", SWIG_From_int(static_cast< int >(14)));
|
8999
|
+
rb_define_const(mGosu, "VERSION", SWIG_FromCharPtr("0.7.14"));
|
10248
9000
|
rb_define_module_function(mGosu, "milliseconds", VALUEFUNC(_wrap_milliseconds), -1);
|
10249
9001
|
rb_define_module_function(mGosu, "random", VALUEFUNC(_wrap_random), -1);
|
9002
|
+
rb_define_module_function(mGosu, "gosu_to_radian_scale", VALUEFUNC(_wrap_gosu_to_radian_scale), -1);
|
9003
|
+
rb_define_module_function(mGosu, "radians_scale_to_gosu", VALUEFUNC(_wrap_radians_scale_to_gosu), -1);
|
10250
9004
|
rb_define_module_function(mGosu, "offset_x", VALUEFUNC(_wrap_offset_x), -1);
|
10251
9005
|
rb_define_module_function(mGosu, "offset_y", VALUEFUNC(_wrap_offset_y), -1);
|
10252
9006
|
rb_define_module_function(mGosu, "angle", VALUEFUNC(_wrap_angle), -1);
|
@@ -10301,7 +9055,9 @@ SWIGEXPORT void Init_gosu(void) {
|
|
10301
9055
|
SWIG_TypeClientData(SWIGTYPE_p_Gosu__Font, (void *) &SwigClassFont);
|
10302
9056
|
rb_define_alloc_func(SwigClassFont.klass, _wrap_Font_allocate);
|
10303
9057
|
rb_define_method(SwigClassFont.klass, "initialize", VALUEFUNC(_wrap_new_Font), -1);
|
9058
|
+
rb_define_method(SwigClassFont.klass, "name", VALUEFUNC(_wrap_Font_name), -1);
|
10304
9059
|
rb_define_method(SwigClassFont.klass, "height", VALUEFUNC(_wrap_Font_height), -1);
|
9060
|
+
rb_define_method(SwigClassFont.klass, "flags", VALUEFUNC(_wrap_Font_flags), -1);
|
10305
9061
|
rb_define_method(SwigClassFont.klass, "text_width", VALUEFUNC(_wrap_Font_text_width), -1);
|
10306
9062
|
rb_define_method(SwigClassFont.klass, "draw", VALUEFUNC(_wrap_Font_draw), -1);
|
10307
9063
|
rb_define_method(SwigClassFont.klass, "draw_rel", VALUEFUNC(_wrap_Font_draw_rel), -1);
|
@@ -10524,7 +9280,10 @@ SWIGEXPORT void Init_gosu(void) {
|
|
10524
9280
|
rb_eval_string("class Gosu::Window; def button_id_to_char(id); self.class.button_id_to_char(id); end; def char_to_button_id(ch); self.class.char_to_button_id(ch); end; end");
|
10525
9281
|
|
10526
9282
|
// Extend Numeric with simple angle conversion methods.
|
10527
|
-
rb_eval_string("class ::Numeric;def
|
9283
|
+
rb_eval_string("class ::Numeric; def gosu_to_radian_scale; self*Math::PI/180.0; end; end");
|
9284
|
+
rb_eval_string("class ::Numeric; def radian_scale_to_gosu; self*180.0/Math::PI; end; end");
|
9285
|
+
rb_eval_string("class ::Numeric; def gosu_to_radians; (self-90)*Math::PI/180.0; end; end");
|
9286
|
+
rb_eval_string("class ::Numeric; def radians_to_gosu; self*180.0/Math::PI+90; end; end");
|
10528
9287
|
|
10529
9288
|
GosusDarkSide::oncePerTick = GosusDarkSide::yieldToOtherRubyThreads;
|
10530
9289
|
|