gosu 0.7.16-x86-mswin32-60 → 0.7.17-x86-mswin32-60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -131,7 +131,7 @@ class GameWindow < Gosu::Window
131
131
  @background_image = Gosu::Image.new(self, "media/Space.png", true)
132
132
 
133
133
  # Put the beep here, as it is the environment now that determines collision
134
- @beep = Gosu::Sample.new("media/Beep.wav")
134
+ @beep = Gosu::Sample.new(self, "media/Beep.wav")
135
135
 
136
136
  # Put the score here, as it is the environment that tracks this now
137
137
  @score = 0
@@ -108,7 +108,7 @@ class Player
108
108
 
109
109
  def initialize(window, x, y)
110
110
  @image = Gosu::Image.new(window, "media/Starfighter.bmp", false)
111
- @beep = Gosu::Sample.new("media/Beep.wav")
111
+ @beep = Gosu::Sample.new(window, "media/Beep.wav")
112
112
  @x, @y = x, y
113
113
  @score = 0
114
114
  end
@@ -290,7 +290,7 @@ class Missile
290
290
 
291
291
  def initialize(window, x, y, angle)
292
292
  # All missile instances use the same sound.
293
- @@explosion_sound ||= Gosu::Sample.new("media/Explosion.wav")
293
+ @@explosion_sound ||= Gosu::Sample.new(window, "media/Explosion.wav")
294
294
 
295
295
  # Horizontal/vertical velocity.
296
296
  @vx, @vy = Gosu::offset_x(angle, 20).to_i, Gosu::offset_y(angle, 20).to_i
data/examples/Tutorial.rb CHANGED
@@ -16,7 +16,7 @@ class Player
16
16
 
17
17
  def initialize(window)
18
18
  @image = Gosu::Image.new(window, "media/Starfighter.bmp", false)
19
- @beep = Gosu::Sample.new("media/Beep.wav")
19
+ @beep = Gosu::Sample.new(window, "media/Beep.wav")
20
20
  @x = @y = @vel_x = @vel_y = @angle = 0.0
21
21
  @score = 0
22
22
  end
data/lib/gosu.for_1_8.so CHANGED
Binary file
data/lib/gosu.for_1_9.so CHANGED
Binary file
data/lib/gosu/patches.rb CHANGED
@@ -25,7 +25,7 @@ class Gosu::Sample
25
25
 
26
26
  def initialize(*args)
27
27
  args.shift if args.first.is_a? Gosu::Window
28
- new_initialize args
28
+ new_initialize *args
29
29
  end
30
30
  end
31
31
  class Gosu::Song
@@ -33,7 +33,7 @@ class Gosu::Song
33
33
 
34
34
  def initialize(*args)
35
35
  args.shift if args.first.is_a? Gosu::Window
36
- new_initialize args
36
+ new_initialize *args
37
37
  end
38
38
  end
39
39
 
@@ -1364,7 +1364,7 @@ Returns the <a href="Gosu.html#M000006">angle</a> from point 1 to point 2
1364
1364
  in degrees, where 0.0 means upwards. Returns 0 if both points are equal.
1365
1365
  </p>
1366
1366
 
1367
- <p class="source_link" id="M000006-show-link"><a href="#" onclick="toggle('M000006-source'); toggleText('M000006-link'); return false;" id="M000006-link">Show source...</a></p><div class="source" id="M000006-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 458</span>
1367
+ <p class="source_link" id="M000006-show-link"><a href="#" onclick="toggle('M000006-source'); toggleText('M000006-link'); return false;" id="M000006-link">Show source...</a></p><div class="source" id="M000006-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 457</span>
1368
1368
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">angle</span>(<span class="ruby-identifier">x1</span>, <span class="ruby-identifier">y1</span>, <span class="ruby-identifier">x2</span>, <span class="ruby-identifier">y2</span>); <span class="ruby-keyword kw">end</span></pre></div>
1369
1369
  </div>
1370
1370
 
@@ -1385,7 +1385,7 @@ added to angle1 to get to angle2 (can be negative if counter-clockwise
1385
1385
  movement is shorter).
1386
1386
  </p>
1387
1387
 
1388
- <p class="source_link" id="M000007-show-link"><a href="#" onclick="toggle('M000007-source'); toggleText('M000007-link'); return false;" id="M000007-link">Show source...</a></p><div class="source" id="M000007-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 461</span>
1388
+ <p class="source_link" id="M000007-show-link"><a href="#" onclick="toggle('M000007-source'); toggleText('M000007-link'); return false;" id="M000007-link">Show source...</a></p><div class="source" id="M000007-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 460</span>
1389
1389
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">angle_diff</span>(<span class="ruby-identifier">angle1</span>, <span class="ruby-identifier">angle2</span>); <span class="ruby-keyword kw">end</span></pre></div>
1390
1390
  </div>
1391
1391
 
@@ -1405,7 +1405,7 @@ Returns the name of a neutral font that is available on the current
1405
1405
  platform.
1406
1406
  </p>
1407
1407
 
1408
- <p class="source_link" id="M000010-show-link"><a href="#" onclick="toggle('M000010-source'); toggleText('M000010-link'); return false;" id="M000010-link">Show source...</a></p><div class="source" id="M000010-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 471</span>
1408
+ <p class="source_link" id="M000010-show-link"><a href="#" onclick="toggle('M000010-source'); toggleText('M000010-link'); return false;" id="M000010-link">Show source...</a></p><div class="source" id="M000010-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 470</span>
1409
1409
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_font_name</span>(); <span class="ruby-keyword kw">end</span></pre></div>
1410
1410
  </div>
1411
1411
 
@@ -1424,7 +1424,7 @@ distance
1424
1424
  Returns the <a href="Gosu.html#M000008">distance</a> between two points.
1425
1425
  </p>
1426
1426
 
1427
- <p class="source_link" id="M000008-show-link"><a href="#" onclick="toggle('M000008-source'); toggleText('M000008-link'); return false;" id="M000008-link">Show source...</a></p><div class="source" id="M000008-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 464</span>
1427
+ <p class="source_link" id="M000008-show-link"><a href="#" onclick="toggle('M000008-source'); toggleText('M000008-link'); return false;" id="M000008-link">Show source...</a></p><div class="source" id="M000008-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 463</span>
1428
1428
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">distance</span>(<span class="ruby-identifier">x1</span>, <span class="ruby-identifier">y1</span>, <span class="ruby-identifier">x2</span>, <span class="ruby-identifier">y2</span>); <span class="ruby-keyword kw">end</span></pre></div>
1429
1429
  </div>
1430
1430
 
@@ -1443,7 +1443,7 @@ milliseconds
1443
1443
  Incrementing, possibly wrapping millisecond timer.
1444
1444
  </p>
1445
1445
 
1446
- <p class="source_link" id="M000009-show-link"><a href="#" onclick="toggle('M000009-source'); toggleText('M000009-link'); return false;" id="M000009-link">Show source...</a></p><div class="source" id="M000009-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 467</span>
1446
+ <p class="source_link" id="M000009-show-link"><a href="#" onclick="toggle('M000009-source'); toggleText('M000009-link'); return false;" id="M000009-link">Show source...</a></p><div class="source" id="M000009-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 466</span>
1447
1447
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">milliseconds</span>(); <span class="ruby-keyword kw">end</span></pre></div>
1448
1448
  </div>
1449
1449
 
@@ -1464,7 +1464,7 @@ origin and the point to which you would get if you moved radius pixels in
1464
1464
  the direction specified by <a href="Gosu.html#M000006">angle</a>.
1465
1465
  </p>
1466
1466
 
1467
- <p class="source_link" id="M000004-show-link"><a href="#" onclick="toggle('M000004-source'); toggleText('M000004-link'); return false;" id="M000004-link">Show source...</a></p><div class="source" id="M000004-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 452</span>
1467
+ <p class="source_link" id="M000004-show-link"><a href="#" onclick="toggle('M000004-source'); toggleText('M000004-link'); return false;" id="M000004-link">Show source...</a></p><div class="source" id="M000004-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 451</span>
1468
1468
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">offset_x</span>(<span class="ruby-identifier">angle</span>, <span class="ruby-identifier">dist</span>); <span class="ruby-keyword kw">end</span></pre></div>
1469
1469
  </div>
1470
1470
 
@@ -1485,7 +1485,7 @@ origin and the point to which you would get if you moved radius pixels in
1485
1485
  the direction specified by <a href="Gosu.html#M000006">angle</a>.
1486
1486
  </p>
1487
1487
 
1488
- <p class="source_link" id="M000005-show-link"><a href="#" onclick="toggle('M000005-source'); toggleText('M000005-link'); return false;" id="M000005-link">Show source...</a></p><div class="source" id="M000005-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 455</span>
1488
+ <p class="source_link" id="M000005-show-link"><a href="#" onclick="toggle('M000005-source'); toggleText('M000005-link'); return false;" id="M000005-link">Show source...</a></p><div class="source" id="M000005-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 454</span>
1489
1489
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">offset_y</span>(<span class="ruby-identifier">angle</span>, <span class="ruby-identifier">dist</span>); <span class="ruby-keyword kw">end</span></pre></div>
1490
1490
  </div>
1491
1491
 
@@ -1505,7 +1505,7 @@ Returns a <a href="Gosu.html#M000003">random</a> double between min
1505
1505
  (inclusive) and max (exclusive).
1506
1506
  </p>
1507
1507
 
1508
- <p class="source_link" id="M000003-show-link"><a href="#" onclick="toggle('M000003-source'); toggleText('M000003-link'); return false;" id="M000003-link">Show source...</a></p><div class="source" id="M000003-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 449</span>
1508
+ <p class="source_link" id="M000003-show-link"><a href="#" onclick="toggle('M000003-source'); toggleText('M000003-link'); return false;" id="M000003-link">Show source...</a></p><div class="source" id="M000003-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 448</span>
1509
1509
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">random</span>(<span class="ruby-identifier">min</span>, <span class="ruby-identifier">max</span>); <span class="ruby-keyword kw">end</span></pre></div>
1510
1510
  </div>
1511
1511
 
@@ -1524,7 +1524,7 @@ screen_height
1524
1524
  Returns the height, in pixels, of the user&#8216;s primary screen.
1525
1525
  </p>
1526
1526
 
1527
- <p class="source_link" id="M000012-show-link"><a href="#" onclick="toggle('M000012-source'); toggleText('M000012-link'); return false;" id="M000012-link">Show source...</a></p><div class="source" id="M000012-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 477</span>
1527
+ <p class="source_link" id="M000012-show-link"><a href="#" onclick="toggle('M000012-source'); toggleText('M000012-link'); return false;" id="M000012-link">Show source...</a></p><div class="source" id="M000012-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 476</span>
1528
1528
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">screen_height</span>(); <span class="ruby-keyword kw">end</span></pre></div>
1529
1529
  </div>
1530
1530
 
@@ -1543,7 +1543,7 @@ screen_width
1543
1543
  Returns the width, in pixels, of the user&#8216;s primary screen.
1544
1544
  </p>
1545
1545
 
1546
- <p class="source_link" id="M000011-show-link"><a href="#" onclick="toggle('M000011-source'); toggleText('M000011-link'); return false;" id="M000011-link">Show source...</a></p><div class="source" id="M000011-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 474</span>
1546
+ <p class="source_link" id="M000011-show-link"><a href="#" onclick="toggle('M000011-source'); toggleText('M000011-link'); return false;" id="M000011-link">Show source...</a></p><div class="source" id="M000011-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 473</span>
1547
1547
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">screen_width</span>(); <span class="ruby-keyword kw">end</span></pre></div>
1548
1548
  </div>
1549
1549
 
@@ -569,7 +569,7 @@ Converts a HSV triple into a color, with a given alpha.
569
569
  </td></tr>
570
570
  </table>
571
571
 
572
- <p class="source_link" id="M000020-show-link"><a href="#" onclick="toggle('M000020-source'); toggleText('M000020-link'); return false;" id="M000020-link">Show source...</a></p><div class="source" id="M000020-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 149</span>
572
+ <p class="source_link" id="M000020-show-link"><a href="#" onclick="toggle('M000020-source'); toggleText('M000020-link'); return false;" id="M000020-link">Show source...</a></p><div class="source" id="M000020-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 148</span>
573
573
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">from_ahsv</span>(<span class="ruby-identifier">a</span>, <span class="ruby-identifier">h</span>, <span class="ruby-identifier">s</span>, <span class="ruby-identifier">v</span>); <span class="ruby-keyword kw">end</span></pre></div>
574
574
  </div>
575
575
 
@@ -600,7 +600,7 @@ href="Color.html#M000020">from_ahsv</a> with alpha set to 255.
600
600
  </td></tr>
601
601
  </table>
602
602
 
603
- <p class="source_link" id="M000019-show-link"><a href="#" onclick="toggle('M000019-source'); toggleText('M000019-link'); return false;" id="M000019-link">Show source...</a></p><div class="source" id="M000019-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 142</span>
603
+ <p class="source_link" id="M000019-show-link"><a href="#" onclick="toggle('M000019-source'); toggleText('M000019-link'); return false;" id="M000019-link">Show source...</a></p><div class="source" id="M000019-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 141</span>
604
604
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">from_hsv</span>(<span class="ruby-identifier">h</span>, <span class="ruby-identifier">s</span>, <span class="ruby-identifier">v</span>); <span class="ruby-keyword kw">end</span></pre></div>
605
605
  </div>
606
606
 
@@ -619,7 +619,7 @@ new
619
619
  argb: 0xAARRGGBB integer.
620
620
  </p>
621
621
 
622
- <p class="source_link" id="M000018-show-link"><a href="#" onclick="toggle('M000018-source'); toggleText('M000018-link'); return false;" id="M000018-link">Show source...</a></p><div class="source" id="M000018-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 136</span>
622
+ <p class="source_link" id="M000018-show-link"><a href="#" onclick="toggle('M000018-source'); toggleText('M000018-link'); return false;" id="M000018-link">Show source...</a></p><div class="source" id="M000018-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 135</span>
623
623
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">argb</span>); <span class="ruby-keyword kw">end</span></pre></div>
624
624
  </div>
625
625
 
@@ -439,7 +439,7 @@ 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>
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 171</span>
443
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>
444
444
  </div>
445
445
 
@@ -465,7 +465,7 @@ Draws text so the top left corner of the text is at (x; y).
465
465
  Characters are created internally as needed.
466
466
  </p>
467
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>
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 179</span>
469
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>
470
470
  </div>
471
471
 
@@ -495,7 +495,7 @@ possible values.
495
495
  </td></tr>
496
496
  </table>
497
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>
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 184</span>
499
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>
500
500
  </div>
501
501
 
@@ -515,7 +515,7 @@ Analogous to <a href="Font.html#M000032">draw</a>, but rotates the text by
515
515
  a given angle.
516
516
  </p>
517
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>
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 187</span>
519
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>
520
520
  </div>
521
521
 
@@ -534,7 +534,7 @@ text_width
534
534
  Returns the width, in pixels, the given text would occupy if drawn.
535
535
  </p>
536
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>
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 174</span>
538
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>
539
539
  </div>
540
540
 
@@ -487,7 +487,7 @@ long, it will be truncated.
487
487
  </td></tr>
488
488
  </table>
489
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>
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 244</span>
491
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>
492
492
  </div>
493
493
 
@@ -520,7 +520,7 @@ it by the target color.
520
520
  </td></tr>
521
521
  </table>
522
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>
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 231</span>
524
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>
525
525
  </div>
526
526
 
@@ -550,7 +550,7 @@ bitmap is divided into -tile_width rows.
550
550
  </td></tr>
551
551
  </table>
552
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>
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 251</span>
554
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>
555
555
  </div>
556
556
 
@@ -580,7 +580,7 @@ every call of this constructor will open the image again, it is preferable
580
580
  to use <a href="Image.html#M000028">Image#load_tiles</a>.
581
581
  </p>
582
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>
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 212</span>
584
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>
585
585
  </div>
586
586
 
@@ -605,7 +605,7 @@ automatically applied to BMP type images. For more flexibility, use PNG
605
605
  files.
606
606
  </p>
607
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>
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 200</span>
609
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>
610
610
  </div>
611
611
 
@@ -628,7 +628,7 @@ draw
628
628
  Draws the image so its upper left corner is at (x; y).
629
629
  </p>
630
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>
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 215</span>
632
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>
633
633
  </div>
634
634
 
@@ -651,7 +651,7 @@ color at each of them. The points can be in clockwise order, or in a Z
651
651
  shape, starting at the top left.
652
652
  </p>
653
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>
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 223</span>
655
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>
656
656
  </div>
657
657
 
@@ -676,7 +676,7 @@ left border, 1 is the right border, 0.5 is the center (and default)
676
676
  </td></tr>
677
677
  </table>
678
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>
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 219</span>
680
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>
681
681
  </div>
682
682
 
@@ -695,7 +695,7 @@ gl_tex_info
695
695
  See examples/OpenGLIntegration.rb.
696
696
  </p>
697
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>
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 254</span>
699
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>
700
700
  </div>
701
701
 
@@ -397,7 +397,7 @@ 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>
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 261</span>
401
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>
402
402
  </div>
403
403
 
@@ -432,7 +432,7 @@ accept very high or low values. Use 1.0 for normal playback speed.
432
432
  </td></tr>
433
433
  </table>
434
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>
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 268</span>
436
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>
437
437
  </div>
438
438
 
@@ -465,7 +465,7 @@ accept very high or low values. Use 1.0 for normal playback speed.
465
465
  </td></tr>
466
466
  </table>
467
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>
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 277</span>
469
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>
470
470
  </div>
471
471
 
@@ -443,7 +443,7 @@ Pauses this instance to be resumed afterwards. It will still keep a channel
443
443
  filled while paused.
444
444
  </p>
445
445
 
446
- <p class="source_link" id="M000053-show-link"><a href="#" onclick="toggle('M000053-source'); toggleText('M000053-link'); return false;" id="M000053-link">Show source...</a></p><div class="source" id="M000053-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 294</span>
446
+ <p class="source_link" id="M000053-show-link"><a href="#" onclick="toggle('M000053-source'); toggleText('M000053-link'); return false;" id="M000053-link">Show source...</a></p><div class="source" id="M000053-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 293</span>
447
447
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pause</span>; <span class="ruby-keyword kw">end</span></pre></div>
448
448
  </div>
449
449
 
@@ -459,7 +459,7 @@ paused?
459
459
  </a>
460
460
  </h3>
461
461
 
462
- <p class="source_link" id="M000054-show-link"><a href="#" onclick="toggle('M000054-source'); toggleText('M000054-link'); return false;" id="M000054-link">Show source...</a></p><div class="source" id="M000054-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 295</span>
462
+ <p class="source_link" id="M000054-show-link"><a href="#" onclick="toggle('M000054-source'); toggleText('M000054-link'); return false;" id="M000054-link">Show source...</a></p><div class="source" id="M000054-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 294</span>
463
463
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paused?</span>; <span class="ruby-keyword kw">end</span></pre></div>
464
464
  </div>
465
465
 
@@ -475,7 +475,7 @@ playing?
475
475
  </a>
476
476
  </h3>
477
477
 
478
- <p class="source_link" id="M000056-show-link"><a href="#" onclick="toggle('M000056-source'); toggleText('M000056-link'); return false;" id="M000056-link">Show source...</a></p><div class="source" id="M000056-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 297</span>
478
+ <p class="source_link" id="M000056-show-link"><a href="#" onclick="toggle('M000056-source'); toggleText('M000056-link'); return false;" id="M000056-link">Show source...</a></p><div class="source" id="M000056-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 296</span>
479
479
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">playing?</span>; <span class="ruby-keyword kw">end</span></pre></div>
480
480
  </div>
481
481
 
@@ -491,7 +491,7 @@ resume
491
491
  </a>
492
492
  </h3>
493
493
 
494
- <p class="source_link" id="M000055-show-link"><a href="#" onclick="toggle('M000055-source'); toggleText('M000055-link'); return false;" id="M000055-link">Show source...</a></p><div class="source" id="M000055-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 296</span>
494
+ <p class="source_link" id="M000055-show-link"><a href="#" onclick="toggle('M000055-source'); toggleText('M000055-link'); return false;" id="M000055-link">Show source...</a></p><div class="source" id="M000055-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 295</span>
495
495
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">resume</span>; <span class="ruby-keyword kw">end</span></pre></div>
496
496
  </div>
497
497
 
@@ -512,7 +512,7 @@ late, does not do any harm. You can nil out the reference to the instance
512
512
  afterwards as it will be useless.
513
513
  </p>
514
514
 
515
- <p class="source_link" id="M000052-show-link"><a href="#" onclick="toggle('M000052-source'); toggleText('M000052-link'); return false;" id="M000052-link">Show source...</a></p><div class="source" id="M000052-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 292</span>
515
+ <p class="source_link" id="M000052-show-link"><a href="#" onclick="toggle('M000052-source'); toggleText('M000052-link'); return false;" id="M000052-link">Show source...</a></p><div class="source" id="M000052-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 291</span>
516
516
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop</span>; <span class="ruby-keyword kw">end</span></pre></div>
517
517
  </div>
518
518
 
@@ -438,7 +438,7 @@ Returns the song currently being played or paused, or nil if no song has
438
438
  been played yet or the last song has finished playing.
439
439
  </p>
440
440
 
441
- <p class="source_link" id="M000057-show-link"><a href="#" onclick="toggle('M000057-source'); toggleText('M000057-link'); return false;" id="M000057-link">Show source...</a></p><div class="source" id="M000057-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 306</span>
441
+ <p class="source_link" id="M000057-show-link"><a href="#" onclick="toggle('M000057-source'); toggleText('M000057-link'); return false;" id="M000057-link">Show source...</a></p><div class="source" id="M000057-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 305</span>
442
442
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">current_song</span>; <span class="ruby-keyword kw">end</span></pre></div>
443
443
  </div>
444
444
 
@@ -454,7 +454,7 @@ new
454
454
  </a>
455
455
  </h3>
456
456
 
457
- <p class="source_link" id="M000058-show-link"><a href="#" onclick="toggle('M000058-source'); toggleText('M000058-link'); return false;" id="M000058-link">Show source...</a></p><div class="source" id="M000058-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 310</span>
457
+ <p class="source_link" id="M000058-show-link"><a href="#" onclick="toggle('M000058-source'); toggleText('M000058-link'); return false;" id="M000058-link">Show source...</a></p><div class="source" id="M000058-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 309</span>
458
458
  <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>
459
459
  </div>
460
460
 
@@ -478,7 +478,7 @@ Pauses playback of the song. It is not considered being played. <a
478
478
  href="Song.html#M000057">current_song</a> will stay the same.
479
479
  </p>
480
480
 
481
- <p class="source_link" id="M000060-show-link"><a href="#" onclick="toggle('M000060-source'); toggleText('M000060-link'); return false;" id="M000060-link">Show source...</a></p><div class="source" id="M000060-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 318</span>
481
+ <p class="source_link" id="M000060-show-link"><a href="#" onclick="toggle('M000060-source'); toggleText('M000060-link'); return false;" id="M000060-link">Show source...</a></p><div class="source" id="M000060-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 317</span>
482
482
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pause</span>; <span class="ruby-keyword kw">end</span></pre></div>
483
483
  </div>
484
484
 
@@ -497,7 +497,7 @@ paused?
497
497
  Returns true if the song is the current song, but in paused mode.
498
498
  </p>
499
499
 
500
- <p class="source_link" id="M000061-show-link"><a href="#" onclick="toggle('M000061-source'); toggleText('M000061-link'); return false;" id="M000061-link">Show source...</a></p><div class="source" id="M000061-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 322</span>
500
+ <p class="source_link" id="M000061-show-link"><a href="#" onclick="toggle('M000061-source'); toggleText('M000061-link'); return false;" id="M000061-link">Show source...</a></p><div class="source" id="M000061-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 321</span>
501
501
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paused?</span>; <span class="ruby-keyword kw">end</span></pre></div>
502
502
  </div>
503
503
 
@@ -518,7 +518,7 @@ href="Song.html#M000062">stop</a> all other songs and set the current song
518
518
  to this object.
519
519
  </p>
520
520
 
521
- <p class="source_link" id="M000059-show-link"><a href="#" onclick="toggle('M000059-source'); toggleText('M000059-link'); return false;" id="M000059-link">Show source...</a></p><div class="source" id="M000059-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 314</span>
521
+ <p class="source_link" id="M000059-show-link"><a href="#" onclick="toggle('M000059-source'); toggleText('M000059-link'); return false;" id="M000059-link">Show source...</a></p><div class="source" id="M000059-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 313</span>
522
522
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">play</span>(<span class="ruby-identifier">looping</span> = <span class="ruby-keyword kw">false</span>); <span class="ruby-keyword kw">end</span></pre></div>
523
523
  </div>
524
524
 
@@ -537,7 +537,7 @@ playing?
537
537
  Returns true if the song is currently playing.
538
538
  </p>
539
539
 
540
- <p class="source_link" id="M000063-show-link"><a href="#" onclick="toggle('M000063-source'); toggleText('M000063-link'); return false;" id="M000063-link">Show source...</a></p><div class="source" id="M000063-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 329</span>
540
+ <p class="source_link" id="M000063-show-link"><a href="#" onclick="toggle('M000063-source'); toggleText('M000063-link'); return false;" id="M000063-link">Show source...</a></p><div class="source" id="M000063-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 328</span>
541
541
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">playing?</span>; <span class="ruby-keyword kw">end</span></pre></div>
542
542
  </div>
543
543
 
@@ -557,7 +557,7 @@ Stops playback of this song if it is currently played or paused.
557
557
  Afterwards, <a href="Song.html#M000057">current_song</a> will return 0.
558
558
  </p>
559
559
 
560
- <p class="source_link" id="M000062-show-link"><a href="#" onclick="toggle('M000062-source'); toggleText('M000062-link'); return false;" id="M000062-link">Show source...</a></p><div class="source" id="M000062-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 326</span>
560
+ <p class="source_link" id="M000062-show-link"><a href="#" onclick="toggle('M000062-source'); toggleText('M000062-link'); return false;" id="M000062-link">Show source...</a></p><div class="source" id="M000062-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 325</span>
561
561
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop</span>; <span class="ruby-keyword kw">end</span></pre></div>
562
562
  </div>
563
563
 
@@ -431,7 +431,7 @@ filtering/extending/&#8230; of the text. The text will be inserted at
431
431
  caretPos afterwards.
432
432
  </p>
433
433
 
434
- <p class="source_link" id="M000013-show-link"><a href="#" onclick="toggle('M000013-source'); toggleText('M000013-link'); return false;" id="M000013-link">Show source...</a></p><div class="source" id="M000013-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 352</span>
434
+ <p class="source_link" id="M000013-show-link"><a href="#" onclick="toggle('M000013-source'); toggleText('M000013-link'); return false;" id="M000013-link">Show source...</a></p><div class="source" id="M000013-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 351</span>
435
435
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">filter</span> <span class="ruby-identifier">text_in</span>
436
436
  <span class="ruby-identifier">text_in</span>
437
437
  <span class="ruby-keyword kw">end</span></pre></div>
@@ -571,7 +571,7 @@ DEPRECATED: Returns the character a button usually produces, or nil. Please
571
571
  use <a href="TextInput.html">TextInput</a> instead.
572
572
  </p>
573
573
 
574
- <p class="source_link" id="M000048-show-link"><a href="#" onclick="toggle('M000048-source'); toggleText('M000048-link'); return false;" id="M000048-link">Show source...</a></p><div class="source" id="M000048-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 426</span>
574
+ <p class="source_link" id="M000048-show-link"><a href="#" onclick="toggle('M000048-source'); toggleText('M000048-link'); return false;" id="M000048-link">Show source...</a></p><div class="source" id="M000048-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 425</span>
575
575
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">button_id_to_char</span>(<span class="ruby-identifier">id</span>); <span class="ruby-keyword kw">end</span></pre></div>
576
576
  </div>
577
577
 
@@ -592,7 +592,7 @@ character, or nil. Please use <a href="TextInput.html">TextInput</a>
592
592
  instead.
593
593
  </p>
594
594
 
595
- <p class="source_link" id="M000049-show-link"><a href="#" onclick="toggle('M000049-source'); toggleText('M000049-link'); return false;" id="M000049-link">Show source...</a></p><div class="source" id="M000049-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 430</span>
595
+ <p class="source_link" id="M000049-show-link"><a href="#" onclick="toggle('M000049-source'); toggleText('M000049-link'); return false;" id="M000049-link">Show source...</a></p><div class="source" id="M000049-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 429</span>
596
596
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">char_to_button_id</span>(<span class="ruby-identifier">char</span>); <span class="ruby-keyword kw">end</span></pre></div>
597
597
  </div>
598
598
 
@@ -618,7 +618,7 @@ default means the game will run at 60 FPS, which is ideal on standard 60 Hz
618
618
  TFT screens.
619
619
  </p>
620
620
 
621
- <p class="source_link" id="M000035-show-link"><a href="#" onclick="toggle('M000035-source'); toggleText('M000035-link'); return false;" id="M000035-link">Show source...</a></p><div class="source" id="M000035-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 379</span>
621
+ <p class="source_link" id="M000035-show-link"><a href="#" onclick="toggle('M000035-source'); toggleText('M000035-link'); return false;" id="M000035-link">Show source...</a></p><div class="source" id="M000035-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 378</span>
622
622
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">width</span>, <span class="ruby-identifier">height</span>, <span class="ruby-identifier">fullscreen</span>, <span class="ruby-identifier">update_interval</span> = <span class="ruby-value">16.666666</span>); <span class="ruby-keyword kw">end</span></pre></div>
623
623
  </div>
624
624
 
@@ -642,7 +642,7 @@ Called before <a href="Window.html#M000038">update</a> when the user
642
642
  pressed a button while the window had the focus.
643
643
  </p>
644
644
 
645
- <p class="source_link" id="M000042-show-link"><a href="#" onclick="toggle('M000042-source'); toggleText('M000042-link'); return false;" id="M000042-link">Show source...</a></p><div class="source" id="M000042-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 408</span>
645
+ <p class="source_link" id="M000042-show-link"><a href="#" onclick="toggle('M000042-source'); toggleText('M000042-link'); return false;" id="M000042-link">Show source...</a></p><div class="source" id="M000042-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 407</span>
646
646
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">button_down</span>(<span class="ruby-identifier">id</span>); <span class="ruby-keyword kw">end</span></pre></div>
647
647
  </div>
648
648
 
@@ -661,7 +661,7 @@ button_down?
661
661
  Returns true if a button is currently pressed. Updated every tick.
662
662
  </p>
663
663
 
664
- <p class="source_link" id="M000047-show-link"><a href="#" onclick="toggle('M000047-source'); toggleText('M000047-link'); return false;" id="M000047-link">Show source...</a></p><div class="source" id="M000047-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 423</span>
664
+ <p class="source_link" id="M000047-show-link"><a href="#" onclick="toggle('M000047-source'); toggleText('M000047-link'); return false;" id="M000047-link">Show source...</a></p><div class="source" id="M000047-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 422</span>
665
665
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">button_down?</span>(<span class="ruby-identifier">id</span>); <span class="ruby-keyword kw">end</span></pre></div>
666
666
  </div>
667
667
 
@@ -680,7 +680,7 @@ button_up
680
680
  Same as buttonDown. Called then the user released a button.
681
681
  </p>
682
682
 
683
- <p class="source_link" id="M000043-show-link"><a href="#" onclick="toggle('M000043-source'); toggleText('M000043-link'); return false;" id="M000043-link">Show source...</a></p><div class="source" id="M000043-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 410</span>
683
+ <p class="source_link" id="M000043-show-link"><a href="#" onclick="toggle('M000043-source'); toggleText('M000043-link'); return false;" id="M000043-link">Show source...</a></p><div class="source" id="M000043-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 409</span>
684
684
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">button_up</span>(<span class="ruby-identifier">id</span>); <span class="ruby-keyword kw">end</span></pre></div>
685
685
  </div>
686
686
 
@@ -700,7 +700,7 @@ Limits the drawing area to a given rectangle while evaluating the code
700
700
  inside of the block.
701
701
  </p>
702
702
 
703
- <p class="source_link" id="M000051-show-link"><a href="#" onclick="toggle('M000051-source'); toggleText('M000051-link'); return false;" id="M000051-link">Show source...</a></p><div class="source" id="M000051-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 436</span>
703
+ <p class="source_link" id="M000051-show-link"><a href="#" onclick="toggle('M000051-source'); toggleText('M000051-link'); return false;" id="M000051-link">Show source...</a></p><div class="source" id="M000051-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 435</span>
704
704
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clip_to</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>, <span class="ruby-identifier">w</span>, <span class="ruby-identifier">h</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">drawing_code</span>); <span class="ruby-keyword kw">end</span></pre></div>
705
705
  </div>
706
706
 
@@ -720,7 +720,7 @@ Tells the window to end the current <a href="Window.html#M000036">show</a>
720
720
  loop as soon as possible.
721
721
  </p>
722
722
 
723
- <p class="source_link" id="M000037-show-link"><a href="#" onclick="toggle('M000037-source'); toggleText('M000037-link'); return false;" id="M000037-link">Show source...</a></p><div class="source" id="M000037-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 385</span>
723
+ <p class="source_link" id="M000037-show-link"><a href="#" onclick="toggle('M000037-source'); toggleText('M000037-link'); return false;" id="M000037-link">Show source...</a></p><div class="source" id="M000037-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 384</span>
724
724
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>; <span class="ruby-keyword kw">end</span></pre></div>
725
725
  </div>
726
726
 
@@ -741,7 +741,7 @@ wants the window to repaint itself. Your application&#8216;s rendering code
741
741
  goes here.
742
742
  </p>
743
743
 
744
- <p class="source_link" id="M000039-show-link"><a href="#" onclick="toggle('M000039-source'); toggleText('M000039-link'); return false;" id="M000039-link">Show source...</a></p><div class="source" id="M000039-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 393</span>
744
+ <p class="source_link" id="M000039-show-link"><a href="#" onclick="toggle('M000039-source'); toggleText('M000039-link'); return false;" id="M000039-link">Show source...</a></p><div class="source" id="M000039-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 392</span>
745
745
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw</span>; <span class="ruby-keyword kw">end</span></pre></div>
746
746
  </div>
747
747
 
@@ -760,7 +760,7 @@ draw_line
760
760
  Draws a line from one point to another (last pixel exclusive).
761
761
  </p>
762
762
 
763
- <p class="source_link" id="M000044-show-link"><a href="#" onclick="toggle('M000044-source'); toggleText('M000044-link'); return false;" id="M000044-link">Show source...</a></p><div class="source" id="M000044-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 413</span>
763
+ <p class="source_link" id="M000044-show-link"><a href="#" onclick="toggle('M000044-source'); toggleText('M000044-link'); return false;" id="M000044-link">Show source...</a></p><div class="source" id="M000044-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 412</span>
764
764
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw_line</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">z</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
765
765
  </div>
766
766
 
@@ -780,7 +780,7 @@ Draws a rectangle (two triangles) with given corners and corresponding
780
780
  colors. The points can be in clockwise order, or in a Z shape.
781
781
  </p>
782
782
 
783
- <p class="source_link" id="M000046-show-link"><a href="#" onclick="toggle('M000046-source'); toggleText('M000046-link'); return false;" id="M000046-link">Show source...</a></p><div class="source" id="M000046-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 420</span>
783
+ <p class="source_link" id="M000046-show-link"><a href="#" onclick="toggle('M000046-source'); toggleText('M000046-link'); return false;" id="M000046-link">Show source...</a></p><div class="source" id="M000046-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 419</span>
784
784
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw_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-value">0</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
785
785
  </div>
786
786
 
@@ -796,7 +796,7 @@ draw_triangle
796
796
  </a>
797
797
  </h3>
798
798
 
799
- <p class="source_link" id="M000045-show-link"><a href="#" onclick="toggle('M000045-source'); toggleText('M000045-link'); return false;" id="M000045-link">Show source...</a></p><div class="source" id="M000045-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 415</span>
799
+ <p class="source_link" id="M000045-show-link"><a href="#" onclick="toggle('M000045-source'); toggleText('M000045-link'); return false;" id="M000045-link">Show source...</a></p><div class="source" id="M000045-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 414</span>
800
800
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw_triangle</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">z</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
801
801
  </div>
802
802
 
@@ -815,7 +815,7 @@ gl
815
815
  See examples/OpenGLIntegration.rb.
816
816
  </p>
817
817
 
818
- <p class="source_link" id="M000050-show-link"><a href="#" onclick="toggle('M000050-source'); toggleText('M000050-link'); return false;" id="M000050-link">Show source...</a></p><div class="source" id="M000050-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 433</span>
818
+ <p class="source_link" id="M000050-show-link"><a href="#" onclick="toggle('M000050-source'); toggleText('M000050-link'); return false;" id="M000050-link">Show source...</a></p><div class="source" id="M000050-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 432</span>
819
819
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gl</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">custom_gl_code</span>); <span class="ruby-keyword kw">end</span></pre></div>
820
820
  </div>
821
821
 
@@ -840,7 +840,7 @@ By default, the window is redrawn all the time (i.e. Window#needs_redraw?
840
840
  always returns true.)
841
841
  </p>
842
842
 
843
- <p class="source_link" id="M000040-show-link"><a href="#" onclick="toggle('M000040-source'); toggleText('M000040-link'); return false;" id="M000040-link">Show source...</a></p><div class="source" id="M000040-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 401</span>
843
+ <p class="source_link" id="M000040-show-link"><a href="#" onclick="toggle('M000040-source'); toggleText('M000040-link'); return false;" id="M000040-link">Show source...</a></p><div class="source" id="M000040-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 400</span>
844
844
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">needs_redraw?</span>; <span class="ruby-keyword kw">end</span></pre></div>
845
845
  </div>
846
846
 
@@ -859,7 +859,7 @@ set_mouse_position
859
859
  DEPRECATED.
860
860
  </p>
861
861
 
862
- <p class="source_link" id="M000041-show-link"><a href="#" onclick="toggle('M000041-source'); toggleText('M000041-link'); return false;" id="M000041-link">Show source...</a></p><div class="source" id="M000041-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 404</span>
862
+ <p class="source_link" id="M000041-show-link"><a href="#" onclick="toggle('M000041-source'); toggleText('M000041-link'); return false;" id="M000041-link">Show source...</a></p><div class="source" id="M000041-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 403</span>
863
863
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_mouse_position</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>); <span class="ruby-keyword kw">end</span></pre></div>
864
864
  </div>
865
865
 
@@ -880,7 +880,7 @@ on screen and receives calls to <a href="Window.html#M000039">draw</a>, <a
880
880
  href="Window.html#M000038">update</a> etc.
881
881
  </p>
882
882
 
883
- <p class="source_link" id="M000036-show-link"><a href="#" onclick="toggle('M000036-source'); toggleText('M000036-link'); return false;" id="M000036-link">Show source...</a></p><div class="source" id="M000036-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 382</span>
883
+ <p class="source_link" id="M000036-show-link"><a href="#" onclick="toggle('M000036-source'); toggleText('M000036-link'); return false;" id="M000036-link">Show source...</a></p><div class="source" id="M000036-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 381</span>
884
884
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show</span>; <span class="ruby-keyword kw">end</span></pre></div>
885
885
  </div>
886
886
 
@@ -900,7 +900,7 @@ Called every update_interval milliseconds while the window is being shown.
900
900
  Your application&#8216;s main game logic goes here.
901
901
  </p>
902
902
 
903
- <p class="source_link" id="M000038-show-link"><a href="#" onclick="toggle('M000038-source'); toggleText('M000038-link'); return false;" id="M000038-link">Show source...</a></p><div class="source" id="M000038-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 389</span>
903
+ <p class="source_link" id="M000038-show-link"><a href="#" onclick="toggle('M000038-source'); toggleText('M000038-link'); return false;" id="M000038-link">Show source...</a></p><div class="source" id="M000038-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 388</span>
904
904
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>; <span class="ruby-keyword kw">end</span></pre></div>
905
905
  </div>
906
906
 
@@ -393,7 +393,7 @@ gosu_to_radians
393
393
  Returns <tt>(self - 90) * Math::PI / 180.0</tt>
394
394
  </p>
395
395
 
396
- <p class="source_link" id="M000002-show-link"><a href="#" onclick="toggle('M000002-source'); toggleText('M000002-link'); return false;" id="M000002-link">Show source...</a></p><div class="source" id="M000002-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 487</span>
396
+ <p class="source_link" id="M000002-show-link"><a href="#" onclick="toggle('M000002-source'); toggleText('M000002-link'); return false;" id="M000002-link">Show source...</a></p><div class="source" id="M000002-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 486</span>
397
397
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gosu_to_radians</span>(); <span class="ruby-keyword kw">end</span></pre></div>
398
398
  </div>
399
399
 
@@ -412,7 +412,7 @@ radians_to_gosu
412
412
  Returns <tt>self * 180.0 / Math::PI + 90</tt>
413
413
  </p>
414
414
 
415
- <p class="source_link" id="M000001-show-link"><a href="#" onclick="toggle('M000001-source'); toggleText('M000001-link'); return false;" id="M000001-link">Show source...</a></p><div class="source" id="M000001-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 484</span>
415
+ <p class="source_link" id="M000001-show-link"><a href="#" onclick="toggle('M000001-source'); toggleText('M000001-link'); return false;" id="M000001-link">Show source...</a></p><div class="source" id="M000001-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 483</span>
416
416
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">radians_to_gosu</span>(); <span class="ruby-keyword kw">end</span></pre></div>
417
417
  </div>
418
418
 
@@ -1 +1 @@
1
- Tue, 29 Dec 2009 13:09:42 +0800
1
+ Tue, 05 Jan 2010 01:43:23 +0800
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gosu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.16
4
+ version: 0.7.17
5
5
  platform: x86-mswin32-60
6
6
  authors:
7
7
  - Julian Raschke
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-12-29 00:00:00 +08:00
13
+ date: 2010-01-05 00:00:00 +08:00
14
14
  default_executable:
15
15
  dependencies: []
16
16