mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 17:19:27 +00:00
118 lines
6.9 KiB
HTML
118 lines
6.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" />
|
|
</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&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&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>
|
|
<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 "raylib-cpp.hpp"</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">"raylib-cpp - basic window"</span>);</div>
|
|
<div class="line"> <a class="code" href="classraylib_1_1_texture2_d.html">raylib::Texture</a> logo(<span class="stringliteral">"raylib_logo.png"</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">"Congrats! You created your first window!"</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_color_html_ace467f20d71ff4af44e0211d6aeea9b5"><div class="ttname"><a href="classraylib_1_1_color.html#ace467f20d71ff4af44e0211d6aeea9b5">raylib::Color::ClearBackground</a></div><div class="ttdeci">Color & ClearBackground()</div><div class="ttdef"><b>Definition:</b> <a href="_color_8hpp_source.html#l00124">Color.hpp:124</a></div></div>
|
|
<div class="ttc" id="aclassraylib_1_1_color_html_a617a8a434004510d97e65109f2d1cdfb"><div class="ttname"><a href="classraylib_1_1_color.html#a617a8a434004510d97e65109f2d1cdfb">raylib::Color::RayWhite</a></div><div class="ttdeci">static Color RayWhite</div><div class="ttdef"><b>Definition:</b> <a href="_color_8hpp_source.html#l00087">Color.hpp:87</a></div></div>
|
|
<div class="ttc" id="aclassraylib_1_1_texture2_d_html"><div class="ttname"><a href="classraylib_1_1_texture2_d.html">raylib::Texture2D</a></div><div class="ttdef"><b>Definition:</b> <a href="_texture2_d_8hpp_source.html#l00019">Texture2D.hpp:19</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#l00026">Window.hpp:26</a></div></div>
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Wed Aug 19 2020 10:26:59 for raylib-cpp by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|