Skip to content

Commit

Permalink
v3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RobLoach committed Mar 24, 2021
1 parent 9e7a1bb commit de0f578
Show file tree
Hide file tree
Showing 237 changed files with 10,897 additions and 36,803 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build
.vscode
/.vscode
package-lock.json
node_modules
cmake-build-debug
.idea
.idea
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.5.0] - 2021-03-24
### Added
- VSCode project template (by [KnockerPulsar](https://github.com/KnockerPulsar))
### Changes
- Updated documentation

## [3.5.0-beta3] - 2021-02-18
### Added
- Added a C++ version of raylib's loading thread example (by [@pkeir]([https://github.com/pkeir))
Expand Down
119 changes: 47 additions & 72 deletions docs/_audio_device_8hpp_source.html

Large diffs are not rendered by default.

233 changes: 103 additions & 130 deletions docs/_audio_stream_8hpp_source.html

Large diffs are not rendered by default.

159 changes: 66 additions & 93 deletions docs/_bounding_box_8hpp_source.html

Large diffs are not rendered by default.

172 changes: 71 additions & 101 deletions docs/_camera2_d_8hpp_source.html

Large diffs are not rendered by default.

317 changes: 144 additions & 173 deletions docs/_camera3_d_8hpp_source.html

Large diffs are not rendered by default.

495 changes: 201 additions & 294 deletions docs/_color_8hpp_source.html

Large diffs are not rendered by default.

276 changes: 121 additions & 155 deletions docs/_font_8hpp_source.html

Large diffs are not rendered by default.

338 changes: 157 additions & 181 deletions docs/_functions_8hpp_source.html

Large diffs are not rendered by default.

182 changes: 77 additions & 105 deletions docs/_gamepad_8hpp_source.html

Large diffs are not rendered by default.

932 changes: 441 additions & 491 deletions docs/_image_8hpp_source.html

Large diffs are not rendered by default.

163 changes: 68 additions & 95 deletions docs/_material_8hpp_source.html

Large diffs are not rendered by default.

518 changes: 229 additions & 289 deletions docs/_matrix_8hpp_source.html

Large diffs are not rendered by default.

352 changes: 162 additions & 190 deletions docs/_mesh_8hpp_source.html

Large diffs are not rendered by default.

317 changes: 144 additions & 173 deletions docs/_model_8hpp_source.html

Large diffs are not rendered by default.

161 changes: 67 additions & 94 deletions docs/_model_animation_8hpp_source.html

Large diffs are not rendered by default.

221 changes: 90 additions & 131 deletions docs/_mouse_8hpp_source.html

Large diffs are not rendered by default.

252 changes: 113 additions & 139 deletions docs/_music_8hpp_source.html

Large diffs are not rendered by default.

292 changes: 118 additions & 174 deletions docs/_physics_8hpp_source.html

Large diffs are not rendered by default.

195 changes: 82 additions & 113 deletions docs/_ray_8hpp_source.html

Large diffs are not rendered by default.

149 changes: 63 additions & 86 deletions docs/_ray_hit_info_8hpp_source.html

Large diffs are not rendered by default.

342 changes: 147 additions & 195 deletions docs/_rectangle_8hpp_source.html

Large diffs are not rendered by default.

149 changes: 59 additions & 90 deletions docs/_render_texture_8hpp_source.html

Large diffs are not rendered by default.

285 changes: 125 additions & 160 deletions docs/_shader_8hpp_source.html

Large diffs are not rendered by default.

251 changes: 111 additions & 140 deletions docs/_sound_8hpp_source.html

Large diffs are not rendered by default.

128 changes: 128 additions & 0 deletions docs/_text_8hpp_source.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>raylib-cpp: Text.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="raylib-cpp_55x55.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">raylib-cpp
</div>
<div id="projectbrief">C++ object-oriented wrapper library for raylib.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Text.hpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#ifndef RAYLIB_CPP_INCLUDE_TEXT_HPP_</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="preprocessor">#define RAYLIB_CPP_INCLUDE_TEXT_HPP_</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &quot;./raylib.hpp&quot;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#ifndef RLCPPAPI</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#define RLCPPAPI static</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; </div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceraylib.html">raylib</a> {</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="namespaceraylib.html#a1c3578f8b3d850ffa73e9a602453e003"> 23</a></span>&#160;RLCPPAPI <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="namespaceraylib.html#a1c3578f8b3d850ffa73e9a602453e003">DrawText</a>(</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; <span class="keyword">const</span> std::string&amp; title,</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="keywordtype">int</span> posX,</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; <span class="keywordtype">int</span> posY,</div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; <span class="keywordtype">int</span> fontSize,</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; ::<a class="code" href="classraylib_1_1_color.html">Color</a> color) {</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; <a class="code" href="namespaceraylib.html#a1c3578f8b3d850ffa73e9a602453e003">::DrawText</a>(title.c_str(), posX, posY, fontSize, color);</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;}</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="namespaceraylib.html#a7fc68bac19ab696df654038f8e1b1b2c"> 35</a></span>&#160;RLCPPAPI <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="namespaceraylib.html#a7fc68bac19ab696df654038f8e1b1b2c">MeasureText</a>(<span class="keyword">const</span> std::string&amp; text, <span class="keywordtype">int</span> fontSize) {</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; return ::MeasureText(text.c_str(), fontSize);</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;}</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="namespaceraylib.html#afc1e3c933eb301bee7d42466a3ec5261"> 42</a></span>&#160;RLCPPAPI <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="namespaceraylib.html#afc1e3c933eb301bee7d42466a3ec5261">TextIsEqual</a>(<span class="keyword">const</span> std::string&amp; text1, <span class="keyword">const</span> std::string&amp; text2) {</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; return ::TextIsEqual(text1.c_str(), text2.c_str());</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;}</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="namespaceraylib.html#a3c5e254ed90864520fd592295941bbaf"> 49</a></span>&#160;RLCPPAPI <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="namespaceraylib.html#a3c5e254ed90864520fd592295941bbaf">TextLength</a>(<span class="keyword">const</span> std::string&amp; text) {</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; return ::TextLength(text.c_str());</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;}</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="comment">// TODO(RobLoach): Add remaining raylib C functions with string c_str() wrappers.</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;} <span class="comment">// namespace raylib</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="preprocessor">#endif // RAYLIB_CPP_INCLUDE_TEXT_HPP_</span></div>
</div><!-- fragment --></div><!-- contents -->
<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>
<div class="ttc" id="anamespaceraylib_html_afc1e3c933eb301bee7d42466a3ec5261"><div class="ttname"><a href="namespaceraylib.html#afc1e3c933eb301bee7d42466a3ec5261">raylib::TextIsEqual</a></div><div class="ttdeci">static bool TextIsEqual(const std::string &amp;text1, const std::string &amp;text2)</div><div class="ttdoc">Check if two text string are equal.</div><div class="ttdef"><b>Definition:</b> <a href="_text_8hpp_source.html#l00042">Text.hpp:42</a></div></div>
<div class="ttc" id="anamespaceraylib_html_a7fc68bac19ab696df654038f8e1b1b2c"><div class="ttname"><a href="namespaceraylib.html#a7fc68bac19ab696df654038f8e1b1b2c">raylib::MeasureText</a></div><div class="ttdeci">static int MeasureText(const std::string &amp;text, int fontSize)</div><div class="ttdoc">Measure string width for default font.</div><div class="ttdef"><b>Definition:</b> <a href="_text_8hpp_source.html#l00035">Text.hpp:35</a></div></div>
<div class="ttc" id="aclassraylib_1_1_color_html"><div class="ttname"><a href="classraylib_1_1_color.html">raylib::Color</a></div><div class="ttdoc">Color type, RGBA (32bit)</div><div class="ttdef"><b>Definition:</b> <a href="_color_8hpp_source.html#l00014">Color.hpp:14</a></div></div>
<div class="ttc" id="anamespaceraylib_html_a1c3578f8b3d850ffa73e9a602453e003"><div class="ttname"><a href="namespaceraylib.html#a1c3578f8b3d850ffa73e9a602453e003">raylib::DrawText</a></div><div class="ttdeci">static void DrawText(const std::string &amp;title, int posX, int posY, int fontSize, ::Color color)</div><div class="ttdoc">Draw text (using default font)</div><div class="ttdef"><b>Definition:</b> <a href="_text_8hpp_source.html#l00023">Text.hpp:23</a></div></div>
<div class="ttc" id="anamespaceraylib_html_a3c5e254ed90864520fd592295941bbaf"><div class="ttname"><a href="namespaceraylib.html#a3c5e254ed90864520fd592295941bbaf">raylib::TextLength</a></div><div class="ttdeci">static unsigned int TextLength(const std::string &amp;text)</div><div class="ttdoc">Check if two text string are equal.</div><div class="ttdef"><b>Definition:</b> <a href="_text_8hpp_source.html#l00049">Text.hpp:49</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Mar 24 2021 01:42:06 for raylib-cpp by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
Loading

0 comments on commit de0f578

Please sign in to comment.