Files
raylib-cpp/docs/index.html
2021-02-14 16:33:03 -05:00

125 lines
7.0 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" />
</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>LICENSE: zlib/libpng 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>
<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>
<p>See the <a class="el" href="namespaceraylib.html" title="Provides all the classes associated with raylib-cpp.">raylib</a> namespace for all available classes.</p>
<div class="fragment"><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">{</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"> </div>
<div class="line"> <a class="code" href="classraylib_1_1_window.html">raylib::Window</a> w(screenWidth, screenHeight, <span class="stringliteral">&quot;raylib-cpp - basic window&quot;</span>);</div>
<div class="line"> <a class="code" href="classraylib_1_1_texture.html">raylib::Texture</a> logo(<span class="stringliteral">&quot;raylib_logo.png&quot;</span>);</div>
<div class="line"> </div>
<div class="line"> SetTargetFPS(60);</div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">while</span> (!w.ShouldClose())</div>
<div class="line"> {</div>
<div class="line"> BeginDrawing();</div>
<div class="line"> </div>
<div class="line"> ClearBackground(RAYWHITE);</div>
<div class="line"> </div>
<div class="line"> DrawText(<span class="stringliteral">&quot;Congrats! You created your first window!&quot;</span>, 190, 200, 20, LIGHTGRAY);</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// Object methods.</span></div>
<div class="line"> logo.Draw(</div>
<div class="line"> screenWidth / 2 - texture.getWidth() / 2,</div>
<div class="line"> screenHeight / 2 - texture.getHeight() / 2);</div>
<div class="line"> </div>
<div class="line"> EndDrawing();</div>
<div class="line"> }</div>
<div class="line"> </div>
<div class="line"> <span class="comment">// UnloadTexture() and CloseWindow() are called automatically.</span></div>
<div class="line"> </div>
<div class="line"> <span class="keywordflow">return</span> 0;</div>
<div class="line">}</div>
</div><!-- fragment --> </div></div><!-- PageDoc -->
</div><!-- contents -->
<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="ttdef"><b>Definition:</b> <a href="_texture_8hpp_source.html#l00036">Texture.hpp:36</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#l00044">Window.hpp:44</a></div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Feb 14 2021 16:32:47 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>