This commit is contained in:
dlozeve 2021-03-05 19:05:55 +00:00
parent cc747f329d
commit c7d8ee4212
45 changed files with 207 additions and 123 deletions

View file

@ -100,9 +100,9 @@ This graph shows which files directly or indirectly include this file:</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a448504c6f7a82a9ff3f86221a6757703"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shaders_8h.html#a448504c6f7a82a9ff3f86221a6757703">initialize_shaders</a> (struct <a class="el" href="structrenderer__state.html">renderer_state</a> *state, const char *shader_file, const char *buffer_file)</td></tr>
<tr class="memdesc:a448504c6f7a82a9ff3f86221a6757703"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize shaders and setup inotify if required. <a href="shaders_8h.html#a448504c6f7a82a9ff3f86221a6757703">More...</a><br /></td></tr>
<tr class="separator:a448504c6f7a82a9ff3f86221a6757703"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58c13f6719bcad0be93367257facb2d8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shaders_8h.html#a58c13f6719bcad0be93367257facb2d8">initialize_shaders</a> (struct <a class="el" href="structrenderer__state.html">renderer_state</a> *state, const char *shader_file, const char *buffer_file, int window_width, int window_height)</td></tr>
<tr class="memdesc:a58c13f6719bcad0be93367257facb2d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize shaders, compile them, and create the required texture for the buffer shader. <a href="shaders_8h.html#a58c13f6719bcad0be93367257facb2d8">More...</a><br /></td></tr>
<tr class="separator:a58c13f6719bcad0be93367257facb2d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a199bc15d3bf9a2b6948bfbf44e90652c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="shaders_8h.html#a199bc15d3bf9a2b6948bfbf44e90652c">compile_shaders</a> (unsigned int *shader_program, const char *const fragment_shader_file)</td></tr>
<tr class="memdesc:a199bc15d3bf9a2b6948bfbf44e90652c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compile shaders from source files. <a href="shaders_8h.html#a199bc15d3bf9a2b6948bfbf44e90652c">More...</a><br /></td></tr>
<tr class="separator:a199bc15d3bf9a2b6948bfbf44e90652c"><td class="memSeparator" colspan="2">&#160;</td></tr>
@ -150,8 +150,8 @@ Functions</h2></td></tr>
</div>
</div>
<a id="a448504c6f7a82a9ff3f86221a6757703"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a448504c6f7a82a9ff3f86221a6757703">&#9670;&nbsp;</a></span>initialize_shaders()</h2>
<a id="a58c13f6719bcad0be93367257facb2d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58c13f6719bcad0be93367257facb2d8">&#9670;&nbsp;</a></span>initialize_shaders()</h2>
<div class="memitem">
<div class="memproto">
@ -172,7 +172,19 @@ Functions</h2></td></tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>buffer_file</em>&#160;</td>
<td class="paramname"><em>buffer_file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>texture_width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>texture_height</em>&#160;</td>
</tr>
<tr>
<td></td>
@ -182,12 +194,14 @@ Functions</h2></td></tr>
</table>
</div><div class="memdoc">
<p>Initialize shaders and setup inotify if required. </p>
<p>Initialize shaders, compile them, and create the required texture for the buffer shader. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">state</td><td>The target renderer state. </td></tr>
<tr><td class="paramname">shader_file</td><td>The file name of the screen shader. </td></tr>
<tr><td class="paramname">buffer_file</td><td>The file name of the buffer shader, or NULL if no buffer shader. </td></tr>
<tr><td class="paramname">texture_width</td><td>The width of the texture for the buffer shader. </td></tr>
<tr><td class="paramname">texture_height</td><td>The height of the texture for the buffer shader. </td></tr>
</table>
</dd>
</dl>