gosu 0.7.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. data/COPYING.txt +29 -0
  2. data/Gosu/Async.hpp +48 -0
  3. data/Gosu/Audio.hpp +145 -0
  4. data/Gosu/AutoLink.hpp +16 -0
  5. data/Gosu/Bitmap.hpp +85 -0
  6. data/Gosu/ButtonsMac.hpp +114 -0
  7. data/Gosu/ButtonsWin.hpp +111 -0
  8. data/Gosu/ButtonsX.hpp +115 -0
  9. data/Gosu/Color.hpp +172 -0
  10. data/Gosu/Directories.hpp +36 -0
  11. data/Gosu/Font.hpp +59 -0
  12. data/Gosu/Fwd.hpp +31 -0
  13. data/Gosu/Gosu.hpp +26 -0
  14. data/Gosu/Graphics.hpp +86 -0
  15. data/Gosu/GraphicsBase.hpp +45 -0
  16. data/Gosu/IO.hpp +255 -0
  17. data/Gosu/Image.hpp +148 -0
  18. data/Gosu/ImageData.hpp +45 -0
  19. data/Gosu/Input.hpp +116 -0
  20. data/Gosu/Math.hpp +95 -0
  21. data/Gosu/Platform.hpp +61 -0
  22. data/Gosu/RotFlip.hpp +116 -0
  23. data/Gosu/Sockets.hpp +129 -0
  24. data/Gosu/Text.hpp +47 -0
  25. data/Gosu/TextInput.hpp +57 -0
  26. data/Gosu/Timing.hpp +16 -0
  27. data/Gosu/Utility.hpp +24 -0
  28. data/Gosu/WinUtility.hpp +76 -0
  29. data/Gosu/Window.hpp +84 -0
  30. data/GosuImpl/Async.cpp +37 -0
  31. data/GosuImpl/AudioFmod.cpp +417 -0
  32. data/GosuImpl/AudioSDL.cpp +255 -0
  33. data/GosuImpl/DirectoriesMac.mm +38 -0
  34. data/GosuImpl/DirectoriesUnix.cpp +48 -0
  35. data/GosuImpl/DirectoriesWin.cpp +42 -0
  36. data/GosuImpl/FileUnix.cpp +100 -0
  37. data/GosuImpl/FileWin.cpp +83 -0
  38. data/GosuImpl/Graphics/Bitmap.cpp +116 -0
  39. data/GosuImpl/Graphics/BitmapBMP.cpp +232 -0
  40. data/GosuImpl/Graphics/BitmapColorKey.cpp +39 -0
  41. data/GosuImpl/Graphics/BitmapPNG.cpp +276 -0
  42. data/GosuImpl/Graphics/BitmapUtils.cpp +67 -0
  43. data/GosuImpl/Graphics/BlockAllocator.cpp +127 -0
  44. data/GosuImpl/Graphics/BlockAllocator.hpp +34 -0
  45. data/GosuImpl/Graphics/Color.cpp +126 -0
  46. data/GosuImpl/Graphics/Common.hpp +21 -0
  47. data/GosuImpl/Graphics/DrawOp.hpp +154 -0
  48. data/GosuImpl/Graphics/Font.cpp +110 -0
  49. data/GosuImpl/Graphics/Graphics.cpp +295 -0
  50. data/GosuImpl/Graphics/Image.cpp +159 -0
  51. data/GosuImpl/Graphics/LargeImageData.cpp +115 -0
  52. data/GosuImpl/Graphics/LargeImageData.hpp +37 -0
  53. data/GosuImpl/Graphics/RotFlip.cpp +184 -0
  54. data/GosuImpl/Graphics/TexChunk.cpp +77 -0
  55. data/GosuImpl/Graphics/TexChunk.hpp +40 -0
  56. data/GosuImpl/Graphics/Text.cpp +223 -0
  57. data/GosuImpl/Graphics/TextMac.cpp +242 -0
  58. data/GosuImpl/Graphics/TextPangoFT.cpp +186 -0
  59. data/GosuImpl/Graphics/TextWin.cpp +172 -0
  60. data/GosuImpl/Graphics/Texture.cpp +104 -0
  61. data/GosuImpl/Graphics/Texture.hpp +34 -0
  62. data/GosuImpl/IO.cpp +48 -0
  63. data/GosuImpl/InputMac.mm +677 -0
  64. data/GosuImpl/InputWin.cpp +444 -0
  65. data/GosuImpl/InputX.cpp +158 -0
  66. data/GosuImpl/MacUtility.hpp +48 -0
  67. data/GosuImpl/Math.cpp +49 -0
  68. data/GosuImpl/RubyGosu.swg +474 -0
  69. data/GosuImpl/RubyGosuStub.mm +17 -0
  70. data/GosuImpl/RubyGosu_DllMain.cxx +30 -0
  71. data/GosuImpl/RubyGosu_wrap.cxx +8521 -0
  72. data/GosuImpl/RubyGosu_wrap.h +31 -0
  73. data/GosuImpl/Sockets/CommSocket.cpp +304 -0
  74. data/GosuImpl/Sockets/ListenerSocket.cpp +60 -0
  75. data/GosuImpl/Sockets/MessageSocket.cpp +136 -0
  76. data/GosuImpl/Sockets/Socket.cpp +145 -0
  77. data/GosuImpl/Sockets/Sockets.hpp +66 -0
  78. data/GosuImpl/TextInputMac.mm +207 -0
  79. data/GosuImpl/TextInputWin.cpp +197 -0
  80. data/GosuImpl/TextInputX.cpp +201 -0
  81. data/GosuImpl/TextTTFWin.cpp +247 -0
  82. data/GosuImpl/TimingUnix.cpp +17 -0
  83. data/GosuImpl/TimingWin.cpp +28 -0
  84. data/GosuImpl/Utility.cpp +140 -0
  85. data/GosuImpl/WinMain.cpp +69 -0
  86. data/GosuImpl/WinUtility.cpp +137 -0
  87. data/GosuImpl/WindowMac.mm +466 -0
  88. data/GosuImpl/WindowWin.cpp +447 -0
  89. data/GosuImpl/WindowX.cpp +392 -0
  90. data/GosuImpl/X11vroot.h +118 -0
  91. data/README.txt +13 -0
  92. data/Rakefile +178 -0
  93. data/examples/ChipmunkIntegration.rb +275 -0
  94. data/examples/CptnRuby.rb +231 -0
  95. data/examples/MoreChipmunkAndRMagick.rb +155 -0
  96. data/examples/OpenGLIntegration.rb +232 -0
  97. data/examples/RMagickIntegration.rb +449 -0
  98. data/examples/TextInput.cpp +170 -0
  99. data/examples/TextInput.rb +139 -0
  100. data/examples/Tutorial.cpp +215 -0
  101. data/examples/Tutorial.rb +137 -0
  102. data/examples/media/Beep.wav +0 -0
  103. data/examples/media/CptnRuby Gem.png +0 -0
  104. data/examples/media/CptnRuby Map.txt +25 -0
  105. data/examples/media/CptnRuby Tileset.png +0 -0
  106. data/examples/media/CptnRuby.png +0 -0
  107. data/examples/media/Cursor.png +0 -0
  108. data/examples/media/Earth.png +0 -0
  109. data/examples/media/Explosion.wav +0 -0
  110. data/examples/media/LargeStar.png +0 -0
  111. data/examples/media/Sky.jpg +0 -0
  112. data/examples/media/Smoke.png +0 -0
  113. data/examples/media/Soldier.png +0 -0
  114. data/examples/media/Space.png +0 -0
  115. data/examples/media/Star.png +0 -0
  116. data/examples/media/Starfighter.bmp +0 -0
  117. data/linux/Makefile.in +98 -0
  118. data/linux/configure +5658 -0
  119. data/linux/configure.ac +126 -0
  120. data/linux/extconf.rb +11 -0
  121. data/mac/English.lproj/InfoPlist.strings +0 -0
  122. data/mac/Gosu-Info.plist +26 -0
  123. data/mac/Gosu.xcodeproj/project.pbxproj +1194 -0
  124. data/mac/RubyGosu Template-Info.plist +26 -0
  125. data/mac/libboost_thread_1_34_1_universal.a +0 -0
  126. data/mac/libboost_thread_d_1_34_1_universal.a +0 -0
  127. data/mac/libfmod_universal.a +0 -0
  128. data/mac/libpng_universal.a +0 -0
  129. data/mac/libz_universal.a +0 -0
  130. data/reference/Async_8hpp-source.html +70 -0
  131. data/reference/Audio_8hpp-source.html +114 -0
  132. data/reference/Audio_8hpp.html +50 -0
  133. data/reference/AutoLink_8hpp-source.html +38 -0
  134. data/reference/AutoLink_8hpp.html +34 -0
  135. data/reference/Bitmap_8hpp-source.html +85 -0
  136. data/reference/Bitmap_8hpp.html +58 -0
  137. data/reference/ButtonsMac_8hpp-source.html +133 -0
  138. data/reference/ButtonsWin_8hpp-source.html +133 -0
  139. data/reference/ButtonsX_8hpp-source.html +134 -0
  140. data/reference/Color_8hpp-source.html +169 -0
  141. data/reference/Color_8hpp.html +85 -0
  142. data/reference/Directories_8hpp-source.html +42 -0
  143. data/reference/Directories_8hpp.html +46 -0
  144. data/reference/Font_8hpp-source.html +65 -0
  145. data/reference/Font_8hpp.html +41 -0
  146. data/reference/Fwd_8hpp-source.html +52 -0
  147. data/reference/Fwd_8hpp.html +37 -0
  148. data/reference/Gosu_8hpp-source.html +48 -0
  149. data/reference/Gosu_8hpp.html +34 -0
  150. data/reference/GraphicsBase_8hpp-source.html +57 -0
  151. data/reference/GraphicsBase_8hpp.html +56 -0
  152. data/reference/Graphics_8hpp-source.html +96 -0
  153. data/reference/Graphics_8hpp.html +53 -0
  154. data/reference/IO_8hpp-source.html +255 -0
  155. data/reference/IO_8hpp.html +74 -0
  156. data/reference/ImageData_8hpp-source.html +62 -0
  157. data/reference/ImageData_8hpp.html +43 -0
  158. data/reference/Image_8hpp-source.html +126 -0
  159. data/reference/Image_8hpp.html +48 -0
  160. data/reference/Input_8hpp-source.html +118 -0
  161. data/reference/Input_8hpp.html +50 -0
  162. data/reference/Math_8hpp-source.html +92 -0
  163. data/reference/Math_8hpp.html +74 -0
  164. data/reference/Platform_8hpp-source.html +83 -0
  165. data/reference/Platform_8hpp.html +73 -0
  166. data/reference/RotFlip_8hpp-source.html +138 -0
  167. data/reference/RotFlip_8hpp.html +77 -0
  168. data/reference/Sockets_8hpp-source.html +130 -0
  169. data/reference/Sockets_8hpp.html +66 -0
  170. data/reference/TextInput_8hpp-source.html +64 -0
  171. data/reference/TextInput_8hpp.html +41 -0
  172. data/reference/Text_8hpp-source.html +51 -0
  173. data/reference/Text_8hpp.html +46 -0
  174. data/reference/Timing_8hpp-source.html +36 -0
  175. data/reference/Timing_8hpp.html +42 -0
  176. data/reference/Utility_8hpp-source.html +44 -0
  177. data/reference/Utility_8hpp.html +48 -0
  178. data/reference/WinUtility_8hpp-source.html +79 -0
  179. data/reference/WinUtility_8hpp.html +64 -0
  180. data/reference/Window_8hpp-source.html +91 -0
  181. data/reference/Window_8hpp.html +41 -0
  182. data/reference/annotated.html +51 -0
  183. data/reference/classGosu_1_1Audio-members.html +34 -0
  184. data/reference/classGosu_1_1Audio.html +46 -0
  185. data/reference/classGosu_1_1Bitmap-members.html +44 -0
  186. data/reference/classGosu_1_1Bitmap.html +263 -0
  187. data/reference/classGosu_1_1Buffer-members.html +44 -0
  188. data/reference/classGosu_1_1Buffer.html +78 -0
  189. data/reference/classGosu_1_1Buffer.png +0 -0
  190. data/reference/classGosu_1_1Button-members.html +36 -0
  191. data/reference/classGosu_1_1Button.html +143 -0
  192. data/reference/classGosu_1_1Color-members.html +56 -0
  193. data/reference/classGosu_1_1Color.html +387 -0
  194. data/reference/classGosu_1_1File-members.html +41 -0
  195. data/reference/classGosu_1_1File.html +69 -0
  196. data/reference/classGosu_1_1File.png +0 -0
  197. data/reference/classGosu_1_1Font-members.html +39 -0
  198. data/reference/classGosu_1_1Font.html +309 -0
  199. data/reference/classGosu_1_1Graphics-members.html +50 -0
  200. data/reference/classGosu_1_1Graphics.html +234 -0
  201. data/reference/classGosu_1_1Image-members.html +45 -0
  202. data/reference/classGosu_1_1Image.html +518 -0
  203. data/reference/classGosu_1_1ImageData-members.html +37 -0
  204. data/reference/classGosu_1_1ImageData.html +60 -0
  205. data/reference/classGosu_1_1Input-members.html +44 -0
  206. data/reference/classGosu_1_1Input.html +223 -0
  207. data/reference/classGosu_1_1MessageSocket-members.html +40 -0
  208. data/reference/classGosu_1_1MessageSocket.html +233 -0
  209. data/reference/classGosu_1_1Resource-members.html +39 -0
  210. data/reference/classGosu_1_1Resource.html +116 -0
  211. data/reference/classGosu_1_1Resource.png +0 -0
  212. data/reference/classGosu_1_1Sample-members.html +37 -0
  213. data/reference/classGosu_1_1Sample.html +200 -0
  214. data/reference/classGosu_1_1SampleInstance-members.html +38 -0
  215. data/reference/classGosu_1_1SampleInstance.html +169 -0
  216. data/reference/classGosu_1_1Song-members.html +43 -0
  217. data/reference/classGosu_1_1Song.html +260 -0
  218. data/reference/classGosu_1_1TextInput-members.html +38 -0
  219. data/reference/classGosu_1_1TextInput.html +121 -0
  220. data/reference/classGosu_1_1Window-members.html +50 -0
  221. data/reference/classGosu_1_1Window.html +271 -0
  222. data/reference/doxyfile +233 -0
  223. data/reference/doxygen.css +433 -0
  224. data/reference/doxygen.png +0 -0
  225. data/reference/files.html +54 -0
  226. data/reference/functions.html +236 -0
  227. data/reference/functions_enum.html +45 -0
  228. data/reference/functions_func.html +227 -0
  229. data/reference/functions_vars.html +47 -0
  230. data/reference/hierarchy.html +53 -0
  231. data/reference/index.html +26 -0
  232. data/reference/namespaceGosu.html +2890 -0
  233. data/reference/namespaceGosu_1_1Colors.html +70 -0
  234. data/reference/namespaceGosu_1_1Win.html +275 -0
  235. data/reference/namespacemembers.html +216 -0
  236. data/reference/namespacemembers_enum.html +52 -0
  237. data/reference/namespacemembers_eval.html +54 -0
  238. data/reference/namespacemembers_func.html +185 -0
  239. data/reference/namespacemembers_type.html +46 -0
  240. data/reference/namespacemembers_vars.html +46 -0
  241. data/reference/namespaces.html +35 -0
  242. data/reference/tab_b.gif +0 -0
  243. data/reference/tab_l.gif +0 -0
  244. data/reference/tab_r.gif +0 -0
  245. data/reference/tabs.css +102 -0
  246. data/windows/Gosu.sln +29 -0
  247. data/windows/Gosu.vcproj +553 -0
  248. data/windows/RubyGosu.vcproj +138 -0
  249. metadata +305 -0
@@ -0,0 +1,50 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
+ <title>Gosu: Member List</title>
4
+ <link href="doxygen.css" rel="stylesheet" type="text/css">
5
+ <link href="tabs.css" rel="stylesheet" type="text/css">
6
+ </head><body>
7
+ <!-- Generated by Doxygen 1.5.5 -->
8
+ <div class="navigation" id="top">
9
+ <div class="tabs">
10
+ <ul>
11
+ <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
+ <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13
+ <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
14
+ <li><a href="files.html"><span>Files</span></a></li>
15
+ </ul>
16
+ </div>
17
+ <div class="tabs">
18
+ <ul>
19
+ <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
20
+ <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
21
+ <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
22
+ </ul>
23
+ </div>
24
+ </div>
25
+ <div class="contents">
26
+ <h1>Gosu::Graphics Member List</h1>This is the complete list of members for <a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>, including all inherited members.<p><table>
27
+ <tr class="memlist"><td><a class="el" href="classGosu_1_1Graphics.html#5cf453663573a90f6709146cefe4b9cd">begin</a>(Color clearWithColor=Colors::black)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
28
+ <tr bgcolor="#f0f0f0"><td><b>beginClipping</b>(int x, int y, unsigned width, unsigned height) (defined in <a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
29
+ <tr class="memlist"><td><a class="el" href="classGosu_1_1Graphics.html#207f436a09bd02e11ddc474565912135">beginGL</a>()</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
30
+ <tr class="memlist"><td><a class="el" href="classGosu_1_1Graphics.html#6b10629453eec979500179e4ceb11434">createImage</a>(const Bitmap &amp;src, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, unsigned borderFlags)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
31
+ <tr bgcolor="#f0f0f0"><td><b>drawLine</b>(double x1, double y1, Color c1, double x2, double y2, Color c2, ZPos z, AlphaMode mode=amDefault) (defined in <a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
32
+ <tr bgcolor="#f0f0f0"><td><b>drawQuad</b>(double x1, double y1, Color c1, double x2, double y2, Color c2, double x3, double y3, Color c3, double x4, double y4, Color c4, ZPos z, AlphaMode mode=amDefault) (defined in <a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
33
+ <tr bgcolor="#f0f0f0"><td><b>drawTriangle</b>(double x1, double y1, Color c1, double x2, double y2, Color c2, double x3, double y3, Color c3, ZPos z, AlphaMode mode=amDefault) (defined in <a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
34
+ <tr class="memlist"><td><a class="el" href="classGosu_1_1Graphics.html#ddeab66c3a18c0a12df43067de841b71">end</a>()</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
35
+ <tr bgcolor="#f0f0f0"><td><b>endClipping</b>() (defined in <a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
36
+ <tr class="memlist"><td><a class="el" href="classGosu_1_1Graphics.html#3e37d9b17e55fa5f6d3ad6116759364f">endGL</a>()</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
37
+ <tr bgcolor="#f0f0f0"><td><b>factorX</b>() const (defined in <a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
38
+ <tr bgcolor="#f0f0f0"><td><b>factorY</b>() const (defined in <a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
39
+ <tr bgcolor="#f0f0f0"><td><b>fullscreen</b>() const (defined in <a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
40
+ <tr bgcolor="#f0f0f0"><td><b>Graphics</b>(unsigned physicalWidth, unsigned physicalHeight, bool fullscreen) (defined in <a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
41
+ <tr bgcolor="#f0f0f0"><td><b>height</b>() const (defined in <a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
42
+ <tr bgcolor="#f0f0f0"><td><b>setResolution</b>(unsigned virtualWidth, unsigned virtualHeight) (defined in <a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
43
+ <tr bgcolor="#f0f0f0"><td><b>width</b>() const (defined in <a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
44
+ <tr bgcolor="#f0f0f0"><td><b>~Graphics</b>() (defined in <a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>)</td><td><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a></td><td></td></tr>
45
+ </table></div>
46
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by&nbsp;
47
+ <a href="http://www.doxygen.org/index.html">
48
+ <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
49
+ </body>
50
+ </html>
@@ -0,0 +1,234 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
+ <title>Gosu: Gosu::Graphics Class Reference</title>
4
+ <link href="doxygen.css" rel="stylesheet" type="text/css">
5
+ <link href="tabs.css" rel="stylesheet" type="text/css">
6
+ </head><body>
7
+ <!-- Generated by Doxygen 1.5.5 -->
8
+ <div class="navigation" id="top">
9
+ <div class="tabs">
10
+ <ul>
11
+ <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
+ <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13
+ <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
14
+ <li><a href="files.html"><span>Files</span></a></li>
15
+ </ul>
16
+ </div>
17
+ <div class="tabs">
18
+ <ul>
19
+ <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
20
+ <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
21
+ <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
22
+ </ul>
23
+ </div>
24
+ <div class="navpath"><a class="el" href="namespaceGosu.html">Gosu</a>::<a class="el" href="classGosu_1_1Graphics.html">Graphics</a>
25
+ </div>
26
+ </div>
27
+ <div class="contents">
28
+ <h1>Gosu::Graphics Class Reference</h1><!-- doxytag: class="Gosu::Graphics" -->Serves as the target of all drawing and provides basic drawing functionality.
29
+ <a href="#_details">More...</a>
30
+ <p>
31
+
32
+ <p>
33
+ <a href="classGosu_1_1Graphics-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
34
+ <tr><td></td></tr>
35
+ <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
36
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2c81cc2bde977fdce58fd353b3d4a6c0"></a><!-- doxytag: member="Gosu::Graphics::Graphics" ref="2c81cc2bde977fdce58fd353b3d4a6c0" args="(unsigned physicalWidth, unsigned physicalHeight, bool fullscreen)" -->
37
+ &nbsp;</td><td class="memItemRight" valign="bottom"><b>Graphics</b> (unsigned physicalWidth, unsigned physicalHeight, bool fullscreen)</td></tr>
38
+
39
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="710461bb379979d9e467898c494948b5"></a><!-- doxytag: member="Gosu::Graphics::factorX" ref="710461bb379979d9e467898c494948b5" args="() const " -->
40
+ double&nbsp;</td><td class="memItemRight" valign="bottom"><b>factorX</b> () const </td></tr>
41
+
42
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="baf5d3b9795a97104d841bef7ecc6d88"></a><!-- doxytag: member="Gosu::Graphics::factorY" ref="baf5d3b9795a97104d841bef7ecc6d88" args="() const " -->
43
+ double&nbsp;</td><td class="memItemRight" valign="bottom"><b>factorY</b> () const </td></tr>
44
+
45
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="325c631eb7e8ec63171c803d2cd59f26"></a><!-- doxytag: member="Gosu::Graphics::setResolution" ref="325c631eb7e8ec63171c803d2cd59f26" args="(unsigned virtualWidth, unsigned virtualHeight)" -->
46
+ void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setResolution</b> (unsigned virtualWidth, unsigned virtualHeight)</td></tr>
47
+
48
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1e06d6eea03677546dd637e9b5b0b6bf"></a><!-- doxytag: member="Gosu::Graphics::width" ref="1e06d6eea03677546dd637e9b5b0b6bf" args="() const " -->
49
+ unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><b>width</b> () const </td></tr>
50
+
51
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f1db946f6dba8e88d7239e523382c98a"></a><!-- doxytag: member="Gosu::Graphics::height" ref="f1db946f6dba8e88d7239e523382c98a" args="() const " -->
52
+ unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><b>height</b> () const </td></tr>
53
+
54
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="730cc192034ee1070b2017d41fe7e89e"></a><!-- doxytag: member="Gosu::Graphics::fullscreen" ref="730cc192034ee1070b2017d41fe7e89e" args="() const " -->
55
+ bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>fullscreen</b> () const </td></tr>
56
+
57
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Graphics.html#5cf453663573a90f6709146cefe4b9cd">begin</a> (<a class="el" href="classGosu_1_1Color.html">Color</a> clearWithColor=Colors::black)</td></tr>
58
+
59
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Graphics.html#ddeab66c3a18c0a12df43067de841b71">end</a> ()</td></tr>
60
+
61
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Graphics.html#207f436a09bd02e11ddc474565912135">beginGL</a> ()</td></tr>
62
+
63
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Graphics.html#3e37d9b17e55fa5f6d3ad6116759364f">endGL</a> ()</td></tr>
64
+
65
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8d6d2a3931fc062a7411c69cdee1c4a2"></a><!-- doxytag: member="Gosu::Graphics::beginClipping" ref="8d6d2a3931fc062a7411c69cdee1c4a2" args="(int x, int y, unsigned width, unsigned height)" -->
66
+ void&nbsp;</td><td class="memItemRight" valign="bottom"><b>beginClipping</b> (int x, int y, unsigned width, unsigned height)</td></tr>
67
+
68
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b71d990078f8fb93ef5d93f625fec172"></a><!-- doxytag: member="Gosu::Graphics::endClipping" ref="b71d990078f8fb93ef5d93f625fec172" args="()" -->
69
+ void&nbsp;</td><td class="memItemRight" valign="bottom"><b>endClipping</b> ()</td></tr>
70
+
71
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cccecf39a52c5a4307f76db0e5128494"></a><!-- doxytag: member="Gosu::Graphics::drawLine" ref="cccecf39a52c5a4307f76db0e5128494" args="(double x1, double y1, Color c1, double x2, double y2, Color c2, ZPos z, AlphaMode mode=amDefault)" -->
72
+ void&nbsp;</td><td class="memItemRight" valign="bottom"><b>drawLine</b> (double x1, double y1, <a class="el" href="classGosu_1_1Color.html">Color</a> c1, double x2, double y2, <a class="el" href="classGosu_1_1Color.html">Color</a> c2, <a class="el" href="namespaceGosu.html#a2fd8fe9574c0ad3fd52557cb160be49">ZPos</a> z, <a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">AlphaMode</a> mode=amDefault)</td></tr>
73
+
74
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="019db9071f130d4a7c1a269065f54df7"></a><!-- doxytag: member="Gosu::Graphics::drawTriangle" ref="019db9071f130d4a7c1a269065f54df7" args="(double x1, double y1, Color c1, double x2, double y2, Color c2, double x3, double y3, Color c3, ZPos z, AlphaMode mode=amDefault)" -->
75
+ void&nbsp;</td><td class="memItemRight" valign="bottom"><b>drawTriangle</b> (double x1, double y1, <a class="el" href="classGosu_1_1Color.html">Color</a> c1, double x2, double y2, <a class="el" href="classGosu_1_1Color.html">Color</a> c2, double x3, double y3, <a class="el" href="classGosu_1_1Color.html">Color</a> c3, <a class="el" href="namespaceGosu.html#a2fd8fe9574c0ad3fd52557cb160be49">ZPos</a> z, <a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">AlphaMode</a> mode=amDefault)</td></tr>
76
+
77
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="21214cced892d42e1c482d86bec76ca9"></a><!-- doxytag: member="Gosu::Graphics::drawQuad" ref="21214cced892d42e1c482d86bec76ca9" args="(double x1, double y1, Color c1, double x2, double y2, Color c2, double x3, double y3, Color c3, double x4, double y4, Color c4, ZPos z, AlphaMode mode=amDefault)" -->
78
+ void&nbsp;</td><td class="memItemRight" valign="bottom"><b>drawQuad</b> (double x1, double y1, <a class="el" href="classGosu_1_1Color.html">Color</a> c1, double x2, double y2, <a class="el" href="classGosu_1_1Color.html">Color</a> c2, double x3, double y3, <a class="el" href="classGosu_1_1Color.html">Color</a> c3, double x4, double y4, <a class="el" href="classGosu_1_1Color.html">Color</a> c4, <a class="el" href="namespaceGosu.html#a2fd8fe9574c0ad3fd52557cb160be49">ZPos</a> z, <a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">AlphaMode</a> mode=amDefault)</td></tr>
79
+
80
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">std::auto_ptr&lt; <a class="el" href="classGosu_1_1ImageData.html">ImageData</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Graphics.html#6b10629453eec979500179e4ceb11434">createImage</a> (const <a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &amp;src, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, unsigned borderFlags)</td></tr>
81
+
82
+ </table>
83
+ <hr><a name="_details"></a><h2>Detailed Description</h2>
84
+ Serves as the target of all drawing and provides basic drawing functionality.
85
+ <p>
86
+ Usually created by <a class="el" href="classGosu_1_1Window.html" title="Convenient all-in-one class that serves as the foundation of a standard Gosu application...">Gosu::Window</a>. <hr><h2>Member Function Documentation</h2>
87
+ <a class="anchor" name="5cf453663573a90f6709146cefe4b9cd"></a><!-- doxytag: member="Gosu::Graphics::begin" ref="5cf453663573a90f6709146cefe4b9cd" args="(Color clearWithColor=Colors::black)" -->
88
+ <div class="memitem">
89
+ <div class="memproto">
90
+ <table class="memname">
91
+ <tr>
92
+ <td class="memname">bool Gosu::Graphics::begin </td>
93
+ <td>(</td>
94
+ <td class="paramtype"><a class="el" href="classGosu_1_1Color.html">Color</a>&nbsp;</td>
95
+ <td class="paramname"> <em>clearWithColor</em> = <code>Colors::black</code> </td>
96
+ <td>&nbsp;)&nbsp;</td>
97
+ <td width="100%"></td>
98
+ </tr>
99
+ </table>
100
+ </div>
101
+ <div class="memdoc">
102
+
103
+ <p>
104
+ Prepares the graphics object for drawing.
105
+ <p>
106
+ Nothing must be drawn without calling begin.
107
+ </div>
108
+ </div><p>
109
+ <a class="anchor" name="ddeab66c3a18c0a12df43067de841b71"></a><!-- doxytag: member="Gosu::Graphics::end" ref="ddeab66c3a18c0a12df43067de841b71" args="()" -->
110
+ <div class="memitem">
111
+ <div class="memproto">
112
+ <table class="memname">
113
+ <tr>
114
+ <td class="memname">void Gosu::Graphics::end </td>
115
+ <td>(</td>
116
+ <td class="paramname"> </td>
117
+ <td>&nbsp;)&nbsp;</td>
118
+ <td width="100%"></td>
119
+ </tr>
120
+ </table>
121
+ </div>
122
+ <div class="memdoc">
123
+
124
+ <p>
125
+ Every call to begin must have a matching call to end.
126
+ <p>
127
+
128
+ </div>
129
+ </div><p>
130
+ <a class="anchor" name="207f436a09bd02e11ddc474565912135"></a><!-- doxytag: member="Gosu::Graphics::beginGL" ref="207f436a09bd02e11ddc474565912135" args="()" -->
131
+ <div class="memitem">
132
+ <div class="memproto">
133
+ <table class="memname">
134
+ <tr>
135
+ <td class="memname">void Gosu::Graphics::beginGL </td>
136
+ <td>(</td>
137
+ <td class="paramname"> </td>
138
+ <td>&nbsp;)&nbsp;</td>
139
+ <td width="100%"></td>
140
+ </tr>
141
+ </table>
142
+ </div>
143
+ <div class="memdoc">
144
+
145
+ <p>
146
+ Finishes all pending <a class="el" href="namespaceGosu.html" title="The library&#39;s main namespace.">Gosu</a> drawing operations and executes the following OpenGL code in a clean environment.
147
+ <p>
148
+
149
+ </div>
150
+ </div><p>
151
+ <a class="anchor" name="3e37d9b17e55fa5f6d3ad6116759364f"></a><!-- doxytag: member="Gosu::Graphics::endGL" ref="3e37d9b17e55fa5f6d3ad6116759364f" args="()" -->
152
+ <div class="memitem">
153
+ <div class="memproto">
154
+ <table class="memname">
155
+ <tr>
156
+ <td class="memname">void Gosu::Graphics::endGL </td>
157
+ <td>(</td>
158
+ <td class="paramname"> </td>
159
+ <td>&nbsp;)&nbsp;</td>
160
+ <td width="100%"></td>
161
+ </tr>
162
+ </table>
163
+ </div>
164
+ <div class="memdoc">
165
+
166
+ <p>
167
+ Resets <a class="el" href="namespaceGosu.html" title="The library&#39;s main namespace.">Gosu</a> into its default rendering state.
168
+ <p>
169
+
170
+ </div>
171
+ </div><p>
172
+ <a class="anchor" name="6b10629453eec979500179e4ceb11434"></a><!-- doxytag: member="Gosu::Graphics::createImage" ref="6b10629453eec979500179e4ceb11434" args="(const Bitmap &amp;src, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, unsigned borderFlags)" -->
173
+ <div class="memitem">
174
+ <div class="memproto">
175
+ <table class="memname">
176
+ <tr>
177
+ <td class="memname">std::auto_ptr&lt;<a class="el" href="classGosu_1_1ImageData.html">ImageData</a>&gt; Gosu::Graphics::createImage </td>
178
+ <td>(</td>
179
+ <td class="paramtype">const <a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &amp;&nbsp;</td>
180
+ <td class="paramname"> <em>src</em>, </td>
181
+ </tr>
182
+ <tr>
183
+ <td class="paramkey"></td>
184
+ <td></td>
185
+ <td class="paramtype">unsigned&nbsp;</td>
186
+ <td class="paramname"> <em>srcX</em>, </td>
187
+ </tr>
188
+ <tr>
189
+ <td class="paramkey"></td>
190
+ <td></td>
191
+ <td class="paramtype">unsigned&nbsp;</td>
192
+ <td class="paramname"> <em>srcY</em>, </td>
193
+ </tr>
194
+ <tr>
195
+ <td class="paramkey"></td>
196
+ <td></td>
197
+ <td class="paramtype">unsigned&nbsp;</td>
198
+ <td class="paramname"> <em>srcWidth</em>, </td>
199
+ </tr>
200
+ <tr>
201
+ <td class="paramkey"></td>
202
+ <td></td>
203
+ <td class="paramtype">unsigned&nbsp;</td>
204
+ <td class="paramname"> <em>srcHeight</em>, </td>
205
+ </tr>
206
+ <tr>
207
+ <td class="paramkey"></td>
208
+ <td></td>
209
+ <td class="paramtype">unsigned&nbsp;</td>
210
+ <td class="paramname"> <em>borderFlags</em></td><td>&nbsp;</td>
211
+ </tr>
212
+ <tr>
213
+ <td></td>
214
+ <td>)</td>
215
+ <td></td><td></td><td width="100%"></td>
216
+ </tr>
217
+ </table>
218
+ </div>
219
+ <div class="memdoc">
220
+
221
+ <p>
222
+ Turns a portion of a bitmap into something that can be drawn on this graphics object.
223
+ <p>
224
+
225
+ </div>
226
+ </div><p>
227
+ <hr>The documentation for this class was generated from the following file:<ul>
228
+ <li><a class="el" href="Graphics_8hpp-source.html">Graphics.hpp</a></ul>
229
+ </div>
230
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by&nbsp;
231
+ <a href="http://www.doxygen.org/index.html">
232
+ <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
233
+ </body>
234
+ </html>
@@ -0,0 +1,45 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
+ <title>Gosu: Member List</title>
4
+ <link href="doxygen.css" rel="stylesheet" type="text/css">
5
+ <link href="tabs.css" rel="stylesheet" type="text/css">
6
+ </head><body>
7
+ <!-- Generated by Doxygen 1.5.5 -->
8
+ <div class="navigation" id="top">
9
+ <div class="tabs">
10
+ <ul>
11
+ <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
+ <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13
+ <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
14
+ <li><a href="files.html"><span>Files</span></a></li>
15
+ </ul>
16
+ </div>
17
+ <div class="tabs">
18
+ <ul>
19
+ <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
20
+ <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
21
+ <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
22
+ </ul>
23
+ </div>
24
+ </div>
25
+ <div class="contents">
26
+ <h1>Gosu::Image Member List</h1>This is the complete list of members for <a class="el" href="classGosu_1_1Image.html">Gosu::Image</a>, including all inherited members.<p><table>
27
+ <tr class="memlist"><td><a class="el" href="classGosu_1_1Image.html#7e6de0cae934109ba6c96434767f9540">draw</a>(double x, double y, ZPos z, double factorX=1, double factorY=1, Color c=Colors::white, AlphaMode mode=amDefault) const </td><td><a class="el" href="classGosu_1_1Image.html">Gosu::Image</a></td><td></td></tr>
28
+ <tr class="memlist"><td><a class="el" href="classGosu_1_1Image.html#6ee7e13d1def74cbf5e974fdc3b045a1">drawMod</a>(double x, double y, ZPos z, double factorX, double factorY, Color c1, Color c2, Color c3, Color c4, AlphaMode mode=amDefault) const </td><td><a class="el" href="classGosu_1_1Image.html">Gosu::Image</a></td><td></td></tr>
29
+ <tr class="memlist"><td><a class="el" href="classGosu_1_1Image.html#9333d4cb15b761020a82a41357ccb674">drawRot</a>(double x, double y, ZPos z, double angle, double centerX=0.5, double centerY=0.5, double factorX=1, double factorY=1, Color c=Colors::white, AlphaMode mode=amDefault) const </td><td><a class="el" href="classGosu_1_1Image.html">Gosu::Image</a></td><td></td></tr>
30
+ <tr bgcolor="#f0f0f0"><td><b>drawRotFlip</b>(double x, double y, ZPos z, RotFlip rf, double factorX=1, double factorY=1, Color c=Colors::white, AlphaMode mode=amDefault) const (defined in <a class="el" href="classGosu_1_1Image.html">Gosu::Image</a>)</td><td><a class="el" href="classGosu_1_1Image.html">Gosu::Image</a></td><td></td></tr>
31
+ <tr bgcolor="#f0f0f0"><td><b>drawRotFlipMod</b>(double x, double y, ZPos z, RotFlip rf, double factorX, double factorY, Color c1, Color c2, Color c3, Color c4, AlphaMode mode=amDefault) const (defined in <a class="el" href="classGosu_1_1Image.html">Gosu::Image</a>)</td><td><a class="el" href="classGosu_1_1Image.html">Gosu::Image</a></td><td></td></tr>
32
+ <tr class="memlist"><td><a class="el" href="classGosu_1_1Image.html#cbd542bae8e42ccc72442326e578c2c2">getData</a>() const </td><td><a class="el" href="classGosu_1_1Image.html">Gosu::Image</a></td><td></td></tr>
33
+ <tr bgcolor="#f0f0f0"><td><b>height</b>() const (defined in <a class="el" href="classGosu_1_1Image.html">Gosu::Image</a>)</td><td><a class="el" href="classGosu_1_1Image.html">Gosu::Image</a></td><td></td></tr>
34
+ <tr class="memlist"><td><a class="el" href="classGosu_1_1Image.html#b7d4a07a578bc751f446bd60954ed0cd">Image</a>(Graphics &amp;graphics, const std::wstring &amp;filename, bool hardBorders=false)</td><td><a class="el" href="classGosu_1_1Image.html">Gosu::Image</a></td><td></td></tr>
35
+ <tr class="memlist"><td><a class="el" href="classGosu_1_1Image.html#ba2d3153073dd3ddeae934f6e2d9935b">Image</a>(Graphics &amp;graphics, const std::wstring &amp;filename, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, bool hardBorders=false)</td><td><a class="el" href="classGosu_1_1Image.html">Gosu::Image</a></td><td></td></tr>
36
+ <tr class="memlist"><td><a class="el" href="classGosu_1_1Image.html#cfaa17279bc44eaee7f52c66ad667bdc">Image</a>(Graphics &amp;graphics, const Bitmap &amp;source, bool hardBorders=false)</td><td><a class="el" href="classGosu_1_1Image.html">Gosu::Image</a></td><td></td></tr>
37
+ <tr class="memlist"><td><a class="el" href="classGosu_1_1Image.html#07e1f50f52004c344bc27317ebe9a678">Image</a>(Graphics &amp;graphics, const Bitmap &amp;source, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, bool hardBorders=false)</td><td><a class="el" href="classGosu_1_1Image.html">Gosu::Image</a></td><td></td></tr>
38
+ <tr bgcolor="#f0f0f0"><td><b>width</b>() const (defined in <a class="el" href="classGosu_1_1Image.html">Gosu::Image</a>)</td><td><a class="el" href="classGosu_1_1Image.html">Gosu::Image</a></td><td></td></tr>
39
+ <tr bgcolor="#f0f0f0"><td><b>~Image</b>() (defined in <a class="el" href="classGosu_1_1Image.html">Gosu::Image</a>)</td><td><a class="el" href="classGosu_1_1Image.html">Gosu::Image</a></td><td></td></tr>
40
+ </table></div>
41
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by&nbsp;
42
+ <a href="http://www.doxygen.org/index.html">
43
+ <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
44
+ </body>
45
+ </html>
@@ -0,0 +1,518 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
+ <title>Gosu: Gosu::Image Class Reference</title>
4
+ <link href="doxygen.css" rel="stylesheet" type="text/css">
5
+ <link href="tabs.css" rel="stylesheet" type="text/css">
6
+ </head><body>
7
+ <!-- Generated by Doxygen 1.5.5 -->
8
+ <div class="navigation" id="top">
9
+ <div class="tabs">
10
+ <ul>
11
+ <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
+ <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13
+ <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
14
+ <li><a href="files.html"><span>Files</span></a></li>
15
+ </ul>
16
+ </div>
17
+ <div class="tabs">
18
+ <ul>
19
+ <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
20
+ <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
21
+ <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
22
+ </ul>
23
+ </div>
24
+ <div class="navpath"><a class="el" href="namespaceGosu.html">Gosu</a>::<a class="el" href="classGosu_1_1Image.html">Image</a>
25
+ </div>
26
+ </div>
27
+ <div class="contents">
28
+ <h1>Gosu::Image Class Reference</h1><!-- doxytag: class="Gosu::Image" -->Provides functionality for drawing rectangular images.
29
+ <a href="#_details">More...</a>
30
+ <p>
31
+
32
+ <p>
33
+ <a href="classGosu_1_1Image-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
34
+ <tr><td></td></tr>
35
+ <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
36
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Image.html#b7d4a07a578bc751f446bd60954ed0cd">Image</a> (<a class="el" href="classGosu_1_1Graphics.html">Graphics</a> &amp;graphics, const std::wstring &amp;filename, bool hardBorders=false)</td></tr>
37
+
38
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Image.html#ba2d3153073dd3ddeae934f6e2d9935b">Image</a> (<a class="el" href="classGosu_1_1Graphics.html">Graphics</a> &amp;graphics, const std::wstring &amp;filename, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, bool hardBorders=false)</td></tr>
39
+
40
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Image.html#cfaa17279bc44eaee7f52c66ad667bdc">Image</a> (<a class="el" href="classGosu_1_1Graphics.html">Graphics</a> &amp;graphics, const <a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &amp;source, bool hardBorders=false)</td></tr>
41
+
42
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Image.html#07e1f50f52004c344bc27317ebe9a678">Image</a> (<a class="el" href="classGosu_1_1Graphics.html">Graphics</a> &amp;graphics, const <a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &amp;source, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, bool hardBorders=false)</td></tr>
43
+
44
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d9eb15c02f9bb1136a7bb4b988696a97"></a><!-- doxytag: member="Gosu::Image::width" ref="d9eb15c02f9bb1136a7bb4b988696a97" args="() const " -->
45
+ unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><b>width</b> () const </td></tr>
46
+
47
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a9153540e0da81a46f0262c50195c04"></a><!-- doxytag: member="Gosu::Image::height" ref="5a9153540e0da81a46f0262c50195c04" args="() const " -->
48
+ unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><b>height</b> () const </td></tr>
49
+
50
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Image.html#7e6de0cae934109ba6c96434767f9540">draw</a> (double x, double y, <a class="el" href="namespaceGosu.html#a2fd8fe9574c0ad3fd52557cb160be49">ZPos</a> z, double factorX=1, double factorY=1, <a class="el" href="classGosu_1_1Color.html">Color</a> c=Colors::white, <a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">AlphaMode</a> mode=amDefault) const </td></tr>
51
+
52
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Image.html#6ee7e13d1def74cbf5e974fdc3b045a1">drawMod</a> (double x, double y, <a class="el" href="namespaceGosu.html#a2fd8fe9574c0ad3fd52557cb160be49">ZPos</a> z, double factorX, double factorY, <a class="el" href="classGosu_1_1Color.html">Color</a> c1, <a class="el" href="classGosu_1_1Color.html">Color</a> c2, <a class="el" href="classGosu_1_1Color.html">Color</a> c3, <a class="el" href="classGosu_1_1Color.html">Color</a> c4, <a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">AlphaMode</a> mode=amDefault) const </td></tr>
53
+
54
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Image.html#9333d4cb15b761020a82a41357ccb674">drawRot</a> (double x, double y, <a class="el" href="namespaceGosu.html#a2fd8fe9574c0ad3fd52557cb160be49">ZPos</a> z, double angle, double centerX=0.5, double centerY=0.5, double factorX=1, double factorY=1, <a class="el" href="classGosu_1_1Color.html">Color</a> c=Colors::white, <a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">AlphaMode</a> mode=amDefault) const </td></tr>
55
+
56
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="07c83052d6a269c893cdc0b5f5d1329f"></a><!-- doxytag: member="Gosu::Image::drawRotFlip" ref="07c83052d6a269c893cdc0b5f5d1329f" args="(double x, double y, ZPos z, RotFlip rf, double factorX=1, double factorY=1, Color c=Colors::white, AlphaMode mode=amDefault) const " -->
57
+ void&nbsp;</td><td class="memItemRight" valign="bottom"><b>drawRotFlip</b> (double x, double y, <a class="el" href="namespaceGosu.html#a2fd8fe9574c0ad3fd52557cb160be49">ZPos</a> z, RotFlip rf, double factorX=1, double factorY=1, <a class="el" href="classGosu_1_1Color.html">Color</a> c=Colors::white, <a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">AlphaMode</a> mode=amDefault) const </td></tr>
58
+
59
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9ed4e6ba8c9ac296ff8550c0036f093d"></a><!-- doxytag: member="Gosu::Image::drawRotFlipMod" ref="9ed4e6ba8c9ac296ff8550c0036f093d" args="(double x, double y, ZPos z, RotFlip rf, double factorX, double factorY, Color c1, Color c2, Color c3, Color c4, AlphaMode mode=amDefault) const " -->
60
+ void&nbsp;</td><td class="memItemRight" valign="bottom"><b>drawRotFlipMod</b> (double x, double y, <a class="el" href="namespaceGosu.html#a2fd8fe9574c0ad3fd52557cb160be49">ZPos</a> z, RotFlip rf, double factorX, double factorY, <a class="el" href="classGosu_1_1Color.html">Color</a> c1, <a class="el" href="classGosu_1_1Color.html">Color</a> c2, <a class="el" href="classGosu_1_1Color.html">Color</a> c3, <a class="el" href="classGosu_1_1Color.html">Color</a> c4, <a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">AlphaMode</a> mode=amDefault) const </td></tr>
61
+
62
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classGosu_1_1ImageData.html">ImageData</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Image.html#cbd542bae8e42ccc72442326e578c2c2">getData</a> () const </td></tr>
63
+
64
+ </table>
65
+ <hr><a name="_details"></a><h2>Detailed Description</h2>
66
+ Provides functionality for drawing rectangular images. <hr><h2>Constructor &amp; Destructor Documentation</h2>
67
+ <a class="anchor" name="b7d4a07a578bc751f446bd60954ed0cd"></a><!-- doxytag: member="Gosu::Image::Image" ref="b7d4a07a578bc751f446bd60954ed0cd" args="(Graphics &amp;graphics, const std::wstring &amp;filename, bool hardBorders=false)" -->
68
+ <div class="memitem">
69
+ <div class="memproto">
70
+ <table class="memname">
71
+ <tr>
72
+ <td class="memname">Gosu::Image::Image </td>
73
+ <td>(</td>
74
+ <td class="paramtype"><a class="el" href="classGosu_1_1Graphics.html">Graphics</a> &amp;&nbsp;</td>
75
+ <td class="paramname"> <em>graphics</em>, </td>
76
+ </tr>
77
+ <tr>
78
+ <td class="paramkey"></td>
79
+ <td></td>
80
+ <td class="paramtype">const std::wstring &amp;&nbsp;</td>
81
+ <td class="paramname"> <em>filename</em>, </td>
82
+ </tr>
83
+ <tr>
84
+ <td class="paramkey"></td>
85
+ <td></td>
86
+ <td class="paramtype">bool&nbsp;</td>
87
+ <td class="paramname"> <em>hardBorders</em> = <code>false</code></td><td>&nbsp;</td>
88
+ </tr>
89
+ <tr>
90
+ <td></td>
91
+ <td>)</td>
92
+ <td></td><td></td><td width="100%"></td>
93
+ </tr>
94
+ </table>
95
+ </div>
96
+ <div class="memdoc">
97
+
98
+ <p>
99
+ Loads an image from a given filename that can be drawn onto graphics.
100
+ <p>
101
+ This constructor can handle PNG and BMP images. A color key of ff00ff is automatically applied to BMP type images. For more flexibility, use the corresponding constructor that uses a <a class="el" href="classGosu_1_1Bitmap.html" title="Rectangular area of pixels, each represented by a Color value.">Bitmap</a> object.
102
+ </div>
103
+ </div><p>
104
+ <a class="anchor" name="ba2d3153073dd3ddeae934f6e2d9935b"></a><!-- doxytag: member="Gosu::Image::Image" ref="ba2d3153073dd3ddeae934f6e2d9935b" args="(Graphics &amp;graphics, const std::wstring &amp;filename, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, bool hardBorders=false)" -->
105
+ <div class="memitem">
106
+ <div class="memproto">
107
+ <table class="memname">
108
+ <tr>
109
+ <td class="memname">Gosu::Image::Image </td>
110
+ <td>(</td>
111
+ <td class="paramtype"><a class="el" href="classGosu_1_1Graphics.html">Graphics</a> &amp;&nbsp;</td>
112
+ <td class="paramname"> <em>graphics</em>, </td>
113
+ </tr>
114
+ <tr>
115
+ <td class="paramkey"></td>
116
+ <td></td>
117
+ <td class="paramtype">const std::wstring &amp;&nbsp;</td>
118
+ <td class="paramname"> <em>filename</em>, </td>
119
+ </tr>
120
+ <tr>
121
+ <td class="paramkey"></td>
122
+ <td></td>
123
+ <td class="paramtype">unsigned&nbsp;</td>
124
+ <td class="paramname"> <em>srcX</em>, </td>
125
+ </tr>
126
+ <tr>
127
+ <td class="paramkey"></td>
128
+ <td></td>
129
+ <td class="paramtype">unsigned&nbsp;</td>
130
+ <td class="paramname"> <em>srcY</em>, </td>
131
+ </tr>
132
+ <tr>
133
+ <td class="paramkey"></td>
134
+ <td></td>
135
+ <td class="paramtype">unsigned&nbsp;</td>
136
+ <td class="paramname"> <em>srcWidth</em>, </td>
137
+ </tr>
138
+ <tr>
139
+ <td class="paramkey"></td>
140
+ <td></td>
141
+ <td class="paramtype">unsigned&nbsp;</td>
142
+ <td class="paramname"> <em>srcHeight</em>, </td>
143
+ </tr>
144
+ <tr>
145
+ <td class="paramkey"></td>
146
+ <td></td>
147
+ <td class="paramtype">bool&nbsp;</td>
148
+ <td class="paramname"> <em>hardBorders</em> = <code>false</code></td><td>&nbsp;</td>
149
+ </tr>
150
+ <tr>
151
+ <td></td>
152
+ <td>)</td>
153
+ <td></td><td></td><td width="100%"></td>
154
+ </tr>
155
+ </table>
156
+ </div>
157
+ <div class="memdoc">
158
+
159
+ <p>
160
+ Loads a portion of the the image at the given filename that can be drawn onto graphics.
161
+ <p>
162
+ This constructor can handle PNG and BMP images. A color key of ff00ff is automatically applied to BMP type images. For more flexibility, use the corresponding constructor that uses a <a class="el" href="classGosu_1_1Bitmap.html" title="Rectangular area of pixels, each represented by a Color value.">Bitmap</a> object.
163
+ </div>
164
+ </div><p>
165
+ <a class="anchor" name="cfaa17279bc44eaee7f52c66ad667bdc"></a><!-- doxytag: member="Gosu::Image::Image" ref="cfaa17279bc44eaee7f52c66ad667bdc" args="(Graphics &amp;graphics, const Bitmap &amp;source, bool hardBorders=false)" -->
166
+ <div class="memitem">
167
+ <div class="memproto">
168
+ <table class="memname">
169
+ <tr>
170
+ <td class="memname">Gosu::Image::Image </td>
171
+ <td>(</td>
172
+ <td class="paramtype"><a class="el" href="classGosu_1_1Graphics.html">Graphics</a> &amp;&nbsp;</td>
173
+ <td class="paramname"> <em>graphics</em>, </td>
174
+ </tr>
175
+ <tr>
176
+ <td class="paramkey"></td>
177
+ <td></td>
178
+ <td class="paramtype">const <a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &amp;&nbsp;</td>
179
+ <td class="paramname"> <em>source</em>, </td>
180
+ </tr>
181
+ <tr>
182
+ <td class="paramkey"></td>
183
+ <td></td>
184
+ <td class="paramtype">bool&nbsp;</td>
185
+ <td class="paramname"> <em>hardBorders</em> = <code>false</code></td><td>&nbsp;</td>
186
+ </tr>
187
+ <tr>
188
+ <td></td>
189
+ <td>)</td>
190
+ <td></td><td></td><td width="100%"></td>
191
+ </tr>
192
+ </table>
193
+ </div>
194
+ <div class="memdoc">
195
+
196
+ <p>
197
+ Converts the given bitmap into an image that can be drawn onto graphics.
198
+ <p>
199
+
200
+ </div>
201
+ </div><p>
202
+ <a class="anchor" name="07e1f50f52004c344bc27317ebe9a678"></a><!-- doxytag: member="Gosu::Image::Image" ref="07e1f50f52004c344bc27317ebe9a678" args="(Graphics &amp;graphics, const Bitmap &amp;source, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, bool hardBorders=false)" -->
203
+ <div class="memitem">
204
+ <div class="memproto">
205
+ <table class="memname">
206
+ <tr>
207
+ <td class="memname">Gosu::Image::Image </td>
208
+ <td>(</td>
209
+ <td class="paramtype"><a class="el" href="classGosu_1_1Graphics.html">Graphics</a> &amp;&nbsp;</td>
210
+ <td class="paramname"> <em>graphics</em>, </td>
211
+ </tr>
212
+ <tr>
213
+ <td class="paramkey"></td>
214
+ <td></td>
215
+ <td class="paramtype">const <a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &amp;&nbsp;</td>
216
+ <td class="paramname"> <em>source</em>, </td>
217
+ </tr>
218
+ <tr>
219
+ <td class="paramkey"></td>
220
+ <td></td>
221
+ <td class="paramtype">unsigned&nbsp;</td>
222
+ <td class="paramname"> <em>srcX</em>, </td>
223
+ </tr>
224
+ <tr>
225
+ <td class="paramkey"></td>
226
+ <td></td>
227
+ <td class="paramtype">unsigned&nbsp;</td>
228
+ <td class="paramname"> <em>srcY</em>, </td>
229
+ </tr>
230
+ <tr>
231
+ <td class="paramkey"></td>
232
+ <td></td>
233
+ <td class="paramtype">unsigned&nbsp;</td>
234
+ <td class="paramname"> <em>srcWidth</em>, </td>
235
+ </tr>
236
+ <tr>
237
+ <td class="paramkey"></td>
238
+ <td></td>
239
+ <td class="paramtype">unsigned&nbsp;</td>
240
+ <td class="paramname"> <em>srcHeight</em>, </td>
241
+ </tr>
242
+ <tr>
243
+ <td class="paramkey"></td>
244
+ <td></td>
245
+ <td class="paramtype">bool&nbsp;</td>
246
+ <td class="paramname"> <em>hardBorders</em> = <code>false</code></td><td>&nbsp;</td>
247
+ </tr>
248
+ <tr>
249
+ <td></td>
250
+ <td>)</td>
251
+ <td></td><td></td><td width="100%"></td>
252
+ </tr>
253
+ </table>
254
+ </div>
255
+ <div class="memdoc">
256
+
257
+ <p>
258
+ Converts a portion of the given bitmap into an image that can be drawn onto graphics.
259
+ <p>
260
+
261
+ </div>
262
+ </div><p>
263
+ <hr><h2>Member Function Documentation</h2>
264
+ <a class="anchor" name="7e6de0cae934109ba6c96434767f9540"></a><!-- doxytag: member="Gosu::Image::draw" ref="7e6de0cae934109ba6c96434767f9540" args="(double x, double y, ZPos z, double factorX=1, double factorY=1, Color c=Colors::white, AlphaMode mode=amDefault) const " -->
265
+ <div class="memitem">
266
+ <div class="memproto">
267
+ <table class="memname">
268
+ <tr>
269
+ <td class="memname">void Gosu::Image::draw </td>
270
+ <td>(</td>
271
+ <td class="paramtype">double&nbsp;</td>
272
+ <td class="paramname"> <em>x</em>, </td>
273
+ </tr>
274
+ <tr>
275
+ <td class="paramkey"></td>
276
+ <td></td>
277
+ <td class="paramtype">double&nbsp;</td>
278
+ <td class="paramname"> <em>y</em>, </td>
279
+ </tr>
280
+ <tr>
281
+ <td class="paramkey"></td>
282
+ <td></td>
283
+ <td class="paramtype"><a class="el" href="namespaceGosu.html#a2fd8fe9574c0ad3fd52557cb160be49">ZPos</a>&nbsp;</td>
284
+ <td class="paramname"> <em>z</em>, </td>
285
+ </tr>
286
+ <tr>
287
+ <td class="paramkey"></td>
288
+ <td></td>
289
+ <td class="paramtype">double&nbsp;</td>
290
+ <td class="paramname"> <em>factorX</em> = <code>1</code>, </td>
291
+ </tr>
292
+ <tr>
293
+ <td class="paramkey"></td>
294
+ <td></td>
295
+ <td class="paramtype">double&nbsp;</td>
296
+ <td class="paramname"> <em>factorY</em> = <code>1</code>, </td>
297
+ </tr>
298
+ <tr>
299
+ <td class="paramkey"></td>
300
+ <td></td>
301
+ <td class="paramtype"><a class="el" href="classGosu_1_1Color.html">Color</a>&nbsp;</td>
302
+ <td class="paramname"> <em>c</em> = <code>Colors::white</code>, </td>
303
+ </tr>
304
+ <tr>
305
+ <td class="paramkey"></td>
306
+ <td></td>
307
+ <td class="paramtype"><a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">AlphaMode</a>&nbsp;</td>
308
+ <td class="paramname"> <em>mode</em> = <code>amDefault</code></td><td>&nbsp;</td>
309
+ </tr>
310
+ <tr>
311
+ <td></td>
312
+ <td>)</td>
313
+ <td></td><td></td><td width="100%"> const</td>
314
+ </tr>
315
+ </table>
316
+ </div>
317
+ <div class="memdoc">
318
+
319
+ <p>
320
+ Draws the image so its upper left corner is at (x; y).
321
+ <p>
322
+
323
+ </div>
324
+ </div><p>
325
+ <a class="anchor" name="6ee7e13d1def74cbf5e974fdc3b045a1"></a><!-- doxytag: member="Gosu::Image::drawMod" ref="6ee7e13d1def74cbf5e974fdc3b045a1" args="(double x, double y, ZPos z, double factorX, double factorY, Color c1, Color c2, Color c3, Color c4, AlphaMode mode=amDefault) const " -->
326
+ <div class="memitem">
327
+ <div class="memproto">
328
+ <table class="memname">
329
+ <tr>
330
+ <td class="memname">void Gosu::Image::drawMod </td>
331
+ <td>(</td>
332
+ <td class="paramtype">double&nbsp;</td>
333
+ <td class="paramname"> <em>x</em>, </td>
334
+ </tr>
335
+ <tr>
336
+ <td class="paramkey"></td>
337
+ <td></td>
338
+ <td class="paramtype">double&nbsp;</td>
339
+ <td class="paramname"> <em>y</em>, </td>
340
+ </tr>
341
+ <tr>
342
+ <td class="paramkey"></td>
343
+ <td></td>
344
+ <td class="paramtype"><a class="el" href="namespaceGosu.html#a2fd8fe9574c0ad3fd52557cb160be49">ZPos</a>&nbsp;</td>
345
+ <td class="paramname"> <em>z</em>, </td>
346
+ </tr>
347
+ <tr>
348
+ <td class="paramkey"></td>
349
+ <td></td>
350
+ <td class="paramtype">double&nbsp;</td>
351
+ <td class="paramname"> <em>factorX</em>, </td>
352
+ </tr>
353
+ <tr>
354
+ <td class="paramkey"></td>
355
+ <td></td>
356
+ <td class="paramtype">double&nbsp;</td>
357
+ <td class="paramname"> <em>factorY</em>, </td>
358
+ </tr>
359
+ <tr>
360
+ <td class="paramkey"></td>
361
+ <td></td>
362
+ <td class="paramtype"><a class="el" href="classGosu_1_1Color.html">Color</a>&nbsp;</td>
363
+ <td class="paramname"> <em>c1</em>, </td>
364
+ </tr>
365
+ <tr>
366
+ <td class="paramkey"></td>
367
+ <td></td>
368
+ <td class="paramtype"><a class="el" href="classGosu_1_1Color.html">Color</a>&nbsp;</td>
369
+ <td class="paramname"> <em>c2</em>, </td>
370
+ </tr>
371
+ <tr>
372
+ <td class="paramkey"></td>
373
+ <td></td>
374
+ <td class="paramtype"><a class="el" href="classGosu_1_1Color.html">Color</a>&nbsp;</td>
375
+ <td class="paramname"> <em>c3</em>, </td>
376
+ </tr>
377
+ <tr>
378
+ <td class="paramkey"></td>
379
+ <td></td>
380
+ <td class="paramtype"><a class="el" href="classGosu_1_1Color.html">Color</a>&nbsp;</td>
381
+ <td class="paramname"> <em>c4</em>, </td>
382
+ </tr>
383
+ <tr>
384
+ <td class="paramkey"></td>
385
+ <td></td>
386
+ <td class="paramtype"><a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">AlphaMode</a>&nbsp;</td>
387
+ <td class="paramname"> <em>mode</em> = <code>amDefault</code></td><td>&nbsp;</td>
388
+ </tr>
389
+ <tr>
390
+ <td></td>
391
+ <td>)</td>
392
+ <td></td><td></td><td width="100%"> const</td>
393
+ </tr>
394
+ </table>
395
+ </div>
396
+ <div class="memdoc">
397
+
398
+ <p>
399
+ Like <a class="el" href="classGosu_1_1Image.html#7e6de0cae934109ba6c96434767f9540" title="Draws the image so its upper left corner is at (x; y).">draw()</a>, but allows to give modulation colors for all four corners.
400
+ <p>
401
+
402
+ </div>
403
+ </div><p>
404
+ <a class="anchor" name="9333d4cb15b761020a82a41357ccb674"></a><!-- doxytag: member="Gosu::Image::drawRot" ref="9333d4cb15b761020a82a41357ccb674" args="(double x, double y, ZPos z, double angle, double centerX=0.5, double centerY=0.5, double factorX=1, double factorY=1, Color c=Colors::white, AlphaMode mode=amDefault) const " -->
405
+ <div class="memitem">
406
+ <div class="memproto">
407
+ <table class="memname">
408
+ <tr>
409
+ <td class="memname">void Gosu::Image::drawRot </td>
410
+ <td>(</td>
411
+ <td class="paramtype">double&nbsp;</td>
412
+ <td class="paramname"> <em>x</em>, </td>
413
+ </tr>
414
+ <tr>
415
+ <td class="paramkey"></td>
416
+ <td></td>
417
+ <td class="paramtype">double&nbsp;</td>
418
+ <td class="paramname"> <em>y</em>, </td>
419
+ </tr>
420
+ <tr>
421
+ <td class="paramkey"></td>
422
+ <td></td>
423
+ <td class="paramtype"><a class="el" href="namespaceGosu.html#a2fd8fe9574c0ad3fd52557cb160be49">ZPos</a>&nbsp;</td>
424
+ <td class="paramname"> <em>z</em>, </td>
425
+ </tr>
426
+ <tr>
427
+ <td class="paramkey"></td>
428
+ <td></td>
429
+ <td class="paramtype">double&nbsp;</td>
430
+ <td class="paramname"> <em>angle</em>, </td>
431
+ </tr>
432
+ <tr>
433
+ <td class="paramkey"></td>
434
+ <td></td>
435
+ <td class="paramtype">double&nbsp;</td>
436
+ <td class="paramname"> <em>centerX</em> = <code>0.5</code>, </td>
437
+ </tr>
438
+ <tr>
439
+ <td class="paramkey"></td>
440
+ <td></td>
441
+ <td class="paramtype">double&nbsp;</td>
442
+ <td class="paramname"> <em>centerY</em> = <code>0.5</code>, </td>
443
+ </tr>
444
+ <tr>
445
+ <td class="paramkey"></td>
446
+ <td></td>
447
+ <td class="paramtype">double&nbsp;</td>
448
+ <td class="paramname"> <em>factorX</em> = <code>1</code>, </td>
449
+ </tr>
450
+ <tr>
451
+ <td class="paramkey"></td>
452
+ <td></td>
453
+ <td class="paramtype">double&nbsp;</td>
454
+ <td class="paramname"> <em>factorY</em> = <code>1</code>, </td>
455
+ </tr>
456
+ <tr>
457
+ <td class="paramkey"></td>
458
+ <td></td>
459
+ <td class="paramtype"><a class="el" href="classGosu_1_1Color.html">Color</a>&nbsp;</td>
460
+ <td class="paramname"> <em>c</em> = <code>Colors::white</code>, </td>
461
+ </tr>
462
+ <tr>
463
+ <td class="paramkey"></td>
464
+ <td></td>
465
+ <td class="paramtype"><a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">AlphaMode</a>&nbsp;</td>
466
+ <td class="paramname"> <em>mode</em> = <code>amDefault</code></td><td>&nbsp;</td>
467
+ </tr>
468
+ <tr>
469
+ <td></td>
470
+ <td>)</td>
471
+ <td></td><td></td><td width="100%"> const</td>
472
+ </tr>
473
+ </table>
474
+ </div>
475
+ <div class="memdoc">
476
+
477
+ <p>
478
+ Draws the image rotated by the given angle so that its rotation center is at (x; y).
479
+ <p>
480
+ Note that this is different from how all the other drawing functions work! <dl compact><dt><b>Parameters:</b></dt><dd>
481
+ <table border="0" cellspacing="2" cellpadding="0">
482
+ <tr><td valign="top"></td><td valign="top"><em>angle</em>&nbsp;</td><td>See <a class="el" href="Math_8hpp.html" title="Contains simple math functionality.">Math.hpp</a> for an explanation of how <a class="el" href="namespaceGosu.html" title="The library&#39;s main namespace.">Gosu</a> interprets angles. </td></tr>
483
+ <tr><td valign="top"></td><td valign="top"><em>centerX</em>&nbsp;</td><td>Relative horizontal position of the rotation center on the image. 0 is the left border, 1 is the right border, 0.5 is the center (and default). </td></tr>
484
+ <tr><td valign="top"></td><td valign="top"><em>centerY</em>&nbsp;</td><td>See centerX. </td></tr>
485
+ </table>
486
+ </dl>
487
+
488
+ </div>
489
+ </div><p>
490
+ <a class="anchor" name="cbd542bae8e42ccc72442326e578c2c2"></a><!-- doxytag: member="Gosu::Image::getData" ref="cbd542bae8e42ccc72442326e578c2c2" args="() const " -->
491
+ <div class="memitem">
492
+ <div class="memproto">
493
+ <table class="memname">
494
+ <tr>
495
+ <td class="memname">const <a class="el" href="classGosu_1_1ImageData.html">ImageData</a>&amp; Gosu::Image::getData </td>
496
+ <td>(</td>
497
+ <td class="paramname"> </td>
498
+ <td>&nbsp;)&nbsp;</td>
499
+ <td width="100%"> const</td>
500
+ </tr>
501
+ </table>
502
+ </div>
503
+ <div class="memdoc">
504
+
505
+ <p>
506
+ Provides access to the underlying image data object.
507
+ <p>
508
+
509
+ </div>
510
+ </div><p>
511
+ <hr>The documentation for this class was generated from the following file:<ul>
512
+ <li><a class="el" href="Image_8hpp-source.html">Image.hpp</a></ul>
513
+ </div>
514
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by&nbsp;
515
+ <a href="http://www.doxygen.org/index.html">
516
+ <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
517
+ </body>
518
+ </html>