gosu 0.7.15-universal-darwin → 0.7.16-universal-darwin
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/ChipmunkIntegration.rb +7 -7
- data/examples/CptnRuby.rb +5 -5
- data/examples/OpenGLIntegration.rb +6 -6
- data/examples/RMagickIntegration.rb +1 -1
- data/examples/TextInput.rb +7 -1
- data/examples/Tutorial.rb +5 -5
- data/lib/gosu.for_1_8.bundle +0 -0
- data/lib/gosu.for_1_9.bundle +0 -0
- data/lib/gosu.rb +6 -1
- data/lib/gosu/patches.rb +53 -0
- data/lib/hotgosu.rb +59 -0
- data/lib/hotgosu/color.rb +43 -0
- data/lib/hotgosu/constants.rb +143 -0
- data/lib/hotgosu/font.rb +26 -0
- data/lib/hotgosu/functions.rb +41 -0
- data/lib/hotgosu/image.rb +64 -0
- data/lib/hotgosu/sample.rb +15 -0
- data/lib/hotgosu/song.rb +25 -0
- data/lib/hotgosu/window.rb +146 -0
- data/{reference/rdoc/classes/Gosu.src/M000003.html → lib/hotgosu/window_primitives.rb} +0 -0
- data/reference/rdoc/classes/Gosu.html +23 -3
- data/reference/rdoc/classes/Gosu/Color.html +127 -29
- data/reference/rdoc/classes/Gosu/Font.html +31 -21
- data/reference/rdoc/classes/Gosu/GLTexInfo.html +3 -3
- data/reference/rdoc/classes/Gosu/Image.html +52 -37
- data/reference/rdoc/classes/Gosu/Sample.html +19 -13
- data/reference/rdoc/classes/Gosu/SampleInstance.html +29 -19
- data/reference/rdoc/classes/Gosu/Song.html +41 -27
- data/reference/rdoc/classes/Gosu/TextInput.html +42 -3
- data/reference/rdoc/classes/Gosu/Window.html +102 -69
- data/reference/rdoc/classes/Numeric.html +7 -3
- data/reference/rdoc/created.rid +1 -1
- data/reference/rdoc/files/COPYING_txt.html +3 -3
- data/reference/rdoc/files/README_txt.html +3 -3
- data/reference/rdoc/files/reference/Deployment on OS X_rdoc.html +4 -19
- data/reference/rdoc/files/reference/Deployment on Windows_rdoc.html +18 -31
- data/reference/rdoc/files/reference/Drawing with Colors_rdoc.html +3 -3
- data/reference/rdoc/files/reference/Order of Corners_rdoc.html +3 -3
- data/reference/rdoc/files/reference/Tileability_rdoc.html +3 -3
- data/reference/rdoc/files/reference/Z Ordering_rdoc.html +3 -3
- data/reference/rdoc/files/reference/gosu_rb.html +3 -3
- data/reference/rdoc/fr_method_index.html +49 -48
- data/reference/rdoc/index.html +1 -1
- metadata +14 -65
- data/reference/rdoc/classes/Gosu.src/M000004.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000005.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000006.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000007.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000008.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000009.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000010.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000011.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000012.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000016.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000017.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000018.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000019.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000029.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000030.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000031.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000032.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000033.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000020.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000021.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000022.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000023.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000024.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000025.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000026.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000027.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000028.html +0 -0
- data/reference/rdoc/classes/Gosu/Sample.src/M000013.html +0 -0
- data/reference/rdoc/classes/Gosu/Sample.src/M000014.html +0 -0
- data/reference/rdoc/classes/Gosu/Sample.src/M000015.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000051.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000052.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000053.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000054.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000055.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000056.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000057.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000058.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000059.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000060.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000061.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000062.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000034.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000035.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000036.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000037.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000038.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000039.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000040.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000041.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000042.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000043.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000044.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000045.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000046.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000047.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000048.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000049.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000050.html +0 -0
- data/reference/rdoc/classes/Numeric.src/M000001.html +0 -0
- data/reference/rdoc/classes/Numeric.src/M000002.html +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::Font</title><link type="text/css" media="screen"
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::Font</title><link type="text/css" media="screen" href="../.././rdoc-style.css" rel="stylesheet"/><script type="text/javascript">
|
2
2
|
// Allison template
|
3
3
|
// Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
|
4
4
|
|
@@ -344,46 +344,46 @@ Object
|
|
344
344
|
<div class="navigation top" id="methods"><h3>Methods</h3>
|
345
345
|
|
346
346
|
|
347
|
-
<a href='#
|
347
|
+
<a href='#M000032'>
|
348
348
|
draw<br/>
|
349
349
|
</a>
|
350
350
|
|
351
351
|
|
352
352
|
|
353
353
|
|
354
|
-
<a href='#
|
354
|
+
<a href='#M000033'>
|
355
355
|
draw_rel<br/>
|
356
356
|
</a>
|
357
357
|
|
358
358
|
|
359
359
|
|
360
360
|
|
361
|
-
<a href='#
|
361
|
+
<a href='#M000034'>
|
362
362
|
draw_rot<br/>
|
363
363
|
</a>
|
364
364
|
|
365
365
|
|
366
366
|
|
367
367
|
|
368
|
-
<a href='#
|
368
|
+
<a href='#M000030'>
|
369
369
|
new<br/>
|
370
370
|
</a>
|
371
371
|
|
372
372
|
|
373
373
|
|
374
374
|
|
375
|
-
<a href='#
|
375
|
+
<a href='#M000031'>
|
376
376
|
text_width<br/>
|
377
377
|
</a>
|
378
378
|
|
379
379
|
|
380
380
|
</div>
|
381
|
-
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link"
|
381
|
+
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a href="#" onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_class" onKeyUp="return filterList('class', this.value, event);"></input></form></div></div><div class="navigation darker index" id="file_wrapper"><div class="list_header"><h3>All files</h3></div><div class="list_header_link"><a href="#" onclick="toggle('file'); toggleText('file_link'); return false;" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_file" onKeyUp="return filterList('file', this.value, event);"></input></form></div></div><div class="navigation darker index" id="method_wrapper"><div class="list_header"><h3>All methods</h3></div><div class="list_header_link"><a href="#" onclick="toggle('method'); toggleText('method_link'); return false;" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_method" onKeyUp="return filterList('method', this.value, event);"></input></form></div></div></div><div id="content">
|
382
382
|
<div id="description"><p>
|
383
|
-
A font can be used to <a href="Font.html#
|
383
|
+
A font can be used to <a href="Font.html#M000032">draw</a> text on a <a
|
384
384
|
href="Window.html">Window</a> object very flexibly. Fonts are ideal for
|
385
385
|
small texts that change regularly. For large, static texts you should use
|
386
|
-
<a href="Image.html#
|
386
|
+
<a href="Image.html#M000026">Image#from_text</a>.
|
387
387
|
</p>
|
388
388
|
</div>
|
389
389
|
|
@@ -418,9 +418,9 @@ small texts that change regularly. For large, static texts you should use
|
|
418
418
|
<h1>Public Class Methods</h1>
|
419
419
|
|
420
420
|
|
421
|
-
<a class="small" name="
|
421
|
+
<a class="small" name="M000030"><br/></a>
|
422
422
|
<div class="method_block"><h3>
|
423
|
-
<a href='#
|
423
|
+
<a href='#M000030'>
|
424
424
|
|
425
425
|
|
426
426
|
new
|
@@ -439,15 +439,17 @@ new
|
|
439
439
|
</td></tr>
|
440
440
|
</table>
|
441
441
|
|
442
|
+
<p class="source_link" id="M000030-show-link"><a href="#" onclick="toggle('M000030-source'); toggleText('M000030-link'); return false;" id="M000030-link">Show source...</a></p><div class="source" id="M000030-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 172</span>
|
443
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">font_name</span>, <span class="ruby-identifier">height</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
442
444
|
</div>
|
443
445
|
|
444
446
|
|
445
447
|
<h1>Public Instance Methods</h1>
|
446
448
|
|
447
449
|
|
448
|
-
<a class="small" name="
|
450
|
+
<a class="small" name="M000032"><br/></a>
|
449
451
|
<div class="method_block"><h3>
|
450
|
-
<a href='#
|
452
|
+
<a href='#M000032'>
|
451
453
|
|
452
454
|
|
453
455
|
draw
|
@@ -463,11 +465,13 @@ Draws text so the top left corner of the text is at (x; y).
|
|
463
465
|
Characters are created internally as needed.
|
464
466
|
</p>
|
465
467
|
|
468
|
+
<p class="source_link" id="M000032-show-link"><a href="#" onclick="toggle('M000032-source'); toggleText('M000032-link'); return false;" id="M000032-link">Show source...</a></p><div class="source" id="M000032-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 180</span>
|
469
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>, <span class="ruby-identifier">z</span>, <span class="ruby-identifier">factor_x</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">factor_y</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">color</span>=<span class="ruby-value">0xffffffff</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
466
470
|
</div>
|
467
471
|
|
468
|
-
<a class="small" name="
|
472
|
+
<a class="small" name="M000033"><br/></a>
|
469
473
|
<div class="method_block"><h3>
|
470
|
-
<a href='#
|
474
|
+
<a href='#M000033'>
|
471
475
|
|
472
476
|
|
473
477
|
draw_rel
|
@@ -491,11 +495,13 @@ possible values.
|
|
491
495
|
</td></tr>
|
492
496
|
</table>
|
493
497
|
|
498
|
+
<p class="source_link" id="M000033-show-link"><a href="#" onclick="toggle('M000033-source'); toggleText('M000033-link'); return false;" id="M000033-link">Show source...</a></p><div class="source" id="M000033-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 185</span>
|
499
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw_rel</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>, <span class="ruby-identifier">z</span>, <span class="ruby-identifier">rel_x</span>, <span class="ruby-identifier">rel_y</span>, <span class="ruby-identifier">factor_x</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">factor_y</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">color</span>=<span class="ruby-value">0xffffffff</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
494
500
|
</div>
|
495
501
|
|
496
|
-
<a class="small" name="
|
502
|
+
<a class="small" name="M000034"><br/></a>
|
497
503
|
<div class="method_block"><h3>
|
498
|
-
<a href='#
|
504
|
+
<a href='#M000034'>
|
499
505
|
|
500
506
|
|
501
507
|
draw_rot
|
@@ -505,15 +511,17 @@ draw_rot
|
|
505
511
|
</a>
|
506
512
|
</h3>
|
507
513
|
<p>
|
508
|
-
Analogous to <a href="Font.html#
|
514
|
+
Analogous to <a href="Font.html#M000032">draw</a>, but rotates the text by
|
509
515
|
a given angle.
|
510
516
|
</p>
|
511
517
|
|
518
|
+
<p class="source_link" id="M000034-show-link"><a href="#" onclick="toggle('M000034-source'); toggleText('M000034-link'); return false;" id="M000034-link">Show source...</a></p><div class="source" id="M000034-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 188</span>
|
519
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw_rot</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>, <span class="ruby-identifier">z</span>, <span class="ruby-identifier">angle</span>, <span class="ruby-identifier">factor_x</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">factor_y</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">color</span>=<span class="ruby-value">0xffffffff</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
512
520
|
</div>
|
513
521
|
|
514
|
-
<a class="small" name="
|
522
|
+
<a class="small" name="M000031"><br/></a>
|
515
523
|
<div class="method_block"><h3>
|
516
|
-
<a href='#
|
524
|
+
<a href='#M000031'>
|
517
525
|
|
518
526
|
|
519
527
|
text_width
|
@@ -526,10 +534,12 @@ text_width
|
|
526
534
|
Returns the width, in pixels, the given text would occupy if drawn.
|
527
535
|
</p>
|
528
536
|
|
537
|
+
<p class="source_link" id="M000031-show-link"><a href="#" onclick="toggle('M000031-source'); toggleText('M000031-link'); return false;" id="M000031-link">Show source...</a></p><div class="source" id="M000031-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 175</span>
|
538
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text_width</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">factor_x</span>=<span class="ruby-value">1</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
529
539
|
</div>
|
530
540
|
|
531
541
|
|
532
542
|
|
533
543
|
|
534
544
|
|
535
|
-
</div><div class="clear" id="footer">
|
545
|
+
</div><div class="clear" id="footer">Allison 2 © 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a><br/>slightly adapted for the Gosu project by Julian Raschke</div></div></body></html>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::GLTexInfo</title><link type="text/css" media="screen"
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::GLTexInfo</title><link type="text/css" media="screen" href="../.././rdoc-style.css" rel="stylesheet"/><script type="text/javascript">
|
2
2
|
// Allison template
|
3
3
|
// Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
|
4
4
|
|
@@ -341,7 +341,7 @@ Object
|
|
341
341
|
|
342
342
|
|
343
343
|
|
344
|
-
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link"
|
344
|
+
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a href="#" onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_class" onKeyUp="return filterList('class', this.value, event);"></input></form></div></div><div class="navigation darker index" id="file_wrapper"><div class="list_header"><h3>All files</h3></div><div class="list_header_link"><a href="#" onclick="toggle('file'); toggleText('file_link'); return false;" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_file" onKeyUp="return filterList('file', this.value, event);"></input></form></div></div><div class="navigation darker index" id="method_wrapper"><div class="list_header"><h3>All methods</h3></div><div class="list_header_link"><a href="#" onclick="toggle('method'); toggleText('method_link'); return false;" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_method" onKeyUp="return filterList('method', this.value, event);"></input></form></div></div></div><div id="content">
|
345
345
|
<div id="description"><p>
|
346
346
|
Contains information about the underlying OpenGL texture and the u/v space
|
347
347
|
used for image data.
|
@@ -409,4 +409,4 @@ See examples/OpenGLIntegration.rb.
|
|
409
409
|
|
410
410
|
|
411
411
|
|
412
|
-
</div><div class="clear" id="footer">
|
412
|
+
</div><div class="clear" id="footer">Allison 2 © 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a><br/>slightly adapted for the Gosu project by Julian Raschke</div></div></body></html>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::Image</title><link type="text/css" media="screen"
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::Image</title><link type="text/css" media="screen" href="../.././rdoc-style.css" rel="stylesheet"/><script type="text/javascript">
|
2
2
|
// Allison template
|
3
3
|
// Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
|
4
4
|
|
@@ -344,69 +344,69 @@ Object
|
|
344
344
|
<div class="navigation top" id="methods"><h3>Methods</h3>
|
345
345
|
|
346
346
|
|
347
|
-
<a href='#
|
347
|
+
<a href='#M000023'>
|
348
348
|
draw<br/>
|
349
349
|
</a>
|
350
350
|
|
351
351
|
|
352
352
|
|
353
353
|
|
354
|
-
<a href='#
|
354
|
+
<a href='#M000025'>
|
355
355
|
draw_as_quad<br/>
|
356
356
|
</a>
|
357
357
|
|
358
358
|
|
359
359
|
|
360
360
|
|
361
|
-
<a href='#
|
361
|
+
<a href='#M000024'>
|
362
362
|
draw_rot<br/>
|
363
363
|
</a>
|
364
364
|
|
365
365
|
|
366
366
|
|
367
367
|
|
368
|
-
<a href='#
|
368
|
+
<a href='#M000027'>
|
369
369
|
from_text<br/>
|
370
370
|
</a>
|
371
371
|
|
372
372
|
|
373
373
|
|
374
374
|
|
375
|
-
<a href='#
|
375
|
+
<a href='#M000026'>
|
376
376
|
from_text<br/>
|
377
377
|
</a>
|
378
378
|
|
379
379
|
|
380
380
|
|
381
381
|
|
382
|
-
<a href='#
|
382
|
+
<a href='#M000029'>
|
383
383
|
gl_tex_info<br/>
|
384
384
|
</a>
|
385
385
|
|
386
386
|
|
387
387
|
|
388
388
|
|
389
|
-
<a href='#
|
389
|
+
<a href='#M000028'>
|
390
390
|
load_tiles<br/>
|
391
391
|
</a>
|
392
392
|
|
393
393
|
|
394
394
|
|
395
395
|
|
396
|
-
<a href='#
|
396
|
+
<a href='#M000022'>
|
397
397
|
new<br/>
|
398
398
|
</a>
|
399
399
|
|
400
400
|
|
401
401
|
|
402
402
|
|
403
|
-
<a href='#
|
403
|
+
<a href='#M000021'>
|
404
404
|
new<br/>
|
405
405
|
</a>
|
406
406
|
|
407
407
|
|
408
408
|
</div>
|
409
|
-
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link"
|
409
|
+
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a href="#" onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_class" onKeyUp="return filterList('class', this.value, event);"></input></form></div></div><div class="navigation darker index" id="file_wrapper"><div class="list_header"><h3>All files</h3></div><div class="list_header_link"><a href="#" onclick="toggle('file'); toggleText('file_link'); return false;" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_file" onKeyUp="return filterList('file', this.value, event);"></input></form></div></div><div class="navigation darker index" id="method_wrapper"><div class="list_header"><h3>All methods</h3></div><div class="list_header_link"><a href="#" onclick="toggle('method'); toggleText('method_link'); return false;" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_method" onKeyUp="return filterList('method', this.value, event);"></input></form></div></div></div><div id="content">
|
410
410
|
<div id="description"><p>
|
411
411
|
Provides functionality for drawing rectangular images.
|
412
412
|
</p>
|
@@ -443,9 +443,9 @@ Provides functionality for drawing rectangular images.
|
|
443
443
|
<h1>Public Class Methods</h1>
|
444
444
|
|
445
445
|
|
446
|
-
<a class="small" name="
|
446
|
+
<a class="small" name="M000027"><br/></a>
|
447
447
|
<div class="method_block"><h3>
|
448
|
-
<a href='#
|
448
|
+
<a href='#M000027'>
|
449
449
|
|
450
450
|
|
451
451
|
from_text
|
@@ -463,7 +463,7 @@ The text may contain line breaks.
|
|
463
463
|
</p>
|
464
464
|
<p>
|
465
465
|
The text is always rendered in white. If you want to <a
|
466
|
-
href="Image.html#
|
466
|
+
href="Image.html#M000023">draw</a> it in a different color, just modulate
|
467
467
|
it by the target color.
|
468
468
|
</p>
|
469
469
|
<table>
|
@@ -486,15 +486,14 @@ long, it will be truncated.
|
|
486
486
|
|
487
487
|
</td></tr>
|
488
488
|
</table>
|
489
|
-
<p>
|
490
|
-
enum.
|
491
|
-
</p>
|
492
489
|
|
490
|
+
<p class="source_link" id="M000027-show-link"><a href="#" onclick="toggle('M000027-source'); toggleText('M000027-link'); return false;" id="M000027-link">Show source...</a></p><div class="source" id="M000027-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 245</span>
|
491
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">from_text</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">text</span>, <span class="ruby-identifier">font_name</span>, <span class="ruby-identifier">font_height</span>, <span class="ruby-identifier">line_spacing</span>, <span class="ruby-identifier">max_width</span>, <span class="ruby-identifier">align</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
493
492
|
</div>
|
494
493
|
|
495
|
-
<a class="small" name="
|
494
|
+
<a class="small" name="M000026"><br/></a>
|
496
495
|
<div class="method_block"><h3>
|
497
|
-
<a href='#
|
496
|
+
<a href='#M000026'>
|
498
497
|
|
499
498
|
|
500
499
|
from_text
|
@@ -508,7 +507,7 @@ Creates an <a href="Image.html">Image</a> containing a line of text.
|
|
508
507
|
</p>
|
509
508
|
<p>
|
510
509
|
The text is always rendered in white. If you want to <a
|
511
|
-
href="Image.html#
|
510
|
+
href="Image.html#M000023">draw</a> it in a different color, just modulate
|
512
511
|
it by the target color.
|
513
512
|
</p>
|
514
513
|
<table>
|
@@ -521,11 +520,13 @@ it by the target color.
|
|
521
520
|
</td></tr>
|
522
521
|
</table>
|
523
522
|
|
523
|
+
<p class="source_link" id="M000026-show-link"><a href="#" onclick="toggle('M000026-source'); toggleText('M000026-link'); return false;" id="M000026-link">Show source...</a></p><div class="source" id="M000026-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 232</span>
|
524
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">from_text</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">text</span>, <span class="ruby-identifier">font_name</span>, <span class="ruby-identifier">font_height</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
524
525
|
</div>
|
525
526
|
|
526
|
-
<a class="small" name="
|
527
|
+
<a class="small" name="M000028"><br/></a>
|
527
528
|
<div class="method_block"><h3>
|
528
|
-
<a href='#
|
529
|
+
<a href='#M000028'>
|
529
530
|
|
530
531
|
|
531
532
|
load_tiles
|
@@ -549,11 +550,13 @@ bitmap is divided into -tile_width rows.
|
|
549
550
|
</td></tr>
|
550
551
|
</table>
|
551
552
|
|
553
|
+
<p class="source_link" id="M000028-show-link"><a href="#" onclick="toggle('M000028-source'); toggleText('M000028-link'); return false;" id="M000028-link">Show source...</a></p><div class="source" id="M000028-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 252</span>
|
554
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">load_tiles</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">filename_or_rmagick_image</span>, <span class="ruby-identifier">tile_width</span>, <span class="ruby-identifier">tile_height</span>, <span class="ruby-identifier">tileable</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
552
555
|
</div>
|
553
556
|
|
554
|
-
<a class="small" name="
|
557
|
+
<a class="small" name="M000022"><br/></a>
|
555
558
|
<div class="method_block"><h3>
|
556
|
-
<a href='#
|
559
|
+
<a href='#M000022'>
|
557
560
|
|
558
561
|
|
559
562
|
new
|
@@ -574,14 +577,16 @@ files.
|
|
574
577
|
<p>
|
575
578
|
This constructor only loads a sub-rectangle of the given file. Because
|
576
579
|
every call of this constructor will open the image again, it is preferable
|
577
|
-
to use <a href="Image.html#
|
580
|
+
to use <a href="Image.html#M000028">Image#load_tiles</a>.
|
578
581
|
</p>
|
579
582
|
|
583
|
+
<p class="source_link" id="M000022-show-link"><a href="#" onclick="toggle('M000022-source'); toggleText('M000022-link'); return false;" id="M000022-link">Show source...</a></p><div class="source" id="M000022-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 213</span>
|
584
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">filename_or_rmagick_image</span>, <span class="ruby-identifier">tileable</span>, <span class="ruby-identifier">src_x</span>, <span class="ruby-identifier">src_y</span>, <span class="ruby-identifier">src_width</span>, <span class="ruby-identifier">src_height</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
580
585
|
</div>
|
581
586
|
|
582
|
-
<a class="small" name="
|
587
|
+
<a class="small" name="M000021"><br/></a>
|
583
588
|
<div class="method_block"><h3>
|
584
|
-
<a href='#
|
589
|
+
<a href='#M000021'>
|
585
590
|
|
586
591
|
|
587
592
|
new
|
@@ -600,15 +605,17 @@ automatically applied to BMP type images. For more flexibility, use PNG
|
|
600
605
|
files.
|
601
606
|
</p>
|
602
607
|
|
608
|
+
<p class="source_link" id="M000021-show-link"><a href="#" onclick="toggle('M000021-source'); toggleText('M000021-link'); return false;" id="M000021-link">Show source...</a></p><div class="source" id="M000021-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 201</span>
|
609
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">filename_or_rmagick_image</span>, <span class="ruby-identifier">tileable</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
603
610
|
</div>
|
604
611
|
|
605
612
|
|
606
613
|
<h1>Public Instance Methods</h1>
|
607
614
|
|
608
615
|
|
609
|
-
<a class="small" name="
|
616
|
+
<a class="small" name="M000023"><br/></a>
|
610
617
|
<div class="method_block"><h3>
|
611
|
-
<a href='#
|
618
|
+
<a href='#M000023'>
|
612
619
|
|
613
620
|
|
614
621
|
draw
|
@@ -621,11 +628,13 @@ draw
|
|
621
628
|
Draws the image so its upper left corner is at (x; y).
|
622
629
|
</p>
|
623
630
|
|
631
|
+
<p class="source_link" id="M000023-show-link"><a href="#" onclick="toggle('M000023-source'); toggleText('M000023-link'); return false;" id="M000023-link">Show source...</a></p><div class="source" id="M000023-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 216</span>
|
632
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>, <span class="ruby-identifier">z</span>, <span class="ruby-identifier">factor_x</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">factor_y</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">color</span>=<span class="ruby-value">0xffffffff</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
624
633
|
</div>
|
625
634
|
|
626
|
-
<a class="small" name="
|
635
|
+
<a class="small" name="M000025"><br/></a>
|
627
636
|
<div class="method_block"><h3>
|
628
|
-
<a href='#
|
637
|
+
<a href='#M000025'>
|
629
638
|
|
630
639
|
|
631
640
|
draw_as_quad
|
@@ -635,18 +644,20 @@ draw_as_quad
|
|
635
644
|
</a>
|
636
645
|
</h3>
|
637
646
|
<p>
|
638
|
-
Like <a href="Window.html#
|
647
|
+
Like <a href="Window.html#M000046">Window#draw_quad</a>, but with this
|
639
648
|
texture instead of colors. Can be used to implement advanced,
|
640
649
|
non-rectangular drawing techniques and takes four points and the modulation
|
641
650
|
color at each of them. The points can be in clockwise order, or in a Z
|
642
651
|
shape, starting at the top left.
|
643
652
|
</p>
|
644
653
|
|
654
|
+
<p class="source_link" id="M000025-show-link"><a href="#" onclick="toggle('M000025-source'); toggleText('M000025-link'); return false;" id="M000025-link">Show source...</a></p><div class="source" id="M000025-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 224</span>
|
655
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw_as_quad</span>(<span class="ruby-identifier">x1</span>, <span class="ruby-identifier">y1</span>, <span class="ruby-identifier">c1</span>, <span class="ruby-identifier">x2</span>, <span class="ruby-identifier">y2</span>, <span class="ruby-identifier">c2</span>, <span class="ruby-identifier">x3</span>, <span class="ruby-identifier">y3</span>, <span class="ruby-identifier">c3</span>, <span class="ruby-identifier">x4</span>, <span class="ruby-identifier">y4</span>, <span class="ruby-identifier">c4</span>, <span class="ruby-identifier">z</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
645
656
|
</div>
|
646
657
|
|
647
|
-
<a class="small" name="
|
658
|
+
<a class="small" name="M000024"><br/></a>
|
648
659
|
<div class="method_block"><h3>
|
649
|
-
<a href='#
|
660
|
+
<a href='#M000024'>
|
650
661
|
|
651
662
|
|
652
663
|
draw_rot
|
@@ -665,11 +676,13 @@ left border, 1 is the right border, 0.5 is the center (and default)
|
|
665
676
|
</td></tr>
|
666
677
|
</table>
|
667
678
|
|
679
|
+
<p class="source_link" id="M000024-show-link"><a href="#" onclick="toggle('M000024-source'); toggleText('M000024-link'); return false;" id="M000024-link">Show source...</a></p><div class="source" id="M000024-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 220</span>
|
680
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw_rot</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>, <span class="ruby-identifier">z</span>, <span class="ruby-identifier">angle</span>, <span class="ruby-identifier">center_x</span>=<span class="ruby-value">0</span><span class="ruby-value">.5</span>, <span class="ruby-identifier">center_y</span>=<span class="ruby-value">0</span><span class="ruby-value">.5</span>, <span class="ruby-identifier">factor_x</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">factor_y</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">color</span>=<span class="ruby-value">0xffffffff</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
668
681
|
</div>
|
669
682
|
|
670
|
-
<a class="small" name="
|
683
|
+
<a class="small" name="M000029"><br/></a>
|
671
684
|
<div class="method_block"><h3>
|
672
|
-
<a href='#
|
685
|
+
<a href='#M000029'>
|
673
686
|
|
674
687
|
|
675
688
|
gl_tex_info
|
@@ -682,10 +695,12 @@ gl_tex_info
|
|
682
695
|
See examples/OpenGLIntegration.rb.
|
683
696
|
</p>
|
684
697
|
|
698
|
+
<p class="source_link" id="M000029-show-link"><a href="#" onclick="toggle('M000029-source'); toggleText('M000029-link'); return false;" id="M000029-link">Show source...</a></p><div class="source" id="M000029-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 255</span>
|
699
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gl_tex_info</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
685
700
|
</div>
|
686
701
|
|
687
702
|
|
688
703
|
|
689
704
|
|
690
705
|
|
691
|
-
</div><div class="clear" id="footer">
|
706
|
+
</div><div class="clear" id="footer">Allison 2 © 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a><br/>slightly adapted for the Gosu project by Julian Raschke</div></div></body></html>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::Sample</title><link type="text/css" media="screen"
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::Sample</title><link type="text/css" media="screen" href="../.././rdoc-style.css" rel="stylesheet"/><script type="text/javascript">
|
2
2
|
// Allison template
|
3
3
|
// Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
|
4
4
|
|
@@ -344,27 +344,27 @@ Object
|
|
344
344
|
<div class="navigation top" id="methods"><h3>Methods</h3>
|
345
345
|
|
346
346
|
|
347
|
-
<a href='#
|
347
|
+
<a href='#M000014'>
|
348
348
|
new<br/>
|
349
349
|
</a>
|
350
350
|
|
351
351
|
|
352
352
|
|
353
353
|
|
354
|
-
<a href='#
|
354
|
+
<a href='#M000015'>
|
355
355
|
play<br/>
|
356
356
|
</a>
|
357
357
|
|
358
358
|
|
359
359
|
|
360
360
|
|
361
|
-
<a href='#
|
361
|
+
<a href='#M000016'>
|
362
362
|
play_pan<br/>
|
363
363
|
</a>
|
364
364
|
|
365
365
|
|
366
366
|
</div>
|
367
|
-
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link"
|
367
|
+
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a href="#" onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_class" onKeyUp="return filterList('class', this.value, event);"></input></form></div></div><div class="navigation darker index" id="file_wrapper"><div class="list_header"><h3>All files</h3></div><div class="list_header_link"><a href="#" onclick="toggle('file'); toggleText('file_link'); return false;" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_file" onKeyUp="return filterList('file', this.value, event);"></input></form></div></div><div class="navigation darker index" id="method_wrapper"><div class="list_header"><h3>All methods</h3></div><div class="list_header_link"><a href="#" onclick="toggle('method'); toggleText('method_link'); return false;" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_method" onKeyUp="return filterList('method', this.value, event);"></input></form></div></div></div><div id="content">
|
368
368
|
<div id="description"><p>
|
369
369
|
A sample is a short sound that is completely loaded in memory, can be
|
370
370
|
played multiple times at once and offers very flexible playback parameters.
|
@@ -385,9 +385,9 @@ Use samples for everything that‘s not music.
|
|
385
385
|
<h1>Public Class Methods</h1>
|
386
386
|
|
387
387
|
|
388
|
-
<a class="small" name="
|
388
|
+
<a class="small" name="M000014"><br/></a>
|
389
389
|
<div class="method_block"><h3>
|
390
|
-
<a href='#
|
390
|
+
<a href='#M000014'>
|
391
391
|
|
392
392
|
|
393
393
|
new
|
@@ -397,15 +397,17 @@ new
|
|
397
397
|
</a>
|
398
398
|
</h3>
|
399
399
|
|
400
|
+
<p class="source_link" id="M000014-show-link"><a href="#" onclick="toggle('M000014-source'); toggleText('M000014-link'); return false;" id="M000014-link">Show source...</a></p><div class="source" id="M000014-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 262</span>
|
401
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">filename</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
400
402
|
</div>
|
401
403
|
|
402
404
|
|
403
405
|
<h1>Public Instance Methods</h1>
|
404
406
|
|
405
407
|
|
406
|
-
<a class="small" name="
|
408
|
+
<a class="small" name="M000015"><br/></a>
|
407
409
|
<div class="method_block"><h3>
|
408
|
-
<a href='#
|
410
|
+
<a href='#M000015'>
|
409
411
|
|
410
412
|
|
411
413
|
play
|
@@ -430,11 +432,13 @@ accept very high or low values. Use 1.0 for normal playback speed.
|
|
430
432
|
</td></tr>
|
431
433
|
</table>
|
432
434
|
|
435
|
+
<p class="source_link" id="M000015-show-link"><a href="#" onclick="toggle('M000015-source'); toggleText('M000015-link'); return false;" id="M000015-link">Show source...</a></p><div class="source" id="M000015-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 269</span>
|
436
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">play</span>(<span class="ruby-identifier">vol</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">speed</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">looping</span>=<span class="ruby-keyword kw">false</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
433
437
|
</div>
|
434
438
|
|
435
|
-
<a class="small" name="
|
439
|
+
<a class="small" name="M000016"><br/></a>
|
436
440
|
<div class="method_block"><h3>
|
437
|
-
<a href='#
|
441
|
+
<a href='#M000016'>
|
438
442
|
|
439
443
|
|
440
444
|
play_pan
|
@@ -446,7 +450,7 @@ play_pan
|
|
446
450
|
<p>
|
447
451
|
Plays the sample with panning. Even if pan is 0.0, the sample will not be
|
448
452
|
as loud as if it were played by calling <a
|
449
|
-
href="Sample.html#
|
453
|
+
href="Sample.html#M000015">play</a>() due to the way the panning works.
|
450
454
|
</p>
|
451
455
|
<p>
|
452
456
|
Returns a <a href="SampleInstance.html">SampleInstance</a>.
|
@@ -461,10 +465,12 @@ accept very high or low values. Use 1.0 for normal playback speed.
|
|
461
465
|
</td></tr>
|
462
466
|
</table>
|
463
467
|
|
468
|
+
<p class="source_link" id="M000016-show-link"><a href="#" onclick="toggle('M000016-source'); toggleText('M000016-link'); return false;" id="M000016-link">Show source...</a></p><div class="source" id="M000016-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 278</span>
|
469
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">play_pan</span>(<span class="ruby-identifier">pan</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">vol</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">speed</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">looping</span>=<span class="ruby-keyword kw">false</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
464
470
|
</div>
|
465
471
|
|
466
472
|
|
467
473
|
|
468
474
|
|
469
475
|
|
470
|
-
</div><div class="clear" id="footer">
|
476
|
+
</div><div class="clear" id="footer">Allison 2 © 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a><br/>slightly adapted for the Gosu project by Julian Raschke</div></div></body></html>
|