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,501 @@
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_bitmap.html">Bitmap</a>
66
+ </div>
67
+ </div>
68
+ <div class="contents">
69
+ <h1>Gosu::Bitmap Class Reference</h1><!-- doxytag: class="Gosu::Bitmap" -->Rectangular area of pixels, each represented by a <a class="el" href="class_gosu_1_1_color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> value.
70
+ <a href="#_details">More...</a>
71
+ <p>
72
+
73
+ <p>
74
+ <a href="class_gosu_1_1_bitmap-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_bitmap.html#c4cded37a45be62178ac260839ec88ab">Bitmap</a> ()</td></tr>
78
+
79
+ <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_bitmap.html#eb1d21d261788c77aba770361ccdb09f">width</a> () const </td></tr>
80
+
81
+ <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_bitmap.html#fc5a1fdaaf0453834c3b9ac13342eae6">height</a> () const </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_bitmap.html#f1c65649edc1218628e5e74c5ae807ba">swap</a> (<a class="el" href="class_gosu_1_1_bitmap.html">Bitmap</a> &amp;other)</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_bitmap.html#4e23daf38aaa2e040949724f04e280e4">resize</a> (unsigned width, unsigned height, <a class="el" href="class_gosu_1_1_color.html">Color</a> c=Colors::none)</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_bitmap.html#a0ec9491a5b0e30affa8ddf4351fc8af">fill</a> (<a class="el" href="class_gosu_1_1_color.html">Color</a> c)</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_bitmap.html#c344975cd3a27fa5a564e2b709a06780">replace</a> (<a class="el" href="class_gosu_1_1_color.html">Color</a> oldColor, <a class="el" href="class_gosu_1_1_color.html">Color</a> newColor)</td></tr>
90
+
91
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_gosu_1_1_color.html">Color</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_bitmap.html#93ea4a3ce9a09520dee52ba4deae4d18">getPixel</a> (unsigned x, unsigned y) const </td></tr>
92
+
93
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the color at the specified position. <a href="#93ea4a3ce9a09520dee52ba4deae4d18"></a><br></td></tr>
94
+ <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_bitmap.html#7a247689a33ceb7c296035f439d9e549">setPixel</a> (unsigned x, unsigned y, <a class="el" href="class_gosu_1_1_color.html">Color</a> c)</td></tr>
95
+
96
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the pixel at the specified position to a color. <a href="#7a247689a33ceb7c296035f439d9e549"></a><br></td></tr>
97
+ <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_bitmap.html#fe59c7aed8ffadefb136eff87326c13e">insert</a> (const <a class="el" href="class_gosu_1_1_bitmap.html">Bitmap</a> &amp;source, int x, int y)</td></tr>
98
+
99
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Inserts a bitmap at the given position. <a href="#fe59c7aed8ffadefb136eff87326c13e"></a><br></td></tr>
100
+ <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_bitmap.html#ebe6c55dbdf4fe1162bc1276562f8b78">insert</a> (const <a class="el" href="class_gosu_1_1_bitmap.html">Bitmap</a> &amp;source, int x, int y, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight)</td></tr>
101
+
102
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Inserts a portion of a bitmap at the given position. <a href="#ebe6c55dbdf4fe1162bc1276562f8b78"></a><br></td></tr>
103
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_bitmap.html#f20320b33058d6a54aa31fc4c99a65fe">data</a> () const </td></tr>
104
+
105
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Direct access to the array of color values. <a href="#f20320b33058d6a54aa31fc4c99a65fe"></a><br></td></tr>
106
+ <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_bitmap.html#cc56f99b3f96e80e568cf4e22f912da6">data</a> ()</td></tr>
107
+
108
+ </table>
109
+ <hr><a name="_details"></a><h2>Detailed Description</h2>
110
+ Rectangular area of pixels, each represented by a <a class="el" href="class_gosu_1_1_color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> value.
111
+ <p>
112
+ Provides minimal drawing functionality and serves as a temporary holder for graphical resources which are usually turned into Images later. Has (expensive) value semantics.
113
+ <p>Definition at line <a class="el" href="_bitmap_8hpp-source.html#l00020">20</a> of file <a class="el" href="_bitmap_8hpp-source.html">Bitmap.hpp</a>.</p>
114
+ <hr><h2>Constructor &amp; Destructor Documentation</h2>
115
+ <a class="anchor" name="c4cded37a45be62178ac260839ec88ab"></a><!-- doxytag: member="Gosu::Bitmap::Bitmap" ref="c4cded37a45be62178ac260839ec88ab" args="()" -->
116
+ <div class="memitem">
117
+ <div class="memproto">
118
+ <table class="memname">
119
+ <tr>
120
+ <td class="memname">Gosu::Bitmap::Bitmap </td>
121
+ <td>(</td>
122
+ <td class="paramname"> </td>
123
+ <td>&nbsp;)&nbsp;</td>
124
+ <td></td>
125
+ </tr>
126
+ </table>
127
+ </div>
128
+ <div class="memdoc">
129
+
130
+ <p>
131
+
132
+ </div>
133
+ </div><p>
134
+ <hr><h2>Member Function Documentation</h2>
135
+ <a class="anchor" name="cc56f99b3f96e80e568cf4e22f912da6"></a><!-- doxytag: member="Gosu::Bitmap::data" ref="cc56f99b3f96e80e568cf4e22f912da6" args="()" -->
136
+ <div class="memitem">
137
+ <div class="memproto">
138
+ <table class="memname">
139
+ <tr>
140
+ <td class="memname">unsigned* Gosu::Bitmap::data </td>
141
+ <td>(</td>
142
+ <td class="paramname"> </td>
143
+ <td>&nbsp;)&nbsp;</td>
144
+ <td></td>
145
+ </tr>
146
+ </table>
147
+ </div>
148
+ <div class="memdoc">
149
+
150
+ <p>
151
+
152
+ <p>Definition at line <a class="el" href="_bitmap_8hpp-source.html#l00060">60</a> of file <a class="el" href="_bitmap_8hpp-source.html">Bitmap.hpp</a>.</p>
153
+
154
+ </div>
155
+ </div><p>
156
+ <a class="anchor" name="f20320b33058d6a54aa31fc4c99a65fe"></a><!-- doxytag: member="Gosu::Bitmap::data" ref="f20320b33058d6a54aa31fc4c99a65fe" args="() const " -->
157
+ <div class="memitem">
158
+ <div class="memproto">
159
+ <table class="memname">
160
+ <tr>
161
+ <td class="memname">const unsigned* Gosu::Bitmap::data </td>
162
+ <td>(</td>
163
+ <td class="paramname"> </td>
164
+ <td>&nbsp;)&nbsp;</td>
165
+ <td> const</td>
166
+ </tr>
167
+ </table>
168
+ </div>
169
+ <div class="memdoc">
170
+
171
+ <p>
172
+ Direct access to the array of color values.
173
+ <p>
174
+ May be useful for optimized OpenGL operations.
175
+ <p>Definition at line <a class="el" href="_bitmap_8hpp-source.html#l00059">59</a> of file <a class="el" href="_bitmap_8hpp-source.html">Bitmap.hpp</a>.</p>
176
+
177
+ </div>
178
+ </div><p>
179
+ <a class="anchor" name="a0ec9491a5b0e30affa8ddf4351fc8af"></a><!-- doxytag: member="Gosu::Bitmap::fill" ref="a0ec9491a5b0e30affa8ddf4351fc8af" args="(Color c)" -->
180
+ <div class="memitem">
181
+ <div class="memproto">
182
+ <table class="memname">
183
+ <tr>
184
+ <td class="memname">void Gosu::Bitmap::fill </td>
185
+ <td>(</td>
186
+ <td class="paramtype"><a class="el" href="class_gosu_1_1_color.html">Color</a>&nbsp;</td>
187
+ <td class="paramname"> <em>c</em> </td>
188
+ <td>&nbsp;)&nbsp;</td>
189
+ <td></td>
190
+ </tr>
191
+ </table>
192
+ </div>
193
+ <div class="memdoc">
194
+
195
+ <p>
196
+
197
+ </div>
198
+ </div><p>
199
+ <a class="anchor" name="93ea4a3ce9a09520dee52ba4deae4d18"></a><!-- doxytag: member="Gosu::Bitmap::getPixel" ref="93ea4a3ce9a09520dee52ba4deae4d18" args="(unsigned x, unsigned y) const " -->
200
+ <div class="memitem">
201
+ <div class="memproto">
202
+ <table class="memname">
203
+ <tr>
204
+ <td class="memname"><a class="el" href="class_gosu_1_1_color.html">Color</a> Gosu::Bitmap::getPixel </td>
205
+ <td>(</td>
206
+ <td class="paramtype">unsigned&nbsp;</td>
207
+ <td class="paramname"> <em>x</em>, </td>
208
+ </tr>
209
+ <tr>
210
+ <td class="paramkey"></td>
211
+ <td></td>
212
+ <td class="paramtype">unsigned&nbsp;</td>
213
+ <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
214
+ </tr>
215
+ <tr>
216
+ <td></td>
217
+ <td>)</td>
218
+ <td></td><td></td><td> const</td>
219
+ </tr>
220
+ </table>
221
+ </div>
222
+ <div class="memdoc">
223
+
224
+ <p>
225
+ Returns the color at the specified position.
226
+ <p>
227
+ x and y must be on the bitmap.
228
+ <p>Definition at line <a class="el" href="_bitmap_8hpp-source.html#l00040">40</a> of file <a class="el" href="_bitmap_8hpp-source.html">Bitmap.hpp</a>.</p>
229
+
230
+ </div>
231
+ </div><p>
232
+ <a class="anchor" name="fc5a1fdaaf0453834c3b9ac13342eae6"></a><!-- doxytag: member="Gosu::Bitmap::height" ref="fc5a1fdaaf0453834c3b9ac13342eae6" args="() const " -->
233
+ <div class="memitem">
234
+ <div class="memproto">
235
+ <table class="memname">
236
+ <tr>
237
+ <td class="memname">unsigned Gosu::Bitmap::height </td>
238
+ <td>(</td>
239
+ <td class="paramname"> </td>
240
+ <td>&nbsp;)&nbsp;</td>
241
+ <td> const</td>
242
+ </tr>
243
+ </table>
244
+ </div>
245
+ <div class="memdoc">
246
+
247
+ <p>
248
+
249
+ <p>Definition at line <a class="el" href="_bitmap_8hpp-source.html#l00029">29</a> of file <a class="el" href="_bitmap_8hpp-source.html">Bitmap.hpp</a>.</p>
250
+
251
+ </div>
252
+ </div><p>
253
+ <a class="anchor" name="ebe6c55dbdf4fe1162bc1276562f8b78"></a><!-- doxytag: member="Gosu::Bitmap::insert" ref="ebe6c55dbdf4fe1162bc1276562f8b78" args="(const Bitmap &amp;source, int x, int y, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight)" -->
254
+ <div class="memitem">
255
+ <div class="memproto">
256
+ <table class="memname">
257
+ <tr>
258
+ <td class="memname">void Gosu::Bitmap::insert </td>
259
+ <td>(</td>
260
+ <td class="paramtype">const <a class="el" href="class_gosu_1_1_bitmap.html">Bitmap</a> &amp;&nbsp;</td>
261
+ <td class="paramname"> <em>source</em>, </td>
262
+ </tr>
263
+ <tr>
264
+ <td class="paramkey"></td>
265
+ <td></td>
266
+ <td class="paramtype">int&nbsp;</td>
267
+ <td class="paramname"> <em>x</em>, </td>
268
+ </tr>
269
+ <tr>
270
+ <td class="paramkey"></td>
271
+ <td></td>
272
+ <td class="paramtype">int&nbsp;</td>
273
+ <td class="paramname"> <em>y</em>, </td>
274
+ </tr>
275
+ <tr>
276
+ <td class="paramkey"></td>
277
+ <td></td>
278
+ <td class="paramtype">unsigned&nbsp;</td>
279
+ <td class="paramname"> <em>srcX</em>, </td>
280
+ </tr>
281
+ <tr>
282
+ <td class="paramkey"></td>
283
+ <td></td>
284
+ <td class="paramtype">unsigned&nbsp;</td>
285
+ <td class="paramname"> <em>srcY</em>, </td>
286
+ </tr>
287
+ <tr>
288
+ <td class="paramkey"></td>
289
+ <td></td>
290
+ <td class="paramtype">unsigned&nbsp;</td>
291
+ <td class="paramname"> <em>srcWidth</em>, </td>
292
+ </tr>
293
+ <tr>
294
+ <td class="paramkey"></td>
295
+ <td></td>
296
+ <td class="paramtype">unsigned&nbsp;</td>
297
+ <td class="paramname"> <em>srcHeight</em></td><td>&nbsp;</td>
298
+ </tr>
299
+ <tr>
300
+ <td></td>
301
+ <td>)</td>
302
+ <td></td><td></td><td></td>
303
+ </tr>
304
+ </table>
305
+ </div>
306
+ <div class="memdoc">
307
+
308
+ <p>
309
+ Inserts a portion of a bitmap at the given position.
310
+ <p>
311
+ Parts of the inserted bitmap that would be outside of the target bitmap will be clipped away.
312
+ </div>
313
+ </div><p>
314
+ <a class="anchor" name="fe59c7aed8ffadefb136eff87326c13e"></a><!-- doxytag: member="Gosu::Bitmap::insert" ref="fe59c7aed8ffadefb136eff87326c13e" args="(const Bitmap &amp;source, int x, int y)" -->
315
+ <div class="memitem">
316
+ <div class="memproto">
317
+ <table class="memname">
318
+ <tr>
319
+ <td class="memname">void Gosu::Bitmap::insert </td>
320
+ <td>(</td>
321
+ <td class="paramtype">const <a class="el" href="class_gosu_1_1_bitmap.html">Bitmap</a> &amp;&nbsp;</td>
322
+ <td class="paramname"> <em>source</em>, </td>
323
+ </tr>
324
+ <tr>
325
+ <td class="paramkey"></td>
326
+ <td></td>
327
+ <td class="paramtype">int&nbsp;</td>
328
+ <td class="paramname"> <em>x</em>, </td>
329
+ </tr>
330
+ <tr>
331
+ <td class="paramkey"></td>
332
+ <td></td>
333
+ <td class="paramtype">int&nbsp;</td>
334
+ <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
335
+ </tr>
336
+ <tr>
337
+ <td></td>
338
+ <td>)</td>
339
+ <td></td><td></td><td></td>
340
+ </tr>
341
+ </table>
342
+ </div>
343
+ <div class="memdoc">
344
+
345
+ <p>
346
+ Inserts a bitmap at the given position.
347
+ <p>
348
+ Parts of the inserted bitmap that would be outside of the target bitmap will be clipped away.
349
+ </div>
350
+ </div><p>
351
+ <a class="anchor" name="c344975cd3a27fa5a564e2b709a06780"></a><!-- doxytag: member="Gosu::Bitmap::replace" ref="c344975cd3a27fa5a564e2b709a06780" args="(Color oldColor, Color newColor)" -->
352
+ <div class="memitem">
353
+ <div class="memproto">
354
+ <table class="memname">
355
+ <tr>
356
+ <td class="memname">void Gosu::Bitmap::replace </td>
357
+ <td>(</td>
358
+ <td class="paramtype"><a class="el" href="class_gosu_1_1_color.html">Color</a>&nbsp;</td>
359
+ <td class="paramname"> <em>oldColor</em>, </td>
360
+ </tr>
361
+ <tr>
362
+ <td class="paramkey"></td>
363
+ <td></td>
364
+ <td class="paramtype"><a class="el" href="class_gosu_1_1_color.html">Color</a>&nbsp;</td>
365
+ <td class="paramname"> <em>newColor</em></td><td>&nbsp;</td>
366
+ </tr>
367
+ <tr>
368
+ <td></td>
369
+ <td>)</td>
370
+ <td></td><td></td><td></td>
371
+ </tr>
372
+ </table>
373
+ </div>
374
+ <div class="memdoc">
375
+
376
+ <p>
377
+
378
+ </div>
379
+ </div><p>
380
+ <a class="anchor" name="4e23daf38aaa2e040949724f04e280e4"></a><!-- doxytag: member="Gosu::Bitmap::resize" ref="4e23daf38aaa2e040949724f04e280e4" args="(unsigned width, unsigned height, Color c=Colors::none)" -->
381
+ <div class="memitem">
382
+ <div class="memproto">
383
+ <table class="memname">
384
+ <tr>
385
+ <td class="memname">void Gosu::Bitmap::resize </td>
386
+ <td>(</td>
387
+ <td class="paramtype">unsigned&nbsp;</td>
388
+ <td class="paramname"> <em>width</em>, </td>
389
+ </tr>
390
+ <tr>
391
+ <td class="paramkey"></td>
392
+ <td></td>
393
+ <td class="paramtype">unsigned&nbsp;</td>
394
+ <td class="paramname"> <em>height</em>, </td>
395
+ </tr>
396
+ <tr>
397
+ <td class="paramkey"></td>
398
+ <td></td>
399
+ <td class="paramtype"><a class="el" href="class_gosu_1_1_color.html">Color</a>&nbsp;</td>
400
+ <td class="paramname"> <em>c</em> = <code>Colors::none</code></td><td>&nbsp;</td>
401
+ </tr>
402
+ <tr>
403
+ <td></td>
404
+ <td>)</td>
405
+ <td></td><td></td><td></td>
406
+ </tr>
407
+ </table>
408
+ </div>
409
+ <div class="memdoc">
410
+
411
+ <p>
412
+
413
+ </div>
414
+ </div><p>
415
+ <a class="anchor" name="7a247689a33ceb7c296035f439d9e549"></a><!-- doxytag: member="Gosu::Bitmap::setPixel" ref="7a247689a33ceb7c296035f439d9e549" args="(unsigned x, unsigned y, Color c)" -->
416
+ <div class="memitem">
417
+ <div class="memproto">
418
+ <table class="memname">
419
+ <tr>
420
+ <td class="memname">void Gosu::Bitmap::setPixel </td>
421
+ <td>(</td>
422
+ <td class="paramtype">unsigned&nbsp;</td>
423
+ <td class="paramname"> <em>x</em>, </td>
424
+ </tr>
425
+ <tr>
426
+ <td class="paramkey"></td>
427
+ <td></td>
428
+ <td class="paramtype">unsigned&nbsp;</td>
429
+ <td class="paramname"> <em>y</em>, </td>
430
+ </tr>
431
+ <tr>
432
+ <td class="paramkey"></td>
433
+ <td></td>
434
+ <td class="paramtype"><a class="el" href="class_gosu_1_1_color.html">Color</a>&nbsp;</td>
435
+ <td class="paramname"> <em>c</em></td><td>&nbsp;</td>
436
+ </tr>
437
+ <tr>
438
+ <td></td>
439
+ <td>)</td>
440
+ <td></td><td></td><td></td>
441
+ </tr>
442
+ </table>
443
+ </div>
444
+ <div class="memdoc">
445
+
446
+ <p>
447
+ Sets the pixel at the specified position to a color.
448
+ <p>
449
+ x and y must be on the bitmap.
450
+ <p>Definition at line <a class="el" href="_bitmap_8hpp-source.html#l00044">44</a> of file <a class="el" href="_bitmap_8hpp-source.html">Bitmap.hpp</a>.</p>
451
+
452
+ </div>
453
+ </div><p>
454
+ <a class="anchor" name="f1c65649edc1218628e5e74c5ae807ba"></a><!-- doxytag: member="Gosu::Bitmap::swap" ref="f1c65649edc1218628e5e74c5ae807ba" args="(Bitmap &amp;other)" -->
455
+ <div class="memitem">
456
+ <div class="memproto">
457
+ <table class="memname">
458
+ <tr>
459
+ <td class="memname">void Gosu::Bitmap::swap </td>
460
+ <td>(</td>
461
+ <td class="paramtype"><a class="el" href="class_gosu_1_1_bitmap.html">Bitmap</a> &amp;&nbsp;</td>
462
+ <td class="paramname"> <em>other</em> </td>
463
+ <td>&nbsp;)&nbsp;</td>
464
+ <td></td>
465
+ </tr>
466
+ </table>
467
+ </div>
468
+ <div class="memdoc">
469
+
470
+ <p>
471
+
472
+ </div>
473
+ </div><p>
474
+ <a class="anchor" name="eb1d21d261788c77aba770361ccdb09f"></a><!-- doxytag: member="Gosu::Bitmap::width" ref="eb1d21d261788c77aba770361ccdb09f" args="() const " -->
475
+ <div class="memitem">
476
+ <div class="memproto">
477
+ <table class="memname">
478
+ <tr>
479
+ <td class="memname">unsigned Gosu::Bitmap::width </td>
480
+ <td>(</td>
481
+ <td class="paramname"> </td>
482
+ <td>&nbsp;)&nbsp;</td>
483
+ <td> const</td>
484
+ </tr>
485
+ </table>
486
+ </div>
487
+ <div class="memdoc">
488
+
489
+ <p>
490
+
491
+ <p>Definition at line <a class="el" href="_bitmap_8hpp-source.html#l00028">28</a> of file <a class="el" href="_bitmap_8hpp-source.html">Bitmap.hpp</a>.</p>
492
+
493
+ </div>
494
+ </div><p>
495
+ <hr>The documentation for this class was generated from the following file:<ul>
496
+ <li><a class="el" href="_bitmap_8hpp-source.html">Bitmap.hpp</a></ul>
497
+ </div>
498
+ <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>
499
+ </div>
500
+ </body>
501
+ </html>