gosu 0.7.16-universal-darwin → 0.7.17-universal-darwin
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.
- data/examples/ChipmunkIntegration.rb +1 -1
- data/examples/OpenGLIntegration.rb +1 -1
- data/examples/RMagickIntegration.rb +1 -1
- data/examples/Tutorial.rb +1 -1
- data/lib/gosu.for_1_8.bundle +0 -0
- data/lib/gosu.for_1_9.bundle +0 -0
- data/lib/gosu/patches.rb +2 -2
- data/reference/rdoc/classes/Gosu.html +10 -10
- data/reference/rdoc/classes/Gosu/Color.html +3 -3
- data/reference/rdoc/classes/Gosu/Font.html +5 -5
- data/reference/rdoc/classes/Gosu/Image.html +9 -9
- data/reference/rdoc/classes/Gosu/Sample.html +3 -3
- data/reference/rdoc/classes/Gosu/SampleInstance.html +5 -5
- data/reference/rdoc/classes/Gosu/Song.html +7 -7
- data/reference/rdoc/classes/Gosu/TextInput.html +1 -1
- data/reference/rdoc/classes/Gosu/Window.html +17 -17
- data/reference/rdoc/classes/Numeric.html +2 -2
- data/reference/rdoc/created.rid +1 -1
- metadata +2 -12
- data/lib/hotgosu.rb +0 -59
- data/lib/hotgosu/color.rb +0 -43
- data/lib/hotgosu/constants.rb +0 -143
- data/lib/hotgosu/font.rb +0 -26
- data/lib/hotgosu/functions.rb +0 -41
- data/lib/hotgosu/image.rb +0 -64
- data/lib/hotgosu/sample.rb +0 -15
- data/lib/hotgosu/song.rb +0 -25
- data/lib/hotgosu/window.rb +0 -146
- data/lib/hotgosu/window_primitives.rb +0 -0
@@ -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
|
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
|
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
|
|
data/reference/rdoc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Tue,
|
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.
|
4
|
+
version: 0.7.17
|
5
5
|
platform: universal-darwin
|
6
6
|
authors:
|
7
7
|
- Julian Raschke
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2010-01-05 00:00:00 +08:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|
@@ -77,16 +77,6 @@ files:
|
|
77
77
|
- lib/gosu.rb
|
78
78
|
- lib/gosu.for_1_8.bundle
|
79
79
|
- lib/gosu.for_1_9.bundle
|
80
|
-
- lib/hotgosu.rb
|
81
|
-
- lib/hotgosu/color.rb
|
82
|
-
- lib/hotgosu/constants.rb
|
83
|
-
- lib/hotgosu/font.rb
|
84
|
-
- lib/hotgosu/functions.rb
|
85
|
-
- lib/hotgosu/image.rb
|
86
|
-
- lib/hotgosu/sample.rb
|
87
|
-
- lib/hotgosu/song.rb
|
88
|
-
- lib/hotgosu/window.rb
|
89
|
-
- lib/hotgosu/window_primitives.rb
|
90
80
|
has_rdoc: true
|
91
81
|
homepage: http://code.google.com/p/gosu/
|
92
82
|
licenses: []
|
data/lib/hotgosu.rb
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
require "#{File.dirname(__FILE__)}/hotgosu/constants.rb"
|
2
|
-
require "#{File.dirname(__FILE__)}/hotgosu/color.rb"
|
3
|
-
require "#{File.dirname(__FILE__)}/hotgosu/functions.rb"
|
4
|
-
require "#{File.dirname(__FILE__)}/hotgosu/font.rb"
|
5
|
-
require "#{File.dirname(__FILE__)}/hotgosu/image.rb"
|
6
|
-
require "#{File.dirname(__FILE__)}/hotgosu/sample.rb"
|
7
|
-
require "#{File.dirname(__FILE__)}/hotgosu/song.rb"
|
8
|
-
require "#{File.dirname(__FILE__)}/hotgosu/window.rb"
|
9
|
-
require "#{File.dirname(__FILE__)}/hotgosu/window_primitives.rb"
|
10
|
-
|
11
|
-
module Gosu
|
12
|
-
# # An instance of a Sample playing. Can be used to stop sounds dynamically,
|
13
|
-
# # or to check if they are finished.
|
14
|
-
# # It is recommended that you throw away sample instances if possible,
|
15
|
-
# # as they could accidentally refer to other sounds being played after
|
16
|
-
# # a very long time has passed.
|
17
|
-
# class SampleInstance
|
18
|
-
# attr_accessor :volume
|
19
|
-
# attr_accessor :speed
|
20
|
-
# attr_accessor :pan
|
21
|
-
#
|
22
|
-
# # Stops this instance of a sound being played. Calling this twice, or too late, does not do any harm. You can nil out the reference to the instance afterwards as it will be useless.
|
23
|
-
# def stop; end
|
24
|
-
# # Pauses this instance to be resumed afterwards. It will still keep a channel filled while paused.
|
25
|
-
# def pause; end
|
26
|
-
# def paused?; end
|
27
|
-
# def resume; end
|
28
|
-
# def playing?; end
|
29
|
-
# end
|
30
|
-
#
|
31
|
-
# # TextInput instances are invisible objects that build a text string from input,
|
32
|
-
# # using the current operating system's keyboard layout.
|
33
|
-
# #
|
34
|
-
# # At its most basic form, you only need to create a new TextInput instance and
|
35
|
-
# # pass it to your window via text_input=. Until you call this function again,
|
36
|
-
# # passing nil, the TextInput object will build a text that can be accessed via
|
37
|
-
# # TextInput#text.
|
38
|
-
# #
|
39
|
-
# # A TextInput object is purely abstract, though; drawing the input field is left
|
40
|
-
# # to the user. As with most of Gosu, how this is handled is completely left open.
|
41
|
-
# #
|
42
|
-
# # TextInput only aims to provide enough code for your own GUIs to build upon.
|
43
|
-
# class TextInput
|
44
|
-
# attr_accessor :text
|
45
|
-
# attr_reader :caret_pos
|
46
|
-
# attr_reader :selection_start
|
47
|
-
# end
|
48
|
-
|
49
|
-
|
50
|
-
# Small additions to Numeric to make it easier to integrate Gosu with
|
51
|
-
# libraries that use radians, like Chipmunk.
|
52
|
-
class ::Numeric
|
53
|
-
# Returns <tt>self * 180.0 / Math::PI + 90</tt>
|
54
|
-
def radians_to_gosu(); end
|
55
|
-
|
56
|
-
# Returns <tt>(self - 90) * Math::PI / 180.0</tt>
|
57
|
-
def gosu_to_radians(); end
|
58
|
-
end
|
59
|
-
end
|
data/lib/hotgosu/color.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
module Gosu
|
2
|
-
Color = ::ObjGosuColor
|
3
|
-
|
4
|
-
class Color
|
5
|
-
def self.new(*args)
|
6
|
-
case args.length
|
7
|
-
when 1 then
|
8
|
-
alloc.initWithARGB args[0]
|
9
|
-
when 4 then
|
10
|
-
alloc.initWithAlpha args[0], red: args[1], green: args[2], blue: args[3]
|
11
|
-
else
|
12
|
-
raise ArgumentError.new("wrong number of arguments (#{args.length} for 1 or 4)")
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
# # Represents an ARGB color value with 8 bits for each channel. Can be
|
18
|
-
# # replaced by literals of the form 0xaarrggbb in all of Gosu.
|
19
|
-
# class Color
|
20
|
-
# attr_accessor :hue, :saturation, :value
|
21
|
-
#
|
22
|
-
# # argb: 0xAARRGGBB integer.
|
23
|
-
# def initialize(argb); end
|
24
|
-
# # a:: Integer from 0..255
|
25
|
-
# # r:: Integer from 0..255
|
26
|
-
# # g:: Integer from 0..255
|
27
|
-
# # b:: Integer from 0..255
|
28
|
-
# def initialize(a, r, g, b); end
|
29
|
-
#
|
30
|
-
# # Converts a HSV triple into a color. Same as from_ahsv with alpha set to 255.
|
31
|
-
# # h:: Integer from 0..360
|
32
|
-
# # s:: Float from 0..1
|
33
|
-
# # v:: Float from 0..1.
|
34
|
-
# def self.from_hsv(h, s, v); end
|
35
|
-
#
|
36
|
-
# # Converts a HSV triple into a color, with a given alpha.
|
37
|
-
# # a:: Integer from 0..255
|
38
|
-
# # h:: Integer from 0..360
|
39
|
-
# # s:: Float from 0..1
|
40
|
-
# # v:: Float from 0..1.
|
41
|
-
# def self.from_ahsv(a, h, s, v); end
|
42
|
-
# end
|
43
|
-
end
|
data/lib/hotgosu/constants.rb
DELETED
@@ -1,143 +0,0 @@
|
|
1
|
-
# Mac-specific constants extracted from SWIG port via:
|
2
|
-
|
3
|
-
# Gosu.constants.sort.each do |name|
|
4
|
-
# value = eval "Gosu::#{name}"
|
5
|
-
# puts " #{name} = #{value.inspect}" unless value.is_a? Module
|
6
|
-
# end
|
7
|
-
|
8
|
-
module Gosu
|
9
|
-
GpButton0 = 65546
|
10
|
-
GpButton1 = 65547
|
11
|
-
GpButton10 = 65556
|
12
|
-
GpButton11 = 65557
|
13
|
-
GpButton12 = 65558
|
14
|
-
GpButton13 = 65559
|
15
|
-
GpButton14 = 65560
|
16
|
-
GpButton15 = 65561
|
17
|
-
GpButton2 = 65548
|
18
|
-
GpButton3 = 65549
|
19
|
-
GpButton4 = 65550
|
20
|
-
GpButton5 = 65551
|
21
|
-
GpButton6 = 65552
|
22
|
-
GpButton7 = 65553
|
23
|
-
GpButton8 = 65554
|
24
|
-
GpButton9 = 65555
|
25
|
-
GpDown = 65545
|
26
|
-
GpLeft = 65542
|
27
|
-
GpNum = 20
|
28
|
-
GpRangeBegin = 65542
|
29
|
-
GpRangeEnd = 65561
|
30
|
-
GpRight = 65543
|
31
|
-
GpUp = 65544
|
32
|
-
Kb0 = 29
|
33
|
-
Kb1 = 18
|
34
|
-
Kb2 = 19
|
35
|
-
Kb3 = 20
|
36
|
-
Kb4 = 21
|
37
|
-
Kb5 = 23
|
38
|
-
Kb6 = 22
|
39
|
-
Kb7 = 26
|
40
|
-
Kb8 = 28
|
41
|
-
Kb9 = 25
|
42
|
-
KbA = 0
|
43
|
-
KbB = 11
|
44
|
-
KbBackspace = 51
|
45
|
-
KbC = 8
|
46
|
-
KbD = 2
|
47
|
-
KbDelete = 117
|
48
|
-
KbDown = 125
|
49
|
-
KbE = 14
|
50
|
-
KbEnd = 119
|
51
|
-
KbEnter = 76
|
52
|
-
KbEscape = 53
|
53
|
-
KbF = 3
|
54
|
-
KbF1 = 122
|
55
|
-
KbF10 = 109
|
56
|
-
KbF11 = 103
|
57
|
-
KbF12 = 111
|
58
|
-
KbF2 = 120
|
59
|
-
KbF3 = 99
|
60
|
-
KbF4 = 118
|
61
|
-
KbF5 = 96
|
62
|
-
KbF6 = 97
|
63
|
-
KbF7 = 98
|
64
|
-
KbF8 = 100
|
65
|
-
KbF9 = 101
|
66
|
-
KbG = 5
|
67
|
-
KbH = 4
|
68
|
-
KbHome = 115
|
69
|
-
KbI = 34
|
70
|
-
KbInsert = 114
|
71
|
-
KbJ = 38
|
72
|
-
KbK = 40
|
73
|
-
KbL = 37
|
74
|
-
KbLeft = 123
|
75
|
-
KbLeftAlt = 58
|
76
|
-
KbLeftControl = 59
|
77
|
-
KbLeftMeta = 55
|
78
|
-
KbLeftShift = 56
|
79
|
-
KbM = 46
|
80
|
-
KbN = 45
|
81
|
-
KbNum = 65535
|
82
|
-
KbNumpad0 = 82
|
83
|
-
KbNumpad1 = 83
|
84
|
-
KbNumpad2 = 84
|
85
|
-
KbNumpad3 = 85
|
86
|
-
KbNumpad4 = 86
|
87
|
-
KbNumpad5 = 87
|
88
|
-
KbNumpad6 = 88
|
89
|
-
KbNumpad7 = 89
|
90
|
-
KbNumpad8 = 91
|
91
|
-
KbNumpad9 = 92
|
92
|
-
KbNumpadAdd = 69
|
93
|
-
KbNumpadDivide = 75
|
94
|
-
KbNumpadMultiply = 67
|
95
|
-
KbNumpadSubtract = 78
|
96
|
-
KbO = 31
|
97
|
-
KbP = 35
|
98
|
-
KbPageDown = 121
|
99
|
-
KbPageUp = 116
|
100
|
-
KbQ = 12
|
101
|
-
KbR = 15
|
102
|
-
KbRangeBegin = 1
|
103
|
-
KbRangeEnd = 65535
|
104
|
-
KbReturn = 36
|
105
|
-
KbRight = 124
|
106
|
-
KbRightAlt = 61
|
107
|
-
KbRightControl = 62
|
108
|
-
KbRightMeta = 54
|
109
|
-
KbRightShift = 60
|
110
|
-
KbS = 1
|
111
|
-
KbSpace = 49
|
112
|
-
KbT = 17
|
113
|
-
KbTab = 48
|
114
|
-
KbU = 32
|
115
|
-
KbUp = 126
|
116
|
-
KbV = 9
|
117
|
-
KbW = 13
|
118
|
-
KbX = 7
|
119
|
-
KbY = 16
|
120
|
-
KbZ = 6
|
121
|
-
MAJOR_VERSION = 0
|
122
|
-
MINOR_VERSION = 7
|
123
|
-
MsLeft = 65536
|
124
|
-
MsMiddle = 65538
|
125
|
-
MsNum = 6
|
126
|
-
MsRangeBegin = 65536
|
127
|
-
MsRangeEnd = 65541
|
128
|
-
MsRight = 65537
|
129
|
-
MsWheelDown = 65540
|
130
|
-
MsWheelUp = 65539
|
131
|
-
NoButton = -1
|
132
|
-
NumButtons = 65562
|
133
|
-
POINT_VERSION = 16
|
134
|
-
VERSION = "0.7.16"
|
135
|
-
end
|
136
|
-
|
137
|
-
module Gosu
|
138
|
-
module Button
|
139
|
-
Gosu.constants.grep(/^(Gp|Ms|Kb)/).each do |constant|
|
140
|
-
self.const_set constant, Gosu.const_get(constant)
|
141
|
-
end
|
142
|
-
end
|
143
|
-
end
|
data/lib/hotgosu/font.rb
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
module Gosu
|
2
|
-
Font = ::ObjGosuFont
|
3
|
-
|
4
|
-
class Font
|
5
|
-
def self.new(window, font_name, height)
|
6
|
-
alloc.initWithWindow window, fontName: font_name, height: height
|
7
|
-
end
|
8
|
-
|
9
|
-
def text_width(text, factor_x = 1)
|
10
|
-
widthOfText(text) * factor_x
|
11
|
-
end
|
12
|
-
|
13
|
-
def draw(text, x, y, z, factor_x = 1, factor_y = 1, color = 0xffffffff, mode = :default)
|
14
|
-
drawText text, atX: x, y: y, z: z, factorX: factor_x, factorY: factor_y, color: color
|
15
|
-
# TODO mode
|
16
|
-
end
|
17
|
-
|
18
|
-
def draw_rel(text, x, y, z, rel_x, rel_y, factor_x = 1, factor_y = 1, color = 0xffffffff, mode = :default)
|
19
|
-
raise :TODO
|
20
|
-
end
|
21
|
-
|
22
|
-
def draw_rot(text, x, y, z, angle, factor_x = 1, factor_y = 1, color = 0xffffffff, mode = :default)
|
23
|
-
raise :TODO
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
data/lib/hotgosu/functions.rb
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
module Gosu
|
2
|
-
def self.random(min, max)
|
3
|
-
::ObjGosu.randomFrom min, to: max
|
4
|
-
end
|
5
|
-
|
6
|
-
def self.offset_x(angle, dist)
|
7
|
-
::ObjGosu.offsetXWithAngle angle, distance: dist
|
8
|
-
end
|
9
|
-
|
10
|
-
def self.offset_y(angle, dist)
|
11
|
-
::ObjGosu.offsetYWithAngle angle, distance: dist
|
12
|
-
end
|
13
|
-
|
14
|
-
def self.angle(x1, y1, x2, y2, default = 0)
|
15
|
-
::ObjGosu.angleFromX x1, y: y1, toX: x2, y: y2, default: default
|
16
|
-
end
|
17
|
-
|
18
|
-
def self.angle_diff(angle1, angle2)
|
19
|
-
::ObjGosu.angleDiffBetween angle1, andOtherAngle: angle2
|
20
|
-
end
|
21
|
-
|
22
|
-
def self.distance(x1, y1, x2, y2)
|
23
|
-
::ObjGosu.distanceFromX x1, y: y1, toX: x2, y: y2
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.milliseconds
|
27
|
-
::ObjGosu.milliseconds
|
28
|
-
end
|
29
|
-
|
30
|
-
def self.default_font_name
|
31
|
-
::ObjGosu.defaultFontName
|
32
|
-
end
|
33
|
-
|
34
|
-
def self.screen_width
|
35
|
-
::ObjGosu.screenWidth
|
36
|
-
end
|
37
|
-
|
38
|
-
def self.screen_height
|
39
|
-
::ObjGosu.screenHeight
|
40
|
-
end
|
41
|
-
end
|
data/lib/hotgosu/image.rb
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
module Gosu
|
2
|
-
Image = ::ObjGosuImage
|
3
|
-
|
4
|
-
class Image
|
5
|
-
def self.new(*args)
|
6
|
-
case args.length
|
7
|
-
when 2..3 then
|
8
|
-
alloc.initWithWindow args[0], filename: args[1], tileable: (args[2] || false)
|
9
|
-
when 7 then
|
10
|
-
alloc.initWithWindow args[0], filename: args[1], tileable: args[2],
|
11
|
-
sourceX: src_x, sourceY: src_y, sourceWidth: src_width, sourceHeight: src_height
|
12
|
-
else
|
13
|
-
raise ArgumentError.new("wrong number of arguments (#{args.length} for 2, 3 or 7)")
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
def self.load_tiles(window, filename, tile_width, tile_height, tileable)
|
18
|
-
loadTilesWithWindow window, filename: filename,
|
19
|
-
tileWidth: tile_width, tileHeight: tile_height, tileable: tileable
|
20
|
-
end
|
21
|
-
|
22
|
-
def draw(x, y, z, factor_x = 1, factor_y = 1, color = 0xffffffff, mode = :default)
|
23
|
-
drawWithX x, y: y, z: z, factorX: factor_x, factorY: factor_y, color: color
|
24
|
-
# TODO mode
|
25
|
-
end
|
26
|
-
|
27
|
-
def draw_rot(x, y, z, angle, center_x = 0.5, center_y = 0.5, factor_x = 1, factor_y = 1,
|
28
|
-
color = 0xffffffff, mode = :default)
|
29
|
-
drawRotWithX x, y: y, z: z, angle: angle, centerX: center_x, centerY: center_y,
|
30
|
-
factorX: factor_x, factorY: factor_y, color: color
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
# # Like Window#draw_quad, but with this texture instead of colors. Can be used to implement advanced, non-rectangular drawing techniques and takes four points and the modulation color at each of them.
|
35
|
-
# # The points can be in clockwise order, or in a Z shape, starting at the top left.
|
36
|
-
# def draw_as_quad(x1, y1, c1, x2, y2, c2, x3, y3, c3, x4, y4, c4, z, mode=:default); end
|
37
|
-
#
|
38
|
-
# # Creates an Image containing a line of text.
|
39
|
-
# #
|
40
|
-
# # The text is always rendered in white. If you want to draw it in a
|
41
|
-
# # different color, just modulate it by the target color.
|
42
|
-
# # font_name:: Name of a system font, or a filename to a TTF file (must contain '/', does not work on Linux).
|
43
|
-
# # font_height:: Height of the font in pixels.
|
44
|
-
# def self.from_text(window, text, font_name, font_height); end
|
45
|
-
#
|
46
|
-
# # Creates an Image that is filled with the text given to the function.
|
47
|
-
# #
|
48
|
-
# # The text may contain line breaks.
|
49
|
-
# #
|
50
|
-
# # The text is always rendered in white. If you want to draw it in a
|
51
|
-
# # different color, just modulate it by the target color.
|
52
|
-
# # font_name:: Name of a system font, or a filename to a TTF file (must contain '/', does not work on Linux).
|
53
|
-
# # font_height:: Height of the font in pixels.
|
54
|
-
# # line_spacing:: Spacing between two lines of text in pixels.
|
55
|
-
# # max_width:: Width of the bitmap that will be returned. Text will be split into multiple lines to avoid drawing over the right border. When a single word is too long, it will be truncated.
|
56
|
-
# # align:: One of :left, :right, :center or :justify.
|
57
|
-
# def self.from_text(window, text, font_name, font_height, line_spacing, max_width, align); end
|
58
|
-
#
|
59
|
-
#
|
60
|
-
# # See examples/OpenGLIntegration.rb.
|
61
|
-
# def gl_tex_info; end
|
62
|
-
# end
|
63
|
-
#
|
64
|
-
end
|
data/lib/hotgosu/sample.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
module Gosu
|
2
|
-
class Sample < ::ObjGosuSample
|
3
|
-
def self.new(window, filename)
|
4
|
-
alloc.initWithWindow window, filename: filename
|
5
|
-
end
|
6
|
-
|
7
|
-
def play(vol = 1, speed = 1, looping = false)
|
8
|
-
playWithVolume vol, speed: speed, looping: looping
|
9
|
-
end
|
10
|
-
|
11
|
-
def play_pan(pan = 0, vol = 1, speed = 1, looping = false)
|
12
|
-
playWithPan pan, volume: vol, speed: speed, looping: looping
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|