gosu 0.7.18 → 0.7.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/COPYING.txt +1 -1
  2. data/Gosu/GraphicsBase.hpp +4 -2
  3. data/Gosu/IO.hpp +2 -9
  4. data/Gosu/Math.hpp +8 -6
  5. data/Gosu/Version.hpp +2 -2
  6. data/GosuImpl/Graphics/Common.hpp +4 -3
  7. data/GosuImpl/Graphics/DrawOp.hpp +4 -0
  8. data/GosuImpl/Graphics/Graphics.cpp +1 -1
  9. data/GosuImpl/Graphics/Image.cpp +1 -1
  10. data/GosuImpl/Graphics/LargeImageData.cpp +1 -1
  11. data/GosuImpl/Graphics/TexChunk.cpp +1 -1
  12. data/GosuImpl/Graphics/TextTouch.mm +79 -8
  13. data/GosuImpl/Graphics/Texture.cpp +15 -1
  14. data/GosuImpl/IO.cpp +10 -0
  15. data/GosuImpl/InputTouch.mm +10 -1
  16. data/GosuImpl/RubyGosu.swg +7 -13
  17. data/GosuImpl/RubyGosu_wrap.cxx +52 -22
  18. data/GosuImpl/Sockets/CommSocket.cpp +4 -3
  19. data/GosuImpl/Sockets/ListenerSocket.cpp +0 -1
  20. data/GosuImpl/Sockets/MessageSocket.cpp +8 -16
  21. data/GosuImpl/Sockets/Sockets.hpp +0 -1
  22. data/GosuImpl/WindowTouch.mm +2 -1
  23. data/Rakefile +3 -2
  24. data/lib/gosu.rb +3 -0
  25. data/lib/gosu/patches.rb +13 -2
  26. data/lib/gosu/swig_patches.rb +21 -0
  27. data/linux/extconf.rb +1 -1
  28. data/reference/cpp/_graphics_base_8hpp.html +3 -2
  29. data/reference/cpp/_graphics_base_8hpp_source.html +31 -30
  30. data/reference/cpp/_i_o_8hpp_source.html +49 -56
  31. data/reference/cpp/_math_8hpp.html +6 -6
  32. data/reference/cpp/_math_8hpp_source.html +63 -63
  33. data/reference/cpp/_version_8hpp.html +4 -4
  34. data/reference/cpp/_version_8hpp_source.html +2 -2
  35. data/reference/cpp/class_gosu_1_1_buffer.html +2 -6
  36. data/reference/cpp/class_gosu_1_1_file.html +1 -1
  37. data/reference/cpp/namespace_gosu.html +60 -57
  38. data/reference/cpp/namespacemembers.html +2 -0
  39. data/reference/cpp/namespacemembers_0x62.html +2 -2
  40. data/reference/cpp/namespacemembers_0x64.html +2 -0
  41. data/reference/cpp/namespacemembers_0x67.html +0 -2
  42. data/reference/cpp/namespacemembers_0x72.html +2 -2
  43. data/reference/cpp/namespacemembers_eval.html +4 -2
  44. data/reference/cpp/namespacemembers_func.html +4 -4
  45. data/reference/rdoc/classes/Gosu.html +1546 -0
  46. data/reference/rdoc/classes/Gosu/Color.html +660 -0
  47. data/reference/rdoc/classes/Gosu/Font.html +545 -0
  48. data/reference/rdoc/classes/Gosu/GLTexInfo.html +412 -0
  49. data/reference/rdoc/classes/Gosu/Image.html +706 -0
  50. data/reference/rdoc/classes/Gosu/Sample.html +476 -0
  51. data/reference/rdoc/classes/Gosu/SampleInstance.html +523 -0
  52. data/reference/rdoc/classes/Gosu/Song.html +568 -0
  53. data/reference/rdoc/classes/Gosu/TextInput.html +444 -0
  54. data/reference/rdoc/classes/Gosu/Window.html +911 -0
  55. data/reference/rdoc/classes/Numeric.html +479 -0
  56. data/reference/rdoc/created.rid +1 -0
  57. data/reference/rdoc/files/COPYING_txt.html +391 -0
  58. data/reference/rdoc/files/README_txt.html +387 -0
  59. data/reference/rdoc/files/reference/Deployment on OS X_rdoc.html +381 -0
  60. data/reference/rdoc/files/reference/Deployment on Windows_rdoc.html +385 -0
  61. data/reference/rdoc/files/reference/Drawing with Colors_rdoc.html +363 -0
  62. data/reference/rdoc/files/reference/Order of Corners_rdoc.html +358 -0
  63. data/reference/rdoc/files/reference/Tileability_rdoc.html +374 -0
  64. data/reference/rdoc/files/reference/Z Ordering_rdoc.html +361 -0
  65. data/reference/rdoc/files/reference/gosu_rb.html +348 -0
  66. data/reference/rdoc/fr_class_index.html +12 -0
  67. data/reference/rdoc/fr_file_index.html +10 -0
  68. data/reference/rdoc/fr_method_index.html +66 -0
  69. data/reference/rdoc/index.html +1 -0
  70. data/reference/rdoc/rdoc-style.css +320 -0
  71. metadata +29 -11
  72. data/GosuImpl/ObjGosu/ObjGosu.mm +0 -36
  73. data/GosuImpl/ObjGosu/ObjGosuColor.mm +0 -84
  74. data/GosuImpl/ObjGosu/ObjGosuFont.mm +0 -42
  75. data/GosuImpl/ObjGosu/ObjGosuImage.h +0 -7
  76. data/GosuImpl/ObjGosu/ObjGosuImage.mm +0 -65
  77. data/GosuImpl/ObjGosu/ObjGosuSample.mm +0 -32
  78. data/GosuImpl/ObjGosu/ObjGosuSong.mm +0 -43
  79. data/GosuImpl/ObjGosu/ObjGosuWindow.h +0 -32
  80. data/GosuImpl/ObjGosu/ObjGosuWindow.mm +0 -155
@@ -87,69 +87,69 @@ window.onload = initDynSections;
87
87
  <a name="l00027"></a>00027
88
88
  <a name="l00030"></a>00030 <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#6c855080566f7f1b1967c90805249dda" title="Returns a real value between min (inclusive) and max (exclusive).">random</a>(<span class="keywordtype">double</span> min, <span class="keywordtype">double</span> max);
89
89
  <a name="l00031"></a>00031
90
- <a name="l00033"></a><a class="code" href="namespace_gosu.html#2f8e80b399a0c5ba42667f22e7f2ba2f">00033</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#2f8e80b399a0c5ba42667f22e7f2ba2f" title="Translates between Gosu&amp;#39;s angle system and radians.">gosuToRadians</a>(<span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>)
91
- <a name="l00034"></a>00034 {
92
- <a name="l00035"></a>00035 <span class="keywordflow">return</span> (angle - 90) * <a class="code" href="namespace_gosu.html#cc7336a0eba36412dab0e991fb3faf01" title="Pi.">pi</a> / 180;
93
- <a name="l00036"></a>00036 }
94
- <a name="l00038"></a><a class="code" href="namespace_gosu.html#a853d9351f1568d0a949b2b7717e1e6a">00038</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#a853d9351f1568d0a949b2b7717e1e6a" title="Translates between Gosu&amp;#39;s angle system and radians.">radiansToGosu</a>(<span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>)
95
- <a name="l00039"></a>00039 {
96
- <a name="l00040"></a>00040 <span class="keywordflow">return</span> angle * 180 / <a class="code" href="namespace_gosu.html#cc7336a0eba36412dab0e991fb3faf01" title="Pi.">pi</a> + 90;
97
- <a name="l00041"></a>00041 }
98
- <a name="l00042"></a>00042
99
- <a name="l00045"></a><a class="code" href="namespace_gosu.html#9bc4301aa5fa2c2a49e81550fcb1896f">00045</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#9bc4301aa5fa2c2a49e81550fcb1896f" title="Translates between Gosu&amp;#39;s angle scaling and radians, i.e.">gosuToRadianScale</a>(<span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>)
100
- <a name="l00046"></a>00046 {
101
- <a name="l00047"></a>00047 <span class="keywordflow">return</span> angle * <a class="code" href="namespace_gosu.html#cc7336a0eba36412dab0e991fb3faf01" title="Pi.">pi</a> / 180;
102
- <a name="l00048"></a>00048 }
103
- <a name="l00051"></a><a class="code" href="namespace_gosu.html#00bce97df13e74be6f27e4a1befe2ea4">00051</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#00bce97df13e74be6f27e4a1befe2ea4" title="Translates between Gosu&amp;#39;s angle scaling and radians, i.e.">radiansScaleToGosu</a>(<span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>)
104
- <a name="l00052"></a>00052 {
105
- <a name="l00053"></a>00053 <span class="keywordflow">return</span> angle * 180 / <a class="code" href="namespace_gosu.html#cc7336a0eba36412dab0e991fb3faf01" title="Pi.">pi</a>;
106
- <a name="l00054"></a>00054 }
107
- <a name="l00055"></a>00055
108
- <a name="l00060"></a>00060 <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#e61d02831aa7026e96f1e53a358609b2" title="Returns the horizontal distance between the origin and the point to which you would...">offsetX</a>(<span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>, <span class="keywordtype">double</span> radius);
109
- <a name="l00065"></a>00065 <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#9e0845d8b2ed385cb4e8593e7a308a08" title="Returns the vertical distance between the origin and the point to which you would...">offsetY</a>(<span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>, <span class="keywordtype">double</span> radius);
110
- <a name="l00068"></a>00068 <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>(<span class="keywordtype">double</span> fromX, <span class="keywordtype">double</span> fromY, <span class="keywordtype">double</span> toX, <span class="keywordtype">double</span> toY,
111
- <a name="l00069"></a>00069 <span class="keywordtype">double</span> def = 0);
112
- <a name="l00072"></a>00072 <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#36cfaba7c2038bfeabdd1672882704f4" title="Returns the smallest angle that can be added to angle1 to get to angle2 (can be negative...">angleDiff</a>(<span class="keywordtype">double</span> angle1, <span class="keywordtype">double</span> angle2);
113
- <a name="l00074"></a>00074 <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#c6f147ab90f7e343dd9d70cc8bf3a91b" title="Normalizes an angle to fit into the range [0; 360[.">normalizeAngle</a>(<span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>);
114
- <a name="l00075"></a>00075
115
- <a name="l00077"></a>00077 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
116
- <a name="l00078"></a><a class="code" href="namespace_gosu.html#cac78b0775d1b551f4adf9ae76efb4cc">00078</a> T <a class="code" href="namespace_gosu.html#cac78b0775d1b551f4adf9ae76efb4cc" title="Returns value * value.">square</a>(T value)
117
- <a name="l00079"></a>00079 {
118
- <a name="l00080"></a>00080 <span class="keywordflow">return</span> value * value;
119
- <a name="l00081"></a>00081 }
120
- <a name="l00082"></a>00082
121
- <a name="l00085"></a>00085 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
122
- <a name="l00086"></a><a class="code" href="namespace_gosu.html#3359d78e0ca7fa5d163dce7b99f72e9f">00086</a> T <a class="code" href="namespace_gosu.html#3359d78e0ca7fa5d163dce7b99f72e9f" title="Returns min if value is smaller than min, max if value is larger than max and value...">clamp</a>(T value, T min, T max)
123
- <a name="l00087"></a>00087 {
124
- <a name="l00088"></a>00088 <span class="keywordflow">if</span> (value &lt; min)
125
- <a name="l00089"></a>00089 <span class="keywordflow">return</span> min;
126
- <a name="l00090"></a>00090 <span class="keywordflow">if</span> (value &gt; max)
127
- <a name="l00091"></a>00091 <span class="keywordflow">return</span> max;
128
- <a name="l00092"></a>00092 <span class="keywordflow">return</span> value;
129
- <a name="l00093"></a>00093 }
130
- <a name="l00094"></a>00094
131
- <a name="l00095"></a>00095 <span class="comment">// Backward compatibility with 0.7.x</span>
132
- <a name="l00096"></a>00096 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
133
- <a name="l00097"></a><a class="code" href="namespace_gosu.html#5b35114c04a3f01d54c2e052d350b61f">00097</a> T <a class="code" href="namespace_gosu.html#5b35114c04a3f01d54c2e052d350b61f">boundBy</a>(T value, T min, T max)
134
- <a name="l00098"></a>00098 {
135
- <a name="l00099"></a>00099 <span class="keywordflow">return</span> <a class="code" href="namespace_gosu.html#3359d78e0ca7fa5d163dce7b99f72e9f" title="Returns min if value is smaller than min, max if value is larger than max and value...">clamp</a>(value, min, max);
136
- <a name="l00100"></a>00100 }
137
- <a name="l00101"></a>00101
138
- <a name="l00103"></a><a class="code" href="namespace_gosu.html#58015f2ee3527184171d3d99176fd360">00103</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#58015f2ee3527184171d3d99176fd360" title="Returns the square of the distance between two points.">distanceSqr</a>(<span class="keywordtype">double</span> x1, <span class="keywordtype">double</span> y1, <span class="keywordtype">double</span> x2, <span class="keywordtype">double</span> y2)
139
- <a name="l00104"></a>00104 {
140
- <a name="l00105"></a>00105 <span class="keywordflow">return</span> <a class="code" href="namespace_gosu.html#cac78b0775d1b551f4adf9ae76efb4cc" title="Returns value * value.">square</a>(x1 - x2) + <a class="code" href="namespace_gosu.html#cac78b0775d1b551f4adf9ae76efb4cc" title="Returns value * value.">square</a>(y1 - y2);
141
- <a name="l00106"></a>00106 }
142
- <a name="l00107"></a>00107
143
- <a name="l00109"></a>00109 <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#a06a29a8aefa1be625072b02e2d825bd" title="Returns the distance between two points.">distance</a>(<span class="keywordtype">double</span> x1, <span class="keywordtype">double</span> y1, <span class="keywordtype">double</span> x2, <span class="keywordtype">double</span> y2);
144
- <a name="l00110"></a>00110
145
- <a name="l00113"></a>00113 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
146
- <a name="l00114"></a><a class="code" href="namespace_gosu.html#29515f6c9be056e9ca5f672dec154847">00114</a> T <a class="code" href="namespace_gosu.html#55c2cfa7575386d8eb6a8dc615e905ae" title="Interpolates linearly between two colors, with a given weight towards the second...">interpolate</a>(T a, T b, <span class="keywordtype">double</span> weight = 0.5)
147
- <a name="l00115"></a>00115 {
148
- <a name="l00116"></a>00116 <span class="keywordflow">return</span> a * (1.0 - weight) + b * weight;
149
- <a name="l00117"></a>00117 }
150
- <a name="l00118"></a>00118 }
151
- <a name="l00119"></a>00119
152
- <a name="l00120"></a>00120 <span class="preprocessor">#endif</span>
90
+ <a name="l00034"></a><a class="code" href="namespace_gosu.html#2f8e80b399a0c5ba42667f22e7f2ba2f">00034</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#2f8e80b399a0c5ba42667f22e7f2ba2f" title="Translates between Gosu&amp;#39;s angle system (where 0� is at the top) and radians (where...">gosuToRadians</a>(<span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>)
91
+ <a name="l00035"></a>00035 {
92
+ <a name="l00036"></a>00036 <span class="keywordflow">return</span> (angle - 90) * <a class="code" href="namespace_gosu.html#cc7336a0eba36412dab0e991fb3faf01" title="Pi.">pi</a> / 180;
93
+ <a name="l00037"></a>00037 }
94
+ <a name="l00040"></a><a class="code" href="namespace_gosu.html#a853d9351f1568d0a949b2b7717e1e6a">00040</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#a853d9351f1568d0a949b2b7717e1e6a" title="Translates between Gosu&amp;#39;s angle system (where 0� is at the top) and radians (where...">radiansToGosu</a>(<span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>)
95
+ <a name="l00041"></a>00041 {
96
+ <a name="l00042"></a>00042 <span class="keywordflow">return</span> angle * 180 / <a class="code" href="namespace_gosu.html#cc7336a0eba36412dab0e991fb3faf01" title="Pi.">pi</a> + 90;
97
+ <a name="l00043"></a>00043 }
98
+ <a name="l00044"></a>00044
99
+ <a name="l00047"></a><a class="code" href="namespace_gosu.html#dbafc76f69ec3bd403f68f50dbc6d5e4">00047</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#dbafc76f69ec3bd403f68f50dbc6d5e4" title="Translates between degrees (used by Gosu) and radians, i.e.">degreesToRadians</a>(<span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>)
100
+ <a name="l00048"></a>00048 {
101
+ <a name="l00049"></a>00049 <span class="keywordflow">return</span> angle * <a class="code" href="namespace_gosu.html#cc7336a0eba36412dab0e991fb3faf01" title="Pi.">pi</a> / 180;
102
+ <a name="l00050"></a>00050 }
103
+ <a name="l00053"></a><a class="code" href="namespace_gosu.html#90706a5c3dc1016b5397db75ab15e678">00053</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#90706a5c3dc1016b5397db75ab15e678" title="Translates between degrees (used by Gosu) and radians, i.e.">radiansToDegrees</a>(<span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>)
104
+ <a name="l00054"></a>00054 {
105
+ <a name="l00055"></a>00055 <span class="keywordflow">return</span> angle * 180 / <a class="code" href="namespace_gosu.html#cc7336a0eba36412dab0e991fb3faf01" title="Pi.">pi</a>;
106
+ <a name="l00056"></a>00056 }
107
+ <a name="l00057"></a>00057
108
+ <a name="l00062"></a>00062 <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#e61d02831aa7026e96f1e53a358609b2" title="Returns the horizontal distance between the origin and the point to which you would...">offsetX</a>(<span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>, <span class="keywordtype">double</span> radius);
109
+ <a name="l00067"></a>00067 <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#9e0845d8b2ed385cb4e8593e7a308a08" title="Returns the vertical distance between the origin and the point to which you would...">offsetY</a>(<span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>, <span class="keywordtype">double</span> radius);
110
+ <a name="l00070"></a>00070 <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>(<span class="keywordtype">double</span> fromX, <span class="keywordtype">double</span> fromY, <span class="keywordtype">double</span> toX, <span class="keywordtype">double</span> toY,
111
+ <a name="l00071"></a>00071 <span class="keywordtype">double</span> def = 0);
112
+ <a name="l00074"></a>00074 <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#36cfaba7c2038bfeabdd1672882704f4" title="Returns the smallest angle that can be added to angle1 to get to angle2 (can be negative...">angleDiff</a>(<span class="keywordtype">double</span> angle1, <span class="keywordtype">double</span> angle2);
113
+ <a name="l00076"></a>00076 <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#c6f147ab90f7e343dd9d70cc8bf3a91b" title="Normalizes an angle to fit into the range [0; 360[.">normalizeAngle</a>(<span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#f7740dec821977a37ff26a90c2e85ac7" title="Returns the angle from point 1 to point 2 in degrees, where 0.0 means upwards.">angle</a>);
114
+ <a name="l00077"></a>00077
115
+ <a name="l00079"></a>00079 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
116
+ <a name="l00080"></a><a class="code" href="namespace_gosu.html#cac78b0775d1b551f4adf9ae76efb4cc">00080</a> T <a class="code" href="namespace_gosu.html#cac78b0775d1b551f4adf9ae76efb4cc" title="Returns value * value.">square</a>(T value)
117
+ <a name="l00081"></a>00081 {
118
+ <a name="l00082"></a>00082 <span class="keywordflow">return</span> value * value;
119
+ <a name="l00083"></a>00083 }
120
+ <a name="l00084"></a>00084
121
+ <a name="l00087"></a>00087 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
122
+ <a name="l00088"></a><a class="code" href="namespace_gosu.html#3359d78e0ca7fa5d163dce7b99f72e9f">00088</a> T <a class="code" href="namespace_gosu.html#3359d78e0ca7fa5d163dce7b99f72e9f" title="Returns min if value is smaller than min, max if value is larger than max and value...">clamp</a>(T value, T min, T max)
123
+ <a name="l00089"></a>00089 {
124
+ <a name="l00090"></a>00090 <span class="keywordflow">if</span> (value &lt; min)
125
+ <a name="l00091"></a>00091 <span class="keywordflow">return</span> min;
126
+ <a name="l00092"></a>00092 <span class="keywordflow">if</span> (value &gt; max)
127
+ <a name="l00093"></a>00093 <span class="keywordflow">return</span> max;
128
+ <a name="l00094"></a>00094 <span class="keywordflow">return</span> value;
129
+ <a name="l00095"></a>00095 }
130
+ <a name="l00096"></a>00096
131
+ <a name="l00097"></a>00097 <span class="comment">// Backward compatibility with 0.7.x</span>
132
+ <a name="l00098"></a>00098 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
133
+ <a name="l00099"></a><a class="code" href="namespace_gosu.html#5b35114c04a3f01d54c2e052d350b61f">00099</a> T <a class="code" href="namespace_gosu.html#5b35114c04a3f01d54c2e052d350b61f">boundBy</a>(T value, T min, T max)
134
+ <a name="l00100"></a>00100 {
135
+ <a name="l00101"></a>00101 <span class="keywordflow">return</span> <a class="code" href="namespace_gosu.html#3359d78e0ca7fa5d163dce7b99f72e9f" title="Returns min if value is smaller than min, max if value is larger than max and value...">clamp</a>(value, min, max);
136
+ <a name="l00102"></a>00102 }
137
+ <a name="l00103"></a>00103
138
+ <a name="l00105"></a><a class="code" href="namespace_gosu.html#58015f2ee3527184171d3d99176fd360">00105</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#58015f2ee3527184171d3d99176fd360" title="Returns the square of the distance between two points.">distanceSqr</a>(<span class="keywordtype">double</span> x1, <span class="keywordtype">double</span> y1, <span class="keywordtype">double</span> x2, <span class="keywordtype">double</span> y2)
139
+ <a name="l00106"></a>00106 {
140
+ <a name="l00107"></a>00107 <span class="keywordflow">return</span> <a class="code" href="namespace_gosu.html#cac78b0775d1b551f4adf9ae76efb4cc" title="Returns value * value.">square</a>(x1 - x2) + <a class="code" href="namespace_gosu.html#cac78b0775d1b551f4adf9ae76efb4cc" title="Returns value * value.">square</a>(y1 - y2);
141
+ <a name="l00108"></a>00108 }
142
+ <a name="l00109"></a>00109
143
+ <a name="l00111"></a>00111 <span class="keywordtype">double</span> <a class="code" href="namespace_gosu.html#a06a29a8aefa1be625072b02e2d825bd" title="Returns the distance between two points.">distance</a>(<span class="keywordtype">double</span> x1, <span class="keywordtype">double</span> y1, <span class="keywordtype">double</span> x2, <span class="keywordtype">double</span> y2);
144
+ <a name="l00112"></a>00112
145
+ <a name="l00115"></a>00115 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
146
+ <a name="l00116"></a><a class="code" href="namespace_gosu.html#29515f6c9be056e9ca5f672dec154847">00116</a> T <a class="code" href="namespace_gosu.html#55c2cfa7575386d8eb6a8dc615e905ae" title="Interpolates linearly between two colors, with a given weight towards the second...">interpolate</a>(T a, T b, <span class="keywordtype">double</span> weight = 0.5)
147
+ <a name="l00117"></a>00117 {
148
+ <a name="l00118"></a>00118 <span class="keywordflow">return</span> a * (1.0 - weight) + b * weight;
149
+ <a name="l00119"></a>00119 }
150
+ <a name="l00120"></a>00120 }
151
+ <a name="l00121"></a>00121
152
+ <a name="l00122"></a>00122 <span class="preprocessor">#endif</span>
153
153
  </pre></div></div>
154
154
  <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>
155
155
  </div>
@@ -73,9 +73,9 @@ window.onload = initDynSections;
73
73
 
74
74
  <tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_version_8hpp.html#ee9763fb37ec8cb0b519a6068d5bbc08">GOSU_MINOR_VERSION</a>&nbsp;&nbsp;&nbsp;7</td></tr>
75
75
 
76
- <tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_version_8hpp.html#c0ba7d818f01c5b1ab86cfddab85446a">GOSU_POINT_VERSION</a>&nbsp;&nbsp;&nbsp;17</td></tr>
76
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_version_8hpp.html#c0ba7d818f01c5b1ab86cfddab85446a">GOSU_POINT_VERSION</a>&nbsp;&nbsp;&nbsp;19</td></tr>
77
77
 
78
- <tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_version_8hpp.html#a1800ac7b8a41bcaf007e342bc928794">GOSU_VERSION</a>&nbsp;&nbsp;&nbsp;&quot;0.7.17&quot;</td></tr>
78
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_version_8hpp.html#a1800ac7b8a41bcaf007e342bc928794">GOSU_VERSION</a>&nbsp;&nbsp;&nbsp;&quot;0.7.19&quot;</td></tr>
79
79
 
80
80
  </table>
81
81
  <hr><h2>Define Documentation</h2>
@@ -118,7 +118,7 @@ window.onload = initDynSections;
118
118
  <div class="memproto">
119
119
  <table class="memname">
120
120
  <tr>
121
- <td class="memname">#define GOSU_POINT_VERSION&nbsp;&nbsp;&nbsp;17 </td>
121
+ <td class="memname">#define GOSU_POINT_VERSION&nbsp;&nbsp;&nbsp;19 </td>
122
122
  </tr>
123
123
  </table>
124
124
  </div>
@@ -135,7 +135,7 @@ window.onload = initDynSections;
135
135
  <div class="memproto">
136
136
  <table class="memname">
137
137
  <tr>
138
- <td class="memname">#define GOSU_VERSION&nbsp;&nbsp;&nbsp;&quot;0.7.17&quot; </td>
138
+ <td class="memname">#define GOSU_VERSION&nbsp;&nbsp;&nbsp;&quot;0.7.19&quot; </td>
139
139
  </tr>
140
140
  </table>
141
141
  </div>
@@ -67,8 +67,8 @@ window.onload = initDynSections;
67
67
  <a name="l00003"></a>00003 <span class="preprocessor"></span>
68
68
  <a name="l00004"></a><a class="code" href="_version_8hpp.html#a95368b04561d7027ab25fa2247a6734">00004</a> <span class="preprocessor">#define GOSU_MAJOR_VERSION 0</span>
69
69
  <a name="l00005"></a><a class="code" href="_version_8hpp.html#ee9763fb37ec8cb0b519a6068d5bbc08">00005</a> <span class="preprocessor"></span><span class="preprocessor">#define GOSU_MINOR_VERSION 7</span>
70
- <a name="l00006"></a><a class="code" href="_version_8hpp.html#c0ba7d818f01c5b1ab86cfddab85446a">00006</a> <span class="preprocessor"></span><span class="preprocessor">#define GOSU_POINT_VERSION 17</span>
71
- <a name="l00007"></a><a class="code" href="_version_8hpp.html#a1800ac7b8a41bcaf007e342bc928794">00007</a> <span class="preprocessor"></span><span class="preprocessor">#define GOSU_VERSION "0.7.17"</span>
70
+ <a name="l00006"></a><a class="code" href="_version_8hpp.html#c0ba7d818f01c5b1ab86cfddab85446a">00006</a> <span class="preprocessor"></span><span class="preprocessor">#define GOSU_POINT_VERSION 19</span>
71
+ <a name="l00007"></a><a class="code" href="_version_8hpp.html#a1800ac7b8a41bcaf007e342bc928794">00007</a> <span class="preprocessor"></span><span class="preprocessor">#define GOSU_VERSION "0.7.19"</span>
72
72
  <a name="l00008"></a>00008 <span class="preprocessor"></span>
73
73
  <a name="l00009"></a>00009 <span class="preprocessor">#endif</span>
74
74
  </pre></div></div>
@@ -168,7 +168,7 @@ Piece of memory with the <a class="el" href="class_gosu_1_1_resource.html" title
168
168
 
169
169
  <p>
170
170
 
171
- <p>Definition at line <a class="el" href="_i_o_8hpp_source.html#l00216">216</a> of file <a class="el" href="_i_o_8hpp_source.html">IO.hpp</a>.</p>
171
+ <p>Definition at line <a class="el" href="_i_o_8hpp_source.html#l00209">209</a> of file <a class="el" href="_i_o_8hpp_source.html">IO.hpp</a>.</p>
172
172
 
173
173
  </div>
174
174
  </div><p>
@@ -189,7 +189,7 @@ Piece of memory with the <a class="el" href="class_gosu_1_1_resource.html" title
189
189
 
190
190
  <p>
191
191
 
192
- <p>Definition at line <a class="el" href="_i_o_8hpp_source.html#l00211">211</a> of file <a class="el" href="_i_o_8hpp_source.html">IO.hpp</a>.</p>
192
+ <p>Definition at line <a class="el" href="_i_o_8hpp_source.html#l00204">204</a> of file <a class="el" href="_i_o_8hpp_source.html">IO.hpp</a>.</p>
193
193
 
194
194
  </div>
195
195
  </div><p>
@@ -272,8 +272,6 @@ Piece of memory with the <a class="el" href="class_gosu_1_1_resource.html" title
272
272
 
273
273
  <p>Implements <a class="el" href="class_gosu_1_1_resource.html#ae13c54d269781b8f05dd281bdd3d9f6">Gosu::Resource</a>.</p>
274
274
 
275
- <p>Definition at line <a class="el" href="_i_o_8hpp_source.html#l00200">200</a> of file <a class="el" href="_i_o_8hpp_source.html">IO.hpp</a>.</p>
276
-
277
275
  </div>
278
276
  </div><p>
279
277
  <a class="anchor" name="87dc8af05b5c5073ef12bdf3368dcfe3"></a><!-- doxytag: member="Gosu::Buffer::size" ref="87dc8af05b5c5073ef12bdf3368dcfe3" args="() const " -->
@@ -295,8 +293,6 @@ Piece of memory with the <a class="el" href="class_gosu_1_1_resource.html" title
295
293
 
296
294
  <p>Implements <a class="el" href="class_gosu_1_1_resource.html#1211e148be764e0b78e3d7133da4a9f0">Gosu::Resource</a>.</p>
297
295
 
298
- <p>Definition at line <a class="el" href="_i_o_8hpp_source.html#l00195">195</a> of file <a class="el" href="_i_o_8hpp_source.html">IO.hpp</a>.</p>
299
-
300
296
  </div>
301
297
  </div><p>
302
298
  <a class="anchor" name="6fb20591d430230c854aaa9ff5f29bc3"></a><!-- doxytag: member="Gosu::Buffer::write" ref="6fb20591d430230c854aaa9ff5f29bc3" args="(std::size_t offset, std::size_t length, const void *sourceBuffer)" -->
@@ -99,7 +99,7 @@ Inheritance diagram for Gosu::File:</div>
99
99
  </table>
100
100
  <hr><a name="_details"></a><h2>Detailed Description</h2>
101
101
  <a class="el" href="class_gosu_1_1_file.html" title="File with the Resource interface.">File</a> with the <a class="el" href="class_gosu_1_1_resource.html" title="Base class for resources.">Resource</a> interface.
102
- <p>Definition at line <a class="el" href="_i_o_8hpp_source.html#l00236">236</a> of file <a class="el" href="_i_o_8hpp_source.html">IO.hpp</a>.</p>
102
+ <p>Definition at line <a class="el" href="_i_o_8hpp_source.html#l00229">229</a> of file <a class="el" href="_i_o_8hpp_source.html">IO.hpp</a>.</p>
103
103
  <hr><h2>Constructor &amp; Destructor Documentation</h2>
104
104
  <a class="anchor" name="ca8146e9a279ee5cdee72bf6997eb392"></a><!-- doxytag: member="Gosu::File::File" ref="ca8146e9a279ee5cdee72bf6997eb392" args="(const std::wstring &amp;filename, FileMode mode=fmRead)" -->
105
105
  <div class="memitem">
@@ -321,7 +321,8 @@ window.onload = initDynSections;
321
321
 
322
322
  <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">List of all the button ids that can be used with <a class="el" href="class_gosu_1_1_input.html" title="Manages initialization and shutdown of the input system.">Gosu::Input</a>. <a href="namespace_gosu.html#b085b2dbdd533b49dadaf217dbcf8368">More...</a><br></td></tr>
323
323
  <tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">AlphaMode</a> { <a class="el" href="namespace_gosu.html#769656b1f560bc3d1bbdb47f8ca4eda9d1661cf5d3ba68fcbdca99f9dcc832e0">amDefault</a>,
324
- <a class="el" href="namespace_gosu.html#769656b1f560bc3d1bbdb47f8ca4eda90032d35b3c2b35d16d3c59b6471c570b">amAdditive</a>
324
+ <a class="el" href="namespace_gosu.html#769656b1f560bc3d1bbdb47f8ca4eda90032d35b3c2b35d16d3c59b6471c570b">amAdditive</a>,
325
+ <a class="el" href="namespace_gosu.html#769656b1f560bc3d1bbdb47f8ca4eda9fec5394c25e9679849ee2e0bb9c26f81">amMultiply</a>
325
326
  }</td></tr>
326
327
 
327
328
  <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Determines the way colors are combined when one is drawn onto another. <a href="namespace_gosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">More...</a><br></td></tr>
@@ -337,7 +338,7 @@ window.onload = initDynSections;
337
338
  }</td></tr>
338
339
 
339
340
  <tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#3b7f4d1f697d86c584543e455faeef82">BorderFlags</a> { <br>
340
- &nbsp;&nbsp;<a class="el" href="namespace_gosu.html#3b7f4d1f697d86c584543e455faeef829ac43f03f1674539ef273f32ca937435">bfSoft</a> = 0,
341
+ &nbsp;&nbsp;<a class="el" href="namespace_gosu.html#3b7f4d1f697d86c584543e455faeef8265b4f3aad6e1e7608633f6efe103f31c">bfSmooth</a> = 0,
341
342
  <a class="el" href="namespace_gosu.html#3b7f4d1f697d86c584543e455faeef82590455ca5e98fcf73c1790b9f3b263d9">bfTileableLeft</a> = 1,
342
343
  <a class="el" href="namespace_gosu.html#3b7f4d1f697d86c584543e455faeef82aea82bb0ad82263bb710045eb5c7d42f">bfTileableTop</a> = 2,
343
344
  <a class="el" href="namespace_gosu.html#3b7f4d1f697d86c584543e455faeef825cffa52bde527c98e8a650e7c4fcf69b">bfTileableRight</a> = 4,
@@ -468,16 +469,16 @@ window.onload = initDynSections;
468
469
  <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a real value between min (inclusive) and max (exclusive). <a href="#6c855080566f7f1b1967c90805249dda"></a><br></td></tr>
469
470
  <tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#2f8e80b399a0c5ba42667f22e7f2ba2f">gosuToRadians</a> (double angle)</td></tr>
470
471
 
471
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Translates between Gosu's angle system and radians. <a href="#2f8e80b399a0c5ba42667f22e7f2ba2f"></a><br></td></tr>
472
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Translates between Gosu's angle system (where 0� is at the top) and radians (where 0 is at the right). <a href="#2f8e80b399a0c5ba42667f22e7f2ba2f"></a><br></td></tr>
472
473
  <tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#a853d9351f1568d0a949b2b7717e1e6a">radiansToGosu</a> (double angle)</td></tr>
473
474
 
474
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Translates between Gosu's angle system and radians. <a href="#a853d9351f1568d0a949b2b7717e1e6a"></a><br></td></tr>
475
- <tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#9bc4301aa5fa2c2a49e81550fcb1896f">gosuToRadianScale</a> (double angle)</td></tr>
475
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Translates between Gosu's angle system (where 0� is at the top) and radians (where 0 is at the right). <a href="#a853d9351f1568d0a949b2b7717e1e6a"></a><br></td></tr>
476
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#dbafc76f69ec3bd403f68f50dbc6d5e4">degreesToRadians</a> (double angle)</td></tr>
476
477
 
477
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Translates between Gosu's angle scaling and radians, i.e. <a href="#9bc4301aa5fa2c2a49e81550fcb1896f"></a><br></td></tr>
478
- <tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#00bce97df13e74be6f27e4a1befe2ea4">radiansScaleToGosu</a> (double angle)</td></tr>
478
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Translates between degrees (used by <a class="el" href="namespace_gosu.html" title="The library&#39;s main namespace.">Gosu</a>) and radians, i.e. <a href="#dbafc76f69ec3bd403f68f50dbc6d5e4"></a><br></td></tr>
479
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#90706a5c3dc1016b5397db75ab15e678">radiansToDegrees</a> (double angle)</td></tr>
479
480
 
480
- <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Translates between Gosu's angle scaling and radians, i.e. <a href="#00bce97df13e74be6f27e4a1befe2ea4"></a><br></td></tr>
481
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Translates between degrees (used by <a class="el" href="namespace_gosu.html" title="The library&#39;s main namespace.">Gosu</a>) and radians, i.e. <a href="#90706a5c3dc1016b5397db75ab15e678"></a><br></td></tr>
481
482
  <tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#e61d02831aa7026e96f1e53a358609b2">offsetX</a> (double angle, double radius)</td></tr>
482
483
 
483
484
  <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the horizontal distance between the origin and the point to which you would get if you moved radius pixels in the direction specified by angle. <a href="#e61d02831aa7026e96f1e53a358609b2"></a><br></td></tr>
@@ -690,6 +691,8 @@ The alpha channel specifies the opacity of the new color, 255 is full opacity. <
690
691
  The colors' channels will be added.
691
692
  <p>
692
693
  The alpha channel specifies the percentage of the new color's channels that will be added to the old color's channels. </td></tr>
694
+ <tr><td valign="top"><em><a class="anchor" name="769656b1f560bc3d1bbdb47f8ca4eda9fec5394c25e9679849ee2e0bb9c26f81"></a><!-- doxytag: member="amMultiply" ref="769656b1f560bc3d1bbdb47f8ca4eda9fec5394c25e9679849ee2e0bb9c26f81" args="" -->amMultiply</em>&nbsp;</td><td>
695
+ The color's channels will be multiplied with each other. </td></tr>
693
696
  </table>
694
697
  </dl>
695
698
 
@@ -713,7 +716,7 @@ Flags that affect the tileability of an image.
713
716
  <p>
714
717
  <dl compact><dt><b>Enumerator: </b></dt><dd>
715
718
  <table border="0" cellspacing="2" cellpadding="0">
716
- <tr><td valign="top"><em><a class="anchor" name="3b7f4d1f697d86c584543e455faeef829ac43f03f1674539ef273f32ca937435"></a><!-- doxytag: member="bfSoft" ref="3b7f4d1f697d86c584543e455faeef829ac43f03f1674539ef273f32ca937435" args="" -->bfSoft</em>&nbsp;</td><td>
719
+ <tr><td valign="top"><em><a class="anchor" name="3b7f4d1f697d86c584543e455faeef8265b4f3aad6e1e7608633f6efe103f31c"></a><!-- doxytag: member="bfSmooth" ref="3b7f4d1f697d86c584543e455faeef8265b4f3aad6e1e7608633f6efe103f31c" args="" -->bfSmooth</em>&nbsp;</td><td>
717
720
  </td></tr>
718
721
  <tr><td valign="top"><em><a class="anchor" name="3b7f4d1f697d86c584543e455faeef82590455ca5e98fcf73c1790b9f3b263d9"></a><!-- doxytag: member="bfTileableLeft" ref="3b7f4d1f697d86c584543e455faeef82590455ca5e98fcf73c1790b9f3b263d9" args="" -->bfTileableLeft</em>&nbsp;</td><td>
719
722
  </td></tr>
@@ -728,7 +731,7 @@ Flags that affect the tileability of an image.
728
731
  </table>
729
732
  </dl>
730
733
 
731
- <p>Definition at line <a class="el" href="_graphics_base_8hpp_source.html#l00050">50</a> of file <a class="el" href="_graphics_base_8hpp_source.html">GraphicsBase.hpp</a>.</p>
734
+ <p>Definition at line <a class="el" href="_graphics_base_8hpp_source.html#l00052">52</a> of file <a class="el" href="_graphics_base_8hpp_source.html">GraphicsBase.hpp</a>.</p>
732
735
 
733
736
  </div>
734
737
  </div><p>
@@ -1082,7 +1085,7 @@ Opens or creates a file with writing access, but does not clear existing content
1082
1085
  </table>
1083
1086
  </dl>
1084
1087
 
1085
- <p>Definition at line <a class="el" href="_i_o_8hpp_source.html#l00222">222</a> of file <a class="el" href="_i_o_8hpp_source.html">IO.hpp</a>.</p>
1088
+ <p>Definition at line <a class="el" href="_i_o_8hpp_source.html#l00215">215</a> of file <a class="el" href="_i_o_8hpp_source.html">IO.hpp</a>.</p>
1086
1089
 
1087
1090
  </div>
1088
1091
  </div><p>
@@ -1109,7 +1112,7 @@ Opens or creates a file with writing access, but does not clear existing content
1109
1112
  </table>
1110
1113
  </dl>
1111
1114
 
1112
- <p>Definition at line <a class="el" href="_graphics_base_8hpp_source.html#l00034">34</a> of file <a class="el" href="_graphics_base_8hpp_source.html">GraphicsBase.hpp</a>.</p>
1115
+ <p>Definition at line <a class="el" href="_graphics_base_8hpp_source.html#l00036">36</a> of file <a class="el" href="_graphics_base_8hpp_source.html">GraphicsBase.hpp</a>.</p>
1113
1116
 
1114
1117
  </div>
1115
1118
  </div><p>
@@ -1197,7 +1200,7 @@ Human-understandable descriptions of the variants of rotations and flips that ca
1197
1200
  </table>
1198
1201
  </dl>
1199
1202
 
1200
- <p>Definition at line <a class="el" href="_graphics_base_8hpp_source.html#l00041">41</a> of file <a class="el" href="_graphics_base_8hpp_source.html">GraphicsBase.hpp</a>.</p>
1203
+ <p>Definition at line <a class="el" href="_graphics_base_8hpp_source.html#l00043">43</a> of file <a class="el" href="_graphics_base_8hpp_source.html">GraphicsBase.hpp</a>.</p>
1201
1204
 
1202
1205
  </div>
1203
1206
  </div><p>
@@ -1496,9 +1499,9 @@ template&lt;typename T &gt; </div>
1496
1499
 
1497
1500
  <p>
1498
1501
 
1499
- <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00097">97</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
1502
+ <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00099">99</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
1500
1503
 
1501
- <p>References <a class="el" href="_math_8hpp_source.html#l00086">clamp()</a>.</p>
1504
+ <p>References <a class="el" href="_math_8hpp_source.html#l00088">clamp()</a>.</p>
1502
1505
 
1503
1506
  </div>
1504
1507
  </div><p>
@@ -1539,9 +1542,9 @@ template&lt;typename T &gt; </div>
1539
1542
  Returns min if value is smaller than min, max if value is larger than max and value otherwise.
1540
1543
  <p>
1541
1544
 
1542
- <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00086">86</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
1545
+ <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00088">88</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
1543
1546
 
1544
- <p>Referenced by <a class="el" href="_math_8hpp_source.html#l00097">boundBy()</a>.</p>
1547
+ <p>Referenced by <a class="el" href="_math_8hpp_source.html#l00099">boundBy()</a>.</p>
1545
1548
 
1546
1549
  </div>
1547
1550
  </div><p>
@@ -1684,6 +1687,32 @@ The line cannot contain line breaks. <dl compact><dt><b>Parameters:</b></dt><dd>
1684
1687
  Returns the name of a neutral font that is available on the current platform.
1685
1688
  <p>
1686
1689
 
1690
+ </div>
1691
+ </div><p>
1692
+ <a class="anchor" name="dbafc76f69ec3bd403f68f50dbc6d5e4"></a><!-- doxytag: member="Gosu::degreesToRadians" ref="dbafc76f69ec3bd403f68f50dbc6d5e4" args="(double angle)" -->
1693
+ <div class="memitem">
1694
+ <div class="memproto">
1695
+ <table class="memname">
1696
+ <tr>
1697
+ <td class="memname">double Gosu::degreesToRadians </td>
1698
+ <td>(</td>
1699
+ <td class="paramtype">double&nbsp;</td>
1700
+ <td class="paramname"> <em>angle</em> </td>
1701
+ <td>&nbsp;)&nbsp;</td>
1702
+ <td></td>
1703
+ </tr>
1704
+ </table>
1705
+ </div>
1706
+ <div class="memdoc">
1707
+
1708
+ <p>
1709
+ Translates between degrees (used by <a class="el" href="namespace_gosu.html" title="The library&#39;s main namespace.">Gosu</a>) and radians, i.e.
1710
+ <p>
1711
+ it does not change the 'origin' of the angle system.
1712
+ <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00047">47</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
1713
+
1714
+ <p>References <a class="el" href="_math_8hpp_source.html#l00010">pi</a>.</p>
1715
+
1687
1716
  </div>
1688
1717
  </div><p>
1689
1718
  <a class="anchor" name="a06a29a8aefa1be625072b02e2d825bd"></a><!-- doxytag: member="Gosu::distance" ref="a06a29a8aefa1be625072b02e2d825bd" args="(double x1, double y1, double x2, double y2)" -->
@@ -1770,9 +1799,9 @@ Returns the distance between two points.
1770
1799
  Returns the square of the distance between two points.
1771
1800
  <p>
1772
1801
 
1773
- <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00103">103</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
1802
+ <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00105">105</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
1774
1803
 
1775
- <p>References <a class="el" href="_math_8hpp_source.html#l00078">square()</a>.</p>
1804
+ <p>References <a class="el" href="_math_8hpp_source.html#l00080">square()</a>.</p>
1776
1805
 
1777
1806
  </div>
1778
1807
  </div><p>
@@ -1867,36 +1896,10 @@ Draws a line of text on a bitmap.
1867
1896
  <div class="memdoc">
1868
1897
 
1869
1898
  <p>
1870
- Translates between Gosu's angle system and radians.
1899
+ Translates between Gosu's angle system (where 0� is at the top) and radians (where 0 is at the right).
1871
1900
  <p>
1872
1901
 
1873
- <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00033">33</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
1874
-
1875
- <p>References <a class="el" href="_math_8hpp_source.html#l00010">pi</a>.</p>
1876
-
1877
- </div>
1878
- </div><p>
1879
- <a class="anchor" name="9bc4301aa5fa2c2a49e81550fcb1896f"></a><!-- doxytag: member="Gosu::gosuToRadianScale" ref="9bc4301aa5fa2c2a49e81550fcb1896f" args="(double angle)" -->
1880
- <div class="memitem">
1881
- <div class="memproto">
1882
- <table class="memname">
1883
- <tr>
1884
- <td class="memname">double Gosu::gosuToRadianScale </td>
1885
- <td>(</td>
1886
- <td class="paramtype">double&nbsp;</td>
1887
- <td class="paramname"> <em>angle</em> </td>
1888
- <td>&nbsp;)&nbsp;</td>
1889
- <td></td>
1890
- </tr>
1891
- </table>
1892
- </div>
1893
- <div class="memdoc">
1894
-
1895
- <p>
1896
- Translates between Gosu's angle scaling and radians, i.e.
1897
- <p>
1898
- it does not change the 'origin' of the angle system.
1899
- <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00045">45</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
1902
+ <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00034">34</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
1900
1903
 
1901
1904
  <p>References <a class="el" href="_math_8hpp_source.html#l00010">pi</a>.</p>
1902
1905
 
@@ -2075,7 +2078,7 @@ template&lt;typename T &gt; </div>
2075
2078
  Interpolates a value between a and b, weight being the bias towards the second value.
2076
2079
  <p>
2077
2080
  Examples: interpolate(0, 10, 0.5) == 5, interpolate(-10, 10, 0.25) == 5, interpolate(0, 10, -0.5) == -5.
2078
- <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00114">114</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
2081
+ <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00116">116</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
2079
2082
 
2080
2083
  </div>
2081
2084
  </div><p>
@@ -2669,12 +2672,12 @@ Tests whether two Buttons identify the same physical button.
2669
2672
 
2670
2673
  </div>
2671
2674
  </div><p>
2672
- <a class="anchor" name="00bce97df13e74be6f27e4a1befe2ea4"></a><!-- doxytag: member="Gosu::radiansScaleToGosu" ref="00bce97df13e74be6f27e4a1befe2ea4" args="(double angle)" -->
2675
+ <a class="anchor" name="90706a5c3dc1016b5397db75ab15e678"></a><!-- doxytag: member="Gosu::radiansToDegrees" ref="90706a5c3dc1016b5397db75ab15e678" args="(double angle)" -->
2673
2676
  <div class="memitem">
2674
2677
  <div class="memproto">
2675
2678
  <table class="memname">
2676
2679
  <tr>
2677
- <td class="memname">double Gosu::radiansScaleToGosu </td>
2680
+ <td class="memname">double Gosu::radiansToDegrees </td>
2678
2681
  <td>(</td>
2679
2682
  <td class="paramtype">double&nbsp;</td>
2680
2683
  <td class="paramname"> <em>angle</em> </td>
@@ -2686,10 +2689,10 @@ Tests whether two Buttons identify the same physical button.
2686
2689
  <div class="memdoc">
2687
2690
 
2688
2691
  <p>
2689
- Translates between Gosu's angle scaling and radians, i.e.
2692
+ Translates between degrees (used by <a class="el" href="namespace_gosu.html" title="The library&#39;s main namespace.">Gosu</a>) and radians, i.e.
2690
2693
  <p>
2691
2694
  it does not change the 'origin' of the angle system.
2692
- <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00051">51</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
2695
+ <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00053">53</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
2693
2696
 
2694
2697
  <p>References <a class="el" href="_math_8hpp_source.html#l00010">pi</a>.</p>
2695
2698
 
@@ -2712,10 +2715,10 @@ it does not change the 'origin' of the angle system.
2712
2715
  <div class="memdoc">
2713
2716
 
2714
2717
  <p>
2715
- Translates between Gosu's angle system and radians.
2718
+ Translates between Gosu's angle system (where 0� is at the top) and radians (where 0 is at the right).
2716
2719
  <p>
2717
2720
 
2718
- <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00038">38</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
2721
+ <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00040">40</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
2719
2722
 
2720
2723
  <p>References <a class="el" href="_math_8hpp_source.html#l00010">pi</a>.</p>
2721
2724
 
@@ -2997,9 +3000,9 @@ template&lt;typename T &gt; </div>
2997
3000
  Returns value * value.
2998
3001
  <p>
2999
3002
 
3000
- <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00078">78</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
3003
+ <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00080">80</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
3001
3004
 
3002
- <p>Referenced by <a class="el" href="_math_8hpp_source.html#l00103">distanceSqr()</a>.</p>
3005
+ <p>Referenced by <a class="el" href="_math_8hpp_source.html#l00105">distanceSqr()</a>.</p>
3003
3006
 
3004
3007
  </div>
3005
3008
  </div><p>
@@ -3278,7 +3281,7 @@ Pi.
3278
3281
 
3279
3282
  <p>Definition at line <a class="el" href="_math_8hpp_source.html#l00010">10</a> of file <a class="el" href="_math_8hpp_source.html">Math.hpp</a>.</p>
3280
3283
 
3281
- <p>Referenced by <a class="el" href="_math_8hpp_source.html#l00033">gosuToRadians()</a>, <a class="el" href="_math_8hpp_source.html#l00045">gosuToRadianScale()</a>, <a class="el" href="_math_8hpp_source.html#l00051">radiansScaleToGosu()</a>, and <a class="el" href="_math_8hpp_source.html#l00038">radiansToGosu()</a>.</p>
3284
+ <p>Referenced by <a class="el" href="_math_8hpp_source.html#l00047">degreesToRadians()</a>, <a class="el" href="_math_8hpp_source.html#l00034">gosuToRadians()</a>, <a class="el" href="_math_8hpp_source.html#l00053">radiansToDegrees()</a>, and <a class="el" href="_math_8hpp_source.html#l00040">radiansToGosu()</a>.</p>
3282
3285
 
3283
3286
  </div>
3284
3287
  </div><p>