Files
raylib-cpp/docs/index.html
2022-06-08 10:27:45 -04:00

150 lines
9.9 KiB
HTML

<!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: raylib-cpp</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" />
<link href="doxygen-awesome.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>
</div><!-- top -->
<!-- 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 class="PageDoc"><div class="header">
<div class="headertitle">
<div class="title">raylib-cpp </div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p><a href="https://github.com/RobLoach/raylib-cpp">raylib-cpp</a> is a C++ wrapper library for raylib, a simple and easy-to-use library to enjoy videogames programming. This C++ header provides object-oriented wrappers around raylib's struct interfaces.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="namespaceraylib.html" title="All raylib-cpp classes and functions appear in the raylib namespace.">raylib</a> namespace for a list of all available classes.</dd></dl>
<div class="fragment"><div class="line"><span class="comment">/*******************************************************************************************</span></div>
<div class="line"><span class="comment">*</span></div>
<div class="line"><span class="comment">* raylib [core] example - Basic window</span></div>
<div class="line"><span class="comment">*</span></div>
<div class="line"><span class="comment">* Welcome to raylib!</span></div>
<div class="line"><span class="comment">*</span></div>
<div class="line"><span class="comment">* To test examples, just press F6 and execute raylib_compile_execute script</span></div>
<div class="line"><span class="comment">* Note that compiled executable is placed in the same folder as .c file</span></div>
<div class="line"><span class="comment">*</span></div>
<div class="line"><span class="comment">* You can find all basic examples on C:\raylib\raylib\examples folder or</span></div>
<div class="line"><span class="comment">* raylib official webpage: www.raylib.com</span></div>
<div class="line"><span class="comment">*</span></div>
<div class="line"><span class="comment">* Enjoy using raylib. :)</span></div>
<div class="line"><span class="comment">*</span></div>
<div class="line"><span class="comment">* This example has been created using raylib 1.0 (www.raylib.com)</span></div>
<div class="line"><span class="comment">* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)</span></div>
<div class="line"><span class="comment">*</span></div>
<div class="line"><span class="comment">* Copyright (c) 2014 Ramon Santamaria (@raysan5)</span></div>
<div class="line"><span class="comment">*</span></div>
<div class="line"><span class="comment">********************************************************************************************/</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &quot;raylib-cpp.hpp&quot;</span></div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main() {</div>
<div class="line"> <span class="comment">// Initialization</span></div>
<div class="line"> <span class="comment">//--------------------------------------------------------------------------------------</span></div>
<div class="line"> <span class="keywordtype">int</span> screenWidth = 800;</div>
<div class="line"> <span class="keywordtype">int</span> screenHeight = 450;</div>
<div class="line"> <a class="code" href="classraylib_1_1_color.html">raylib::Color</a> textColor = raylib::Color::LightGray();</div>
<div class="line"> <a class="code" href="classraylib_1_1_window.html">raylib::Window</a> window(screenWidth, screenHeight, <span class="stringliteral">&quot;raylib [core] example - basic window&quot;</span>);</div>
<div class="line"> </div>
<div class="line"> SetTargetFPS(60);</div>
<div class="line"> <span class="comment">//--------------------------------------------------------------------------------------</span></div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Main game loop</span></div>
<div class="line"> <span class="keywordflow">while</span> (!window.ShouldClose()) { <span class="comment">// Detect window close button or ESC key</span></div>
<div class="line"> <span class="comment">// Update</span></div>
<div class="line"> <span class="comment">//----------------------------------------------------------------------------------</span></div>
<div class="line"> <span class="comment">// Update your variables here</span></div>
<div class="line"> <span class="comment">//----------------------------------------------------------------------------------</span></div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Draw</span></div>
<div class="line"> <span class="comment">//----------------------------------------------------------------------------------</span></div>
<div class="line"> BeginDrawing();</div>
<div class="line"> {</div>
<div class="line"> window.ClearBackground(RAYWHITE);</div>
<div class="line"> textColor.DrawText(<span class="stringliteral">&quot;Congrats! You created your first window!&quot;</span>, 190, 200, 20);</div>
<div class="line"> }</div>
<div class="line"> EndDrawing();</div>
<div class="line"> <span class="comment">//----------------------------------------------------------------------------------</span></div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">return</span> 0;</div>
<div class="line">}</div>
</div><!-- fragment --> <dl class="section author"><dt>Author</dt><dd>Rob Loach (RobLoach) </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>zlib/libpng</dd></dl>
<p>raylib-cpp is licensed under an unmodified zlib/libpng license, which is an OSI-certified, BSD-like license that allows static linking with closed source software:</p>
<p>Copyright 2020 Rob Loach (RobLoach)</p>
<p>This software is provided "as-is", without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.</p>
<p>Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:</p>
<ol type="1">
<li>The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.</li>
<li>Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.</li>
<li>This notice may not be removed or altered from any source distribution. </li>
</ol>
</div></div><!-- PageDoc -->
</div><!-- contents -->
<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="aclassraylib_1_1_window_html"><div class="ttname"><a href="classraylib_1_1_window.html">raylib::Window</a></div><div class="ttdoc">Window and Graphics Device Functions.</div><div class="ttdef"><b>Definition:</b> <a href="_window_8hpp_source.html#l00013">Window.hpp:13</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated 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>