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,305 @@
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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
55
+ <li><a href="files.html"><span>Files</span></a></li>
56
+ </ul>
57
+ </div>
58
+ <div class="tabs">
59
+ <ul>
60
+ <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
61
+ <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
62
+ <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
63
+ </ul>
64
+ </div>
65
+ <div class="navpath"><b>Gosu</b>::<a class="el" href="class_gosu_1_1_resource.html">Resource</a>
66
+ </div>
67
+ </div>
68
+ <div class="contents">
69
+ <h1>Gosu::Resource Class Reference</h1><!-- doxytag: class="Gosu::Resource" -->Base class for resources.
70
+ <a href="#_details">More...</a>
71
+ <p>
72
+ <div class="dynheader">
73
+ Inheritance diagram for Gosu::Resource:</div>
74
+ <div class="dynsection">
75
+
76
+ <p><center><img src="class_gosu_1_1_resource.png" usemap="#Gosu::Resource_map" border="0" alt=""></center>
77
+ <map name="Gosu::Resource_map">
78
+ <area href="class_gosu_1_1_buffer.html" alt="Gosu::Buffer" shape="rect" coords="0,56,101,80">
79
+ <area href="class_gosu_1_1_file.html" alt="Gosu::File" shape="rect" coords="111,56,212,80">
80
+ </map>
81
+ </div>
82
+
83
+ <p>
84
+ <a href="class_gosu_1_1_resource-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
85
+ <tr><td></td></tr>
86
+ <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
87
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_resource.html#ca3a40cc85122a50869ea8930264c365">~Resource</a> ()</td></tr>
88
+
89
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_gosu_1_1_reader.html">Reader</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_resource.html#1487016df4be48aa67e4596d5436dab6">frontReader</a> () const </td></tr>
90
+
91
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convenience: Creates a new <a class="el" 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> that reads from the start of the resource. <a href="#1487016df4be48aa67e4596d5436dab6"></a><br></td></tr>
92
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_gosu_1_1_writer.html">Writer</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_resource.html#8383c59af78d8b90b4f28cd10c6a368f">backWriter</a> ()</td></tr>
93
+
94
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convenience: Creates a new <a class="el" 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> that appends data at the end of the resource. <a href="#8383c59af78d8b90b4f28cd10c6a368f"></a><br></td></tr>
95
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual std::size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_resource.html#1211e148be764e0b78e3d7133da4a9f0">size</a> () const =0</td></tr>
96
+
97
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_resource.html#ae13c54d269781b8f05dd281bdd3d9f6">resize</a> (std::size_t newSize)=0</td></tr>
98
+
99
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_resource.html#64b661506cb7e17af4d957a368149b11">read</a> (std::size_t offset, std::size_t length, void *destBuffer) const =0</td></tr>
100
+
101
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_resource.html#b2dac3b2c7a34372051231b5bb4b8969">write</a> (std::size_t offset, std::size_t length, const void *sourceBuffer)=0</td></tr>
102
+
103
+ </table>
104
+ <hr><a name="_details"></a><h2>Detailed Description</h2>
105
+ Base class for resources.
106
+ <p>
107
+ A resource in Gosu is nothing more but a piece of binary data that can be read or written, for example files or simply areas of allocated memory. A resource always knows its size and can resize itself, thereby either truncating its content or allocating room for more data.
108
+ <p>Definition at line <a class="el" href="_i_o_8hpp-source.html#l00142">142</a> of file <a class="el" href="_i_o_8hpp-source.html">IO.hpp</a>.</p>
109
+ <hr><h2>Constructor &amp; Destructor Documentation</h2>
110
+ <a class="anchor" name="ca3a40cc85122a50869ea8930264c365"></a><!-- doxytag: member="Gosu::Resource::~Resource" ref="ca3a40cc85122a50869ea8930264c365" args="()" -->
111
+ <div class="memitem">
112
+ <div class="memproto">
113
+ <table class="memname">
114
+ <tr>
115
+ <td class="memname">virtual Gosu::Resource::~Resource </td>
116
+ <td>(</td>
117
+ <td class="paramname"> </td>
118
+ <td>&nbsp;)&nbsp;</td>
119
+ <td><code> [virtual]</code></td>
120
+ </tr>
121
+ </table>
122
+ </div>
123
+ <div class="memdoc">
124
+
125
+ <p>
126
+
127
+ <p>Definition at line <a class="el" href="_i_o_8hpp-source.html#l00145">145</a> of file <a class="el" href="_i_o_8hpp-source.html">IO.hpp</a>.</p>
128
+
129
+ </div>
130
+ </div><p>
131
+ <hr><h2>Member Function Documentation</h2>
132
+ <a class="anchor" name="8383c59af78d8b90b4f28cd10c6a368f"></a><!-- doxytag: member="Gosu::Resource::backWriter" ref="8383c59af78d8b90b4f28cd10c6a368f" args="()" -->
133
+ <div class="memitem">
134
+ <div class="memproto">
135
+ <table class="memname">
136
+ <tr>
137
+ <td class="memname"><a class="el" href="class_gosu_1_1_writer.html">Writer</a> Gosu::Resource::backWriter </td>
138
+ <td>(</td>
139
+ <td class="paramname"> </td>
140
+ <td>&nbsp;)&nbsp;</td>
141
+ <td></td>
142
+ </tr>
143
+ </table>
144
+ </div>
145
+ <div class="memdoc">
146
+
147
+ <p>
148
+ Convenience: Creates a new <a class="el" 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> that appends data at the end of the resource.
149
+ <p>
150
+
151
+ <p>Definition at line <a class="el" href="_i_o_8hpp-source.html#l00158">158</a> of file <a class="el" href="_i_o_8hpp-source.html">IO.hpp</a>.</p>
152
+
153
+ <p>References <a class="el" href="class_gosu_1_1_resource.html#1211e148be764e0b78e3d7133da4a9f0">size()</a>.</p>
154
+
155
+ </div>
156
+ </div><p>
157
+ <a class="anchor" name="1487016df4be48aa67e4596d5436dab6"></a><!-- doxytag: member="Gosu::Resource::frontReader" ref="1487016df4be48aa67e4596d5436dab6" args="() const " -->
158
+ <div class="memitem">
159
+ <div class="memproto">
160
+ <table class="memname">
161
+ <tr>
162
+ <td class="memname"><a class="el" href="class_gosu_1_1_reader.html">Reader</a> Gosu::Resource::frontReader </td>
163
+ <td>(</td>
164
+ <td class="paramname"> </td>
165
+ <td>&nbsp;)&nbsp;</td>
166
+ <td> const</td>
167
+ </tr>
168
+ </table>
169
+ </div>
170
+ <div class="memdoc">
171
+
172
+ <p>
173
+ Convenience: Creates a new <a class="el" 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> that reads from the start of the resource.
174
+ <p>
175
+
176
+ <p>Definition at line <a class="el" href="_i_o_8hpp-source.html#l00151">151</a> of file <a class="el" href="_i_o_8hpp-source.html">IO.hpp</a>.</p>
177
+
178
+ </div>
179
+ </div><p>
180
+ <a class="anchor" name="64b661506cb7e17af4d957a368149b11"></a><!-- doxytag: member="Gosu::Resource::read" ref="64b661506cb7e17af4d957a368149b11" args="(std::size_t offset, std::size_t length, void *destBuffer) const =0" -->
181
+ <div class="memitem">
182
+ <div class="memproto">
183
+ <table class="memname">
184
+ <tr>
185
+ <td class="memname">virtual void Gosu::Resource::read </td>
186
+ <td>(</td>
187
+ <td class="paramtype">std::size_t&nbsp;</td>
188
+ <td class="paramname"> <em>offset</em>, </td>
189
+ </tr>
190
+ <tr>
191
+ <td class="paramkey"></td>
192
+ <td></td>
193
+ <td class="paramtype">std::size_t&nbsp;</td>
194
+ <td class="paramname"> <em>length</em>, </td>
195
+ </tr>
196
+ <tr>
197
+ <td class="paramkey"></td>
198
+ <td></td>
199
+ <td class="paramtype">void *&nbsp;</td>
200
+ <td class="paramname"> <em>destBuffer</em></td><td>&nbsp;</td>
201
+ </tr>
202
+ <tr>
203
+ <td></td>
204
+ <td>)</td>
205
+ <td></td><td></td><td> const<code> [pure virtual]</code></td>
206
+ </tr>
207
+ </table>
208
+ </div>
209
+ <div class="memdoc">
210
+
211
+ <p>
212
+
213
+ <p>Implemented in <a class="el" href="class_gosu_1_1_buffer.html#663043ae5ef683670989dfa2fc71c189">Gosu::Buffer</a>, and <a class="el" href="class_gosu_1_1_file.html#65d51811adfa8909e325a52c79903c78">Gosu::File</a>.</p>
214
+
215
+ </div>
216
+ </div><p>
217
+ <a class="anchor" name="ae13c54d269781b8f05dd281bdd3d9f6"></a><!-- doxytag: member="Gosu::Resource::resize" ref="ae13c54d269781b8f05dd281bdd3d9f6" args="(std::size_t newSize)=0" -->
218
+ <div class="memitem">
219
+ <div class="memproto">
220
+ <table class="memname">
221
+ <tr>
222
+ <td class="memname">virtual void Gosu::Resource::resize </td>
223
+ <td>(</td>
224
+ <td class="paramtype">std::size_t&nbsp;</td>
225
+ <td class="paramname"> <em>newSize</em> </td>
226
+ <td>&nbsp;)&nbsp;</td>
227
+ <td><code> [pure virtual]</code></td>
228
+ </tr>
229
+ </table>
230
+ </div>
231
+ <div class="memdoc">
232
+
233
+ <p>
234
+
235
+ <p>Implemented in <a class="el" href="class_gosu_1_1_buffer.html#a2ba0896aa3e51d2d8ae30551288fabc">Gosu::Buffer</a>, and <a class="el" href="class_gosu_1_1_file.html#e8e557bc658ba2f2caca51517d461ee3">Gosu::File</a>.</p>
236
+
237
+ </div>
238
+ </div><p>
239
+ <a class="anchor" name="1211e148be764e0b78e3d7133da4a9f0"></a><!-- doxytag: member="Gosu::Resource::size" ref="1211e148be764e0b78e3d7133da4a9f0" args="() const =0" -->
240
+ <div class="memitem">
241
+ <div class="memproto">
242
+ <table class="memname">
243
+ <tr>
244
+ <td class="memname">virtual std::size_t Gosu::Resource::size </td>
245
+ <td>(</td>
246
+ <td class="paramname"> </td>
247
+ <td>&nbsp;)&nbsp;</td>
248
+ <td> const<code> [pure virtual]</code></td>
249
+ </tr>
250
+ </table>
251
+ </div>
252
+ <div class="memdoc">
253
+
254
+ <p>
255
+
256
+ <p>Implemented in <a class="el" href="class_gosu_1_1_buffer.html#87dc8af05b5c5073ef12bdf3368dcfe3">Gosu::Buffer</a>, and <a class="el" href="class_gosu_1_1_file.html#d3cb0b3153253936f11ae51da9032532">Gosu::File</a>.</p>
257
+
258
+ <p>Referenced by <a class="el" href="_i_o_8hpp-source.html#l00158">backWriter()</a>.</p>
259
+
260
+ </div>
261
+ </div><p>
262
+ <a class="anchor" name="b2dac3b2c7a34372051231b5bb4b8969"></a><!-- doxytag: member="Gosu::Resource::write" ref="b2dac3b2c7a34372051231b5bb4b8969" args="(std::size_t offset, std::size_t length, const void *sourceBuffer)=0" -->
263
+ <div class="memitem">
264
+ <div class="memproto">
265
+ <table class="memname">
266
+ <tr>
267
+ <td class="memname">virtual void Gosu::Resource::write </td>
268
+ <td>(</td>
269
+ <td class="paramtype">std::size_t&nbsp;</td>
270
+ <td class="paramname"> <em>offset</em>, </td>
271
+ </tr>
272
+ <tr>
273
+ <td class="paramkey"></td>
274
+ <td></td>
275
+ <td class="paramtype">std::size_t&nbsp;</td>
276
+ <td class="paramname"> <em>length</em>, </td>
277
+ </tr>
278
+ <tr>
279
+ <td class="paramkey"></td>
280
+ <td></td>
281
+ <td class="paramtype">const void *&nbsp;</td>
282
+ <td class="paramname"> <em>sourceBuffer</em></td><td>&nbsp;</td>
283
+ </tr>
284
+ <tr>
285
+ <td></td>
286
+ <td>)</td>
287
+ <td></td><td></td><td><code> [pure virtual]</code></td>
288
+ </tr>
289
+ </table>
290
+ </div>
291
+ <div class="memdoc">
292
+
293
+ <p>
294
+
295
+ <p>Implemented in <a class="el" href="class_gosu_1_1_buffer.html#6fb20591d430230c854aaa9ff5f29bc3">Gosu::Buffer</a>, and <a class="el" href="class_gosu_1_1_file.html#3ed021544dfd296370219744cc71c61e">Gosu::File</a>.</p>
296
+
297
+ </div>
298
+ </div><p>
299
+ <hr>The documentation for this class was generated from the following file:<ul>
300
+ <li><a class="el" href="_i_o_8hpp-source.html">IO.hpp</a></ul>
301
+ </div>
302
+ <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>
303
+ </div>
304
+ </body>
305
+ </html>
@@ -0,0 +1,83 @@
1
+ <html>
2
+ <head>
3
+ <title>Gosu C++ Reference</title>
4
+ <link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
5
+ </head>
6
+ <body>
7
+ <div class="everything">
8
+ <!-- Generated by Doxygen 1.5.8 -->
9
+ <script type="text/javascript">
10
+ <!--
11
+ function changeDisplayState (e){
12
+ var num=this.id.replace(/[^[0-9]/g,'');
13
+ var button=this.firstChild;
14
+ var sectionDiv=document.getElementById('dynsection'+num);
15
+ if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
16
+ sectionDiv.style.display='block';
17
+ button.src='open.gif';
18
+ }else{
19
+ sectionDiv.style.display='none';
20
+ button.src='closed.gif';
21
+ }
22
+ }
23
+ function initDynSections(){
24
+ var divs=document.getElementsByTagName('div');
25
+ var sectionCounter=1;
26
+ for(var i=0;i<divs.length-1;i++){
27
+ if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
28
+ var header=divs[i];
29
+ var section=divs[i+1];
30
+ var button=header.firstChild;
31
+ if (button!='IMG'){
32
+ divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
33
+ button=document.createElement('img');
34
+ divs[i].insertBefore(button,divs[i].firstChild);
35
+ }
36
+ header.style.cursor='pointer';
37
+ header.onclick=changeDisplayState;
38
+ header.id='dynheader'+sectionCounter;
39
+ button.src='closed.gif';
40
+ section.id='dynsection'+sectionCounter;
41
+ section.style.display='none';
42
+ section.style.marginLeft='14px';
43
+ sectionCounter++;
44
+ }
45
+ }
46
+ }
47
+ window.onload = initDynSections;
48
+ -->
49
+ </script>
50
+ <div class="navigation" id="top">
51
+ <div class="tabs">
52
+ <ul>
53
+ <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
54
+ <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
55
+ <li><a href="files.html"><span>Files</span></a></li>
56
+ </ul>
57
+ </div>
58
+ <div class="tabs">
59
+ <ul>
60
+ <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
61
+ <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
62
+ <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
63
+ </ul>
64
+ </div>
65
+ </div>
66
+ <div class="contents">
67
+ <h1>Gosu::RotFlip Member List</h1>This is the complete list of members for <a class="el" href="class_gosu_1_1_rot_flip.html">Gosu::RotFlip</a>, including all inherited members.<p><table>
68
+ <tr class="memlist"><td><a class="el" href="class_gosu_1_1_rot_flip.html#f3ba518395cf6e27293e1c16b83d3498">flipped</a>() const </td><td><a class="el" href="class_gosu_1_1_rot_flip.html">Gosu::RotFlip</a></td><td></td></tr>
69
+ <tr class="memlist"><td><a class="el" href="class_gosu_1_1_rot_flip.html#a5fd7bae1d53c7463583cb09cc57ad67">flipX</a>()</td><td><a class="el" href="class_gosu_1_1_rot_flip.html">Gosu::RotFlip</a></td><td></td></tr>
70
+ <tr class="memlist"><td><a class="el" href="class_gosu_1_1_rot_flip.html#c3dbcf4ab91b10c87486a4d163d34ad8">flipY</a>()</td><td><a class="el" href="class_gosu_1_1_rot_flip.html">Gosu::RotFlip</a></td><td></td></tr>
71
+ <tr class="memlist"><td><a class="el" href="class_gosu_1_1_rot_flip.html#298667fafd03f96271a36defe8550798">mapCorner</a>(unsigned n) const </td><td><a class="el" href="class_gosu_1_1_rot_flip.html">Gosu::RotFlip</a></td><td></td></tr>
72
+ <tr class="memlist"><td><a class="el" href="class_gosu_1_1_rot_flip.html#3129da4cddf7ae6d87b5234747f048b7">name</a>() const </td><td><a class="el" href="class_gosu_1_1_rot_flip.html">Gosu::RotFlip</a></td><td></td></tr>
73
+ <tr class="memlist"><td><a class="el" href="class_gosu_1_1_rot_flip.html#d236117a2fcff3a31eb36f71bc254612">realCorner</a>(unsigned n) const </td><td><a class="el" href="class_gosu_1_1_rot_flip.html">Gosu::RotFlip</a></td><td></td></tr>
74
+ <tr class="memlist"><td><a class="el" href="class_gosu_1_1_rot_flip.html#3772988db6083987d5ce694426ff56b8">rotate180</a>()</td><td><a class="el" href="class_gosu_1_1_rot_flip.html">Gosu::RotFlip</a></td><td></td></tr>
75
+ <tr class="memlist"><td><a class="el" href="class_gosu_1_1_rot_flip.html#3d6f66fcdf9596b77e425af5b2114d9d">rotate270</a>()</td><td><a class="el" href="class_gosu_1_1_rot_flip.html">Gosu::RotFlip</a></td><td></td></tr>
76
+ <tr class="memlist"><td><a class="el" href="class_gosu_1_1_rot_flip.html#df6ceab061cbc04acea46f081a0bd100">rotate90</a>()</td><td><a class="el" href="class_gosu_1_1_rot_flip.html">Gosu::RotFlip</a></td><td></td></tr>
77
+ <tr class="memlist"><td><a class="el" href="class_gosu_1_1_rot_flip.html#49d19e886fba21e75fc643977ce0535c">rotated</a>() const </td><td><a class="el" href="class_gosu_1_1_rot_flip.html">Gosu::RotFlip</a></td><td></td></tr>
78
+ <tr class="memlist"><td><a class="el" href="class_gosu_1_1_rot_flip.html#5ae8685fbe53fded5c71c2d3dbecc36e">RotFlip</a>(RotFlipName name=rfDefault)</td><td><a class="el" href="class_gosu_1_1_rot_flip.html">Gosu::RotFlip</a></td><td></td></tr>
79
+ </table></div>
80
+ <p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
81
+ </div>
82
+ </body>
83
+ </html>
@@ -0,0 +1,347 @@
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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
55
+ <li><a href="files.html"><span>Files</span></a></li>
56
+ </ul>
57
+ </div>
58
+ <div class="tabs">
59
+ <ul>
60
+ <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
61
+ <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
62
+ <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
63
+ </ul>
64
+ </div>
65
+ <div class="navpath"><b>Gosu</b>::<a class="el" href="class_gosu_1_1_rot_flip.html">RotFlip</a>
66
+ </div>
67
+ </div>
68
+ <div class="contents">
69
+ <h1>Gosu::RotFlip Class Reference</h1><!-- doxytag: class="Gosu::RotFlip" -->Light-weight class that encodes a rotation by 0, 90, 180, or 270 degrees as well as optional horizontal and/or vertical flips.
70
+ <a href="#_details">More...</a>
71
+ <p>
72
+
73
+ <p>
74
+ <a href="class_gosu_1_1_rot_flip-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
75
+ <tr><td></td></tr>
76
+ <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
77
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_rot_flip.html#5ae8685fbe53fded5c71c2d3dbecc36e">RotFlip</a> (RotFlipName name=rfDefault)</td></tr>
78
+
79
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">RotFlipName&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_rot_flip.html#3129da4cddf7ae6d87b5234747f048b7">name</a> () const </td></tr>
80
+
81
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_rot_flip.html#a5fd7bae1d53c7463583cb09cc57ad67">flipX</a> ()</td></tr>
82
+
83
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_rot_flip.html#c3dbcf4ab91b10c87486a4d163d34ad8">flipY</a> ()</td></tr>
84
+
85
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_rot_flip.html#df6ceab061cbc04acea46f081a0bd100">rotate90</a> ()</td></tr>
86
+
87
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_rot_flip.html#3772988db6083987d5ce694426ff56b8">rotate180</a> ()</td></tr>
88
+
89
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_rot_flip.html#3d6f66fcdf9596b77e425af5b2114d9d">rotate270</a> ()</td></tr>
90
+
91
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_rot_flip.html#f3ba518395cf6e27293e1c16b83d3498">flipped</a> () const </td></tr>
92
+
93
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_rot_flip.html#49d19e886fba21e75fc643977ce0535c">rotated</a> () const </td></tr>
94
+
95
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_rot_flip.html#298667fafd03f96271a36defe8550798">mapCorner</a> (unsigned n) const </td></tr>
96
+
97
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_rot_flip.html#d236117a2fcff3a31eb36f71bc254612">realCorner</a> (unsigned n) const </td></tr>
98
+
99
+ </table>
100
+ <hr><a name="_details"></a><h2>Detailed Description</h2>
101
+ Light-weight class that encodes a rotation by 0, 90, 180, or 270 degrees as well as optional horizontal and/or vertical flips.
102
+ <p>
103
+ In short, this convieniently encodes the eight ways in which a aligned rectangle can be linearly transformed to result in an aligned rectangle again. Especially useful for games with tile-based maps.
104
+ <p>Definition at line <a class="el" href="_rot_flip_8hpp-source.html#l00043">43</a> of file <a class="el" href="_rot_flip_8hpp-source.html">RotFlip.hpp</a>.</p>
105
+ <hr><h2>Constructor &amp; Destructor Documentation</h2>
106
+ <a class="anchor" name="5ae8685fbe53fded5c71c2d3dbecc36e"></a><!-- doxytag: member="Gosu::RotFlip::RotFlip" ref="5ae8685fbe53fded5c71c2d3dbecc36e" args="(RotFlipName name=rfDefault)" -->
107
+ <div class="memitem">
108
+ <div class="memproto">
109
+ <table class="memname">
110
+ <tr>
111
+ <td class="memname">Gosu::RotFlip::RotFlip </td>
112
+ <td>(</td>
113
+ <td class="paramtype">RotFlipName&nbsp;</td>
114
+ <td class="paramname"> <em>name</em> = <code>rfDefault</code> </td>
115
+ <td>&nbsp;)&nbsp;</td>
116
+ <td></td>
117
+ </tr>
118
+ </table>
119
+ </div>
120
+ <div class="memdoc">
121
+
122
+ <p>
123
+
124
+ <p>Definition at line <a class="el" href="_rot_flip_8hpp-source.html#l00055">55</a> of file <a class="el" href="_rot_flip_8hpp-source.html">RotFlip.hpp</a>.</p>
125
+
126
+ </div>
127
+ </div><p>
128
+ <hr><h2>Member Function Documentation</h2>
129
+ <a class="anchor" name="f3ba518395cf6e27293e1c16b83d3498"></a><!-- doxytag: member="Gosu::RotFlip::flipped" ref="f3ba518395cf6e27293e1c16b83d3498" args="() const " -->
130
+ <div class="memitem">
131
+ <div class="memproto">
132
+ <table class="memname">
133
+ <tr>
134
+ <td class="memname">bool Gosu::RotFlip::flipped </td>
135
+ <td>(</td>
136
+ <td class="paramname"> </td>
137
+ <td>&nbsp;)&nbsp;</td>
138
+ <td> const</td>
139
+ </tr>
140
+ </table>
141
+ </div>
142
+ <div class="memdoc">
143
+
144
+ <p>
145
+
146
+ <p>Definition at line <a class="el" href="_rot_flip_8hpp-source.html#l00090">90</a> of file <a class="el" href="_rot_flip_8hpp-source.html">RotFlip.hpp</a>.</p>
147
+
148
+ </div>
149
+ </div><p>
150
+ <a class="anchor" name="a5fd7bae1d53c7463583cb09cc57ad67"></a><!-- doxytag: member="Gosu::RotFlip::flipX" ref="a5fd7bae1d53c7463583cb09cc57ad67" args="()" -->
151
+ <div class="memitem">
152
+ <div class="memproto">
153
+ <table class="memname">
154
+ <tr>
155
+ <td class="memname">void Gosu::RotFlip::flipX </td>
156
+ <td>(</td>
157
+ <td class="paramname"> </td>
158
+ <td>&nbsp;)&nbsp;</td>
159
+ <td></td>
160
+ </tr>
161
+ </table>
162
+ </div>
163
+ <div class="memdoc">
164
+
165
+ <p>
166
+
167
+ <p>Definition at line <a class="el" href="_rot_flip_8hpp-source.html#l00065">65</a> of file <a class="el" href="_rot_flip_8hpp-source.html">RotFlip.hpp</a>.</p>
168
+
169
+ </div>
170
+ </div><p>
171
+ <a class="anchor" name="c3dbcf4ab91b10c87486a4d163d34ad8"></a><!-- doxytag: member="Gosu::RotFlip::flipY" ref="c3dbcf4ab91b10c87486a4d163d34ad8" args="()" -->
172
+ <div class="memitem">
173
+ <div class="memproto">
174
+ <table class="memname">
175
+ <tr>
176
+ <td class="memname">void Gosu::RotFlip::flipY </td>
177
+ <td>(</td>
178
+ <td class="paramname"> </td>
179
+ <td>&nbsp;)&nbsp;</td>
180
+ <td></td>
181
+ </tr>
182
+ </table>
183
+ </div>
184
+ <div class="memdoc">
185
+
186
+ <p>
187
+
188
+ <p>Definition at line <a class="el" href="_rot_flip_8hpp-source.html#l00070">70</a> of file <a class="el" href="_rot_flip_8hpp-source.html">RotFlip.hpp</a>.</p>
189
+
190
+ </div>
191
+ </div><p>
192
+ <a class="anchor" name="298667fafd03f96271a36defe8550798"></a><!-- doxytag: member="Gosu::RotFlip::mapCorner" ref="298667fafd03f96271a36defe8550798" args="(unsigned n) const " -->
193
+ <div class="memitem">
194
+ <div class="memproto">
195
+ <table class="memname">
196
+ <tr>
197
+ <td class="memname">unsigned Gosu::RotFlip::mapCorner </td>
198
+ <td>(</td>
199
+ <td class="paramtype">unsigned&nbsp;</td>
200
+ <td class="paramname"> <em>n</em> </td>
201
+ <td>&nbsp;)&nbsp;</td>
202
+ <td> const</td>
203
+ </tr>
204
+ </table>
205
+ </div>
206
+ <div class="memdoc">
207
+
208
+ <p>
209
+
210
+ <p>Definition at line <a class="el" href="_rot_flip_8hpp-source.html#l00100">100</a> of file <a class="el" href="_rot_flip_8hpp-source.html">RotFlip.hpp</a>.</p>
211
+
212
+ </div>
213
+ </div><p>
214
+ <a class="anchor" name="3129da4cddf7ae6d87b5234747f048b7"></a><!-- doxytag: member="Gosu::RotFlip::name" ref="3129da4cddf7ae6d87b5234747f048b7" args="() const " -->
215
+ <div class="memitem">
216
+ <div class="memproto">
217
+ <table class="memname">
218
+ <tr>
219
+ <td class="memname">RotFlipName Gosu::RotFlip::name </td>
220
+ <td>(</td>
221
+ <td class="paramname"> </td>
222
+ <td>&nbsp;)&nbsp;</td>
223
+ <td> const</td>
224
+ </tr>
225
+ </table>
226
+ </div>
227
+ <div class="memdoc">
228
+
229
+ <p>
230
+
231
+ <p>Definition at line <a class="el" href="_rot_flip_8hpp-source.html#l00060">60</a> of file <a class="el" href="_rot_flip_8hpp-source.html">RotFlip.hpp</a>.</p>
232
+
233
+ </div>
234
+ </div><p>
235
+ <a class="anchor" name="d236117a2fcff3a31eb36f71bc254612"></a><!-- doxytag: member="Gosu::RotFlip::realCorner" ref="d236117a2fcff3a31eb36f71bc254612" args="(unsigned n) const " -->
236
+ <div class="memitem">
237
+ <div class="memproto">
238
+ <table class="memname">
239
+ <tr>
240
+ <td class="memname">unsigned Gosu::RotFlip::realCorner </td>
241
+ <td>(</td>
242
+ <td class="paramtype">unsigned&nbsp;</td>
243
+ <td class="paramname"> <em>n</em> </td>
244
+ <td>&nbsp;)&nbsp;</td>
245
+ <td> const</td>
246
+ </tr>
247
+ </table>
248
+ </div>
249
+ <div class="memdoc">
250
+
251
+ <p>
252
+
253
+ <p>Definition at line <a class="el" href="_rot_flip_8hpp-source.html#l00105">105</a> of file <a class="el" href="_rot_flip_8hpp-source.html">RotFlip.hpp</a>.</p>
254
+
255
+ </div>
256
+ </div><p>
257
+ <a class="anchor" name="3772988db6083987d5ce694426ff56b8"></a><!-- doxytag: member="Gosu::RotFlip::rotate180" ref="3772988db6083987d5ce694426ff56b8" args="()" -->
258
+ <div class="memitem">
259
+ <div class="memproto">
260
+ <table class="memname">
261
+ <tr>
262
+ <td class="memname">void Gosu::RotFlip::rotate180 </td>
263
+ <td>(</td>
264
+ <td class="paramname"> </td>
265
+ <td>&nbsp;)&nbsp;</td>
266
+ <td></td>
267
+ </tr>
268
+ </table>
269
+ </div>
270
+ <div class="memdoc">
271
+
272
+ <p>
273
+
274
+ <p>Definition at line <a class="el" href="_rot_flip_8hpp-source.html#l00080">80</a> of file <a class="el" href="_rot_flip_8hpp-source.html">RotFlip.hpp</a>.</p>
275
+
276
+ </div>
277
+ </div><p>
278
+ <a class="anchor" name="3d6f66fcdf9596b77e425af5b2114d9d"></a><!-- doxytag: member="Gosu::RotFlip::rotate270" ref="3d6f66fcdf9596b77e425af5b2114d9d" args="()" -->
279
+ <div class="memitem">
280
+ <div class="memproto">
281
+ <table class="memname">
282
+ <tr>
283
+ <td class="memname">void Gosu::RotFlip::rotate270 </td>
284
+ <td>(</td>
285
+ <td class="paramname"> </td>
286
+ <td>&nbsp;)&nbsp;</td>
287
+ <td></td>
288
+ </tr>
289
+ </table>
290
+ </div>
291
+ <div class="memdoc">
292
+
293
+ <p>
294
+
295
+ <p>Definition at line <a class="el" href="_rot_flip_8hpp-source.html#l00085">85</a> of file <a class="el" href="_rot_flip_8hpp-source.html">RotFlip.hpp</a>.</p>
296
+
297
+ </div>
298
+ </div><p>
299
+ <a class="anchor" name="df6ceab061cbc04acea46f081a0bd100"></a><!-- doxytag: member="Gosu::RotFlip::rotate90" ref="df6ceab061cbc04acea46f081a0bd100" args="()" -->
300
+ <div class="memitem">
301
+ <div class="memproto">
302
+ <table class="memname">
303
+ <tr>
304
+ <td class="memname">void Gosu::RotFlip::rotate90 </td>
305
+ <td>(</td>
306
+ <td class="paramname"> </td>
307
+ <td>&nbsp;)&nbsp;</td>
308
+ <td></td>
309
+ </tr>
310
+ </table>
311
+ </div>
312
+ <div class="memdoc">
313
+
314
+ <p>
315
+
316
+ <p>Definition at line <a class="el" href="_rot_flip_8hpp-source.html#l00075">75</a> of file <a class="el" href="_rot_flip_8hpp-source.html">RotFlip.hpp</a>.</p>
317
+
318
+ </div>
319
+ </div><p>
320
+ <a class="anchor" name="49d19e886fba21e75fc643977ce0535c"></a><!-- doxytag: member="Gosu::RotFlip::rotated" ref="49d19e886fba21e75fc643977ce0535c" args="() const " -->
321
+ <div class="memitem">
322
+ <div class="memproto">
323
+ <table class="memname">
324
+ <tr>
325
+ <td class="memname">bool Gosu::RotFlip::rotated </td>
326
+ <td>(</td>
327
+ <td class="paramname"> </td>
328
+ <td>&nbsp;)&nbsp;</td>
329
+ <td> const</td>
330
+ </tr>
331
+ </table>
332
+ </div>
333
+ <div class="memdoc">
334
+
335
+ <p>
336
+
337
+ <p>Definition at line <a class="el" href="_rot_flip_8hpp-source.html#l00095">95</a> of file <a class="el" href="_rot_flip_8hpp-source.html">RotFlip.hpp</a>.</p>
338
+
339
+ </div>
340
+ </div><p>
341
+ <hr>The documentation for this class was generated from the following file:<ul>
342
+ <li><a class="el" href="_rot_flip_8hpp-source.html">RotFlip.hpp</a></ul>
343
+ </div>
344
+ <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>
345
+ </div>
346
+ </body>
347
+ </html>