gosu 0.7.13.2 → 0.7.13.3
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/Gosu/Audio.hpp +2 -1
- data/Gosu/Font.hpp +14 -6
- data/GosuImpl/AudioSDL.cpp +21 -19
- data/GosuImpl/Graphics/DrawOp.hpp +1 -2
- data/GosuImpl/Graphics/Font.cpp +19 -6
- data/GosuImpl/RubyGosu.swg +8 -1
- data/GosuImpl/RubyGosuStub.mm +1 -0
- data/GosuImpl/WindowX.cpp +3 -3
- data/Rakefile +2 -2
- data/mac/Gosu.xcodeproj/jlnr.pbxuser +239 -589
- data/mac/Gosu.xcodeproj/jlnr.perspectivev3 +47 -51
- data/mac/Gosu.xcodeproj/project.pbxproj +3 -3
- data/reference/cpp/_audio_8hpp-source.html +71 -71
- data/reference/cpp/_font_8hpp-source.html +27 -23
- data/reference/cpp/class_gosu_1_1_font-members.html +3 -1
- data/reference/cpp/class_gosu_1_1_font.html +60 -5
- data/reference/cpp/class_gosu_1_1_sample.html +1 -1
- data/reference/cpp/class_gosu_1_1_sample_instance.html +2 -2
- data/reference/cpp/class_gosu_1_1_song.html +2 -2
- data/reference/cpp/functions_0x66.html +3 -1
- data/reference/cpp/functions_0x6e.html +2 -1
- data/reference/cpp/functions_0x74.html +2 -2
- data/reference/cpp/functions_func_0x66.html +3 -1
- data/reference/cpp/functions_func_0x6e.html +2 -1
- data/reference/cpp/functions_func_0x74.html +2 -2
- metadata +2 -2
@@ -74,14 +74,20 @@ window.onload = initDynSections;
|
|
74
74
|
<a href="class_gosu_1_1_font-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
75
75
|
<tr><td></td></tr>
|
76
76
|
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
77
|
-
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_font.html#
|
77
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_font.html#e4c06910c2b655a0012d982ff4fde515">Font</a> (<a class="el" href="class_gosu_1_1_graphics.html">Graphics</a> &graphics, const std::wstring &fontName, unsigned fontHeight, unsigned fontFlags=ffBold)</td></tr>
|
78
78
|
|
79
|
-
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a font that can be drawn onto the graphics object. <a href="#
|
79
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a font that can be drawn onto the graphics object. <a href="#e4c06910c2b655a0012d982ff4fde515"></a><br></td></tr>
|
80
80
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_font.html#d8de4608a9daba264e1d99f3f8c27e3a">~Font</a> ()</td></tr>
|
81
81
|
|
82
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_font.html#89b454fb34dd42078a6b189747a92227">name</a> () const </td></tr>
|
83
|
+
|
84
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the name of the font that was used to create it. <a href="#89b454fb34dd42078a6b189747a92227"></a><br></td></tr>
|
82
85
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_font.html#9357299749e270dbd01e7fb9f841ae54">height</a> () const </td></tr>
|
83
86
|
|
84
87
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the height of the font, in pixels. <a href="#9357299749e270dbd01e7fb9f841ae54"></a><br></td></tr>
|
88
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_font.html#3ecd8c78d0c01ac480f3b2bbbdbefe4d">flags</a> () const </td></tr>
|
89
|
+
|
90
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the flags used to create the font characters. <a href="#3ecd8c78d0c01ac480f3b2bbbdbefe4d"></a><br></td></tr>
|
85
91
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_font.html#ee66d136e3b5b801d146cc1134a0635a">textWidth</a> (const std::wstring &text, double factorX=1) const </td></tr>
|
86
92
|
|
87
93
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the width, in pixels, the given text would occupy if drawn. <a href="#ee66d136e3b5b801d146cc1134a0635a"></a><br></td></tr>
|
@@ -101,7 +107,7 @@ A font can be used to draw text on a <a class="el" href="class_gosu_1_1_graphics
|
|
101
107
|
Fonts are ideal for small texts that change regularly. For large, static texts you should use createBitmap and turn the result into an image.
|
102
108
|
<p>Definition at line <a class="el" href="_font_8hpp-source.html#l00019">19</a> of file <a class="el" href="_font_8hpp-source.html">Font.hpp</a>.</p>
|
103
109
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
104
|
-
<a class="anchor" name="
|
110
|
+
<a class="anchor" name="e4c06910c2b655a0012d982ff4fde515"></a><!-- doxytag: member="Gosu::Font::Font" ref="e4c06910c2b655a0012d982ff4fde515" args="(Graphics &graphics, const std::wstring &fontName, unsigned fontHeight, unsigned fontFlags=ffBold)" -->
|
105
111
|
<div class="memitem">
|
106
112
|
<div class="memproto">
|
107
113
|
<table class="memname">
|
@@ -121,7 +127,13 @@ Fonts are ideal for small texts that change regularly. For large, static texts y
|
|
121
127
|
<td class="paramkey"></td>
|
122
128
|
<td></td>
|
123
129
|
<td class="paramtype">unsigned </td>
|
124
|
-
<td class="paramname"> <em>
|
130
|
+
<td class="paramname"> <em>fontHeight</em>, </td>
|
131
|
+
</tr>
|
132
|
+
<tr>
|
133
|
+
<td class="paramkey"></td>
|
134
|
+
<td></td>
|
135
|
+
<td class="paramtype">unsigned </td>
|
136
|
+
<td class="paramname"> <em>fontFlags</em> = <code>ffBold</code></td><td> </td>
|
125
137
|
</tr>
|
126
138
|
<tr>
|
127
139
|
<td></td>
|
@@ -138,7 +150,8 @@ Constructs a font that can be drawn onto the graphics object.
|
|
138
150
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
139
151
|
<table border="0" cellspacing="2" cellpadding="0">
|
140
152
|
<tr><td valign="top"></td><td valign="top"><em>fontName</em> </td><td>Name of a system font, or a filename to a TTF file (must contain '/', does not work on Linux). </td></tr>
|
141
|
-
<tr><td valign="top"></td><td valign="top"><em>
|
153
|
+
<tr><td valign="top"></td><td valign="top"><em>fontHeight</em> </td><td>Height of the font, in pixels. </td></tr>
|
154
|
+
<tr><td valign="top"></td><td valign="top"><em>fontFlags</em> </td><td>Flags used to render individual characters of the font. </td></tr>
|
142
155
|
</table>
|
143
156
|
</dl>
|
144
157
|
|
@@ -387,6 +400,27 @@ Draws text at a position relative to (x; y).
|
|
387
400
|
Analogous to draw, but rotates the text by a given angle.
|
388
401
|
<p>
|
389
402
|
|
403
|
+
</div>
|
404
|
+
</div><p>
|
405
|
+
<a class="anchor" name="3ecd8c78d0c01ac480f3b2bbbdbefe4d"></a><!-- doxytag: member="Gosu::Font::flags" ref="3ecd8c78d0c01ac480f3b2bbbdbefe4d" args="() const " -->
|
406
|
+
<div class="memitem">
|
407
|
+
<div class="memproto">
|
408
|
+
<table class="memname">
|
409
|
+
<tr>
|
410
|
+
<td class="memname">unsigned Gosu::Font::flags </td>
|
411
|
+
<td>(</td>
|
412
|
+
<td class="paramname"> </td>
|
413
|
+
<td> ) </td>
|
414
|
+
<td> const</td>
|
415
|
+
</tr>
|
416
|
+
</table>
|
417
|
+
</div>
|
418
|
+
<div class="memdoc">
|
419
|
+
|
420
|
+
<p>
|
421
|
+
Returns the flags used to create the font characters.
|
422
|
+
<p>
|
423
|
+
|
390
424
|
</div>
|
391
425
|
</div><p>
|
392
426
|
<a class="anchor" name="9357299749e270dbd01e7fb9f841ae54"></a><!-- doxytag: member="Gosu::Font::height" ref="9357299749e270dbd01e7fb9f841ae54" args="() const " -->
|
@@ -408,6 +442,27 @@ Analogous to draw, but rotates the text by a given angle.
|
|
408
442
|
Returns the height of the font, in pixels.
|
409
443
|
<p>
|
410
444
|
|
445
|
+
</div>
|
446
|
+
</div><p>
|
447
|
+
<a class="anchor" name="89b454fb34dd42078a6b189747a92227"></a><!-- doxytag: member="Gosu::Font::name" ref="89b454fb34dd42078a6b189747a92227" args="() const " -->
|
448
|
+
<div class="memitem">
|
449
|
+
<div class="memproto">
|
450
|
+
<table class="memname">
|
451
|
+
<tr>
|
452
|
+
<td class="memname">std::wstring Gosu::Font::name </td>
|
453
|
+
<td>(</td>
|
454
|
+
<td class="paramname"> </td>
|
455
|
+
<td> ) </td>
|
456
|
+
<td> const</td>
|
457
|
+
</tr>
|
458
|
+
</table>
|
459
|
+
</div>
|
460
|
+
<div class="memdoc">
|
461
|
+
|
462
|
+
<p>
|
463
|
+
Returns the name of the font that was used to create it.
|
464
|
+
<p>
|
465
|
+
|
411
466
|
</div>
|
412
467
|
</div><p>
|
413
468
|
<a class="anchor" name="ee66d136e3b5b801d146cc1134a0635a"></a><!-- doxytag: member="Gosu::Font::textWidth" ref="ee66d136e3b5b801d146cc1134a0635a" args="(const std::wstring &text, double factorX=1) const " -->
|
@@ -93,7 +93,7 @@ window.onload = initDynSections;
|
|
93
93
|
A sample is a short sound that is completely loaded in memory, can be played multiple times at once and offers very flexible playback parameters.
|
94
94
|
<p>
|
95
95
|
Use samples for everything that's not music.
|
96
|
-
<p>Definition at line <a class="el" href="_audio_8hpp-source.html#
|
96
|
+
<p>Definition at line <a class="el" href="_audio_8hpp-source.html#l00074">74</a> of file <a class="el" href="_audio_8hpp-source.html">Audio.hpp</a>.</p>
|
97
97
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
98
98
|
<a class="anchor" name="11aa4cd7de748370c9352970660619bf"></a><!-- doxytag: member="Gosu::Sample::Sample" ref="11aa4cd7de748370c9352970660619bf" args="(Audio &audio, const std::wstring &filename)" -->
|
99
99
|
<div class="memitem">
|
@@ -99,8 +99,8 @@ window.onload = initDynSections;
|
|
99
99
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
100
100
|
An instance of a <a class="el" href="class_gosu_1_1_sample.html" title="A sample is a short sound that is completely loaded in memory, can be played multiple...">Sample</a> playing.
|
101
101
|
<p>
|
102
|
-
Can be used to stop sounds dynamically, or to check if they are finished. It is recommended that you throw away sample instances if possible, as they could accidentally refer to sounds played very long
|
103
|
-
<p>Definition at line <a class="el" href="_audio_8hpp-source.html#
|
102
|
+
Can be used to stop sounds dynamically, or to check if they are finished. It is recommended that you throw away sample instances if possible, as they could accidentally refer to other sounds being played after a very long time has passed.
|
103
|
+
<p>Definition at line <a class="el" href="_audio_8hpp-source.html#l00042">42</a> of file <a class="el" href="_audio_8hpp-source.html">Audio.hpp</a>.</p>
|
104
104
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
105
105
|
<a class="anchor" name="1dcf6b649592940d21d3d2487e510c7e"></a><!-- doxytag: member="Gosu::SampleInstance::SampleInstance" ref="1dcf6b649592940d21d3d2487e510c7e" args="(int handle, int extra)" -->
|
106
106
|
<div class="memitem">
|
@@ -118,7 +118,7 @@ window.onload = initDynSections;
|
|
118
118
|
Songs are less flexible than samples in that they can only be played one at a time and without panning or speed parameters.
|
119
119
|
<p>
|
120
120
|
|
121
|
-
<p>Definition at line <a class="el" href="_audio_8hpp-source.html#
|
121
|
+
<p>Definition at line <a class="el" href="_audio_8hpp-source.html#l00114">114</a> of file <a class="el" href="_audio_8hpp-source.html">Audio.hpp</a>.</p>
|
122
122
|
<hr><h2>Member Enumeration Documentation</h2>
|
123
123
|
<a class="anchor" name="ec4c76bfe19e210da34bcaa286af605f"></a><!-- doxytag: member="Gosu::Song::Type" ref="ec4c76bfe19e210da34bcaa286af605f" args="" -->
|
124
124
|
<div class="memitem">
|
@@ -143,7 +143,7 @@ There are two types of songs that can be loaded as a <a class="el" href="class_g
|
|
143
143
|
</table>
|
144
144
|
</dl>
|
145
145
|
|
146
|
-
<p>Definition at line <a class="el" href="_audio_8hpp-source.html#
|
146
|
+
<p>Definition at line <a class="el" href="_audio_8hpp-source.html#l00124">124</a> of file <a class="el" href="_audio_8hpp-source.html">Audio.hpp</a>.</p>
|
147
147
|
|
148
148
|
</div>
|
149
149
|
</div><p>
|
@@ -113,6 +113,8 @@ Here is a list of all class members with links to the classes they belong to:
|
|
113
113
|
: <a class="el" href="class_gosu_1_1_file.html#ca8146e9a279ee5cdee72bf6997eb392">Gosu::File</a>
|
114
114
|
<li>fill()
|
115
115
|
: <a class="el" href="class_gosu_1_1_bitmap.html#a0ec9491a5b0e30affa8ddf4351fc8af">Gosu::Bitmap</a>
|
116
|
+
<li>flags()
|
117
|
+
: <a class="el" href="class_gosu_1_1_font.html#3ecd8c78d0c01ac480f3b2bbbdbefe4d">Gosu::Font</a>
|
116
118
|
<li>flipped()
|
117
119
|
: <a class="el" href="class_gosu_1_1_rot_flip.html#f3ba518395cf6e27293e1c16b83d3498">Gosu::RotFlip</a>
|
118
120
|
<li>flipX()
|
@@ -120,7 +122,7 @@ Here is a list of all class members with links to the classes they belong to:
|
|
120
122
|
<li>flipY()
|
121
123
|
: <a class="el" href="class_gosu_1_1_rot_flip.html#c3dbcf4ab91b10c87486a4d163d34ad8">Gosu::RotFlip</a>
|
122
124
|
<li>Font()
|
123
|
-
: <a class="el" href="class_gosu_1_1_font.html#
|
125
|
+
: <a class="el" href="class_gosu_1_1_font.html#e4c06910c2b655a0012d982ff4fde515">Gosu::Font</a>
|
124
126
|
<li>fromAHSV()
|
125
127
|
: <a class="el" href="class_gosu_1_1_color.html#b20e49f7a8bb0de839e05a0cf48a631e">Gosu::Color</a>
|
126
128
|
<li>fromHSV()
|
@@ -106,7 +106,8 @@ Here is a list of all class members with links to the classes they belong to:
|
|
106
106
|
<p>
|
107
107
|
<h3><a class="anchor" name="index_n">- n -</a></h3><ul>
|
108
108
|
<li>name()
|
109
|
-
: <a class="el" href="
|
109
|
+
: <a class="el" href="class_gosu_1_1_font.html#89b454fb34dd42078a6b189747a92227">Gosu::Font</a>
|
110
|
+
, <a class="el" href="class_gosu_1_1_rot_flip.html#3129da4cddf7ae6d87b5234747f048b7">Gosu::RotFlip</a>
|
110
111
|
<li>needsRedraw()
|
111
112
|
: <a class="el" href="class_gosu_1_1_window.html#94fe0b34e44e22a5076edd26f8e76853">Gosu::Window</a>
|
112
113
|
</ul>
|
@@ -109,10 +109,10 @@ Here is a list of all class members with links to the classes they belong to:
|
|
109
109
|
: <a class="el" href="struct_gosu_1_1_g_l_tex_info.html#648c5f3e307c6851514290c5e5978533">Gosu::GLTexInfo</a>
|
110
110
|
<li>text()
|
111
111
|
: <a class="el" href="class_gosu_1_1_text_input.html#1856bf4e58a2c41ca70dcfe562e8022d">Gosu::TextInput</a>
|
112
|
-
<li>textInput()
|
113
|
-
: <a class="el" href="class_gosu_1_1_input.html#1f622a0e9e1c2ab1d304e24a69b28884">Gosu::Input</a>
|
114
112
|
<li>TextInput()
|
115
113
|
: <a class="el" href="class_gosu_1_1_text_input.html#b05962a92c85b8d9535d60a1fd5e0b00">Gosu::TextInput</a>
|
114
|
+
<li>textInput()
|
115
|
+
: <a class="el" href="class_gosu_1_1_input.html#1f622a0e9e1c2ab1d304e24a69b28884">Gosu::Input</a>
|
116
116
|
<li>textWidth()
|
117
117
|
: <a class="el" href="class_gosu_1_1_font.html#ee66d136e3b5b801d146cc1134a0635a">Gosu::Font</a>
|
118
118
|
<li>top
|
@@ -111,6 +111,8 @@ window.onload = initDynSections;
|
|
111
111
|
: <a class="el" href="class_gosu_1_1_file.html#ca8146e9a279ee5cdee72bf6997eb392">Gosu::File</a>
|
112
112
|
<li>fill()
|
113
113
|
: <a class="el" href="class_gosu_1_1_bitmap.html#a0ec9491a5b0e30affa8ddf4351fc8af">Gosu::Bitmap</a>
|
114
|
+
<li>flags()
|
115
|
+
: <a class="el" href="class_gosu_1_1_font.html#3ecd8c78d0c01ac480f3b2bbbdbefe4d">Gosu::Font</a>
|
114
116
|
<li>flipped()
|
115
117
|
: <a class="el" href="class_gosu_1_1_rot_flip.html#f3ba518395cf6e27293e1c16b83d3498">Gosu::RotFlip</a>
|
116
118
|
<li>flipX()
|
@@ -118,7 +120,7 @@ window.onload = initDynSections;
|
|
118
120
|
<li>flipY()
|
119
121
|
: <a class="el" href="class_gosu_1_1_rot_flip.html#c3dbcf4ab91b10c87486a4d163d34ad8">Gosu::RotFlip</a>
|
120
122
|
<li>Font()
|
121
|
-
: <a class="el" href="class_gosu_1_1_font.html#
|
123
|
+
: <a class="el" href="class_gosu_1_1_font.html#e4c06910c2b655a0012d982ff4fde515">Gosu::Font</a>
|
122
124
|
<li>fromAHSV()
|
123
125
|
: <a class="el" href="class_gosu_1_1_color.html#b20e49f7a8bb0de839e05a0cf48a631e">Gosu::Color</a>
|
124
126
|
<li>fromHSV()
|
@@ -104,7 +104,8 @@ window.onload = initDynSections;
|
|
104
104
|
<p>
|
105
105
|
<h3><a class="anchor" name="index_n">- n -</a></h3><ul>
|
106
106
|
<li>name()
|
107
|
-
: <a class="el" href="
|
107
|
+
: <a class="el" href="class_gosu_1_1_font.html#89b454fb34dd42078a6b189747a92227">Gosu::Font</a>
|
108
|
+
, <a class="el" href="class_gosu_1_1_rot_flip.html#3129da4cddf7ae6d87b5234747f048b7">Gosu::RotFlip</a>
|
108
109
|
<li>needsRedraw()
|
109
110
|
: <a class="el" href="class_gosu_1_1_window.html#94fe0b34e44e22a5076edd26f8e76853">Gosu::Window</a>
|
110
111
|
</ul>
|
@@ -105,10 +105,10 @@ window.onload = initDynSections;
|
|
105
105
|
<h3><a class="anchor" name="index_t">- t -</a></h3><ul>
|
106
106
|
<li>text()
|
107
107
|
: <a class="el" href="class_gosu_1_1_text_input.html#1856bf4e58a2c41ca70dcfe562e8022d">Gosu::TextInput</a>
|
108
|
-
<li>TextInput()
|
109
|
-
: <a class="el" href="class_gosu_1_1_text_input.html#b05962a92c85b8d9535d60a1fd5e0b00">Gosu::TextInput</a>
|
110
108
|
<li>textInput()
|
111
109
|
: <a class="el" href="class_gosu_1_1_input.html#1f622a0e9e1c2ab1d304e24a69b28884">Gosu::Input</a>
|
110
|
+
<li>TextInput()
|
111
|
+
: <a class="el" href="class_gosu_1_1_text_input.html#b05962a92c85b8d9535d60a1fd5e0b00">Gosu::TextInput</a>
|
112
112
|
<li>textWidth()
|
113
113
|
: <a class="el" href="class_gosu_1_1_font.html#ee66d136e3b5b801d146cc1134a0635a">Gosu::Font</a>
|
114
114
|
</ul>
|
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.13.
|
4
|
+
version: 0.7.13.3
|
5
5
|
platform: ruby
|
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-05-
|
13
|
+
date: 2009-05-12 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|