Files
raylib-cpp/docs/index.html
2020-04-25 16:07:46 -04:00

78 lines
5.3 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.13"/>
<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.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</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="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>
<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/raylib.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_texture2_d.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"> <a class="code" href="classraylib_1_1_color.html#a617a8a434004510d97e65109f2d1cdfb">raylib::Color::RayWhite</a>.<a class="code" href="classraylib_1_1_color.html#ace467f20d71ff4af44e0211d6aeea9b5">ClearBackground</a>();</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><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Apr 25 2020 16:06:58 for raylib-cpp by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>