deploy: 7d6b1ff622245c5d1e3914275ecb7a00b821e950
This commit is contained in:
commit
8c1f1c7a2f
157 changed files with 7790 additions and 0 deletions
200
io_8h.html
Normal file
200
io_8h.html
Normal file
|
@ -0,0 +1,200 @@
|
|||
<!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>ShaderTool: src/io.h File Reference</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="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">ShaderTool
|
||||
 <span id="projectnumber">0.1</span>
|
||||
</div>
|
||||
<div id="projectbrief">Live tool for developing OpenGL shaders interactively</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>
|
||||
<!-- 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_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">io.h File Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><code>#include "<a class="el" href="renderer_8h_source.html">renderer.h</a>"</code><br />
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
Include dependency graph for io.h:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><img src="io_8h__incl.png" border="0" usemap="#src_2io_8h" alt=""/></div>
|
||||
<map name="src_2io_8h" id="src_2io_8h">
|
||||
<area shape="rect" title=" " alt="" coords="26,5,95,32"/>
|
||||
<area shape="rect" href="renderer_8h.html" title=" " alt="" coords="17,80,105,107"/>
|
||||
<area shape="rect" title=" " alt="" coords="5,155,116,181"/>
|
||||
</map>
|
||||
</div>
|
||||
</div><div class="textblock"><div class="dynheader">
|
||||
This graph shows which files directly or indirectly include this file:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><img src="io_8h__dep__incl.png" border="0" usemap="#src_2io_8hdep" alt=""/></div>
|
||||
<map name="src_2io_8hdep" id="src_2io_8hdep">
|
||||
<area shape="rect" title=" " alt="" coords="15,5,85,32"/>
|
||||
<area shape="rect" href="main_8c.html" title=" " alt="" coords="5,80,95,107"/>
|
||||
</map>
|
||||
</div>
|
||||
</div>
|
||||
<p><a href="io_8h_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a04487b3f64fdc93c3ce0037ca16cbff0"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="io_8h.html#a04487b3f64fdc93c3ce0037ca16cbff0">basename_without_suffix</a> (const char *filename)</td></tr>
|
||||
<tr class="memdesc:a04487b3f64fdc93c3ce0037ca16cbff0"><td class="mdescLeft"> </td><td class="mdescRight">Return the file name without the leading directories and without the extension. <a href="io_8h.html#a04487b3f64fdc93c3ce0037ca16cbff0">More...</a><br /></td></tr>
|
||||
<tr class="separator:a04487b3f64fdc93c3ce0037ca16cbff0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3055c0f3882078342855d3eae628c488"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="io_8h.html#a3055c0f3882078342855d3eae628c488">capture_screenshot</a> (struct <a class="el" href="structrenderer__state.html">renderer_state</a> *state)</td></tr>
|
||||
<tr class="memdesc:a3055c0f3882078342855d3eae628c488"><td class="mdescLeft"> </td><td class="mdescRight">Capture a screenshot of the current window. <a href="io_8h.html#a3055c0f3882078342855d3eae628c488">More...</a><br /></td></tr>
|
||||
<tr class="separator:a3055c0f3882078342855d3eae628c488"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a526d50cc66c2573b2e5b96c7256e9fae"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="io_8h.html#a526d50cc66c2573b2e5b96c7256e9fae">process_input</a> (struct <a class="el" href="structrenderer__state.html">renderer_state</a> *state)</td></tr>
|
||||
<tr class="memdesc:a526d50cc66c2573b2e5b96c7256e9fae"><td class="mdescLeft"> </td><td class="mdescRight">Ensure the window is closed when the user presses the escape key. <a href="io_8h.html#a526d50cc66c2573b2e5b96c7256e9fae">More...</a><br /></td></tr>
|
||||
<tr class="separator:a526d50cc66c2573b2e5b96c7256e9fae"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="a04487b3f64fdc93c3ce0037ca16cbff0"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a04487b3f64fdc93c3ce0037ca16cbff0">◆ </a></span>basename_without_suffix()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">char* basename_without_suffix </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const char * </td>
|
||||
<td class="paramname"><em>filename</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Return the file name without the leading directories and without the extension. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">filename</td><td>The original filename. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>A newly allocated string containing the output of basename(3) without the extension. </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a3055c0f3882078342855d3eae628c488"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a3055c0f3882078342855d3eae628c488">◆ </a></span>capture_screenshot()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void capture_screenshot </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">struct <a class="el" href="structrenderer__state.html">renderer_state</a> * </td>
|
||||
<td class="paramname"><em>state</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Capture a screenshot of the current window. </p>
|
||||
<p>Takes the dimensions of the viewport to save a pixel array of the same dimensions. Uses FreeImage to create an image from the raw pixels and save it to disk.</p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">state</td><td>The renderer state, needed to get the name of the current shader and the frame count. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a526d50cc66c2573b2e5b96c7256e9fae"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a526d50cc66c2573b2e5b96c7256e9fae">◆ </a></span>process_input()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void process_input </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">struct <a class="el" href="structrenderer__state.html">renderer_state</a> * </td>
|
||||
<td class="paramname"><em>state</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Ensure the window is closed when the user presses the escape key. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">state</td><td>The current state of the renderer. </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated 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>
|
Loading…
Add table
Add a link
Reference in a new issue