Skip to content

Commit 0ce6df7

Browse files
committed
v4.0.2
1 parent 4376498 commit 0ce6df7

File tree

95 files changed

+2120
-1653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+2120
-1653
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [4.x.x] - xxxx-xx-xx
7+
## [4.0.2] - 2021-12-24
88
### Added
99
- `Image::IsLoaded()`
1010
- `Wave::IsLoaded()`

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.11)
22
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
33
project (raylib-cpp
4-
VERSION 4.0.1
4+
VERSION 4.0.2
55
DESCRIPTION "raylib-cpp C++ Object Oriented Wrapper for raylib"
66
HOMEPAGE_URL "https://github.com/robloach/raylib-cpp"
77
LANGUAGES C CXX)

docs/_color_8hpp_source.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; </div>
189189
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keyword">inline</span> <a class="code" href="classraylib_1_1_color.html#ac0af7e53c6e05e6ec4de88169bae3952">Color</a>&amp; DrawText(const ::Font&amp; font, <span class="keyword">const</span> std::string&amp; text, ::Vector2 position,</div>
190190
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <span class="keywordtype">float</span> fontSize, <span class="keywordtype">float</span> spacing) {</div>
191-
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; ::DrawTextEx(font, text.c_str(), position, fontSize, spacing, *<span class="keyword">this</span>);</div>
191+
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <a class="code" href="namespaceraylib.html#adeb818239879e345434fec0f2b61e5cd">::DrawTextEx</a>(font, text.c_str(), position, fontSize, spacing, *<span class="keyword">this</span>);</div>
192192
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
193193
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; }</div>
194194
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; </div>
@@ -200,7 +200,7 @@
200200
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="keywordtype">float</span> rotation,</div>
201201
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keywordtype">float</span> fontSize,</div>
202202
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keywordtype">float</span> spacing) {</div>
203-
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; ::DrawTextPro(font, text.c_str(), position, origin, rotation, fontSize, spacing, *<span class="keyword">this</span>);</div>
203+
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <a class="code" href="namespaceraylib.html#ad9373305a332c98fd718966388bc2946">::DrawTextPro</a>(font, text.c_str(), position, origin, rotation, fontSize, spacing, *<span class="keyword">this</span>);</div>
204204
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
205205
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; }</div>
206206
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; </div>
@@ -289,6 +289,7 @@
289289
<div class="ttc" id="aclassraylib_1_1_vector3_html"><div class="ttname"><a href="classraylib_1_1_vector3.html">raylib::Vector3</a></div><div class="ttdoc">Vector3 type.</div><div class="ttdef"><b>Definition:</b> <a href="_vector3_8hpp_source.html#l00016">Vector3.hpp:16</a></div></div>
290290
<div class="ttc" id="aclassraylib_1_1_color_html_a927ba04098ee1ba3a8e91374ed5d5606"><div class="ttname"><a href="classraylib_1_1_color.html#a927ba04098ee1ba3a8e91374ed5d5606">raylib::Color::ToInt</a></div><div class="ttdeci">int ToInt() const</div><div class="ttdoc">Returns hexadecimal value for a Color.</div><div class="ttdef"><b>Definition:</b> <a href="_color_8hpp_source.html#l00062">Color.hpp:62</a></div></div>
291291
<div class="ttc" id="aclassraylib_1_1_color_html_ab909853a3380e3cf4306a011caca7ec5"><div class="ttname"><a href="classraylib_1_1_color.html#ab909853a3380e3cf4306a011caca7ec5">raylib::Color::ToHSV</a></div><div class="ttdeci">Vector3 ToHSV() const</div><div class="ttdoc">Returns HSV values for a Color.</div><div class="ttdef"><b>Definition:</b> <a href="_color_8hpp_source.html#l00090">Color.hpp:90</a></div></div>
292+
<div class="ttc" id="anamespaceraylib_html_ad9373305a332c98fd718966388bc2946"><div class="ttname"><a href="namespaceraylib.html#ad9373305a332c98fd718966388bc2946">raylib::DrawTextPro</a></div><div class="ttdeci">static void DrawTextPro(const Font &amp;font, const std::string &amp;text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, ::Color tint)</div><div class="ttdoc">Draw text using Font and pro parameters (rotation)</div><div class="ttdef"><b>Definition:</b> <a href="_functions_8hpp_source.html#l00264">Functions.hpp:264</a></div></div>
292293
<div class="ttc" id="aclassraylib_1_1_color_html_a3c177f10d10851fdf20d09fae83c8e19"><div class="ttname"><a href="classraylib_1_1_color.html#a3c177f10d10851fdf20d09fae83c8e19">raylib::Color::Color</a></div><div class="ttdeci">Color(::Vector3 hsv)</div><div class="ttdoc">Returns a Color from HSV values.</div><div class="ttdef"><b>Definition:</b> <a href="_color_8hpp_source.html#l00034">Color.hpp:34</a></div></div>
293294
<div class="ttc" id="aclassraylib_1_1_vector2_html"><div class="ttname"><a href="classraylib_1_1_vector2.html">raylib::Vector2</a></div><div class="ttdoc">Vector2 type.</div><div class="ttdef"><b>Definition:</b> <a href="_vector2_8hpp_source.html#l00016">Vector2.hpp:16</a></div></div>
294295
<div class="ttc" id="aclassraylib_1_1_color_html_a28cd68c3548a019b36538d0a92fe2099"><div class="ttname"><a href="classraylib_1_1_color.html#a28cd68c3548a019b36538d0a92fe2099">raylib::Color::DrawPixel</a></div><div class="ttdeci">Color &amp; DrawPixel(::Vector2 pos)</div><div class="ttdoc">Draw a pixel.</div><div class="ttdef"><b>Definition:</b> <a href="_color_8hpp_source.html#l00120">Color.hpp:120</a></div></div>
@@ -301,6 +302,7 @@
301302
<div class="ttc" id="aclassraylib_1_1_color_html_a70c0b9f2b6bc92724df1c87553cbca32"><div class="ttname"><a href="classraylib_1_1_color.html#a70c0b9f2b6bc92724df1c87553cbca32">raylib::Color::Normalize</a></div><div class="ttdeci">Vector4 Normalize() const</div><div class="ttdoc">Returns Color normalized as float [0..1].</div><div class="ttdef"><b>Definition:</b> <a href="_color_8hpp_source.html#l00083">Color.hpp:83</a></div></div>
302303
<div class="ttc" id="aclassraylib_1_1_color_html_ab3a3237688396c1768034d553d2f1cde"><div class="ttname"><a href="classraylib_1_1_color.html#ab3a3237688396c1768034d553d2f1cde">raylib::Color::DrawLine</a></div><div class="ttdeci">Color &amp; DrawLine(int startPosX, int startPosY, int endPosX, int endPosY)</div><div class="ttdoc">Draw a line.</div><div class="ttdef"><b>Definition:</b> <a href="_color_8hpp_source.html#l00128">Color.hpp:128</a></div></div>
303304
<div class="ttc" id="aclassraylib_1_1_color_html_a799b151b5ce92ccf5ca46f0c18ced395"><div class="ttname"><a href="classraylib_1_1_color.html#a799b151b5ce92ccf5ca46f0c18ced395">raylib::Color::Fade</a></div><div class="ttdeci">Color Fade(float alpha) const</div><div class="ttdoc">Returns color with alpha applied, alpha goes from 0.0f to 1.0f.</div><div class="ttdef"><b>Definition:</b> <a href="_color_8hpp_source.html#l00076">Color.hpp:76</a></div></div>
305+
<div class="ttc" id="anamespaceraylib_html_adeb818239879e345434fec0f2b61e5cd"><div class="ttname"><a href="namespaceraylib.html#adeb818239879e345434fec0f2b61e5cd">raylib::DrawTextEx</a></div><div class="ttdeci">static void DrawTextEx(const Font &amp;font, const std::string &amp;text, Vector2 position, float fontSize, float spacing, ::Color tint)</div><div class="ttdoc">Draw text using font and additional parameters.</div><div class="ttdef"><b>Definition:</b> <a href="_functions_8hpp_source.html#l00256">Functions.hpp:256</a></div></div>
304306
<!-- start footer part -->
305307
<hr class="footer"/><address class="footer"><small>
306308
Generated by &#160;<a href="http://www.doxygen.org/index.html">

docs/_font_8hpp_source.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; </div>
164164
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classraylib_1_1_font.html#ac3edd0d0ff79509e4e7144d2a111d704"> 97</a></span>&#160; <span class="keyword">inline</span> <a class="code" href="classraylib_1_1_font.html">Font</a>&amp; <a class="code" href="classraylib_1_1_font.html#ac3edd0d0ff79509e4e7144d2a111d704">DrawText</a>(<span class="keyword">const</span> std::string&amp; text, ::<a class="code" href="classraylib_1_1_vector2.html">Vector2</a> position, <span class="keywordtype">float</span> fontSize,</div>
165165
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keywordtype">float</span> spacing, ::<a class="code" href="classraylib_1_1_color.html">Color</a> tint = WHITE) {</div>
166-
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; ::DrawTextEx(*<span class="keyword">this</span>, text.c_str(), position, fontSize, spacing, tint);</div>
166+
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <a class="code" href="namespaceraylib.html#adeb818239879e345434fec0f2b61e5cd">::DrawTextEx</a>(*<span class="keyword">this</span>, text.c_str(), position, fontSize, spacing, tint);</div>
167167
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
168168
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; }</div>
169169
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; </div>
@@ -175,7 +175,7 @@
175175
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordtype">float</span> fontSize,</div>
176176
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keywordtype">float</span> spacing,</div>
177177
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; ::<a class="code" href="classraylib_1_1_color.html">Color</a> tint = WHITE) {</div>
178-
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; ::DrawTextPro(*<span class="keyword">this</span>, text.c_str(), position, origin, rotation, fontSize, spacing, tint);</div>
178+
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <a class="code" href="namespaceraylib.html#ad9373305a332c98fd718966388bc2946">::DrawTextPro</a>(*<span class="keyword">this</span>, text.c_str(), position, origin, rotation, fontSize, spacing, tint);</div>
179179
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
180180
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; }</div>
181181
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; </div>
@@ -217,6 +217,7 @@
217217
<div class="ttc" id="anamespaceraylib_html"><div class="ttname"><a href="namespaceraylib.html">raylib</a></div><div class="ttdoc">All raylib-cpp classes and functions appear in the raylib namespace.</div><div class="ttdef"><b>Definition:</b> <a href="_audio_device_8hpp_source.html#l00007">AudioDevice.hpp:7</a></div></div>
218218
<div class="ttc" id="aclassraylib_1_1_font_html_ac3edd0d0ff79509e4e7144d2a111d704"><div class="ttname"><a href="classraylib_1_1_font.html#ac3edd0d0ff79509e4e7144d2a111d704">raylib::Font::DrawText</a></div><div class="ttdeci">Font &amp; DrawText(const std::string &amp;text, ::Vector2 position, float fontSize, float spacing, ::Color tint=WHITE)</div><div class="ttdoc">Draw text using font and additional parameters.</div><div class="ttdef"><b>Definition:</b> <a href="_font_8hpp_source.html#l00097">Font.hpp:97</a></div></div>
219219
<div class="ttc" id="aclassraylib_1_1_font_html_a1a3c668905d6769fdf3d8f341520926c"><div class="ttname"><a href="classraylib_1_1_font.html#a1a3c668905d6769fdf3d8f341520926c">raylib::Font::DrawText</a></div><div class="ttdeci">Font &amp; DrawText(int codepoint, ::Vector2 position, float fontSize, ::Color tint={ 255, 255, 255, 255 })</div><div class="ttdoc">Draw one character (codepoint)</div><div class="ttdef"><b>Definition:</b> <a href="_font_8hpp_source.html#l00118">Font.hpp:118</a></div></div>
220+
<div class="ttc" id="anamespaceraylib_html_ad9373305a332c98fd718966388bc2946"><div class="ttname"><a href="namespaceraylib.html#ad9373305a332c98fd718966388bc2946">raylib::DrawTextPro</a></div><div class="ttdeci">static void DrawTextPro(const Font &amp;font, const std::string &amp;text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, ::Color tint)</div><div class="ttdoc">Draw text using Font and pro parameters (rotation)</div><div class="ttdef"><b>Definition:</b> <a href="_functions_8hpp_source.html#l00264">Functions.hpp:264</a></div></div>
220221
<div class="ttc" id="aclassraylib_1_1_rectangle_html"><div class="ttname"><a href="classraylib_1_1_rectangle.html">raylib::Rectangle</a></div><div class="ttdoc">Rectangle type.</div><div class="ttdef"><b>Definition:</b> <a href="_rectangle_8hpp_source.html#l00012">Rectangle.hpp:12</a></div></div>
221222
<div class="ttc" id="aclassraylib_1_1_font_html"><div class="ttname"><a href="classraylib_1_1_font.html">raylib::Font</a></div><div class="ttdoc">Font type, includes texture and charSet array data.</div><div class="ttdef"><b>Definition:</b> <a href="_font_8hpp_source.html#l00013">Font.hpp:13</a></div></div>
222223
<div class="ttc" id="aclassraylib_1_1_font_html_a4dac04aebd39c1c038f936ef83d86b42"><div class="ttname"><a href="classraylib_1_1_font.html#a4dac04aebd39c1c038f936ef83d86b42">raylib::Font::GetGlyphIndex</a></div><div class="ttdeci">int GetGlyphIndex(int character) const</div><div class="ttdoc">Get index position for a unicode character on font.</div><div class="ttdef"><b>Definition:</b> <a href="_font_8hpp_source.html#l00136">Font.hpp:136</a></div></div>
@@ -225,6 +226,7 @@
225226
<div class="ttc" id="aclassraylib_1_1_font_html_afd68d404370d62e2a3573977e5bbeb22"><div class="ttname"><a href="classraylib_1_1_font.html#afd68d404370d62e2a3573977e5bbeb22">raylib::Font::ImageText</a></div><div class="ttdeci">inline ::Image ImageText(const std::string &amp;text, float fontSize, float spacing, ::Color tint) const</div><div class="ttdoc">Create an image from text (custom sprite font)</div><div class="ttdef"><b>Definition:</b> <a href="_font_8hpp_source.html#l00143">Font.hpp:143</a></div></div>
226227
<div class="ttc" id="aclassraylib_1_1_texture_html"><div class="ttname"><a href="classraylib_1_1_texture.html">raylib::Texture</a></div><div class="ttdoc">Texture type.</div><div class="ttdef"><b>Definition:</b> <a href="_texture_8hpp_source.html#l00015">Texture.hpp:15</a></div></div>
227228
<div class="ttc" id="aclassraylib_1_1_font_html_a230f1f02c3b77b1319316ab7d45d2553"><div class="ttname"><a href="classraylib_1_1_font.html#a230f1f02c3b77b1319316ab7d45d2553">raylib::Font::MeasureText</a></div><div class="ttdeci">Vector2 MeasureText(const std::string &amp;text, float fontSize, float spacing) const</div><div class="ttdoc">Measure string size for Font.</div><div class="ttdef"><b>Definition:</b> <a href="_font_8hpp_source.html#l00129">Font.hpp:129</a></div></div>
229+
<div class="ttc" id="anamespaceraylib_html_adeb818239879e345434fec0f2b61e5cd"><div class="ttname"><a href="namespaceraylib.html#adeb818239879e345434fec0f2b61e5cd">raylib::DrawTextEx</a></div><div class="ttdeci">static void DrawTextEx(const Font &amp;font, const std::string &amp;text, Vector2 position, float fontSize, float spacing, ::Color tint)</div><div class="ttdoc">Draw text using font and additional parameters.</div><div class="ttdef"><b>Definition:</b> <a href="_functions_8hpp_source.html#l00256">Functions.hpp:256</a></div></div>
228230
<!-- start footer part -->
229231
<hr class="footer"/><address class="footer"><small>
230232
Generated by &#160;<a href="http://www.doxygen.org/index.html">

0 commit comments

Comments
 (0)