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
@@ -0,0 +1,94 @@
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&nbsp;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&nbsp;List</span></a></li>
61
+ <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
62
+ </ul>
63
+ </div>
64
+ </div>
65
+ <div class="contents">
66
+ <h1>Graphics.hpp File Reference</h1>Interface of the Graphics class.
67
+ <a href="#_details">More...</a>
68
+ <p>
69
+
70
+ <p>
71
+ <a href="_graphics_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 &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_graphics.html">Gosu::Graphics</a></td></tr>
75
+
76
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Serves as the target of all drawing and provides basic drawing functionality. <a href="class_gosu_1_1_graphics.html#_details">More...</a><br></td></tr>
77
+ <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
78
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#5dcc0658209b7c8523f00e58ccb663b7">Gosu::screenWidth</a> ()</td></tr>
79
+
80
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the width, in pixels, of the user's primary screen. <a href="#5dcc0658209b7c8523f00e58ccb663b7"></a><br></td></tr>
81
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#2934a7df026d36a3b8793e8097f701c5">Gosu::screenHeight</a> ()</td></tr>
82
+
83
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the height, in pixels, of the user's primary screen. <a href="#2934a7df026d36a3b8793e8097f701c5"></a><br></td></tr>
84
+ </table>
85
+ <hr><a name="_details"></a><h2>Detailed Description</h2>
86
+ Interface of the Graphics class.
87
+ <p>
88
+
89
+ <p>Definition in file <a class="el" href="_graphics_8hpp-source.html">Graphics.hpp</a>.</p>
90
+ </div>
91
+ <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>
92
+ </div>
93
+ </body>
94
+ </html>
@@ -0,0 +1,115 @@
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&nbsp;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&nbsp;List</span></a></li>
61
+ <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
62
+ </ul>
63
+ </div>
64
+ <h1>GraphicsBase.hpp</h1><a href="_graphics_base_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_GRAPHICSBASE_HPP</span>
68
+ <a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_GRAPHICSBASE_HPP</span>
69
+ <a name="l00006"></a>00006 <span class="preprocessor"></span>
70
+ <a name="l00007"></a>00007 <span class="preprocessor">#include &lt;limits&gt;</span>
71
+ <a name="l00008"></a>00008
72
+ <a name="l00009"></a>00009 <span class="keyword">namespace </span>Gosu
73
+ <a name="l00010"></a>00010 {
74
+ <a name="l00014"></a>00014 <span class="keyword">typedef</span> <span class="keywordtype">double</span> ZPos;
75
+ <a name="l00015"></a>00015
76
+ <a name="l00019"></a>00019 <span class="keyword">const</span> <span class="keywordtype">double</span> zImmediate = -std::numeric_limits&lt;double&gt;::infinity();
77
+ <a name="l00020"></a>00020
78
+ <a name="l00023"></a>00023 <span class="keyword">enum</span> AlphaMode
79
+ <a name="l00024"></a>00024 {
80
+ <a name="l00027"></a>00027 amDefault,
81
+ <a name="l00031"></a>00031 amAdditive
82
+ <a name="l00032"></a>00032 };
83
+ <a name="l00033"></a>00033
84
+ <a name="l00034"></a>00034 <span class="keyword">enum</span> FontFlags
85
+ <a name="l00035"></a>00035 {
86
+ <a name="l00036"></a>00036 ffBold = 1,
87
+ <a name="l00037"></a>00037 ffItalic = 2,
88
+ <a name="l00038"></a>00038 ffUnderline = 4
89
+ <a name="l00039"></a>00039 };
90
+ <a name="l00040"></a>00040
91
+ <a name="l00041"></a>00041 <span class="keyword">enum</span> TextAlign
92
+ <a name="l00042"></a>00042 {
93
+ <a name="l00043"></a>00043 taLeft,
94
+ <a name="l00044"></a>00044 taRight,
95
+ <a name="l00045"></a>00045 taCenter,
96
+ <a name="l00046"></a>00046 taJustify
97
+ <a name="l00047"></a>00047 };
98
+ <a name="l00048"></a>00048
99
+ <a name="l00050"></a>00050 <span class="keyword">enum</span> BorderFlags
100
+ <a name="l00051"></a>00051 {
101
+ <a name="l00052"></a>00052 bfSoft = 0,
102
+ <a name="l00053"></a>00053 bfTileableLeft = 1,
103
+ <a name="l00054"></a>00054 bfTileableTop = 2,
104
+ <a name="l00055"></a>00055 bfTileableRight = 4,
105
+ <a name="l00056"></a>00056 bfTileableBottom = 8,
106
+ <a name="l00057"></a>00057 bfTileable = bfTileableLeft | bfTileableTop | bfTileableRight | bfTileableBottom
107
+ <a name="l00058"></a>00058 };
108
+ <a name="l00059"></a>00059 }
109
+ <a name="l00060"></a>00060
110
+ <a name="l00061"></a>00061 <span class="preprocessor">#endif</span>
111
+ </pre></div></div>
112
+ <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>
113
+ </div>
114
+ </body>
115
+ </html>
@@ -0,0 +1,120 @@
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&nbsp;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&nbsp;List</span></a></li>
61
+ <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
62
+ </ul>
63
+ </div>
64
+ </div>
65
+ <div class="contents">
66
+ <h1>GraphicsBase.hpp File Reference</h1>Contains general typedefs and enums related to graphics.
67
+ <a href="#_details">More...</a>
68
+ <p>
69
+
70
+ <p>
71
+ <a href="_graphics_base_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>Typedefs</h2></td></tr>
74
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#a2fd8fe9574c0ad3fd52557cb160be49">Gosu::ZPos</a></td></tr>
75
+
76
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Represents the Z position of something drawn with Gosu's graphics system. <a href="#a2fd8fe9574c0ad3fd52557cb160be49"></a><br></td></tr>
77
+ <tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
78
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><b>AlphaMode</b> { <a class="el" href="namespace_gosu.html#769656b1f560bc3d1bbdb47f8ca4eda9d1661cf5d3ba68fcbdca99f9dcc832e0">Gosu::amDefault</a>,
79
+ <a class="el" href="namespace_gosu.html#769656b1f560bc3d1bbdb47f8ca4eda90032d35b3c2b35d16d3c59b6471c570b">Gosu::amAdditive</a>
80
+ }</td></tr>
81
+
82
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Determines the way colors are combined when one is drawn onto another. <a href="namespace_gosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">More...</a><br></td></tr>
83
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><b>FontFlags</b> { <a class="el" href="namespace_gosu.html#08da397ed09e759ba3392b7361cabe62da182ed25a89bbc7d45fda9de06b116b">Gosu::ffBold</a> = 1,
84
+ <a class="el" href="namespace_gosu.html#08da397ed09e759ba3392b7361cabe626072b85a2eb251fce7571122d359f67a">Gosu::ffItalic</a> = 2,
85
+ <a class="el" href="namespace_gosu.html#08da397ed09e759ba3392b7361cabe62a9d38282e9b20e83de9809e91ee1debb">Gosu::ffUnderline</a> = 4
86
+ }</td></tr>
87
+
88
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><b>TextAlign</b> { <a class="el" href="namespace_gosu.html#6dc1926b8de6c2fb6bde3aa79ca42c7618d3a7ccb2096af75fa830e2027db0e3">Gosu::taLeft</a>,
89
+ <a class="el" href="namespace_gosu.html#6dc1926b8de6c2fb6bde3aa79ca42c766467bfa7cd1b3aadb5388acc6cebec4b">Gosu::taRight</a>,
90
+ <a class="el" href="namespace_gosu.html#6dc1926b8de6c2fb6bde3aa79ca42c76252ee035c25da51aef6d13f03b894520">Gosu::taCenter</a>,
91
+ <a class="el" href="namespace_gosu.html#6dc1926b8de6c2fb6bde3aa79ca42c76ecfc2cbb13997bda64bff3be1f2e957f">Gosu::taJustify</a>
92
+ }</td></tr>
93
+
94
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><b>BorderFlags</b> { <br>
95
+ &nbsp;&nbsp;<a class="el" href="namespace_gosu.html#3b7f4d1f697d86c584543e455faeef829ac43f03f1674539ef273f32ca937435">Gosu::bfSoft</a> = 0,
96
+ <a class="el" href="namespace_gosu.html#3b7f4d1f697d86c584543e455faeef82590455ca5e98fcf73c1790b9f3b263d9">Gosu::bfTileableLeft</a> = 1,
97
+ <a class="el" href="namespace_gosu.html#3b7f4d1f697d86c584543e455faeef82aea82bb0ad82263bb710045eb5c7d42f">Gosu::bfTileableTop</a> = 2,
98
+ <a class="el" href="namespace_gosu.html#3b7f4d1f697d86c584543e455faeef825cffa52bde527c98e8a650e7c4fcf69b">Gosu::bfTileableRight</a> = 4,
99
+ <br>
100
+ &nbsp;&nbsp;<a class="el" href="namespace_gosu.html#3b7f4d1f697d86c584543e455faeef823b1e203829e9cea96fed5b2497237e78">Gosu::bfTileableBottom</a> = 8,
101
+ <a class="el" href="namespace_gosu.html#3b7f4d1f697d86c584543e455faeef829b7a4a2b58a5166aa501c86dd98a2e9b">Gosu::bfTileable</a> = bfTileableLeft | bfTileableTop | bfTileableRight | bfTileableBottom
102
+ <br>
103
+ }</td></tr>
104
+
105
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Flags that affect the tileability of an image. <a href="namespace_gosu.html#3b7f4d1f697d86c584543e455faeef82">More...</a><br></td></tr>
106
+ <tr><td colspan="2"><br><h2>Variables</h2></td></tr>
107
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">const double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#66e372da7f9b1ce440cc35da4b16b027">Gosu::zImmediate</a> = -std::numeric_limits&lt;double&gt;::infinity()</td></tr>
108
+
109
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The lowest possible Z position. <a href="#66e372da7f9b1ce440cc35da4b16b027"></a><br></td></tr>
110
+ </table>
111
+ <hr><a name="_details"></a><h2>Detailed Description</h2>
112
+ Contains general typedefs and enums related to graphics.
113
+ <p>
114
+
115
+ <p>Definition in file <a class="el" href="_graphics_base_8hpp-source.html">GraphicsBase.hpp</a>.</p>
116
+ </div>
117
+ <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>
118
+ </div>
119
+ </body>
120
+ </html>
@@ -0,0 +1,301 @@
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&nbsp;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&nbsp;List</span></a></li>
61
+ <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
62
+ </ul>
63
+ </div>
64
+ <h1>IO.hpp</h1><a href="_i_o_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_IO_HPP</span>
68
+ <a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_IO_HPP</span>
69
+ <a name="l00006"></a>00006 <span class="preprocessor"></span>
70
+ <a name="l00007"></a>00007 <span class="preprocessor">#include &lt;boost/utility.hpp&gt;</span>
71
+ <a name="l00008"></a>00008 <span class="preprocessor">#include &lt;boost/scoped_ptr.hpp&gt;</span>
72
+ <a name="l00009"></a>00009 <span class="preprocessor">#include &lt;cstddef&gt;</span>
73
+ <a name="l00010"></a>00010 <span class="preprocessor">#include &lt;algorithm&gt;</span>
74
+ <a name="l00011"></a>00011 <span class="preprocessor">#include &lt;string&gt;</span>
75
+ <a name="l00012"></a>00012 <span class="preprocessor">#include &lt;vector&gt;</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="l00016"></a>00016 <span class="keyword">class </span>Resource;
80
+ <a name="l00017"></a>00017
81
+ <a name="l00018"></a>00018 <span class="keyword">enum</span> ByteOrder { boLittle, boBig, boDontCare };
82
+ <a name="l00019"></a>00019 <span class="preprocessor">#ifdef __BIG_ENDIAN__</span>
83
+ <a name="l00020"></a>00020 <span class="preprocessor"></span> <span class="keyword">const</span> ByteOrder nativeByteOrder = boBig, otherByteOrder = boLittle;
84
+ <a name="l00021"></a>00021 <span class="preprocessor">#else</span>
85
+ <a name="l00022"></a>00022 <span class="preprocessor"></span> <span class="keyword">const</span> ByteOrder nativeByteOrder = boLittle, otherByteOrder = boBig;
86
+ <a name="l00023"></a>00023 <span class="preprocessor">#endif</span>
87
+ <a name="l00024"></a>00024 <span class="preprocessor"></span>
88
+ <a name="l00027"></a><a class="code" href="class_gosu_1_1_reader.html">00027</a> <span class="keyword">class </span><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>
89
+ <a name="l00028"></a>00028 {
90
+ <a name="l00029"></a>00029 <span class="keyword">const</span> <a class="code" href="class_gosu_1_1_resource.html" title="Base class for resources.">Resource</a>* res;
91
+ <a name="l00030"></a>00030 std::size_t pos;
92
+ <a name="l00031"></a>00031
93
+ <a name="l00032"></a>00032 <span class="keyword">public</span>:
94
+ <a name="l00033"></a><a class="code" href="class_gosu_1_1_reader.html#96b3be456f50c735a10cc78968b9a851">00033</a> <a class="code" href="class_gosu_1_1_reader.html#96b3be456f50c735a10cc78968b9a851">Reader</a>(<span class="keyword">const</span> <a class="code" href="class_gosu_1_1_resource.html" title="Base class for resources.">Resource</a>&amp; <a class="code" href="class_gosu_1_1_reader.html#d06f3f9a4e718330dff39b439b921f30">resource</a>, std::size_t <a class="code" href="class_gosu_1_1_reader.html#1a15e9410f81a7e36e99eb0ad4c268ed">position</a>)
95
+ <a name="l00034"></a>00034 : res(&amp;resource), pos(position)
96
+ <a name="l00035"></a>00035 {
97
+ <a name="l00036"></a>00036 }
98
+ <a name="l00037"></a>00037
99
+ <a name="l00038"></a><a class="code" href="class_gosu_1_1_reader.html#d06f3f9a4e718330dff39b439b921f30">00038</a> <span class="keyword">const</span> <a class="code" href="class_gosu_1_1_resource.html" title="Base class for resources.">Resource</a>&amp; <a class="code" href="class_gosu_1_1_reader.html#d06f3f9a4e718330dff39b439b921f30">resource</a>()<span class="keyword"> const</span>
100
+ <a name="l00039"></a>00039 <span class="keyword"> </span>{
101
+ <a name="l00040"></a>00040 <span class="keywordflow">return</span> *res;
102
+ <a name="l00041"></a>00041 }
103
+ <a name="l00042"></a>00042
104
+ <a name="l00043"></a><a class="code" href="class_gosu_1_1_reader.html#1a15e9410f81a7e36e99eb0ad4c268ed">00043</a> std::size_t <a class="code" href="class_gosu_1_1_reader.html#1a15e9410f81a7e36e99eb0ad4c268ed">position</a>()<span class="keyword"> const</span>
105
+ <a name="l00044"></a>00044 <span class="keyword"> </span>{
106
+ <a name="l00045"></a>00045 <span class="keywordflow">return</span> pos;
107
+ <a name="l00046"></a>00046 }
108
+ <a name="l00047"></a>00047
109
+ <a name="l00048"></a><a class="code" href="class_gosu_1_1_reader.html#7b61e4f58eb67d256911cff6331ce549">00048</a> <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_reader.html#7b61e4f58eb67d256911cff6331ce549">setPosition</a>(std::size_t value)
110
+ <a name="l00049"></a>00049 {
111
+ <a name="l00050"></a>00050 <span class="comment">// TODO: Check?</span>
112
+ <a name="l00051"></a>00051 pos = value;
113
+ <a name="l00052"></a>00052 }
114
+ <a name="l00053"></a>00053
115
+ <a name="l00054"></a><a class="code" href="class_gosu_1_1_reader.html#626110bc1d3d03395a8b0f87b7f0dfd4">00054</a> <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_reader.html#626110bc1d3d03395a8b0f87b7f0dfd4">seek</a>(std::ptrdiff_t offset)
116
+ <a name="l00055"></a>00055 {
117
+ <a name="l00056"></a>00056 <span class="comment">// TODO: Check?</span>
118
+ <a name="l00057"></a>00057 pos += offset;
119
+ <a name="l00058"></a>00058 }
120
+ <a name="l00059"></a>00059
121
+ <a name="l00060"></a>00060 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_reader.html#697471a1da53c944f2fc1c930ee14bd2">read</a>(<span class="keywordtype">void</span>* destBuffer, std::size_t length);
122
+ <a name="l00061"></a>00061
123
+ <a name="l00063"></a>00063 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
124
+ <a name="l00064"></a><a class="code" href="class_gosu_1_1_reader.html#1f7467d679eb354f4a075139b66bfe9d">00064</a> <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_reader.html#1f7467d679eb354f4a075139b66bfe9d" title="Convenience function; equivalent to read(&amp;amp;t, sizeof t).">readPod</a>(T&amp; t, ByteOrder bo = boDontCare)
125
+ <a name="l00065"></a>00065 {
126
+ <a name="l00066"></a>00066 <a class="code" href="class_gosu_1_1_reader.html#697471a1da53c944f2fc1c930ee14bd2">read</a>(&amp;t, <span class="keyword">sizeof</span> t);
127
+ <a name="l00067"></a>00067 <span class="keywordflow">if</span> (bo == otherByteOrder)
128
+ <a name="l00068"></a>00068 {
129
+ <a name="l00069"></a>00069 <span class="keywordtype">char</span>* begin = <span class="keyword">reinterpret_cast&lt;</span><span class="keywordtype">char</span>*<span class="keyword">&gt;</span>(&amp;t);
130
+ <a name="l00070"></a>00070 std::reverse(begin, begin + <span class="keyword">sizeof</span> t);
131
+ <a name="l00071"></a>00071 }
132
+ <a name="l00072"></a>00072 }
133
+ <a name="l00073"></a>00073
134
+ <a name="l00075"></a>00075 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
135
+ <a name="l00076"></a><a class="code" href="class_gosu_1_1_reader.html#c6ce6d38790ccd1123568eb17869d85b">00076</a> T <a class="code" href="class_gosu_1_1_reader.html#c6ce6d38790ccd1123568eb17869d85b" title="Similar to readPod(T&amp;amp;), but returns the read value instead.">getPod</a>(ByteOrder bo = boDontCare)
136
+ <a name="l00077"></a>00077 {
137
+ <a name="l00078"></a>00078 T t;
138
+ <a name="l00079"></a>00079 readPod&lt;T&gt;(t, bo);
139
+ <a name="l00080"></a>00080 <span class="keywordflow">return</span> t;
140
+ <a name="l00081"></a>00081 }
141
+ <a name="l00082"></a>00082 };
142
+ <a name="l00083"></a>00083
143
+ <a name="l00086"></a><a class="code" href="class_gosu_1_1_writer.html">00086</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_writer.html" title="Utility class that points to a specific position in a resource and offers an interface...">Writer</a>
144
+ <a name="l00087"></a>00087 {
145
+ <a name="l00088"></a>00088 <a class="code" href="class_gosu_1_1_resource.html" title="Base class for resources.">Resource</a>* res;
146
+ <a name="l00089"></a>00089 std::size_t pos;
147
+ <a name="l00090"></a>00090
148
+ <a name="l00091"></a>00091 <span class="keyword">public</span>:
149
+ <a name="l00092"></a><a class="code" href="class_gosu_1_1_writer.html#0032c19788b3196eb95f7ce6ff78ee64">00092</a> <a class="code" href="class_gosu_1_1_writer.html#0032c19788b3196eb95f7ce6ff78ee64">Writer</a>(<a class="code" href="class_gosu_1_1_resource.html" title="Base class for resources.">Resource</a>&amp; <a class="code" href="class_gosu_1_1_writer.html#792fbddc51cd7c2f371f22a819057362">resource</a>, std::size_t <a class="code" href="class_gosu_1_1_writer.html#e6b43234bc5c8b751b4b50c92f987ec2">position</a>)
150
+ <a name="l00093"></a>00093 : res(&amp;resource), pos(position)
151
+ <a name="l00094"></a>00094 {
152
+ <a name="l00095"></a>00095 }
153
+ <a name="l00096"></a>00096
154
+ <a name="l00097"></a><a class="code" href="class_gosu_1_1_writer.html#792fbddc51cd7c2f371f22a819057362">00097</a> <a class="code" href="class_gosu_1_1_resource.html" title="Base class for resources.">Resource</a>&amp; <a class="code" href="class_gosu_1_1_writer.html#792fbddc51cd7c2f371f22a819057362">resource</a>()<span class="keyword"> const</span>
155
+ <a name="l00098"></a>00098 <span class="keyword"> </span>{
156
+ <a name="l00099"></a>00099 <span class="keywordflow">return</span> *res;
157
+ <a name="l00100"></a>00100 }
158
+ <a name="l00101"></a>00101
159
+ <a name="l00102"></a><a class="code" href="class_gosu_1_1_writer.html#e6b43234bc5c8b751b4b50c92f987ec2">00102</a> std::size_t <a class="code" href="class_gosu_1_1_writer.html#e6b43234bc5c8b751b4b50c92f987ec2">position</a>()<span class="keyword"> const</span>
160
+ <a name="l00103"></a>00103 <span class="keyword"> </span>{
161
+ <a name="l00104"></a>00104 <span class="keywordflow">return</span> pos;
162
+ <a name="l00105"></a>00105 }
163
+ <a name="l00106"></a>00106
164
+ <a name="l00107"></a><a class="code" href="class_gosu_1_1_writer.html#3d2abef56a95eb09122945a68b368003">00107</a> <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_writer.html#3d2abef56a95eb09122945a68b368003">setPosition</a>(std::size_t value)
165
+ <a name="l00108"></a>00108 {
166
+ <a name="l00109"></a>00109 <span class="comment">// TODO: Check?</span>
167
+ <a name="l00110"></a>00110 pos = value;
168
+ <a name="l00111"></a>00111 }
169
+ <a name="l00112"></a>00112
170
+ <a name="l00113"></a><a class="code" href="class_gosu_1_1_writer.html#2ccd210d640ec99e8692ae6526af67c6">00113</a> <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_writer.html#2ccd210d640ec99e8692ae6526af67c6">seek</a>(std::ptrdiff_t offset)
171
+ <a name="l00114"></a>00114 {
172
+ <a name="l00115"></a>00115 <span class="comment">// TODO: Check?</span>
173
+ <a name="l00116"></a>00116 pos += offset;
174
+ <a name="l00117"></a>00117 }
175
+ <a name="l00118"></a>00118
176
+ <a name="l00119"></a>00119 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_writer.html#2761f91f0bb28239d47ee749f6351c6b">write</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* sourceBuffer, std::size_t length);
177
+ <a name="l00120"></a>00120
178
+ <a name="l00122"></a>00122 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
179
+ <a name="l00123"></a><a class="code" href="class_gosu_1_1_writer.html#170ce6b0f284fa6772091708a012339e">00123</a> <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_writer.html#170ce6b0f284fa6772091708a012339e" title="Convenience function; equivalent to write(&amp;amp;t, sizeof t).">writePod</a>(<span class="keyword">const</span> T&amp; t, ByteOrder bo = boDontCare)
180
+ <a name="l00124"></a>00124 {
181
+ <a name="l00125"></a>00125 <span class="keywordflow">if</span> (bo == otherByteOrder)
182
+ <a name="l00126"></a>00126 {
183
+ <a name="l00127"></a>00127 <span class="keywordtype">char</span> buf[<span class="keyword">sizeof</span> t];
184
+ <a name="l00128"></a>00128 <span class="keyword">const</span> <span class="keywordtype">char</span>* begin = <span class="keyword">reinterpret_cast&lt;</span><span class="keyword">const </span><span class="keywordtype">char</span>*<span class="keyword">&gt;</span>(&amp;t);
185
+ <a name="l00129"></a>00129 std::reverse_copy(begin, begin + <span class="keyword">sizeof</span> t, buf);
186
+ <a name="l00130"></a>00130 <a class="code" href="class_gosu_1_1_writer.html#2761f91f0bb28239d47ee749f6351c6b">write</a>(buf, <span class="keyword">sizeof</span> buf);
187
+ <a name="l00131"></a>00131 }
188
+ <a name="l00132"></a>00132 <span class="keywordflow">else</span>
189
+ <a name="l00133"></a>00133 <a class="code" href="class_gosu_1_1_writer.html#2761f91f0bb28239d47ee749f6351c6b">write</a>(&amp;t, <span class="keyword">sizeof</span> t);
190
+ <a name="l00134"></a>00134 }
191
+ <a name="l00135"></a>00135 };
192
+ <a name="l00136"></a>00136
193
+ <a name="l00142"></a><a class="code" href="class_gosu_1_1_resource.html">00142</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_resource.html" title="Base class for resources.">Resource</a> : boost::noncopyable
194
+ <a name="l00143"></a>00143 {
195
+ <a name="l00144"></a>00144 <span class="keyword">public</span>:
196
+ <a name="l00145"></a><a class="code" href="class_gosu_1_1_resource.html#ca3a40cc85122a50869ea8930264c365">00145</a> <span class="keyword">virtual</span> <a class="code" href="class_gosu_1_1_resource.html#ca3a40cc85122a50869ea8930264c365">~Resource</a>()
197
+ <a name="l00146"></a>00146 {
198
+ <a name="l00147"></a>00147 }
199
+ <a name="l00148"></a>00148
200
+ <a name="l00151"></a><a class="code" href="class_gosu_1_1_resource.html#1487016df4be48aa67e4596d5436dab6">00151</a> <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> <a class="code" href="class_gosu_1_1_resource.html#1487016df4be48aa67e4596d5436dab6" title="Convenience: Creates a new Reader that reads from the start of the resource.">frontReader</a>()<span class="keyword"> const</span>
201
+ <a name="l00152"></a>00152 <span class="keyword"> </span>{
202
+ <a name="l00153"></a>00153 <span class="keywordflow">return</span> <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>(*<span class="keyword">this</span>, 0);
203
+ <a name="l00154"></a>00154 }
204
+ <a name="l00155"></a>00155
205
+ <a name="l00158"></a><a class="code" href="class_gosu_1_1_resource.html#8383c59af78d8b90b4f28cd10c6a368f">00158</a> <a class="code" href="class_gosu_1_1_writer.html" title="Utility class that points to a specific position in a resource and offers an interface...">Writer</a> <a class="code" href="class_gosu_1_1_resource.html#8383c59af78d8b90b4f28cd10c6a368f" title="Convenience: Creates a new Writer that appends data at the end of the resource.">backWriter</a>()
206
+ <a name="l00159"></a>00159 {
207
+ <a name="l00160"></a>00160 <span class="keywordflow">return</span> <a class="code" href="class_gosu_1_1_writer.html" title="Utility class that points to a specific position in a resource and offers an interface...">Writer</a>(*<span class="keyword">this</span>, <a class="code" href="class_gosu_1_1_resource.html#1211e148be764e0b78e3d7133da4a9f0">size</a>());
208
+ <a name="l00161"></a>00161 }
209
+ <a name="l00162"></a>00162
210
+ <a name="l00163"></a>00163 <span class="keyword">virtual</span> std::size_t <a class="code" href="class_gosu_1_1_resource.html#1211e148be764e0b78e3d7133da4a9f0">size</a>() <span class="keyword">const</span> = 0;
211
+ <a name="l00164"></a>00164
212
+ <a name="l00165"></a>00165 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_resource.html#ae13c54d269781b8f05dd281bdd3d9f6">resize</a>(std::size_t newSize) = 0;
213
+ <a name="l00166"></a>00166
214
+ <a name="l00167"></a>00167 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_resource.html#64b661506cb7e17af4d957a368149b11">read</a>(std::size_t offset, std::size_t length,
215
+ <a name="l00168"></a>00168 <span class="keywordtype">void</span>* destBuffer) <span class="keyword">const</span> = 0;
216
+ <a name="l00169"></a>00169
217
+ <a name="l00170"></a>00170 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_resource.html#b2dac3b2c7a34372051231b5bb4b8969">write</a>(std::size_t offset, std::size_t length,
218
+ <a name="l00171"></a>00171 <span class="keyword">const</span> <span class="keywordtype">void</span>* sourceBuffer) = 0;
219
+ <a name="l00172"></a>00172 };
220
+ <a name="l00173"></a>00173
221
+ <a name="l00175"></a><a class="code" href="class_gosu_1_1_buffer.html">00175</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_buffer.html" title="Piece of memory with the Resource interface.">Buffer</a> : <span class="keyword">public</span> <a class="code" href="class_gosu_1_1_resource.html" title="Base class for resources.">Resource</a>
222
+ <a name="l00176"></a>00176 {
223
+ <a name="l00177"></a>00177 std::vector&lt;char&gt; buf;
224
+ <a name="l00178"></a>00178
225
+ <a name="l00179"></a>00179 <span class="keyword">public</span>:
226
+ <a name="l00180"></a><a class="code" href="class_gosu_1_1_buffer.html#23d06586c649743ef5136a5236297a15">00180</a> <a class="code" href="class_gosu_1_1_buffer.html#23d06586c649743ef5136a5236297a15">Buffer</a>()
227
+ <a name="l00181"></a>00181 {
228
+ <a name="l00182"></a>00182 }
229
+ <a name="l00183"></a>00183
230
+ <a name="l00184"></a><a class="code" href="class_gosu_1_1_buffer.html#b5633a0dc1b9b9d394cf53e5e06ab82c">00184</a> <a class="code" href="class_gosu_1_1_buffer.html#23d06586c649743ef5136a5236297a15">Buffer</a>(<span class="keyword">const</span> <a class="code" href="class_gosu_1_1_buffer.html" title="Piece of memory with the Resource interface.">Buffer</a>&amp; other)
231
+ <a name="l00185"></a>00185 : buf(other.buf)
232
+ <a name="l00186"></a>00186 {
233
+ <a name="l00187"></a>00187 }
234
+ <a name="l00188"></a>00188
235
+ <a name="l00189"></a><a class="code" href="class_gosu_1_1_buffer.html#6027117fa016fb5b1315106436badbc0">00189</a> <a class="code" href="class_gosu_1_1_buffer.html" title="Piece of memory with the Resource interface.">Buffer</a>&amp; <a class="code" href="class_gosu_1_1_buffer.html#6027117fa016fb5b1315106436badbc0">operator=</a>(<span class="keyword">const</span> <a class="code" href="class_gosu_1_1_buffer.html" title="Piece of memory with the Resource interface.">Buffer</a>&amp; other)
236
+ <a name="l00190"></a>00190 {
237
+ <a name="l00191"></a>00191 buf = other.<a class="code" href="class_gosu_1_1_buffer.html#9e619f1956741a660e8c13b1146e738e">buf</a>;
238
+ <a name="l00192"></a>00192 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
239
+ <a name="l00193"></a>00193 }
240
+ <a name="l00194"></a>00194
241
+ <a name="l00195"></a><a class="code" href="class_gosu_1_1_buffer.html#87dc8af05b5c5073ef12bdf3368dcfe3">00195</a> std::size_t <a class="code" href="class_gosu_1_1_buffer.html#87dc8af05b5c5073ef12bdf3368dcfe3">size</a>()<span class="keyword"> const</span>
242
+ <a name="l00196"></a>00196 <span class="keyword"> </span>{
243
+ <a name="l00197"></a>00197 <span class="keywordflow">return</span> buf.size();
244
+ <a name="l00198"></a>00198 }
245
+ <a name="l00199"></a>00199
246
+ <a name="l00200"></a><a class="code" href="class_gosu_1_1_buffer.html#a2ba0896aa3e51d2d8ae30551288fabc">00200</a> <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_buffer.html#a2ba0896aa3e51d2d8ae30551288fabc">resize</a>(std::size_t newSize)
247
+ <a name="l00201"></a>00201 {
248
+ <a name="l00202"></a>00202 buf.resize(newSize);
249
+ <a name="l00203"></a>00203 }
250
+ <a name="l00204"></a>00204
251
+ <a name="l00205"></a>00205 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_buffer.html#663043ae5ef683670989dfa2fc71c189">read</a>(std::size_t offset, std::size_t length,
252
+ <a name="l00206"></a>00206 <span class="keywordtype">void</span>* destBuffer) <span class="keyword">const</span>;
253
+ <a name="l00207"></a>00207
254
+ <a name="l00208"></a>00208 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_buffer.html#6fb20591d430230c854aaa9ff5f29bc3">write</a>(std::size_t offset, std::size_t length,
255
+ <a name="l00209"></a>00209 <span class="keyword">const</span> <span class="keywordtype">void</span>* sourceBuffer);
256
+ <a name="l00210"></a>00210
257
+ <a name="l00211"></a><a class="code" href="class_gosu_1_1_buffer.html#d488eb50bdec6f327dee18025dc95714">00211</a> <span class="keyword">const</span> <span class="keywordtype">void</span>* <a class="code" href="class_gosu_1_1_buffer.html#d488eb50bdec6f327dee18025dc95714">data</a>()<span class="keyword"> const</span>
258
+ <a name="l00212"></a>00212 <span class="keyword"> </span>{
259
+ <a name="l00213"></a>00213 <span class="keywordflow">return</span> &amp;buf[0];
260
+ <a name="l00214"></a>00214 }
261
+ <a name="l00215"></a>00215
262
+ <a name="l00216"></a><a class="code" href="class_gosu_1_1_buffer.html#e71074a520bb3939313b7610432c7358">00216</a> <span class="keywordtype">void</span>* <a class="code" href="class_gosu_1_1_buffer.html#d488eb50bdec6f327dee18025dc95714">data</a>()
263
+ <a name="l00217"></a>00217 {
264
+ <a name="l00218"></a>00218 <span class="keywordflow">return</span> &amp;buf[0];
265
+ <a name="l00219"></a>00219 }
266
+ <a name="l00220"></a>00220 };
267
+ <a name="l00221"></a>00221
268
+ <a name="l00222"></a>00222 <span class="keyword">enum</span> FileMode
269
+ <a name="l00223"></a>00223 {
270
+ <a name="l00226"></a>00226 fmRead,
271
+ <a name="l00229"></a>00229 fmReplace,
272
+ <a name="l00232"></a>00232 fmAlter
273
+ <a name="l00233"></a>00233 };
274
+ <a name="l00234"></a>00234
275
+ <a name="l00236"></a><a class="code" href="class_gosu_1_1_file.html">00236</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_file.html" title="File with the Resource interface.">File</a> : <span class="keyword">public</span> <a class="code" href="class_gosu_1_1_resource.html" title="Base class for resources.">Resource</a>
276
+ <a name="l00237"></a>00237 {
277
+ <a name="l00238"></a>00238 <span class="keyword">struct </span>Impl;
278
+ <a name="l00239"></a>00239 boost::scoped_ptr&lt;Impl&gt; pimpl;
279
+ <a name="l00240"></a>00240
280
+ <a name="l00241"></a>00241 <span class="keyword">public</span>:
281
+ <a name="l00242"></a>00242 <span class="keyword">explicit</span> <a class="code" href="class_gosu_1_1_file.html#ca8146e9a279ee5cdee72bf6997eb392">File</a>(<span class="keyword">const</span> std::wstring&amp; filename, FileMode mode = fmRead);
282
+ <a name="l00243"></a>00243 <a class="code" href="class_gosu_1_1_file.html#33c8932235e2b46945a767025dc02edc">~File</a>();
283
+ <a name="l00244"></a>00244
284
+ <a name="l00245"></a>00245 std::size_t <a class="code" href="class_gosu_1_1_file.html#d3cb0b3153253936f11ae51da9032532">size</a>() <span class="keyword">const</span>;
285
+ <a name="l00246"></a>00246 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_file.html#e8e557bc658ba2f2caca51517d461ee3">resize</a>(std::size_t newSize);
286
+ <a name="l00247"></a>00247 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_file.html#65d51811adfa8909e325a52c79903c78">read</a>(std::size_t offset, std::size_t length,
287
+ <a name="l00248"></a>00248 <span class="keywordtype">void</span>* destBuffer) <span class="keyword">const</span>;
288
+ <a name="l00249"></a>00249 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_file.html#3ed021544dfd296370219744cc71c61e">write</a>(std::size_t offset, std::size_t length,
289
+ <a name="l00250"></a>00250 <span class="keyword">const</span> <span class="keywordtype">void</span>* sourceBuffer);
290
+ <a name="l00251"></a>00251 };
291
+ <a name="l00252"></a>00252
292
+ <a name="l00254"></a>00254 <span class="keywordtype">void</span> loadFile(<a class="code" href="class_gosu_1_1_buffer.html" title="Piece of memory with the Resource interface.">Buffer</a>&amp; buffer, <span class="keyword">const</span> std::wstring&amp; filename);
293
+ <a name="l00256"></a>00256 <span class="keywordtype">void</span> saveFile(<span class="keyword">const</span> <a class="code" href="class_gosu_1_1_buffer.html" title="Piece of memory with the Resource interface.">Buffer</a>&amp; buffer, <span class="keyword">const</span> std::wstring&amp; filename);
294
+ <a name="l00257"></a>00257 }
295
+ <a name="l00258"></a>00258
296
+ <a name="l00259"></a>00259 <span class="preprocessor">#endif</span>
297
+ </pre></div></div>
298
+ <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>
299
+ </div>
300
+ </body>
301
+ </html>