gosu 0.7.13 → 0.7.13.2
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING.txt +4 -2
- data/Gosu/Audio.hpp +8 -5
- data/Gosu/Font.hpp +5 -3
- data/Gosu/Gosu.hpp +6 -0
- data/Gosu/Graphics.hpp +6 -13
- data/Gosu/GraphicsBase.hpp +14 -3
- data/Gosu/IO.hpp +259 -255
- data/Gosu/Image.hpp +12 -12
- data/Gosu/ImageData.hpp +3 -0
- data/Gosu/Input.hpp +14 -2
- data/Gosu/Math.hpp +3 -2
- data/Gosu/RotFlip.hpp +125 -116
- data/Gosu/Sockets.hpp +139 -129
- data/Gosu/Text.hpp +4 -4
- data/Gosu/WinUtility.hpp +1 -1
- data/Gosu/Window.hpp +9 -5
- data/GosuImpl/Graphics/BitmapUtils.cpp +8 -8
- data/GosuImpl/Graphics/DrawOp.hpp +13 -14
- data/GosuImpl/Graphics/Graphics.cpp +3 -2
- data/GosuImpl/Graphics/Image.cpp +8 -8
- data/GosuImpl/Graphics/LargeImageData.cpp +8 -8
- data/GosuImpl/Graphics/Text.cpp +15 -3
- data/GosuImpl/{TextTTFWin.cpp → Graphics/TextTTFWin.cpp} +0 -0
- data/GosuImpl/Graphics/TextWin.cpp +36 -25
- data/GosuImpl/Graphics/Texture.cpp +2 -0
- data/GosuImpl/Iconv.hpp +1 -3
- data/GosuImpl/RubyGosu.swg +19 -10
- data/GosuImpl/RubyGosuStub.mm +40 -8
- data/GosuImpl/RubyGosu_SWIG_GC_PATCH.patch +126 -0
- data/GosuImpl/RubyGosu_wrap.cxx +1601 -247
- data/GosuImpl/RubyGosu_wrap.h +1 -1
- data/GosuImpl/WindowWin.cpp +18 -6
- data/README.txt +5 -5
- data/Rakefile +27 -7
- data/linux/Makefile.in +1 -1
- data/mac/Gosu.xcodeproj/jlnr.pbxuser +939 -350
- data/mac/Gosu.xcodeproj/jlnr.perspectivev3 +66 -61
- data/mac/Gosu.xcodeproj/project.pbxproj +474 -92
- data/mac/RubyGosu Template-Info.plist b/data/mac/RubyGosu → App-Info.plist +0 -0
- data/reference/cpp/_audio_8hpp-source.html +171 -0
- data/reference/cpp/_audio_8hpp.html +96 -0
- data/reference/cpp/_auto_link_8hpp-source.html +84 -0
- data/reference/cpp/_auto_link_8hpp.html +83 -0
- data/reference/cpp/_bitmap_8hpp-source.html +130 -0
- data/reference/cpp/_bitmap_8hpp.html +107 -0
- data/reference/{ButtonsMac_8hpp-source.html → cpp/_buttons_mac_8hpp-source.html} +60 -14
- data/reference/cpp/_buttons_mac_8hpp.html +233 -0
- data/reference/cpp/_color_8hpp-source.html +215 -0
- data/reference/cpp/_color_8hpp.html +119 -0
- data/reference/cpp/_directories_8hpp-source.html +88 -0
- data/reference/cpp/_directories_8hpp.html +96 -0
- data/reference/cpp/_font_8hpp-source.html +111 -0
- data/reference/cpp/_font_8hpp.html +87 -0
- data/reference/{Fwd_8hpp-source.html → cpp/_fwd_8hpp-source.html} +59 -13
- data/reference/cpp/_fwd_8hpp.html +83 -0
- data/reference/cpp/_gosu_8hpp-source.html +96 -0
- data/reference/cpp/_gosu_8hpp.html +83 -0
- data/reference/cpp/_graphics_8hpp-source.html +134 -0
- data/reference/cpp/_graphics_8hpp.html +94 -0
- data/reference/cpp/_graphics_base_8hpp-source.html +115 -0
- data/reference/cpp/_graphics_base_8hpp.html +120 -0
- data/reference/cpp/_i_o_8hpp-source.html +301 -0
- data/reference/cpp/_i_o_8hpp.html +122 -0
- data/reference/cpp/_image_8hpp-source.html +172 -0
- data/reference/cpp/_image_8hpp.html +96 -0
- data/reference/cpp/_image_data_8hpp-source.html +108 -0
- data/reference/cpp/_image_data_8hpp.html +90 -0
- data/reference/cpp/_input_8hpp-source.html +182 -0
- data/reference/cpp/_input_8hpp.html +102 -0
- data/reference/cpp/_math_8hpp-source.html +147 -0
- data/reference/cpp/_math_8hpp.html +139 -0
- data/reference/{Platform_8hpp-source.html → cpp/_platform_8hpp-source.html} +61 -15
- data/reference/cpp/_platform_8hpp.html +136 -0
- data/reference/cpp/_rot_flip_8hpp-source.html +184 -0
- data/reference/cpp/_rot_flip_8hpp.html +123 -0
- data/reference/cpp/_sockets_8hpp-source.html +174 -0
- data/reference/cpp/_sockets_8hpp.html +117 -0
- data/reference/cpp/_text_8hpp-source.html +102 -0
- data/reference/cpp/_text_8hpp.html +99 -0
- data/reference/cpp/_text_input_8hpp-source.html +110 -0
- data/reference/cpp/_text_input_8hpp.html +87 -0
- data/reference/cpp/_timing_8hpp-source.html +82 -0
- data/reference/cpp/_timing_8hpp.html +90 -0
- data/reference/cpp/_utility_8hpp-source.html +89 -0
- data/reference/cpp/_utility_8hpp.html +96 -0
- data/reference/cpp/_win_utility_8hpp-source.html +125 -0
- data/reference/cpp/_win_utility_8hpp.html +116 -0
- data/reference/cpp/_window_8hpp-source.html +157 -0
- data/reference/cpp/_window_8hpp.html +87 -0
- data/reference/cpp/annotated.html +98 -0
- data/reference/cpp/class_gosu_1_1_audio-members.html +74 -0
- data/reference/cpp/class_gosu_1_1_audio.html +132 -0
- data/reference/cpp/class_gosu_1_1_bitmap-members.html +85 -0
- data/reference/cpp/class_gosu_1_1_bitmap.html +501 -0
- data/reference/cpp/class_gosu_1_1_buffer-members.html +84 -0
- data/reference/cpp/class_gosu_1_1_buffer.html +346 -0
- data/reference/{classGosu_1_1Buffer.png → cpp/class_gosu_1_1_buffer.png} +0 -0
- data/reference/cpp/class_gosu_1_1_button-members.html +76 -0
- data/reference/cpp/class_gosu_1_1_button.html +195 -0
- data/reference/cpp/class_gosu_1_1_color-members.html +96 -0
- data/reference/cpp/class_gosu_1_1_color.html +758 -0
- data/reference/cpp/class_gosu_1_1_comm_socket-members.html +90 -0
- data/reference/cpp/class_gosu_1_1_comm_socket.html +505 -0
- data/reference/cpp/class_gosu_1_1_file-members.html +81 -0
- data/reference/cpp/class_gosu_1_1_file.html +275 -0
- data/reference/{classGosu_1_1File.png → cpp/class_gosu_1_1_file.png} +0 -0
- data/reference/cpp/class_gosu_1_1_font-members.html +79 -0
- data/reference/{classGosu_1_1Font.html → cpp/class_gosu_1_1_font.html} +207 -66
- data/reference/cpp/class_gosu_1_1_graphics-members.html +90 -0
- data/reference/cpp/class_gosu_1_1_graphics.html +768 -0
- data/reference/cpp/class_gosu_1_1_image-members.html +85 -0
- data/reference/cpp/class_gosu_1_1_image.html +771 -0
- data/reference/cpp/class_gosu_1_1_image_data-members.html +77 -0
- data/reference/cpp/class_gosu_1_1_image_data.html +281 -0
- data/reference/cpp/class_gosu_1_1_input-members.html +85 -0
- data/reference/cpp/class_gosu_1_1_input.html +417 -0
- data/reference/cpp/class_gosu_1_1_listener_socket-members.html +78 -0
- data/reference/cpp/class_gosu_1_1_listener_socket.html +221 -0
- data/reference/cpp/class_gosu_1_1_message_socket-members.html +80 -0
- data/reference/{classGosu_1_1MessageSocket.html → cpp/class_gosu_1_1_message_socket.html} +115 -43
- data/reference/cpp/class_gosu_1_1_reader-members.html +80 -0
- data/reference/cpp/class_gosu_1_1_reader.html +322 -0
- data/reference/cpp/class_gosu_1_1_resource-members.html +79 -0
- data/reference/cpp/class_gosu_1_1_resource.html +305 -0
- data/reference/{classGosu_1_1Resource.png → cpp/class_gosu_1_1_resource.png} +0 -0
- data/reference/cpp/class_gosu_1_1_rot_flip-members.html +83 -0
- data/reference/cpp/class_gosu_1_1_rot_flip.html +347 -0
- data/reference/cpp/class_gosu_1_1_sample-members.html +77 -0
- data/reference/{classGosu_1_1Sample.html → cpp/class_gosu_1_1_sample.html} +99 -32
- data/reference/cpp/class_gosu_1_1_sample_instance-members.html +81 -0
- data/reference/cpp/class_gosu_1_1_sample_instance.html +317 -0
- data/reference/cpp/class_gosu_1_1_song-members.html +86 -0
- data/reference/{classGosu_1_1Song.html → cpp/class_gosu_1_1_song.html} +152 -68
- data/reference/cpp/class_gosu_1_1_text_input-members.html +78 -0
- data/reference/cpp/class_gosu_1_1_text_input.html +227 -0
- data/reference/cpp/class_gosu_1_1_window-members.html +90 -0
- data/reference/cpp/class_gosu_1_1_window.html +533 -0
- data/reference/cpp/class_gosu_1_1_writer-members.html +79 -0
- data/reference/cpp/class_gosu_1_1_writer.html +292 -0
- data/reference/cpp/classes.html +86 -0
- data/reference/cpp/closed.gif +0 -0
- data/reference/cpp/cpp.css +155 -0
- data/reference/{doxygen.png → cpp/doxygen.png} +0 -0
- data/reference/cpp/files.html +97 -0
- data/reference/cpp/functions.html +127 -0
- data/reference/cpp/functions_0x62.html +137 -0
- data/reference/cpp/functions_0x63.html +140 -0
- data/reference/cpp/functions_0x64.html +142 -0
- data/reference/cpp/functions_0x65.html +119 -0
- data/reference/cpp/functions_0x66.html +137 -0
- data/reference/cpp/functions_0x67.html +131 -0
- data/reference/cpp/functions_0x68.html +121 -0
- data/reference/cpp/functions_0x69.html +123 -0
- data/reference/cpp/functions_0x6b.html +115 -0
- data/reference/cpp/functions_0x6c.html +117 -0
- data/reference/cpp/functions_0x6d.html +125 -0
- data/reference/cpp/functions_0x6e.html +117 -0
- data/reference/cpp/functions_0x6f.html +126 -0
- data/reference/cpp/functions_0x70.html +136 -0
- data/reference/cpp/functions_0x72.html +154 -0
- data/reference/cpp/functions_0x73.html +179 -0
- data/reference/cpp/functions_0x74.html +127 -0
- data/reference/cpp/functions_0x75.html +121 -0
- data/reference/cpp/functions_0x76.html +117 -0
- data/reference/cpp/functions_0x77.html +129 -0
- data/reference/cpp/functions_0x78.html +115 -0
- data/reference/cpp/functions_0x79.html +115 -0
- data/reference/cpp/functions_0x7e.html +143 -0
- data/reference/cpp/functions_enum.html +87 -0
- data/reference/cpp/functions_eval.html +89 -0
- data/reference/cpp/functions_func.html +125 -0
- data/reference/cpp/functions_func_0x62.html +133 -0
- data/reference/cpp/functions_func_0x63.html +136 -0
- data/reference/cpp/functions_func_0x64.html +140 -0
- data/reference/cpp/functions_func_0x65.html +117 -0
- data/reference/cpp/functions_func_0x66.html +135 -0
- data/reference/cpp/functions_func_0x67.html +129 -0
- data/reference/cpp/functions_func_0x68.html +119 -0
- data/reference/cpp/functions_func_0x69.html +119 -0
- data/reference/cpp/functions_func_0x6b.html +113 -0
- data/reference/cpp/functions_func_0x6c.html +113 -0
- data/reference/cpp/functions_func_0x6d.html +123 -0
- data/reference/cpp/functions_func_0x6e.html +115 -0
- data/reference/cpp/functions_func_0x6f.html +113 -0
- data/reference/cpp/functions_func_0x70.html +134 -0
- data/reference/cpp/functions_func_0x72.html +150 -0
- data/reference/cpp/functions_func_0x73.html +173 -0
- data/reference/cpp/functions_func_0x74.html +119 -0
- data/reference/cpp/functions_func_0x75.html +119 -0
- data/reference/cpp/functions_func_0x76.html +115 -0
- data/reference/cpp/functions_func_0x77.html +127 -0
- data/reference/cpp/functions_func_0x7e.html +141 -0
- data/reference/cpp/functions_type.html +87 -0
- data/reference/cpp/functions_vars.html +112 -0
- data/reference/cpp/globals.html +84 -0
- data/reference/cpp/globals_defs.html +84 -0
- data/reference/cpp/hierarchy.html +100 -0
- data/reference/cpp/index.html +66 -0
- data/reference/cpp/open.gif +0 -0
- data/reference/cpp/struct_gosu_1_1_g_l_tex_info-members.html +77 -0
- data/reference/cpp/struct_gosu_1_1_g_l_tex_info.html +185 -0
- data/reference/cpp/struct_gosu_1_1_touch-members.html +75 -0
- data/reference/cpp/struct_gosu_1_1_touch.html +153 -0
- data/reference/{tab_b.gif → cpp/tab_b.gif} +0 -0
- data/reference/{tab_l.gif → cpp/tab_l.gif} +0 -0
- data/reference/{tab_r.gif → cpp/tab_r.gif} +0 -0
- data/reference/{tabs.css → cpp/tabs.css} +5 -2
- data/windows/Gosu.sln +5 -0
- data/windows/Gosu.vcproj +3 -3
- data/windows/RubyGosu.vcproj +103 -1
- metadata +178 -176
- data/reference/Async_8hpp-source.html +0 -70
- data/reference/Audio_8hpp-source.html +0 -125
- data/reference/Audio_8hpp.html +0 -50
- data/reference/AutoLink_8hpp-source.html +0 -38
- data/reference/AutoLink_8hpp.html +0 -34
- data/reference/Bitmap_8hpp-source.html +0 -84
- data/reference/Bitmap_8hpp.html +0 -58
- data/reference/ButtonsWin_8hpp-source.html +0 -159
- data/reference/ButtonsX_8hpp-source.html +0 -160
- data/reference/Color_8hpp-source.html +0 -169
- data/reference/Color_8hpp.html +0 -85
- data/reference/Directories_8hpp-source.html +0 -42
- data/reference/Directories_8hpp.html +0 -46
- data/reference/Font_8hpp-source.html +0 -65
- data/reference/Font_8hpp.html +0 -41
- data/reference/Fwd_8hpp.html +0 -37
- data/reference/Gosu_8hpp-source.html +0 -49
- data/reference/Gosu_8hpp.html +0 -34
- data/reference/GraphicsBase_8hpp-source.html +0 -59
- data/reference/GraphicsBase_8hpp.html +0 -59
- data/reference/Graphics_8hpp-source.html +0 -99
- data/reference/Graphics_8hpp.html +0 -60
- data/reference/IO_8hpp-source.html +0 -255
- data/reference/IO_8hpp.html +0 -74
- data/reference/ImageData_8hpp-source.html +0 -62
- data/reference/ImageData_8hpp.html +0 -43
- data/reference/Image_8hpp-source.html +0 -126
- data/reference/Image_8hpp.html +0 -48
- data/reference/Input_8hpp-source.html +0 -131
- data/reference/Input_8hpp.html +0 -56
- data/reference/Math_8hpp-source.html +0 -101
- data/reference/Math_8hpp.html +0 -78
- data/reference/Platform_8hpp.html +0 -73
- data/reference/RotFlip_8hpp-source.html +0 -138
- data/reference/RotFlip_8hpp.html +0 -77
- data/reference/Sockets_8hpp-source.html +0 -130
- data/reference/Sockets_8hpp.html +0 -66
- data/reference/TextInput_8hpp-source.html +0 -64
- data/reference/TextInput_8hpp.html +0 -41
- data/reference/Text_8hpp-source.html +0 -56
- data/reference/Text_8hpp.html +0 -48
- data/reference/Timing_8hpp-source.html +0 -36
- data/reference/Timing_8hpp.html +0 -42
- data/reference/Utility_8hpp-source.html +0 -43
- data/reference/Utility_8hpp.html +0 -46
- data/reference/WinUtility_8hpp-source.html +0 -79
- data/reference/WinUtility_8hpp.html +0 -64
- data/reference/Window_8hpp-source.html +0 -110
- data/reference/Window_8hpp.html +0 -41
- data/reference/annotated.html +0 -51
- data/reference/classGosu_1_1Audio-members.html +0 -34
- data/reference/classGosu_1_1Audio.html +0 -46
- data/reference/classGosu_1_1Bitmap-members.html +0 -45
- data/reference/classGosu_1_1Bitmap.html +0 -266
- data/reference/classGosu_1_1Buffer-members.html +0 -44
- data/reference/classGosu_1_1Buffer.html +0 -78
- data/reference/classGosu_1_1Button-members.html +0 -36
- data/reference/classGosu_1_1Button.html +0 -143
- data/reference/classGosu_1_1Color-members.html +0 -56
- data/reference/classGosu_1_1Color.html +0 -387
- data/reference/classGosu_1_1File-members.html +0 -41
- data/reference/classGosu_1_1File.html +0 -69
- data/reference/classGosu_1_1Font-members.html +0 -39
- data/reference/classGosu_1_1Graphics-members.html +0 -50
- data/reference/classGosu_1_1Graphics.html +0 -234
- data/reference/classGosu_1_1Image-members.html +0 -45
- data/reference/classGosu_1_1Image.html +0 -518
- data/reference/classGosu_1_1ImageData-members.html +0 -37
- data/reference/classGosu_1_1ImageData.html +0 -60
- data/reference/classGosu_1_1Input-members.html +0 -45
- data/reference/classGosu_1_1Input.html +0 -256
- data/reference/classGosu_1_1MessageSocket-members.html +0 -40
- data/reference/classGosu_1_1Resource-members.html +0 -39
- data/reference/classGosu_1_1Resource.html +0 -116
- data/reference/classGosu_1_1Sample-members.html +0 -37
- data/reference/classGosu_1_1SampleInstance-members.html +0 -41
- data/reference/classGosu_1_1SampleInstance.html +0 -178
- data/reference/classGosu_1_1Song-members.html +0 -46
- data/reference/classGosu_1_1TextInput-members.html +0 -38
- data/reference/classGosu_1_1TextInput.html +0 -121
- data/reference/classGosu_1_1Window-members.html +0 -50
- data/reference/classGosu_1_1Window.html +0 -289
- data/reference/doxyfile +0 -233
- data/reference/doxygen.css +0 -433
- data/reference/files.html +0 -54
- data/reference/functions.html +0 -249
- data/reference/functions_enum.html +0 -45
- data/reference/functions_func.html +0 -240
- data/reference/functions_vars.html +0 -47
- data/reference/hierarchy.html +0 -53
- data/reference/index.html +0 -26
- data/reference/namespaceGosu.html +0 -3363
- data/reference/namespaceGosu_1_1Colors.html +0 -70
- data/reference/namespaceGosu_1_1Win.html +0 -275
- data/reference/namespacemembers.html +0 -229
- data/reference/namespacemembers_enum.html +0 -52
- data/reference/namespacemembers_eval.html +0 -54
- data/reference/namespacemembers_func.html +0 -196
- data/reference/namespacemembers_type.html +0 -46
- data/reference/namespacemembers_vars.html +0 -48
- data/reference/namespaces.html +0 -35
File without changes
|
@@ -0,0 +1,171 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.8 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
50
|
+
<div class="navigation" id="top">
|
51
|
+
<div class="tabs">
|
52
|
+
<ul>
|
53
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li><a href="annotated.html"><span>Classes</span></a></li>
|
55
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
56
|
+
</ul>
|
57
|
+
</div>
|
58
|
+
<div class="tabs">
|
59
|
+
<ul>
|
60
|
+
<li><a href="files.html"><span>File List</span></a></li>
|
61
|
+
<li><a href="globals.html"><span>File Members</span></a></li>
|
62
|
+
</ul>
|
63
|
+
</div>
|
64
|
+
<h1>Audio.hpp</h1><a href="_audio_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
65
|
+
<a name="l00002"></a>00002
|
66
|
+
<a name="l00003"></a>00003
|
67
|
+
<a name="l00004"></a>00004 <span class="comment">// REDESIGN: Rename all changeXXX() member functions to setXXX().</span>
|
68
|
+
<a name="l00005"></a>00005 <span class="comment">// REDESIGN: Don't require window argument, is this possible?</span>
|
69
|
+
<a name="l00006"></a>00006
|
70
|
+
<a name="l00007"></a>00007 <span class="preprocessor">#ifndef GOSU_AUDIO_HPP</span>
|
71
|
+
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_AUDIO_HPP</span>
|
72
|
+
<a name="l00009"></a>00009 <span class="preprocessor"></span>
|
73
|
+
<a name="l00010"></a>00010 <span class="preprocessor">#ifdef WIN32</span>
|
74
|
+
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#include <windows.h></span>
|
75
|
+
<a name="l00012"></a>00012 <span class="preprocessor">#endif</span>
|
76
|
+
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="_fwd_8hpp.html" title="Contains declarations of all of Gosu&#39;s available classes.">Gosu/Fwd.hpp</a>></span>
|
77
|
+
<a name="l00014"></a>00014 <span class="preprocessor">#include <<a class="code" href="_i_o_8hpp.html" title="Contains everything related to input and output.">Gosu/IO.hpp</a>></span>
|
78
|
+
<a name="l00015"></a>00015 <span class="preprocessor">#include <<a class="code" href="_platform_8hpp.html" title="Macros and utility functions to facilitate programming on all of Gosu&#39;s supported...">Gosu/Platform.hpp</a>></span>
|
79
|
+
<a name="l00016"></a>00016 <span class="preprocessor">#include <boost/scoped_ptr.hpp></span>
|
80
|
+
<a name="l00017"></a>00017 <span class="preprocessor">#include <boost/utility.hpp></span>
|
81
|
+
<a name="l00018"></a>00018 <span class="preprocessor">#include <string></span>
|
82
|
+
<a name="l00019"></a>00019
|
83
|
+
<a name="l00020"></a>00020 <span class="keyword">namespace </span>Gosu
|
84
|
+
<a name="l00021"></a>00021 {
|
85
|
+
<a name="l00026"></a><a class="code" href="class_gosu_1_1_audio.html">00026</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a> : boost::noncopyable
|
86
|
+
<a name="l00027"></a>00027 {
|
87
|
+
<a name="l00028"></a>00028 <span class="keyword">public</span>:
|
88
|
+
<a name="l00029"></a>00029 <span class="preprocessor">#ifdef GOSU_IS_WIN</span>
|
89
|
+
<a name="l00030"></a>00030 <span class="preprocessor"></span> <span class="keyword">explicit</span> <a class="code" href="class_gosu_1_1_audio.html#aa306ffea3b3db06faa734c2ea1b231b">Audio</a>(HWND window);
|
90
|
+
<a name="l00031"></a>00031 <span class="preprocessor">#else</span>
|
91
|
+
<a name="l00032"></a>00032 <span class="preprocessor"></span> <a class="code" href="class_gosu_1_1_audio.html#aa306ffea3b3db06faa734c2ea1b231b">Audio</a>();
|
92
|
+
<a name="l00033"></a>00033 <span class="preprocessor">#endif</span>
|
93
|
+
<a name="l00034"></a>00034 <span class="preprocessor"></span> <a class="code" href="class_gosu_1_1_audio.html#cf4a34459ec54f6a64a1d2faad7d9852">~Audio</a>();
|
94
|
+
<a name="l00035"></a>00035 };
|
95
|
+
<a name="l00036"></a>00036
|
96
|
+
<a name="l00041"></a><a class="code" href="class_gosu_1_1_sample_instance.html">00041</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_sample_instance.html" title="An instance of a Sample playing.">SampleInstance</a>
|
97
|
+
<a name="l00042"></a>00042 {
|
98
|
+
<a name="l00043"></a>00043 <span class="keywordtype">int</span> handle, extra;
|
99
|
+
<a name="l00044"></a>00044 <span class="keywordtype">bool</span> alive() <span class="keyword">const</span>;
|
100
|
+
<a name="l00045"></a>00045
|
101
|
+
<a name="l00046"></a>00046 <span class="keyword">public</span>:
|
102
|
+
<a name="l00048"></a>00048 <a class="code" href="class_gosu_1_1_sample_instance.html#1dcf6b649592940d21d3d2487e510c7e" title="Called by Sample, do not use.">SampleInstance</a>(<span class="keywordtype">int</span> handle, <span class="keywordtype">int</span> extra);
|
103
|
+
<a name="l00049"></a>00049
|
104
|
+
<a name="l00050"></a>00050 <span class="keywordtype">bool</span> <a class="code" href="class_gosu_1_1_sample_instance.html#4c655ba53464bbd639a873a88f3823c0">playing</a>() <span class="keyword">const</span>;
|
105
|
+
<a name="l00051"></a>00051 <span class="keywordtype">bool</span> <a class="code" href="class_gosu_1_1_sample_instance.html#d5eba2378d898d8909a78b82c5febf20">paused</a>() <span class="keyword">const</span>;
|
106
|
+
<a name="l00053"></a>00053 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_sample_instance.html#b4ad4b11ffdb0b3fa1f6dbd94e18faa7" title="Pauses this instance to be resumed afterwards. It will still keep a channel filled...">pause</a>();
|
107
|
+
<a name="l00054"></a>00054 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_sample_instance.html#f3067dfb6b336300cf1fea4cddeb53dd">resume</a>();
|
108
|
+
<a name="l00057"></a>00057 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_sample_instance.html#adfc8ba4e568999ba43f792205c8725a" title="Stops this instance of a sound being played.">stop</a>();
|
109
|
+
<a name="l00058"></a>00058
|
110
|
+
<a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_sample_instance.html#bb54d7569ac18cdad24da5d538cca1b5">changeVolume</a>(<span class="keywordtype">double</span> volume);
|
111
|
+
<a name="l00063"></a>00063 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_sample_instance.html#def37ef2af53716fb0b10e06263468d0">changePan</a>(<span class="keywordtype">double</span> pan);
|
112
|
+
<a name="l00067"></a>00067 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_sample_instance.html#3de21bed437c846734cf06243a5db112">changeSpeed</a>(<span class="keywordtype">double</span> speed);
|
113
|
+
<a name="l00068"></a>00068 };
|
114
|
+
<a name="l00069"></a>00069
|
115
|
+
<a name="l00073"></a><a class="code" href="class_gosu_1_1_sample.html">00073</a> <span class="keyword">class </span><a class="code" 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>
|
116
|
+
<a name="l00074"></a>00074 {
|
117
|
+
<a name="l00075"></a>00075 <span class="keyword">struct </span>SampleData;
|
118
|
+
<a name="l00076"></a>00076 boost::scoped_ptr<SampleData> data;
|
119
|
+
<a name="l00077"></a>00077
|
120
|
+
<a name="l00078"></a>00078 <span class="keyword">public</span>:
|
121
|
+
<a name="l00081"></a>00081 <a class="code" href="class_gosu_1_1_sample.html#11aa4cd7de748370c9352970660619bf" title="Constructs a sample that can be played on the specified audio system and loads the...">Sample</a>(<a class="code" href="class_gosu_1_1_audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>& audio, <span class="keyword">const</span> std::wstring& filename);
|
122
|
+
<a name="l00082"></a>00082
|
123
|
+
<a name="l00085"></a>00085 <a class="code" href="class_gosu_1_1_sample.html#11aa4cd7de748370c9352970660619bf" title="Constructs a sample that can be played on the specified audio system and loads the...">Sample</a>(<a class="code" href="class_gosu_1_1_audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>& audio, <a class="code" href="class_gosu_1_1_reader.html" title="Utility class that points to a specific position in a resource and offers an interface...">Reader</a> reader);
|
124
|
+
<a name="l00086"></a>00086
|
125
|
+
<a name="l00087"></a>00087 <a class="code" href="class_gosu_1_1_sample.html#cdb077bd8ae99bf5ead218d852017265">~Sample</a>();
|
126
|
+
<a name="l00088"></a>00088
|
127
|
+
<a name="l00095"></a>00095 <a class="code" href="class_gosu_1_1_sample_instance.html" title="An instance of a Sample playing.">SampleInstance</a> <a class="code" href="class_gosu_1_1_sample.html#190b3cc66e2115c7ed0390c47769c1b8" title="Plays the sample without panning.">play</a>(<span class="keywordtype">double</span> volume = 1, <span class="keywordtype">double</span> speed = 1,
|
128
|
+
<a name="l00096"></a>00096 <span class="keywordtype">bool</span> looping = <span class="keyword">false</span>) <span class="keyword">const</span>;
|
129
|
+
<a name="l00097"></a>00097
|
130
|
+
<a name="l00107"></a>00107 <a class="code" href="class_gosu_1_1_sample_instance.html" title="An instance of a Sample playing.">SampleInstance</a> <a class="code" href="class_gosu_1_1_sample.html#13032b78fa19f7324035c6fbee6e5069" title="Plays the sample with panning.">playPan</a>(<span class="keywordtype">double</span> pan, <span class="keywordtype">double</span> volume = 1, <span class="keywordtype">double</span> speed = 1,
|
131
|
+
<a name="l00108"></a>00108 <span class="keywordtype">bool</span> looping = <span class="keyword">false</span>) <span class="keyword">const</span>;
|
132
|
+
<a name="l00109"></a>00109 };
|
133
|
+
<a name="l00110"></a>00110
|
134
|
+
<a name="l00113"></a><a class="code" href="class_gosu_1_1_song.html">00113</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_song.html" title="Songs are less flexible than samples in that they can only be played one at a time...">Song</a>
|
135
|
+
<a name="l00114"></a>00114 {
|
136
|
+
<a name="l00115"></a>00115 <span class="keyword">class </span>BaseData;
|
137
|
+
<a name="l00116"></a>00116 <span class="keyword">class </span>ModuleData;
|
138
|
+
<a name="l00117"></a>00117 <span class="keyword">class </span>StreamData;
|
139
|
+
<a name="l00118"></a>00118 boost::scoped_ptr<BaseData> data;
|
140
|
+
<a name="l00119"></a>00119
|
141
|
+
<a name="l00120"></a>00120 <span class="keyword">public</span>:
|
142
|
+
<a name="l00123"></a><a class="code" href="class_gosu_1_1_song.html#ec4c76bfe19e210da34bcaa286af605f">00123</a> <span class="keyword">enum</span> <a class="code" href="class_gosu_1_1_song.html#ec4c76bfe19e210da34bcaa286af605f" title="There are two types of songs that can be loaded as a Song: Streamed songs (like OGG)...">Type</a>
|
143
|
+
<a name="l00124"></a>00124 {
|
144
|
+
<a name="l00125"></a><a class="code" href="class_gosu_1_1_song.html#ec4c76bfe19e210da34bcaa286af605fe286e9a21b389adc85979f676f545f08">00125</a> <a class="code" href="class_gosu_1_1_song.html#ec4c76bfe19e210da34bcaa286af605fe286e9a21b389adc85979f676f545f08">stStream</a>,
|
145
|
+
<a name="l00126"></a><a class="code" href="class_gosu_1_1_song.html#ec4c76bfe19e210da34bcaa286af605fc0813c1fe4a20efe8f8431dabd4e2b08">00126</a> <a class="code" href="class_gosu_1_1_song.html#ec4c76bfe19e210da34bcaa286af605fc0813c1fe4a20efe8f8431dabd4e2b08">stModule</a>
|
146
|
+
<a name="l00127"></a>00127 };
|
147
|
+
<a name="l00128"></a>00128
|
148
|
+
<a name="l00132"></a>00132 <a class="code" href="class_gosu_1_1_song.html#ef65dfe9e74d33480375481d47eee408" title="Constructs a song that can be played on the provided audio system and loads the song...">Song</a>(<a class="code" href="class_gosu_1_1_audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>&, <span class="keyword">const</span> std::wstring& filename);
|
149
|
+
<a name="l00133"></a>00133
|
150
|
+
<a name="l00136"></a>00136 <a class="code" href="class_gosu_1_1_song.html#ef65dfe9e74d33480375481d47eee408" title="Constructs a song that can be played on the provided audio system and loads the song...">Song</a>(<a class="code" href="class_gosu_1_1_audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>&, <a class="code" href="class_gosu_1_1_song.html#ec4c76bfe19e210da34bcaa286af605f" title="There are two types of songs that can be loaded as a Song: Streamed songs (like OGG)...">Type</a> type, <a class="code" href="class_gosu_1_1_reader.html" title="Utility class that points to a specific position in a resource and offers an interface...">Reader</a> reader);
|
151
|
+
<a name="l00137"></a>00137
|
152
|
+
<a name="l00138"></a>00138 <a class="code" href="class_gosu_1_1_song.html#ff79e20283962720a12248861d8b2883">~Song</a>();
|
153
|
+
<a name="l00139"></a>00139
|
154
|
+
<a name="l00143"></a>00143 <span class="keyword">static</span> <a class="code" href="class_gosu_1_1_song.html" title="Songs are less flexible than samples in that they can only be played one at a time...">Song</a>* <a class="code" href="class_gosu_1_1_song.html#3f6c94bd9ea9522430d6e0d1e1e64250" title="Returns the song currently being played or paused, or 0 if no song has been played...">currentSong</a>();
|
155
|
+
<a name="l00144"></a>00144
|
156
|
+
<a name="l00147"></a>00147 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_song.html#6b9cb7b452a737455e8cf4e7d90acff9" title="Starts or resumes playback of the song.">play</a>(<span class="keywordtype">bool</span> looping = <span class="keyword">false</span>);
|
157
|
+
<a name="l00150"></a>00150 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_song.html#9ae053fbee6f240d2793fab3fa4ef596" title="Pauses playback of the song.">pause</a>();
|
158
|
+
<a name="l00153"></a>00153 <span class="keywordtype">bool</span> <a class="code" href="class_gosu_1_1_song.html#a0d611bf37c19086797c9e46e001e092" title="Returns true if the song is the current song, but in paused mode.">paused</a>() <span class="keyword">const</span>;
|
159
|
+
<a name="l00156"></a>00156 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_song.html#469a3cf49be8ebec2c9855dec46f5f71" title="Stops playback of this song if it is currently played or paused.">stop</a>();
|
160
|
+
<a name="l00158"></a>00158 <span class="keywordtype">bool</span> <a class="code" href="class_gosu_1_1_song.html#c83d4b509149c2b1fb48ad697fb1adf3" title="Returns true if the song is currently playing.">playing</a>() <span class="keyword">const</span>;
|
161
|
+
<a name="l00160"></a>00160 <span class="keywordtype">double</span> <a class="code" href="class_gosu_1_1_song.html#ab8e8a273b5ea235ad9f48dee684c683" title="Returns the current volume of the song.">volume</a>() <span class="keyword">const</span>;
|
162
|
+
<a name="l00162"></a>00162 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_song.html#e460032103a9ddb7e0dd50f53fb9d36e" title="Changes the volume of the song.">changeVolume</a>(<span class="keywordtype">double</span> <a class="code" href="class_gosu_1_1_song.html#ab8e8a273b5ea235ad9f48dee684c683" title="Returns the current volume of the song.">volume</a>);
|
163
|
+
<a name="l00163"></a>00163 };
|
164
|
+
<a name="l00164"></a>00164 }
|
165
|
+
<a name="l00165"></a>00165
|
166
|
+
<a name="l00166"></a>00166 <span class="preprocessor">#endif</span>
|
167
|
+
</pre></div></div>
|
168
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
169
|
+
</div>
|
170
|
+
</body>
|
171
|
+
</html>
|
@@ -0,0 +1,96 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.8 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
50
|
+
<div class="navigation" id="top">
|
51
|
+
<div class="tabs">
|
52
|
+
<ul>
|
53
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li><a href="annotated.html"><span>Classes</span></a></li>
|
55
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
56
|
+
</ul>
|
57
|
+
</div>
|
58
|
+
<div class="tabs">
|
59
|
+
<ul>
|
60
|
+
<li><a href="files.html"><span>File List</span></a></li>
|
61
|
+
<li><a href="globals.html"><span>File Members</span></a></li>
|
62
|
+
</ul>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
<div class="contents">
|
66
|
+
<h1>Audio.hpp File Reference</h1>Contains all the classes of Gosu's audio system.
|
67
|
+
<a href="#_details">More...</a>
|
68
|
+
<p>
|
69
|
+
|
70
|
+
<p>
|
71
|
+
<a href="_audio_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
72
|
+
<tr><td></td></tr>
|
73
|
+
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
|
74
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_audio.html">Gosu::Audio</a></td></tr>
|
75
|
+
|
76
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Manages initialization and finalization of audio libraries. <a href="class_gosu_1_1_audio.html#_details">More...</a><br></td></tr>
|
77
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_sample_instance.html">Gosu::SampleInstance</a></td></tr>
|
78
|
+
|
79
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">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. <a href="class_gosu_1_1_sample_instance.html#_details">More...</a><br></td></tr>
|
80
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_sample.html">Gosu::Sample</a></td></tr>
|
81
|
+
|
82
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">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. <a href="class_gosu_1_1_sample.html#_details">More...</a><br></td></tr>
|
83
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_song.html">Gosu::Song</a></td></tr>
|
84
|
+
|
85
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Songs are less flexible than samples in that they can only be played one at a time and without panning or speed parameters. <a href="class_gosu_1_1_song.html#_details">More...</a><br></td></tr>
|
86
|
+
</table>
|
87
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
88
|
+
Contains all the classes of Gosu's audio system.
|
89
|
+
<p>
|
90
|
+
|
91
|
+
<p>Definition in file <a class="el" href="_audio_8hpp-source.html">Audio.hpp</a>.</p>
|
92
|
+
</div>
|
93
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
94
|
+
</div>
|
95
|
+
</body>
|
96
|
+
</html>
|
@@ -0,0 +1,84 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.8 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
50
|
+
<div class="navigation" id="top">
|
51
|
+
<div class="tabs">
|
52
|
+
<ul>
|
53
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li><a href="annotated.html"><span>Classes</span></a></li>
|
55
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
56
|
+
</ul>
|
57
|
+
</div>
|
58
|
+
<div class="tabs">
|
59
|
+
<ul>
|
60
|
+
<li><a href="files.html"><span>File List</span></a></li>
|
61
|
+
<li><a href="globals.html"><span>File Members</span></a></li>
|
62
|
+
</ul>
|
63
|
+
</div>
|
64
|
+
<h1>AutoLink.hpp</h1><a href="_auto_link_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
65
|
+
<a name="l00002"></a>00002
|
66
|
+
<a name="l00003"></a>00003
|
67
|
+
<a name="l00004"></a>00004
|
68
|
+
<a name="l00005"></a>00005 <span class="preprocessor">#ifdef _MSC_VER</span>
|
69
|
+
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#ifndef GOSU_AUTOLINK_HPP</span>
|
70
|
+
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_AUTOLINK_HPP</span>
|
71
|
+
<a name="l00008"></a>00008 <span class="preprocessor"></span>
|
72
|
+
<a name="l00009"></a>00009 <span class="preprocessor">#ifdef NDEBUG</span>
|
73
|
+
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#pragma comment(lib, "Gosu.lib")</span>
|
74
|
+
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#else</span>
|
75
|
+
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#pragma comment(lib, "GosuDebug.lib")</span>
|
76
|
+
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
77
|
+
<a name="l00014"></a>00014 <span class="preprocessor"></span>
|
78
|
+
<a name="l00015"></a>00015 <span class="preprocessor">#endif</span>
|
79
|
+
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
80
|
+
</pre></div></div>
|
81
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
82
|
+
</div>
|
83
|
+
</body>
|
84
|
+
</html>
|
@@ -0,0 +1,83 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.8 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
50
|
+
<div class="navigation" id="top">
|
51
|
+
<div class="tabs">
|
52
|
+
<ul>
|
53
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li><a href="annotated.html"><span>Classes</span></a></li>
|
55
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
56
|
+
</ul>
|
57
|
+
</div>
|
58
|
+
<div class="tabs">
|
59
|
+
<ul>
|
60
|
+
<li><a href="files.html"><span>File List</span></a></li>
|
61
|
+
<li><a href="globals.html"><span>File Members</span></a></li>
|
62
|
+
</ul>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
<div class="contents">
|
66
|
+
<h1>AutoLink.hpp File Reference</h1>Contains pragmas that make MSVC link against all the necessary libraries automatically.
|
67
|
+
<a href="#_details">More...</a>
|
68
|
+
<p>
|
69
|
+
|
70
|
+
<p>
|
71
|
+
<a href="_auto_link_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
72
|
+
<tr><td></td></tr>
|
73
|
+
</table>
|
74
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
75
|
+
Contains pragmas that make MSVC link against all the necessary libraries automatically.
|
76
|
+
<p>
|
77
|
+
|
78
|
+
<p>Definition in file <a class="el" href="_auto_link_8hpp-source.html">AutoLink.hpp</a>.</p>
|
79
|
+
</div>
|
80
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
81
|
+
</div>
|
82
|
+
</body>
|
83
|
+
</html>
|
@@ -0,0 +1,130 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.8 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
50
|
+
<div class="navigation" id="top">
|
51
|
+
<div class="tabs">
|
52
|
+
<ul>
|
53
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li><a href="annotated.html"><span>Classes</span></a></li>
|
55
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
56
|
+
</ul>
|
57
|
+
</div>
|
58
|
+
<div class="tabs">
|
59
|
+
<ul>
|
60
|
+
<li><a href="files.html"><span>File List</span></a></li>
|
61
|
+
<li><a href="globals.html"><span>File Members</span></a></li>
|
62
|
+
</ul>
|
63
|
+
</div>
|
64
|
+
<h1>Bitmap.hpp</h1><a href="_bitmap_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
65
|
+
<a name="l00002"></a>00002
|
66
|
+
<a name="l00003"></a>00003
|
67
|
+
<a name="l00004"></a>00004 <span class="preprocessor">#ifndef GOSU_BITMAP_HPP</span>
|
68
|
+
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_BITMAP_HPP</span>
|
69
|
+
<a name="l00006"></a>00006 <span class="preprocessor"></span>
|
70
|
+
<a name="l00007"></a>00007 <span class="preprocessor">#include <<a class="code" href="_color_8hpp.html" title="Interface of the Color class.">Gosu/Color.hpp</a>></span>
|
71
|
+
<a name="l00008"></a>00008 <span class="preprocessor">#include <<a class="code" href="_fwd_8hpp.html" title="Contains declarations of all of Gosu&#39;s available classes.">Gosu/Fwd.hpp</a>></span>
|
72
|
+
<a name="l00009"></a>00009 <span class="preprocessor">#include <<a class="code" href="_graphics_base_8hpp.html" title="Contains general typedefs and enums related to graphics.">Gosu/GraphicsBase.hpp</a>></span>
|
73
|
+
<a name="l00010"></a>00010 <span class="preprocessor">#include <boost/scoped_ptr.hpp></span>
|
74
|
+
<a name="l00011"></a>00011 <span class="preprocessor">#include <string></span>
|
75
|
+
<a name="l00012"></a>00012 <span class="preprocessor">#include <vector></span>
|
76
|
+
<a name="l00013"></a>00013
|
77
|
+
<a name="l00014"></a>00014 <span class="keyword">namespace </span>Gosu
|
78
|
+
<a name="l00015"></a>00015 {
|
79
|
+
<a name="l00020"></a><a class="code" href="class_gosu_1_1_bitmap.html">00020</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_bitmap.html" title="Rectangular area of pixels, each represented by a Color value.">Bitmap</a>
|
80
|
+
<a name="l00021"></a>00021 {
|
81
|
+
<a name="l00022"></a>00022 <span class="keywordtype">unsigned</span> w, h;
|
82
|
+
<a name="l00023"></a>00023 std::vector<Color> pixels;
|
83
|
+
<a name="l00024"></a>00024
|
84
|
+
<a name="l00025"></a>00025 <span class="keyword">public</span>:
|
85
|
+
<a name="l00026"></a>00026 <a class="code" href="class_gosu_1_1_bitmap.html#c4cded37a45be62178ac260839ec88ab">Bitmap</a>();
|
86
|
+
<a name="l00027"></a>00027
|
87
|
+
<a name="l00028"></a><a class="code" href="class_gosu_1_1_bitmap.html#eb1d21d261788c77aba770361ccdb09f">00028</a> <span class="keywordtype">unsigned</span> <a class="code" href="class_gosu_1_1_bitmap.html#eb1d21d261788c77aba770361ccdb09f">width</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> w; }
|
88
|
+
<a name="l00029"></a><a class="code" href="class_gosu_1_1_bitmap.html#fc5a1fdaaf0453834c3b9ac13342eae6">00029</a> <span class="keywordtype">unsigned</span> <a class="code" href="class_gosu_1_1_bitmap.html#fc5a1fdaaf0453834c3b9ac13342eae6">height</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> h; }
|
89
|
+
<a name="l00030"></a>00030
|
90
|
+
<a name="l00031"></a>00031 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_bitmap.html#f1c65649edc1218628e5e74c5ae807ba">swap</a>(<a class="code" href="class_gosu_1_1_bitmap.html" title="Rectangular area of pixels, each represented by a Color value.">Bitmap</a>& other);
|
91
|
+
<a name="l00032"></a>00032
|
92
|
+
<a name="l00033"></a>00033 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_bitmap.html#4e23daf38aaa2e040949724f04e280e4">resize</a>(<span class="keywordtype">unsigned</span> <a class="code" href="class_gosu_1_1_bitmap.html#eb1d21d261788c77aba770361ccdb09f">width</a>, <span class="keywordtype">unsigned</span> <a class="code" href="class_gosu_1_1_bitmap.html#fc5a1fdaaf0453834c3b9ac13342eae6">height</a>, <a class="code" href="class_gosu_1_1_color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> c = Colors::none);
|
93
|
+
<a name="l00034"></a>00034
|
94
|
+
<a name="l00035"></a>00035 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_bitmap.html#a0ec9491a5b0e30affa8ddf4351fc8af">fill</a>(<a class="code" href="class_gosu_1_1_color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> c);
|
95
|
+
<a name="l00036"></a>00036 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_bitmap.html#c344975cd3a27fa5a564e2b709a06780">replace</a>(<a class="code" href="class_gosu_1_1_color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> oldColor, <a class="code" href="class_gosu_1_1_color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> newColor);
|
96
|
+
<a name="l00037"></a>00037
|
97
|
+
<a name="l00040"></a><a class="code" href="class_gosu_1_1_bitmap.html#93ea4a3ce9a09520dee52ba4deae4d18">00040</a> <a class="code" href="class_gosu_1_1_color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> <a class="code" href="class_gosu_1_1_bitmap.html#93ea4a3ce9a09520dee52ba4deae4d18" title="Returns the color at the specified position.">getPixel</a>(<span class="keywordtype">unsigned</span> x, <span class="keywordtype">unsigned</span> y)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> pixels[y * w + x]; }
|
98
|
+
<a name="l00041"></a>00041
|
99
|
+
<a name="l00044"></a><a class="code" href="class_gosu_1_1_bitmap.html#7a247689a33ceb7c296035f439d9e549">00044</a> <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_bitmap.html#7a247689a33ceb7c296035f439d9e549" title="Sets the pixel at the specified position to a color.">setPixel</a>(<span class="keywordtype">unsigned</span> x, <span class="keywordtype">unsigned</span> y, <a class="code" href="class_gosu_1_1_color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> c) { pixels[y * w + x] = c; }
|
100
|
+
<a name="l00045"></a>00045
|
101
|
+
<a name="l00049"></a>00049 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_bitmap.html#fe59c7aed8ffadefb136eff87326c13e" title="Inserts a bitmap at the given position.">insert</a>(<span class="keyword">const</span> <a class="code" href="class_gosu_1_1_bitmap.html" title="Rectangular area of pixels, each represented by a Color value.">Bitmap</a>& source, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
|
102
|
+
<a name="l00050"></a>00050
|
103
|
+
<a name="l00054"></a>00054 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_bitmap.html#fe59c7aed8ffadefb136eff87326c13e" title="Inserts a bitmap at the given position.">insert</a>(<span class="keyword">const</span> <a class="code" href="class_gosu_1_1_bitmap.html" title="Rectangular area of pixels, each represented by a Color value.">Bitmap</a>& source, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">unsigned</span> srcX,
|
104
|
+
<a name="l00055"></a>00055 <span class="keywordtype">unsigned</span> srcY, <span class="keywordtype">unsigned</span> srcWidth, <span class="keywordtype">unsigned</span> srcHeight);
|
105
|
+
<a name="l00056"></a>00056
|
106
|
+
<a name="l00059"></a><a class="code" href="class_gosu_1_1_bitmap.html#f20320b33058d6a54aa31fc4c99a65fe">00059</a> <span class="keyword">const</span> <span class="keywordtype">unsigned</span>* <a class="code" href="class_gosu_1_1_bitmap.html#f20320b33058d6a54aa31fc4c99a65fe" title="Direct access to the array of color values.">data</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast<</span><span class="keyword">const </span><span class="keywordtype">unsigned</span>*<span class="keyword">></span>(&pixels[0]); }
|
107
|
+
<a name="l00060"></a><a class="code" href="class_gosu_1_1_bitmap.html#cc56f99b3f96e80e568cf4e22f912da6">00060</a> <span class="keywordtype">unsigned</span>* <a class="code" href="class_gosu_1_1_bitmap.html#cc56f99b3f96e80e568cf4e22f912da6">data</a>() { <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast<</span><span class="keywordtype">unsigned</span>*<span class="keyword">></span>(&pixels[0]); }
|
108
|
+
<a name="l00061"></a>00061 };
|
109
|
+
<a name="l00062"></a>00062
|
110
|
+
<a name="l00064"></a>00064 Reader loadFromBMP(Bitmap& bmp, Reader reader);
|
111
|
+
<a name="l00066"></a>00066 Writer saveToBMP(<span class="keyword">const</span> Bitmap& bmp, Writer writer);
|
112
|
+
<a name="l00068"></a>00068 Reader loadFromPNG(Bitmap& bmp, Reader reader);
|
113
|
+
<a name="l00070"></a>00070 Writer saveToPNG(<span class="keyword">const</span> Bitmap& bmp, Writer writer);
|
114
|
+
<a name="l00071"></a>00071
|
115
|
+
<a name="l00075"></a>00075 <span class="keywordtype">void</span> applyColorKey(Bitmap& bitmap, Color key);
|
116
|
+
<a name="l00076"></a>00076
|
117
|
+
<a name="l00077"></a>00077 <span class="keywordtype">void</span> applyBorderFlags(Bitmap& dest, <span class="keyword">const</span> Bitmap& source,
|
118
|
+
<a name="l00078"></a>00078 <span class="keywordtype">unsigned</span> srcX, <span class="keywordtype">unsigned</span> srcY, <span class="keywordtype">unsigned</span> srcWidth, <span class="keywordtype">unsigned</span> srcHeight,
|
119
|
+
<a name="l00079"></a>00079 <span class="keywordtype">unsigned</span> borderFlags);
|
120
|
+
<a name="l00080"></a>00080
|
121
|
+
<a name="l00081"></a>00081 <span class="comment">// Still to be moved around & undocumented, beware! (TODO)</span>
|
122
|
+
<a name="l00082"></a>00082 Bitmap quickLoadBitmap(<span class="keyword">const</span> std::wstring& filename);
|
123
|
+
<a name="l00083"></a>00083 }
|
124
|
+
<a name="l00084"></a>00084
|
125
|
+
<a name="l00085"></a>00085 <span class="preprocessor">#endif</span>
|
126
|
+
</pre></div></div>
|
127
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
128
|
+
</div>
|
129
|
+
</body>
|
130
|
+
</html>
|