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.
Files changed (312) hide show
  1. data/COPYING.txt +4 -2
  2. data/Gosu/Audio.hpp +8 -5
  3. data/Gosu/Font.hpp +5 -3
  4. data/Gosu/Gosu.hpp +6 -0
  5. data/Gosu/Graphics.hpp +6 -13
  6. data/Gosu/GraphicsBase.hpp +14 -3
  7. data/Gosu/IO.hpp +259 -255
  8. data/Gosu/Image.hpp +12 -12
  9. data/Gosu/ImageData.hpp +3 -0
  10. data/Gosu/Input.hpp +14 -2
  11. data/Gosu/Math.hpp +3 -2
  12. data/Gosu/RotFlip.hpp +125 -116
  13. data/Gosu/Sockets.hpp +139 -129
  14. data/Gosu/Text.hpp +4 -4
  15. data/Gosu/WinUtility.hpp +1 -1
  16. data/Gosu/Window.hpp +9 -5
  17. data/GosuImpl/Graphics/BitmapUtils.cpp +8 -8
  18. data/GosuImpl/Graphics/DrawOp.hpp +13 -14
  19. data/GosuImpl/Graphics/Graphics.cpp +3 -2
  20. data/GosuImpl/Graphics/Image.cpp +8 -8
  21. data/GosuImpl/Graphics/LargeImageData.cpp +8 -8
  22. data/GosuImpl/Graphics/Text.cpp +15 -3
  23. data/GosuImpl/{TextTTFWin.cpp → Graphics/TextTTFWin.cpp} +0 -0
  24. data/GosuImpl/Graphics/TextWin.cpp +36 -25
  25. data/GosuImpl/Graphics/Texture.cpp +2 -0
  26. data/GosuImpl/Iconv.hpp +1 -3
  27. data/GosuImpl/RubyGosu.swg +19 -10
  28. data/GosuImpl/RubyGosuStub.mm +40 -8
  29. data/GosuImpl/RubyGosu_SWIG_GC_PATCH.patch +126 -0
  30. data/GosuImpl/RubyGosu_wrap.cxx +1601 -247
  31. data/GosuImpl/RubyGosu_wrap.h +1 -1
  32. data/GosuImpl/WindowWin.cpp +18 -6
  33. data/README.txt +5 -5
  34. data/Rakefile +27 -7
  35. data/linux/Makefile.in +1 -1
  36. data/mac/Gosu.xcodeproj/jlnr.pbxuser +939 -350
  37. data/mac/Gosu.xcodeproj/jlnr.perspectivev3 +66 -61
  38. data/mac/Gosu.xcodeproj/project.pbxproj +474 -92
  39. data/mac/RubyGosu Template-Info.plist b/data/mac/RubyGosu → App-Info.plist +0 -0
  40. data/reference/cpp/_audio_8hpp-source.html +171 -0
  41. data/reference/cpp/_audio_8hpp.html +96 -0
  42. data/reference/cpp/_auto_link_8hpp-source.html +84 -0
  43. data/reference/cpp/_auto_link_8hpp.html +83 -0
  44. data/reference/cpp/_bitmap_8hpp-source.html +130 -0
  45. data/reference/cpp/_bitmap_8hpp.html +107 -0
  46. data/reference/{ButtonsMac_8hpp-source.html → cpp/_buttons_mac_8hpp-source.html} +60 -14
  47. data/reference/cpp/_buttons_mac_8hpp.html +233 -0
  48. data/reference/cpp/_color_8hpp-source.html +215 -0
  49. data/reference/cpp/_color_8hpp.html +119 -0
  50. data/reference/cpp/_directories_8hpp-source.html +88 -0
  51. data/reference/cpp/_directories_8hpp.html +96 -0
  52. data/reference/cpp/_font_8hpp-source.html +111 -0
  53. data/reference/cpp/_font_8hpp.html +87 -0
  54. data/reference/{Fwd_8hpp-source.html → cpp/_fwd_8hpp-source.html} +59 -13
  55. data/reference/cpp/_fwd_8hpp.html +83 -0
  56. data/reference/cpp/_gosu_8hpp-source.html +96 -0
  57. data/reference/cpp/_gosu_8hpp.html +83 -0
  58. data/reference/cpp/_graphics_8hpp-source.html +134 -0
  59. data/reference/cpp/_graphics_8hpp.html +94 -0
  60. data/reference/cpp/_graphics_base_8hpp-source.html +115 -0
  61. data/reference/cpp/_graphics_base_8hpp.html +120 -0
  62. data/reference/cpp/_i_o_8hpp-source.html +301 -0
  63. data/reference/cpp/_i_o_8hpp.html +122 -0
  64. data/reference/cpp/_image_8hpp-source.html +172 -0
  65. data/reference/cpp/_image_8hpp.html +96 -0
  66. data/reference/cpp/_image_data_8hpp-source.html +108 -0
  67. data/reference/cpp/_image_data_8hpp.html +90 -0
  68. data/reference/cpp/_input_8hpp-source.html +182 -0
  69. data/reference/cpp/_input_8hpp.html +102 -0
  70. data/reference/cpp/_math_8hpp-source.html +147 -0
  71. data/reference/cpp/_math_8hpp.html +139 -0
  72. data/reference/{Platform_8hpp-source.html → cpp/_platform_8hpp-source.html} +61 -15
  73. data/reference/cpp/_platform_8hpp.html +136 -0
  74. data/reference/cpp/_rot_flip_8hpp-source.html +184 -0
  75. data/reference/cpp/_rot_flip_8hpp.html +123 -0
  76. data/reference/cpp/_sockets_8hpp-source.html +174 -0
  77. data/reference/cpp/_sockets_8hpp.html +117 -0
  78. data/reference/cpp/_text_8hpp-source.html +102 -0
  79. data/reference/cpp/_text_8hpp.html +99 -0
  80. data/reference/cpp/_text_input_8hpp-source.html +110 -0
  81. data/reference/cpp/_text_input_8hpp.html +87 -0
  82. data/reference/cpp/_timing_8hpp-source.html +82 -0
  83. data/reference/cpp/_timing_8hpp.html +90 -0
  84. data/reference/cpp/_utility_8hpp-source.html +89 -0
  85. data/reference/cpp/_utility_8hpp.html +96 -0
  86. data/reference/cpp/_win_utility_8hpp-source.html +125 -0
  87. data/reference/cpp/_win_utility_8hpp.html +116 -0
  88. data/reference/cpp/_window_8hpp-source.html +157 -0
  89. data/reference/cpp/_window_8hpp.html +87 -0
  90. data/reference/cpp/annotated.html +98 -0
  91. data/reference/cpp/class_gosu_1_1_audio-members.html +74 -0
  92. data/reference/cpp/class_gosu_1_1_audio.html +132 -0
  93. data/reference/cpp/class_gosu_1_1_bitmap-members.html +85 -0
  94. data/reference/cpp/class_gosu_1_1_bitmap.html +501 -0
  95. data/reference/cpp/class_gosu_1_1_buffer-members.html +84 -0
  96. data/reference/cpp/class_gosu_1_1_buffer.html +346 -0
  97. data/reference/{classGosu_1_1Buffer.png → cpp/class_gosu_1_1_buffer.png} +0 -0
  98. data/reference/cpp/class_gosu_1_1_button-members.html +76 -0
  99. data/reference/cpp/class_gosu_1_1_button.html +195 -0
  100. data/reference/cpp/class_gosu_1_1_color-members.html +96 -0
  101. data/reference/cpp/class_gosu_1_1_color.html +758 -0
  102. data/reference/cpp/class_gosu_1_1_comm_socket-members.html +90 -0
  103. data/reference/cpp/class_gosu_1_1_comm_socket.html +505 -0
  104. data/reference/cpp/class_gosu_1_1_file-members.html +81 -0
  105. data/reference/cpp/class_gosu_1_1_file.html +275 -0
  106. data/reference/{classGosu_1_1File.png → cpp/class_gosu_1_1_file.png} +0 -0
  107. data/reference/cpp/class_gosu_1_1_font-members.html +79 -0
  108. data/reference/{classGosu_1_1Font.html → cpp/class_gosu_1_1_font.html} +207 -66
  109. data/reference/cpp/class_gosu_1_1_graphics-members.html +90 -0
  110. data/reference/cpp/class_gosu_1_1_graphics.html +768 -0
  111. data/reference/cpp/class_gosu_1_1_image-members.html +85 -0
  112. data/reference/cpp/class_gosu_1_1_image.html +771 -0
  113. data/reference/cpp/class_gosu_1_1_image_data-members.html +77 -0
  114. data/reference/cpp/class_gosu_1_1_image_data.html +281 -0
  115. data/reference/cpp/class_gosu_1_1_input-members.html +85 -0
  116. data/reference/cpp/class_gosu_1_1_input.html +417 -0
  117. data/reference/cpp/class_gosu_1_1_listener_socket-members.html +78 -0
  118. data/reference/cpp/class_gosu_1_1_listener_socket.html +221 -0
  119. data/reference/cpp/class_gosu_1_1_message_socket-members.html +80 -0
  120. data/reference/{classGosu_1_1MessageSocket.html → cpp/class_gosu_1_1_message_socket.html} +115 -43
  121. data/reference/cpp/class_gosu_1_1_reader-members.html +80 -0
  122. data/reference/cpp/class_gosu_1_1_reader.html +322 -0
  123. data/reference/cpp/class_gosu_1_1_resource-members.html +79 -0
  124. data/reference/cpp/class_gosu_1_1_resource.html +305 -0
  125. data/reference/{classGosu_1_1Resource.png → cpp/class_gosu_1_1_resource.png} +0 -0
  126. data/reference/cpp/class_gosu_1_1_rot_flip-members.html +83 -0
  127. data/reference/cpp/class_gosu_1_1_rot_flip.html +347 -0
  128. data/reference/cpp/class_gosu_1_1_sample-members.html +77 -0
  129. data/reference/{classGosu_1_1Sample.html → cpp/class_gosu_1_1_sample.html} +99 -32
  130. data/reference/cpp/class_gosu_1_1_sample_instance-members.html +81 -0
  131. data/reference/cpp/class_gosu_1_1_sample_instance.html +317 -0
  132. data/reference/cpp/class_gosu_1_1_song-members.html +86 -0
  133. data/reference/{classGosu_1_1Song.html → cpp/class_gosu_1_1_song.html} +152 -68
  134. data/reference/cpp/class_gosu_1_1_text_input-members.html +78 -0
  135. data/reference/cpp/class_gosu_1_1_text_input.html +227 -0
  136. data/reference/cpp/class_gosu_1_1_window-members.html +90 -0
  137. data/reference/cpp/class_gosu_1_1_window.html +533 -0
  138. data/reference/cpp/class_gosu_1_1_writer-members.html +79 -0
  139. data/reference/cpp/class_gosu_1_1_writer.html +292 -0
  140. data/reference/cpp/classes.html +86 -0
  141. data/reference/cpp/closed.gif +0 -0
  142. data/reference/cpp/cpp.css +155 -0
  143. data/reference/{doxygen.png → cpp/doxygen.png} +0 -0
  144. data/reference/cpp/files.html +97 -0
  145. data/reference/cpp/functions.html +127 -0
  146. data/reference/cpp/functions_0x62.html +137 -0
  147. data/reference/cpp/functions_0x63.html +140 -0
  148. data/reference/cpp/functions_0x64.html +142 -0
  149. data/reference/cpp/functions_0x65.html +119 -0
  150. data/reference/cpp/functions_0x66.html +137 -0
  151. data/reference/cpp/functions_0x67.html +131 -0
  152. data/reference/cpp/functions_0x68.html +121 -0
  153. data/reference/cpp/functions_0x69.html +123 -0
  154. data/reference/cpp/functions_0x6b.html +115 -0
  155. data/reference/cpp/functions_0x6c.html +117 -0
  156. data/reference/cpp/functions_0x6d.html +125 -0
  157. data/reference/cpp/functions_0x6e.html +117 -0
  158. data/reference/cpp/functions_0x6f.html +126 -0
  159. data/reference/cpp/functions_0x70.html +136 -0
  160. data/reference/cpp/functions_0x72.html +154 -0
  161. data/reference/cpp/functions_0x73.html +179 -0
  162. data/reference/cpp/functions_0x74.html +127 -0
  163. data/reference/cpp/functions_0x75.html +121 -0
  164. data/reference/cpp/functions_0x76.html +117 -0
  165. data/reference/cpp/functions_0x77.html +129 -0
  166. data/reference/cpp/functions_0x78.html +115 -0
  167. data/reference/cpp/functions_0x79.html +115 -0
  168. data/reference/cpp/functions_0x7e.html +143 -0
  169. data/reference/cpp/functions_enum.html +87 -0
  170. data/reference/cpp/functions_eval.html +89 -0
  171. data/reference/cpp/functions_func.html +125 -0
  172. data/reference/cpp/functions_func_0x62.html +133 -0
  173. data/reference/cpp/functions_func_0x63.html +136 -0
  174. data/reference/cpp/functions_func_0x64.html +140 -0
  175. data/reference/cpp/functions_func_0x65.html +117 -0
  176. data/reference/cpp/functions_func_0x66.html +135 -0
  177. data/reference/cpp/functions_func_0x67.html +129 -0
  178. data/reference/cpp/functions_func_0x68.html +119 -0
  179. data/reference/cpp/functions_func_0x69.html +119 -0
  180. data/reference/cpp/functions_func_0x6b.html +113 -0
  181. data/reference/cpp/functions_func_0x6c.html +113 -0
  182. data/reference/cpp/functions_func_0x6d.html +123 -0
  183. data/reference/cpp/functions_func_0x6e.html +115 -0
  184. data/reference/cpp/functions_func_0x6f.html +113 -0
  185. data/reference/cpp/functions_func_0x70.html +134 -0
  186. data/reference/cpp/functions_func_0x72.html +150 -0
  187. data/reference/cpp/functions_func_0x73.html +173 -0
  188. data/reference/cpp/functions_func_0x74.html +119 -0
  189. data/reference/cpp/functions_func_0x75.html +119 -0
  190. data/reference/cpp/functions_func_0x76.html +115 -0
  191. data/reference/cpp/functions_func_0x77.html +127 -0
  192. data/reference/cpp/functions_func_0x7e.html +141 -0
  193. data/reference/cpp/functions_type.html +87 -0
  194. data/reference/cpp/functions_vars.html +112 -0
  195. data/reference/cpp/globals.html +84 -0
  196. data/reference/cpp/globals_defs.html +84 -0
  197. data/reference/cpp/hierarchy.html +100 -0
  198. data/reference/cpp/index.html +66 -0
  199. data/reference/cpp/open.gif +0 -0
  200. data/reference/cpp/struct_gosu_1_1_g_l_tex_info-members.html +77 -0
  201. data/reference/cpp/struct_gosu_1_1_g_l_tex_info.html +185 -0
  202. data/reference/cpp/struct_gosu_1_1_touch-members.html +75 -0
  203. data/reference/cpp/struct_gosu_1_1_touch.html +153 -0
  204. data/reference/{tab_b.gif → cpp/tab_b.gif} +0 -0
  205. data/reference/{tab_l.gif → cpp/tab_l.gif} +0 -0
  206. data/reference/{tab_r.gif → cpp/tab_r.gif} +0 -0
  207. data/reference/{tabs.css → cpp/tabs.css} +5 -2
  208. data/windows/Gosu.sln +5 -0
  209. data/windows/Gosu.vcproj +3 -3
  210. data/windows/RubyGosu.vcproj +103 -1
  211. metadata +178 -176
  212. data/reference/Async_8hpp-source.html +0 -70
  213. data/reference/Audio_8hpp-source.html +0 -125
  214. data/reference/Audio_8hpp.html +0 -50
  215. data/reference/AutoLink_8hpp-source.html +0 -38
  216. data/reference/AutoLink_8hpp.html +0 -34
  217. data/reference/Bitmap_8hpp-source.html +0 -84
  218. data/reference/Bitmap_8hpp.html +0 -58
  219. data/reference/ButtonsWin_8hpp-source.html +0 -159
  220. data/reference/ButtonsX_8hpp-source.html +0 -160
  221. data/reference/Color_8hpp-source.html +0 -169
  222. data/reference/Color_8hpp.html +0 -85
  223. data/reference/Directories_8hpp-source.html +0 -42
  224. data/reference/Directories_8hpp.html +0 -46
  225. data/reference/Font_8hpp-source.html +0 -65
  226. data/reference/Font_8hpp.html +0 -41
  227. data/reference/Fwd_8hpp.html +0 -37
  228. data/reference/Gosu_8hpp-source.html +0 -49
  229. data/reference/Gosu_8hpp.html +0 -34
  230. data/reference/GraphicsBase_8hpp-source.html +0 -59
  231. data/reference/GraphicsBase_8hpp.html +0 -59
  232. data/reference/Graphics_8hpp-source.html +0 -99
  233. data/reference/Graphics_8hpp.html +0 -60
  234. data/reference/IO_8hpp-source.html +0 -255
  235. data/reference/IO_8hpp.html +0 -74
  236. data/reference/ImageData_8hpp-source.html +0 -62
  237. data/reference/ImageData_8hpp.html +0 -43
  238. data/reference/Image_8hpp-source.html +0 -126
  239. data/reference/Image_8hpp.html +0 -48
  240. data/reference/Input_8hpp-source.html +0 -131
  241. data/reference/Input_8hpp.html +0 -56
  242. data/reference/Math_8hpp-source.html +0 -101
  243. data/reference/Math_8hpp.html +0 -78
  244. data/reference/Platform_8hpp.html +0 -73
  245. data/reference/RotFlip_8hpp-source.html +0 -138
  246. data/reference/RotFlip_8hpp.html +0 -77
  247. data/reference/Sockets_8hpp-source.html +0 -130
  248. data/reference/Sockets_8hpp.html +0 -66
  249. data/reference/TextInput_8hpp-source.html +0 -64
  250. data/reference/TextInput_8hpp.html +0 -41
  251. data/reference/Text_8hpp-source.html +0 -56
  252. data/reference/Text_8hpp.html +0 -48
  253. data/reference/Timing_8hpp-source.html +0 -36
  254. data/reference/Timing_8hpp.html +0 -42
  255. data/reference/Utility_8hpp-source.html +0 -43
  256. data/reference/Utility_8hpp.html +0 -46
  257. data/reference/WinUtility_8hpp-source.html +0 -79
  258. data/reference/WinUtility_8hpp.html +0 -64
  259. data/reference/Window_8hpp-source.html +0 -110
  260. data/reference/Window_8hpp.html +0 -41
  261. data/reference/annotated.html +0 -51
  262. data/reference/classGosu_1_1Audio-members.html +0 -34
  263. data/reference/classGosu_1_1Audio.html +0 -46
  264. data/reference/classGosu_1_1Bitmap-members.html +0 -45
  265. data/reference/classGosu_1_1Bitmap.html +0 -266
  266. data/reference/classGosu_1_1Buffer-members.html +0 -44
  267. data/reference/classGosu_1_1Buffer.html +0 -78
  268. data/reference/classGosu_1_1Button-members.html +0 -36
  269. data/reference/classGosu_1_1Button.html +0 -143
  270. data/reference/classGosu_1_1Color-members.html +0 -56
  271. data/reference/classGosu_1_1Color.html +0 -387
  272. data/reference/classGosu_1_1File-members.html +0 -41
  273. data/reference/classGosu_1_1File.html +0 -69
  274. data/reference/classGosu_1_1Font-members.html +0 -39
  275. data/reference/classGosu_1_1Graphics-members.html +0 -50
  276. data/reference/classGosu_1_1Graphics.html +0 -234
  277. data/reference/classGosu_1_1Image-members.html +0 -45
  278. data/reference/classGosu_1_1Image.html +0 -518
  279. data/reference/classGosu_1_1ImageData-members.html +0 -37
  280. data/reference/classGosu_1_1ImageData.html +0 -60
  281. data/reference/classGosu_1_1Input-members.html +0 -45
  282. data/reference/classGosu_1_1Input.html +0 -256
  283. data/reference/classGosu_1_1MessageSocket-members.html +0 -40
  284. data/reference/classGosu_1_1Resource-members.html +0 -39
  285. data/reference/classGosu_1_1Resource.html +0 -116
  286. data/reference/classGosu_1_1Sample-members.html +0 -37
  287. data/reference/classGosu_1_1SampleInstance-members.html +0 -41
  288. data/reference/classGosu_1_1SampleInstance.html +0 -178
  289. data/reference/classGosu_1_1Song-members.html +0 -46
  290. data/reference/classGosu_1_1TextInput-members.html +0 -38
  291. data/reference/classGosu_1_1TextInput.html +0 -121
  292. data/reference/classGosu_1_1Window-members.html +0 -50
  293. data/reference/classGosu_1_1Window.html +0 -289
  294. data/reference/doxyfile +0 -233
  295. data/reference/doxygen.css +0 -433
  296. data/reference/files.html +0 -54
  297. data/reference/functions.html +0 -249
  298. data/reference/functions_enum.html +0 -45
  299. data/reference/functions_func.html +0 -240
  300. data/reference/functions_vars.html +0 -47
  301. data/reference/hierarchy.html +0 -53
  302. data/reference/index.html +0 -26
  303. data/reference/namespaceGosu.html +0 -3363
  304. data/reference/namespaceGosu_1_1Colors.html +0 -70
  305. data/reference/namespaceGosu_1_1Win.html +0 -275
  306. data/reference/namespacemembers.html +0 -229
  307. data/reference/namespacemembers_enum.html +0 -52
  308. data/reference/namespacemembers_eval.html +0 -54
  309. data/reference/namespacemembers_func.html +0 -196
  310. data/reference/namespacemembers_type.html +0 -46
  311. data/reference/namespacemembers_vars.html +0 -48
  312. data/reference/namespaces.html +0 -35
@@ -1,70 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
- <title>Gosu: Async.hpp Source File</title>
4
- <link href="doxygen.css" rel="stylesheet" type="text/css">
5
- <link href="tabs.css" rel="stylesheet" type="text/css">
6
- </head><body>
7
- <!-- Generated by Doxygen 1.5.5 -->
8
- <div class="navigation" id="top">
9
- <div class="tabs">
10
- <ul>
11
- <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13
- <li><a href="annotated.html"><span>Classes</span></a></li>
14
- <li class="current"><a href="files.html"><span>Files</span></a></li>
15
- </ul>
16
- </div>
17
- <h1>Async.hpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Undocumented for the first few iterations. Interface may change rapidly.</span>
18
- <a name="l00002"></a>00002 <span class="comment">// This is mainly a proof of concept. Stability will be the highest on OS X.</span>
19
- <a name="l00003"></a>00003
20
- <a name="l00004"></a>00004 <span class="preprocessor">#ifndef GOSU_ASYNC_HPP</span>
21
- <a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_ASYNC_HPP</span>
22
- <a name="l00006"></a>00006 <span class="preprocessor"></span>
23
- <a name="l00007"></a>00007 <span class="preprocessor">#include &lt;<a class="code" href="Fwd_8hpp.html" title="Contains declarations of all of Gosu&amp;#39;s available classes.">Gosu/Fwd.hpp</a>&gt;</span>
24
- <a name="l00008"></a>00008 <span class="preprocessor">#include &lt;boost/shared_ptr.hpp&gt;</span>
25
- <a name="l00009"></a>00009 <span class="preprocessor">#include &lt;boost/thread.hpp&gt;</span>
26
- <a name="l00010"></a>00010 <span class="preprocessor">#include &lt;memory&gt;</span>
27
- <a name="l00011"></a>00011 <span class="preprocessor">#include &lt;string&gt;</span>
28
- <a name="l00012"></a>00012
29
- <a name="l00013"></a><a class="code" href="namespaceGosu.html">00013</a> <span class="keyword">namespace </span>Gosu
30
- <a name="l00014"></a>00014 {
31
- <a name="l00015"></a>00015 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Result&gt;
32
- <a name="l00016"></a>00016 <span class="keyword">class </span>AsyncResult
33
- <a name="l00017"></a>00017 {
34
- <a name="l00018"></a>00018 boost::shared_ptr&lt;boost::try_mutex&gt; mutex;
35
- <a name="l00019"></a>00019 boost::shared_ptr&lt;std::auto_ptr&lt;Result&gt; &gt; result;
36
- <a name="l00020"></a>00020
37
- <a name="l00021"></a>00021 <span class="keyword">public</span>:
38
- <a name="l00022"></a>00022 AsyncResult(<span class="keyword">const</span> boost::shared_ptr&lt;boost::try_mutex&gt;&amp; mutex,
39
- <a name="l00023"></a>00023 <span class="keyword">const</span> boost::shared_ptr&lt;std::auto_ptr&lt;Result&gt; &gt;&amp; result)
40
- <a name="l00024"></a>00024 : mutex(mutex), result(result)
41
- <a name="l00025"></a>00025 {
42
- <a name="l00026"></a>00026 }
43
- <a name="l00027"></a>00027
44
- <a name="l00028"></a>00028 <span class="keywordtype">bool</span> hasValue()<span class="keyword"> const</span>
45
- <a name="l00029"></a>00029 <span class="keyword"> </span>{
46
- <a name="l00030"></a>00030 boost::try_mutex::scoped_try_lock lock(*mutex);
47
- <a name="l00031"></a>00031 <span class="keywordflow">return</span> lock &amp;&amp; result-&gt;get();
48
- <a name="l00032"></a>00032 }
49
- <a name="l00033"></a>00033
50
- <a name="l00034"></a>00034 std::auto_ptr&lt;Result&gt; takeValue()
51
- <a name="l00035"></a>00035 {
52
- <a name="l00036"></a>00036 boost::try_mutex::scoped_lock lock(*mutex);
53
- <a name="l00037"></a>00037 <span class="keywordflow">return</span> *result;
54
- <a name="l00038"></a>00038 }
55
- <a name="l00039"></a>00039 };
56
- <a name="l00040"></a>00040
57
- <a name="l00041"></a>00041 <span class="comment">// TODO: Will only work if the window doesn't die inbetween.</span>
58
- <a name="l00042"></a>00042 <span class="comment">// TODO: More functions to come; or a general interface?</span>
59
- <a name="l00043"></a>00043
60
- <a name="l00044"></a>00044 AsyncResult&lt;Image&gt;
61
- <a name="l00045"></a>00045 asyncNewImage(<a class="code" href="classGosu_1_1Window.html" title="Convenient all-in-one class that serves as the foundation of a standard Gosu application...">Window</a>&amp; window, <span class="keyword">const</span> std::wstring&amp; filename);
62
- <a name="l00046"></a>00046 }
63
- <a name="l00047"></a>00047
64
- <a name="l00048"></a>00048 <span class="preprocessor">#endif</span>
65
- </pre></div></div>
66
- <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
67
- <a href="http://www.doxygen.org/index.html">
68
- <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
69
- </body>
70
- </html>
@@ -1,125 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
- <title>Gosu: Audio.hpp Source File</title>
4
- <link href="doxygen.css" rel="stylesheet" type="text/css">
5
- <link href="tabs.css" rel="stylesheet" type="text/css">
6
- </head><body>
7
- <!-- Generated by Doxygen 1.5.5 -->
8
- <div class="navigation" id="top">
9
- <div class="tabs">
10
- <ul>
11
- <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13
- <li><a href="annotated.html"><span>Classes</span></a></li>
14
- <li class="current"><a href="files.html"><span>Files</span></a></li>
15
- </ul>
16
- </div>
17
- <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
18
- <a name="l00002"></a>00002
19
- <a name="l00003"></a>00003
20
- <a name="l00004"></a>00004 <span class="comment">// REDESIGN: Rename all changeXXX() member functions to setXXX().</span>
21
- <a name="l00005"></a>00005 <span class="comment">// REDESIGN: Don't require window argument, is this possible?</span>
22
- <a name="l00006"></a>00006
23
- <a name="l00007"></a>00007 <span class="preprocessor">#ifndef GOSU_AUDIO_HPP</span>
24
- <a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_AUDIO_HPP</span>
25
- <a name="l00009"></a>00009 <span class="preprocessor"></span>
26
- <a name="l00010"></a>00010 <span class="preprocessor">#ifdef WIN32</span>
27
- <a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#include &lt;windows.h&gt;</span>
28
- <a name="l00012"></a>00012 <span class="preprocessor">#endif</span>
29
- <a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="Fwd_8hpp.html" title="Contains declarations of all of Gosu&amp;#39;s available classes.">Gosu/Fwd.hpp</a>&gt;</span>
30
- <a name="l00014"></a>00014 <span class="preprocessor">#include &lt;<a class="code" href="IO_8hpp.html" title="Contains everything related to input and output.">Gosu/IO.hpp</a>&gt;</span>
31
- <a name="l00015"></a>00015 <span class="preprocessor">#include &lt;<a class="code" href="Platform_8hpp.html" title="Macros and utility functions to facilitate programming on all of Gosu&amp;#39;s supported...">Gosu/Platform.hpp</a>&gt;</span>
32
- <a name="l00016"></a>00016 <span class="preprocessor">#include &lt;boost/scoped_ptr.hpp&gt;</span>
33
- <a name="l00017"></a>00017 <span class="preprocessor">#include &lt;boost/utility.hpp&gt;</span>
34
- <a name="l00018"></a>00018 <span class="preprocessor">#include &lt;string&gt;</span>
35
- <a name="l00019"></a>00019
36
- <a name="l00020"></a>00020 <span class="keyword">namespace </span>Gosu
37
- <a name="l00021"></a>00021 {
38
- <a name="l00026"></a><a class="code" href="classGosu_1_1Audio.html">00026</a> <span class="keyword">class </span><a class="code" href="classGosu_1_1Audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a> : boost::noncopyable
39
- <a name="l00027"></a>00027 {
40
- <a name="l00028"></a>00028 <span class="keyword">public</span>:
41
- <a name="l00029"></a>00029 <span class="preprocessor">#ifdef GOSU_IS_WIN</span>
42
- <a name="l00030"></a>00030 <span class="preprocessor"></span> <span class="keyword">explicit</span> <a class="code" href="classGosu_1_1Audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>(HWND window);
43
- <a name="l00031"></a>00031 <span class="preprocessor">#else</span>
44
- <a name="l00032"></a>00032 <span class="preprocessor"></span> <a class="code" href="classGosu_1_1Audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>();
45
- <a name="l00033"></a>00033 <span class="preprocessor">#endif</span>
46
- <a name="l00034"></a>00034 <span class="preprocessor"></span> ~<a class="code" href="classGosu_1_1Audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>();
47
- <a name="l00035"></a>00035 };
48
- <a name="l00036"></a>00036
49
- <a name="l00041"></a><a class="code" href="classGosu_1_1SampleInstance.html">00041</a> <span class="keyword">class </span><a class="code" href="classGosu_1_1SampleInstance.html" title="An instance of a Sample playing.">SampleInstance</a>
50
- <a name="l00042"></a>00042 {
51
- <a name="l00043"></a>00043 <span class="keywordtype">int</span> handle, extra;
52
- <a name="l00044"></a>00044 <span class="keywordtype">bool</span> alive() <span class="keyword">const</span>;
53
- <a name="l00045"></a>00045
54
- <a name="l00046"></a>00046 <span class="keyword">public</span>:
55
- <a name="l00048"></a>00048 <a class="code" href="classGosu_1_1SampleInstance.html#1dcf6b649592940d21d3d2487e510c7e" title="Called by Sample, do not use.">SampleInstance</a>(<span class="keywordtype">int</span> handle, <span class="keywordtype">int</span> extra);
56
- <a name="l00049"></a>00049
57
- <a name="l00050"></a>00050 <span class="keywordtype">bool</span> playing() <span class="keyword">const</span>;
58
- <a name="l00051"></a>00051 <span class="keywordtype">bool</span> paused() <span class="keyword">const</span>;
59
- <a name="l00052"></a>00052 <span class="keywordtype">void</span> pause();
60
- <a name="l00053"></a>00053 <span class="keywordtype">void</span> resume();
61
- <a name="l00054"></a>00054 <span class="keywordtype">void</span> stop();
62
- <a name="l00055"></a>00055
63
- <a name="l00058"></a>00058 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1SampleInstance.html#bb54d7569ac18cdad24da5d538cca1b5">changeVolume</a>(<span class="keywordtype">double</span> volume);
64
- <a name="l00060"></a>00060 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1SampleInstance.html#def37ef2af53716fb0b10e06263468d0">changePan</a>(<span class="keywordtype">double</span> pan);
65
- <a name="l00064"></a>00064 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1SampleInstance.html#3de21bed437c846734cf06243a5db112">changeSpeed</a>(<span class="keywordtype">double</span> speed);
66
- <a name="l00065"></a>00065 };
67
- <a name="l00066"></a>00066
68
- <a name="l00070"></a><a class="code" href="classGosu_1_1Sample.html">00070</a> <span class="keyword">class </span><a class="code" href="classGosu_1_1Sample.html" title="A sample is a short sound that is completely loaded in memory, can be played multiple...">Sample</a>
69
- <a name="l00071"></a>00071 {
70
- <a name="l00072"></a>00072 <span class="keyword">struct </span>SampleData;
71
- <a name="l00073"></a>00073 boost::scoped_ptr&lt;SampleData&gt; data;
72
- <a name="l00074"></a>00074
73
- <a name="l00075"></a>00075 <span class="keyword">public</span>:
74
- <a name="l00078"></a>00078 <a class="code" href="classGosu_1_1Sample.html#11aa4cd7de748370c9352970660619bf" title="Constructs a sample that can be played on the specified audio system and loads the...">Sample</a>(<a class="code" href="classGosu_1_1Audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>&amp; audio, <span class="keyword">const</span> std::wstring&amp; filename);
75
- <a name="l00079"></a>00079
76
- <a name="l00082"></a>00082 <a class="code" href="classGosu_1_1Sample.html#11aa4cd7de748370c9352970660619bf" title="Constructs a sample that can be played on the specified audio system and loads the...">Sample</a>(<a class="code" href="classGosu_1_1Audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>&amp; audio, Reader reader);
77
- <a name="l00083"></a>00083
78
- <a name="l00084"></a>00084 ~<a class="code" href="classGosu_1_1Sample.html" title="A sample is a short sound that is completely loaded in memory, can be played multiple...">Sample</a>();
79
- <a name="l00085"></a>00085
80
- <a name="l00092"></a>00092 <a class="code" href="classGosu_1_1SampleInstance.html" title="An instance of a Sample playing.">SampleInstance</a> <a class="code" href="classGosu_1_1Sample.html#190b3cc66e2115c7ed0390c47769c1b8" title="Plays the sample without panning.">play</a>(<span class="keywordtype">double</span> volume = 1, <span class="keywordtype">double</span> speed = 1,
81
- <a name="l00093"></a>00093 <span class="keywordtype">bool</span> looping = <span class="keyword">false</span>) <span class="keyword">const</span>;
82
- <a name="l00094"></a>00094
83
- <a name="l00104"></a>00104 <a class="code" href="classGosu_1_1SampleInstance.html" title="An instance of a Sample playing.">SampleInstance</a> <a class="code" href="classGosu_1_1Sample.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,
84
- <a name="l00105"></a>00105 <span class="keywordtype">bool</span> looping = <span class="keyword">false</span>) <span class="keyword">const</span>;
85
- <a name="l00106"></a>00106 };
86
- <a name="l00107"></a>00107
87
- <a name="l00110"></a><a class="code" href="classGosu_1_1Song.html">00110</a> <span class="keyword">class </span><a class="code" href="classGosu_1_1Song.html" title="Songs are less flexible than samples in that they can only be played one at a time...">Song</a>
88
- <a name="l00111"></a>00111 {
89
- <a name="l00112"></a>00112 <span class="keyword">class </span>BaseData;
90
- <a name="l00113"></a>00113 <span class="keyword">class </span>ModuleData;
91
- <a name="l00114"></a>00114 <span class="keyword">class </span>StreamData;
92
- <a name="l00115"></a>00115 boost::scoped_ptr&lt;BaseData&gt; data;
93
- <a name="l00116"></a>00116
94
- <a name="l00117"></a>00117 <span class="keyword">public</span>:
95
- <a name="l00120"></a><a class="code" href="classGosu_1_1Song.html#ec4c76bfe19e210da34bcaa286af605f">00120</a> <span class="keyword">enum</span> <a class="code" href="classGosu_1_1Song.html#ec4c76bfe19e210da34bcaa286af605f" title="There are two types of songs that can be loaded as a Song: Streamed songs (like OGG)...">Type</a>
96
- <a name="l00121"></a>00121 {
97
- <a name="l00122"></a>00122 stStream,
98
- <a name="l00123"></a>00123 stModule
99
- <a name="l00124"></a>00124 };
100
- <a name="l00125"></a>00125
101
- <a name="l00129"></a>00129 <a class="code" href="classGosu_1_1Song.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="classGosu_1_1Audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>&amp;, <span class="keyword">const</span> std::wstring&amp; filename);
102
- <a name="l00130"></a>00130
103
- <a name="l00133"></a>00133 <a class="code" href="classGosu_1_1Song.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="classGosu_1_1Audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>&amp;, <a class="code" href="classGosu_1_1Song.html#ec4c76bfe19e210da34bcaa286af605f" title="There are two types of songs that can be loaded as a Song: Streamed songs (like OGG)...">Type</a> type, Reader reader);
104
- <a name="l00134"></a>00134
105
- <a name="l00135"></a>00135 ~<a class="code" href="classGosu_1_1Song.html" title="Songs are less flexible than samples in that they can only be played one at a time...">Song</a>();
106
- <a name="l00136"></a>00136
107
- <a name="l00140"></a>00140 <span class="keyword">static</span> <a class="code" href="classGosu_1_1Song.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="classGosu_1_1Song.html#3f6c94bd9ea9522430d6e0d1e1e64250" title="Returns the song currently being played or paused, or 0 if no song has been played...">currentSong</a>();
108
- <a name="l00141"></a>00141
109
- <a name="l00144"></a>00144 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Song.html#6b9cb7b452a737455e8cf4e7d90acff9" title="Starts or resumes playback of the song.">play</a>(<span class="keywordtype">bool</span> looping = <span class="keyword">false</span>);
110
- <a name="l00147"></a>00147 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Song.html#9ae053fbee6f240d2793fab3fa4ef596" title="Pauses playback of the song.">pause</a>();
111
- <a name="l00150"></a>00150 <span class="keywordtype">bool</span> <a class="code" href="classGosu_1_1Song.html#a0d611bf37c19086797c9e46e001e092" title="Returns true if the song is the current song, but in paused mode.">paused</a>() <span class="keyword">const</span>;
112
- <a name="l00153"></a>00153 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Song.html#469a3cf49be8ebec2c9855dec46f5f71" title="Stops playback of this song if it is currently played or paused.">stop</a>();
113
- <a name="l00155"></a>00155 <span class="keywordtype">bool</span> <a class="code" href="classGosu_1_1Song.html#c83d4b509149c2b1fb48ad697fb1adf3" title="Returns if the song is currently playing.">playing</a>() <span class="keyword">const</span>;
114
- <a name="l00157"></a>00157 <span class="keywordtype">double</span> <a class="code" href="classGosu_1_1Song.html#ab8e8a273b5ea235ad9f48dee684c683" title="Returns the current volume of the song.">volume</a>() <span class="keyword">const</span>;
115
- <a name="l00159"></a>00159 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Song.html#e460032103a9ddb7e0dd50f53fb9d36e" title="Changes the volume of the song.">changeVolume</a>(<span class="keywordtype">double</span> <a class="code" href="classGosu_1_1Song.html#ab8e8a273b5ea235ad9f48dee684c683" title="Returns the current volume of the song.">volume</a>);
116
- <a name="l00160"></a>00160 };
117
- <a name="l00161"></a>00161 }
118
- <a name="l00162"></a>00162
119
- <a name="l00163"></a>00163 <span class="preprocessor">#endif</span>
120
- </pre></div></div>
121
- <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
122
- <a href="http://www.doxygen.org/index.html">
123
- <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
124
- </body>
125
- </html>
@@ -1,50 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
- <title>Gosu: Audio.hpp File Reference</title>
4
- <link href="doxygen.css" rel="stylesheet" type="text/css">
5
- <link href="tabs.css" rel="stylesheet" type="text/css">
6
- </head><body>
7
- <!-- Generated by Doxygen 1.5.5 -->
8
- <div class="navigation" id="top">
9
- <div class="tabs">
10
- <ul>
11
- <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13
- <li><a href="annotated.html"><span>Classes</span></a></li>
14
- <li class="current"><a href="files.html"><span>Files</span></a></li>
15
- </ul>
16
- </div>
17
- </div>
18
- <div class="contents">
19
- <h1>Audio.hpp File Reference</h1>Contains all the classes of Gosu's audio system. <a href="#_details">More...</a>
20
- <p>
21
-
22
- <p>
23
- <a href="Audio_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
24
- <tr><td></td></tr>
25
- <tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
26
- <tr><td class="memItemLeft" nowrap align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html">Gosu</a></td></tr>
27
-
28
- <tr><td colspan="2"><br><h2>Classes</h2></td></tr>
29
- <tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Audio.html">Gosu::Audio</a></td></tr>
30
-
31
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Manages initialization and finalization of audio libraries. <a href="classGosu_1_1Audio.html#_details">More...</a><br></td></tr>
32
- <tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1SampleInstance.html">Gosu::SampleInstance</a></td></tr>
33
-
34
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">An instance of a <a class="el" href="classGosu_1_1Sample.html" title="A sample is a short sound that is completely loaded in memory, can be played multiple...">Sample</a> playing. <a href="classGosu_1_1SampleInstance.html#_details">More...</a><br></td></tr>
35
- <tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Sample.html">Gosu::Sample</a></td></tr>
36
-
37
- <tr><td class="mdescLeft">&nbsp;</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="classGosu_1_1Sample.html#_details">More...</a><br></td></tr>
38
- <tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Song.html">Gosu::Song</a></td></tr>
39
-
40
- <tr><td class="mdescLeft">&nbsp;</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="classGosu_1_1Song.html#_details">More...</a><br></td></tr>
41
- </table>
42
- <hr><a name="_details"></a><h2>Detailed Description</h2>
43
- Contains all the classes of Gosu's audio system.
44
- <p>
45
- </div>
46
- <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
47
- <a href="http://www.doxygen.org/index.html">
48
- <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
49
- </body>
50
- </html>
@@ -1,38 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
- <title>Gosu: AutoLink.hpp Source File</title>
4
- <link href="doxygen.css" rel="stylesheet" type="text/css">
5
- <link href="tabs.css" rel="stylesheet" type="text/css">
6
- </head><body>
7
- <!-- Generated by Doxygen 1.5.5 -->
8
- <div class="navigation" id="top">
9
- <div class="tabs">
10
- <ul>
11
- <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13
- <li><a href="annotated.html"><span>Classes</span></a></li>
14
- <li class="current"><a href="files.html"><span>Files</span></a></li>
15
- </ul>
16
- </div>
17
- <h1>AutoLink.hpp</h1><a href="AutoLink_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
18
- <a name="l00002"></a>00002
19
- <a name="l00003"></a>00003
20
- <a name="l00004"></a>00004
21
- <a name="l00005"></a>00005 <span class="preprocessor">#ifdef _MSC_VER</span>
22
- <a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#ifndef GOSU_AUTOLINK_HPP</span>
23
- <a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_AUTOLINK_HPP</span>
24
- <a name="l00008"></a>00008 <span class="preprocessor"></span>
25
- <a name="l00009"></a>00009 <span class="preprocessor">#ifdef NDEBUG</span>
26
- <a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#pragma comment(lib, "Gosu.lib")</span>
27
- <a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#else</span>
28
- <a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#pragma comment(lib, "GosuDebug.lib")</span>
29
- <a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
30
- <a name="l00014"></a>00014 <span class="preprocessor"></span>
31
- <a name="l00015"></a>00015 <span class="preprocessor">#endif</span>
32
- <a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
33
- </pre></div></div>
34
- <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
35
- <a href="http://www.doxygen.org/index.html">
36
- <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
37
- </body>
38
- </html>
@@ -1,34 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
- <title>Gosu: AutoLink.hpp File Reference</title>
4
- <link href="doxygen.css" rel="stylesheet" type="text/css">
5
- <link href="tabs.css" rel="stylesheet" type="text/css">
6
- </head><body>
7
- <!-- Generated by Doxygen 1.5.5 -->
8
- <div class="navigation" id="top">
9
- <div class="tabs">
10
- <ul>
11
- <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13
- <li><a href="annotated.html"><span>Classes</span></a></li>
14
- <li class="current"><a href="files.html"><span>Files</span></a></li>
15
- </ul>
16
- </div>
17
- </div>
18
- <div class="contents">
19
- <h1>AutoLink.hpp File Reference</h1>Contains pragmas that make MSVC link against all the necessary libraries automatically. <a href="#_details">More...</a>
20
- <p>
21
-
22
- <p>
23
- <a href="AutoLink_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
24
- <tr><td></td></tr>
25
- </table>
26
- <hr><a name="_details"></a><h2>Detailed Description</h2>
27
- Contains pragmas that make MSVC link against all the necessary libraries automatically.
28
- <p>
29
- </div>
30
- <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
31
- <a href="http://www.doxygen.org/index.html">
32
- <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
33
- </body>
34
- </html>
@@ -1,84 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
- <title>Gosu: Bitmap.hpp Source File</title>
4
- <link href="doxygen.css" rel="stylesheet" type="text/css">
5
- <link href="tabs.css" rel="stylesheet" type="text/css">
6
- </head><body>
7
- <!-- Generated by Doxygen 1.5.5 -->
8
- <div class="navigation" id="top">
9
- <div class="tabs">
10
- <ul>
11
- <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13
- <li><a href="annotated.html"><span>Classes</span></a></li>
14
- <li class="current"><a href="files.html"><span>Files</span></a></li>
15
- </ul>
16
- </div>
17
- <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
18
- <a name="l00002"></a>00002
19
- <a name="l00003"></a>00003
20
- <a name="l00004"></a>00004 <span class="preprocessor">#ifndef GOSU_BITMAP_HPP</span>
21
- <a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_BITMAP_HPP</span>
22
- <a name="l00006"></a>00006 <span class="preprocessor"></span>
23
- <a name="l00007"></a>00007 <span class="preprocessor">#include &lt;<a class="code" href="Color_8hpp.html" title="Interface of the Color class.">Gosu/Color.hpp</a>&gt;</span>
24
- <a name="l00008"></a>00008 <span class="preprocessor">#include &lt;<a class="code" href="Fwd_8hpp.html" title="Contains declarations of all of Gosu&amp;#39;s available classes.">Gosu/Fwd.hpp</a>&gt;</span>
25
- <a name="l00009"></a>00009 <span class="preprocessor">#include &lt;<a class="code" href="GraphicsBase_8hpp.html" title="Contains general typedefs and enums related to graphics.">Gosu/GraphicsBase.hpp</a>&gt;</span>
26
- <a name="l00010"></a>00010 <span class="preprocessor">#include &lt;boost/scoped_ptr.hpp&gt;</span>
27
- <a name="l00011"></a>00011 <span class="preprocessor">#include &lt;string&gt;</span>
28
- <a name="l00012"></a>00012 <span class="preprocessor">#include &lt;vector&gt;</span>
29
- <a name="l00013"></a>00013
30
- <a name="l00014"></a>00014 <span class="keyword">namespace </span>Gosu
31
- <a name="l00015"></a>00015 {
32
- <a name="l00020"></a><a class="code" href="classGosu_1_1Bitmap.html">00020</a> <span class="keyword">class </span><a class="code" href="classGosu_1_1Bitmap.html" title="Rectangular area of pixels, each represented by a Color value.">Bitmap</a>
33
- <a name="l00021"></a>00021 {
34
- <a name="l00022"></a>00022 <span class="keywordtype">unsigned</span> w, h;
35
- <a name="l00023"></a>00023 std::vector&lt;Color&gt; pixels;
36
- <a name="l00024"></a>00024
37
- <a name="l00025"></a>00025 <span class="keyword">public</span>:
38
- <a name="l00026"></a>00026 <a class="code" href="classGosu_1_1Bitmap.html" title="Rectangular area of pixels, each represented by a Color value.">Bitmap</a>();
39
- <a name="l00027"></a>00027
40
- <a name="l00028"></a>00028 <span class="keywordtype">unsigned</span> width()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> w; }
41
- <a name="l00029"></a>00029 <span class="keywordtype">unsigned</span> height()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> h; }
42
- <a name="l00030"></a>00030
43
- <a name="l00031"></a>00031 <span class="keywordtype">void</span> swap(<a class="code" href="classGosu_1_1Bitmap.html" title="Rectangular area of pixels, each represented by a Color value.">Bitmap</a>&amp; other);
44
- <a name="l00032"></a>00032
45
- <a name="l00033"></a>00033 <span class="keywordtype">void</span> resize(<span class="keywordtype">unsigned</span> width, <span class="keywordtype">unsigned</span> height, <a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> c = Colors::none);
46
- <a name="l00034"></a>00034
47
- <a name="l00035"></a>00035 <span class="keywordtype">void</span> fill(<a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> c);
48
- <a name="l00036"></a>00036 <span class="keywordtype">void</span> replace(<a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> oldColor, <a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> newColor);
49
- <a name="l00037"></a>00037
50
- <a name="l00040"></a><a class="code" href="classGosu_1_1Bitmap.html#93ea4a3ce9a09520dee52ba4deae4d18">00040</a> <a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> <a class="code" href="classGosu_1_1Bitmap.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]; }
51
- <a name="l00041"></a>00041
52
- <a name="l00044"></a><a class="code" href="classGosu_1_1Bitmap.html#7a247689a33ceb7c296035f439d9e549">00044</a> <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Bitmap.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="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> c) { pixels[y * w + x] = c; }
53
- <a name="l00045"></a>00045
54
- <a name="l00049"></a>00049 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Bitmap.html#fe59c7aed8ffadefb136eff87326c13e" title="Inserts a bitmap at the given position.">insert</a>(<span class="keyword">const</span> <a class="code" href="classGosu_1_1Bitmap.html" title="Rectangular area of pixels, each represented by a Color value.">Bitmap</a>&amp; source, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
55
- <a name="l00050"></a>00050
56
- <a name="l00054"></a>00054 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Bitmap.html#fe59c7aed8ffadefb136eff87326c13e" title="Inserts a bitmap at the given position.">insert</a>(<span class="keyword">const</span> <a class="code" href="classGosu_1_1Bitmap.html" title="Rectangular area of pixels, each represented by a Color value.">Bitmap</a>&amp; source, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">unsigned</span> srcX,
57
- <a name="l00055"></a>00055 <span class="keywordtype">unsigned</span> srcY, <span class="keywordtype">unsigned</span> srcWidth, <span class="keywordtype">unsigned</span> srcHeight);
58
- <a name="l00056"></a>00056
59
- <a name="l00059"></a><a class="code" href="classGosu_1_1Bitmap.html#f20320b33058d6a54aa31fc4c99a65fe">00059</a> <span class="keyword">const</span> <span class="keywordtype">unsigned</span>* <a class="code" href="classGosu_1_1Bitmap.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&lt;</span><span class="keyword">const </span><span class="keywordtype">unsigned</span>*<span class="keyword">&gt;</span>(&amp;pixels[0]); }
60
- <a name="l00060"></a>00060 <span class="keywordtype">unsigned</span>* <a class="code" href="classGosu_1_1Bitmap.html#f20320b33058d6a54aa31fc4c99a65fe" title="Direct access to the array of color values.">data</a>() { <span class="keywordflow">return</span> <span class="keyword">reinterpret_cast&lt;</span><span class="keywordtype">unsigned</span>*<span class="keyword">&gt;</span>(&amp;pixels[0]); }
61
- <a name="l00061"></a>00061 };
62
- <a name="l00062"></a>00062
63
- <a name="l00064"></a>00064 Reader <a class="code" href="namespaceGosu.html#5eb2a400728e57559f35615af17ead55" title="Loads a Windows or OS/2 BMP file into the given bitmap.">loadFromBMP</a>(Bitmap&amp; bmp, Reader reader);
64
- <a name="l00066"></a>00066 Writer <a class="code" href="namespaceGosu.html#88c53b6073e06c2ce343bf49579b02de" title="Saves the contents of the given bitmap into windows BMP file data.">saveToBMP</a>(<span class="keyword">const</span> Bitmap&amp; bmp, Writer writer);
65
- <a name="l00068"></a>00068 Reader <a class="code" href="namespaceGosu.html#1be1c9db6a1ecf3b5c62797079e49e70" title="Loads a PNG file into the given bitmap.">loadFromPNG</a>(Bitmap&amp; bmp, Reader reader);
66
- <a name="l00070"></a>00070 Writer <a class="code" href="namespaceGosu.html#7c1a78c796335d8f2183a6694a911eb7" title="Saves the contents of the given bitmap into PNG file data, 24 bits.">saveToPNG</a>(<span class="keyword">const</span> Bitmap&amp; bmp, Writer writer);
67
- <a name="l00071"></a>00071
68
- <a name="l00075"></a>00075 <span class="keywordtype">void</span> <a class="code" href="namespaceGosu.html#97ea4128d29b9835243e69939085bfa5" title="Set the alpha value of all pixels which are equal to the color key to zero.">applyColorKey</a>(Bitmap&amp; bitmap, Color key);
69
- <a name="l00076"></a>00076
70
- <a name="l00077"></a>00077 <span class="keywordtype">void</span> applyBorderFlags(Bitmap&amp; dest, <span class="keyword">const</span> Bitmap&amp; source,
71
- <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,
72
- <a name="l00079"></a>00079 <span class="keywordtype">unsigned</span> borderFlags);
73
- <a name="l00080"></a>00080
74
- <a name="l00081"></a>00081 <span class="comment">// Still to be moved around &amp; undocumented, beware! (TODO)</span>
75
- <a name="l00082"></a>00082 Bitmap quickLoadBitmap(<span class="keyword">const</span> std::wstring&amp; filename);
76
- <a name="l00083"></a>00083 }
77
- <a name="l00084"></a>00084
78
- <a name="l00085"></a>00085 <span class="preprocessor">#endif</span>
79
- </pre></div></div>
80
- <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
81
- <a href="http://www.doxygen.org/index.html">
82
- <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
83
- </body>
84
- </html>
@@ -1,58 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
- <title>Gosu: Bitmap.hpp File Reference</title>
4
- <link href="doxygen.css" rel="stylesheet" type="text/css">
5
- <link href="tabs.css" rel="stylesheet" type="text/css">
6
- </head><body>
7
- <!-- Generated by Doxygen 1.5.5 -->
8
- <div class="navigation" id="top">
9
- <div class="tabs">
10
- <ul>
11
- <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13
- <li><a href="annotated.html"><span>Classes</span></a></li>
14
- <li class="current"><a href="files.html"><span>Files</span></a></li>
15
- </ul>
16
- </div>
17
- </div>
18
- <div class="contents">
19
- <h1>Bitmap.hpp File Reference</h1>Interface of the Bitmap class. <a href="#_details">More...</a>
20
- <p>
21
-
22
- <p>
23
- <a href="Bitmap_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
24
- <tr><td></td></tr>
25
- <tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
26
- <tr><td class="memItemLeft" nowrap align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html">Gosu</a></td></tr>
27
-
28
- <tr><td colspan="2"><br><h2>Classes</h2></td></tr>
29
- <tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Bitmap.html">Gosu::Bitmap</a></td></tr>
30
-
31
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Rectangular area of pixels, each represented by a <a class="el" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> value. <a href="classGosu_1_1Bitmap.html#_details">More...</a><br></td></tr>
32
- <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
33
- <tr><td class="memItemLeft" nowrap align="right" valign="top">Reader&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#5eb2a400728e57559f35615af17ead55">Gosu::loadFromBMP</a> (Bitmap &amp;bmp, Reader reader)</td></tr>
34
-
35
- <tr><td class="memItemLeft" nowrap align="right" valign="top">Writer&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#88c53b6073e06c2ce343bf49579b02de">Gosu::saveToBMP</a> (const Bitmap &amp;bmp, Writer writer)</td></tr>
36
-
37
- <tr><td class="memItemLeft" nowrap align="right" valign="top">Reader&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#1be1c9db6a1ecf3b5c62797079e49e70">Gosu::loadFromPNG</a> (Bitmap &amp;bmp, Reader reader)</td></tr>
38
-
39
- <tr><td class="memItemLeft" nowrap align="right" valign="top">Writer&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#7c1a78c796335d8f2183a6694a911eb7">Gosu::saveToPNG</a> (const Bitmap &amp;bmp, Writer writer)</td></tr>
40
-
41
- <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#97ea4128d29b9835243e69939085bfa5">Gosu::applyColorKey</a> (Bitmap &amp;bitmap, Color key)</td></tr>
42
-
43
- <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="72957c040474b5afedd1af49b8f3a035"></a><!-- doxytag: member="Bitmap.hpp::applyBorderFlags" ref="72957c040474b5afedd1af49b8f3a035" args="(Bitmap &amp;dest, const Bitmap &amp;source, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, unsigned borderFlags)" -->
44
- void&nbsp;</td><td class="memItemRight" valign="bottom"><b>Gosu::applyBorderFlags</b> (Bitmap &amp;dest, const Bitmap &amp;source, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, unsigned borderFlags)</td></tr>
45
-
46
- <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="263a114f352f439a3cbb0da9d52d18cb"></a><!-- doxytag: member="Bitmap.hpp::quickLoadBitmap" ref="263a114f352f439a3cbb0da9d52d18cb" args="(const std::wstring &amp;filename)" -->
47
- Bitmap&nbsp;</td><td class="memItemRight" valign="bottom"><b>Gosu::quickLoadBitmap</b> (const std::wstring &amp;filename)</td></tr>
48
-
49
- </table>
50
- <hr><a name="_details"></a><h2>Detailed Description</h2>
51
- Interface of the Bitmap class.
52
- <p>
53
- </div>
54
- <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
55
- <a href="http://www.doxygen.org/index.html">
56
- <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
57
- </body>
58
- </html>