mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-09 17:49:21 +01:00
168 lines
18 KiB
HTML
168 lines
18 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.10"/>
|
|
<title>WUT: D:/Programming/Projects/wut/include/gx2/draw.h Source File</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>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</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">WUT
|
|
 <span id="projectnumber">0.1</span>
|
|
</div>
|
|
<div id="projectbrief">Wii U Toolchain</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.10 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>Globals</span></a></li>
|
|
</ul>
|
|
</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_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_64fe89c4a61f5742775721f1d8222d0c.html">gx2</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">draw.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="draw_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include <<a class="code" href="wut_8h.html">wut.h</a>></span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="group__gx2__draw.html#ga759347839142a01bbb4c01112b437f7a"> 14</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group__gx2__draw.html#ga759347839142a01bbb4c01112b437f7a">GX2PrimitiveMode</a></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> {</div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="group__gx2__draw.html#gga759347839142a01bbb4c01112b437f7aa8bbbd9cfc4cd6485ca5e6ae5eed99719"> 16</a></span>  <a class="code" href="group__gx2__draw.html#gga759347839142a01bbb4c01112b437f7aa8bbbd9cfc4cd6485ca5e6ae5eed99719">GX2_PRIMITIVE_MODE_TRIANGLES</a> = 4,</div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="group__gx2__draw.html#gga759347839142a01bbb4c01112b437f7aa180108b77727e46d694d1325bbc8d56a"> 17</a></span>  <a class="code" href="group__gx2__draw.html#gga759347839142a01bbb4c01112b437f7aa180108b77727e46d694d1325bbc8d56a">GX2_PRIMITIVE_MODE_TRIANGLE_STRIP</a> = 6,</div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="group__gx2__draw.html#gga759347839142a01bbb4c01112b437f7aa856c4751543c93cb1da797152123a7e7"> 18</a></span>  <a class="code" href="group__gx2__draw.html#gga759347839142a01bbb4c01112b437f7aa856c4751543c93cb1da797152123a7e7">GX2_PRIMITIVE_MODE_QUADS</a> = 19,</div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="group__gx2__draw.html#gga759347839142a01bbb4c01112b437f7aa9dbeef8ec5d13e36051cb89bb05cc6ce"> 19</a></span>  <a class="code" href="group__gx2__draw.html#gga759347839142a01bbb4c01112b437f7aa9dbeef8ec5d13e36051cb89bb05cc6ce">GX2_PRIMITIVE_MODE_QUAD_STRIP</a> = 20,</div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> } <a class="code" href="group__gx2__draw.html#ga759347839142a01bbb4c01112b437f7a">GX2PrimitiveMode</a>;</div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="group__gx2__draw.html#ga05cdb8739488621652b08674ff9cd2e4"> 22</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group__gx2__draw.html#ga05cdb8739488621652b08674ff9cd2e4">GX2IndexType</a></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> {</div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="group__gx2__draw.html#gga05cdb8739488621652b08674ff9cd2e4a0e27e2d53ecf375977d20064313fd93b"> 24</a></span>  <a class="code" href="group__gx2__draw.html#gga05cdb8739488621652b08674ff9cd2e4a0e27e2d53ecf375977d20064313fd93b">GX2_INDEX_TYPE_U16_LE</a> = 0,</div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="group__gx2__draw.html#gga05cdb8739488621652b08674ff9cd2e4abfd22dbfd5c99d680785cb6ca82b4990"> 25</a></span>  <a class="code" href="group__gx2__draw.html#gga05cdb8739488621652b08674ff9cd2e4abfd22dbfd5c99d680785cb6ca82b4990">GX2_INDEX_TYPE_U32_LE</a> = 1,</div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="group__gx2__draw.html#gga05cdb8739488621652b08674ff9cd2e4af5e4728f4cfd27ef61af39d372e62ce4"> 26</a></span>  <a class="code" href="group__gx2__draw.html#gga05cdb8739488621652b08674ff9cd2e4af5e4728f4cfd27ef61af39d372e62ce4">GX2_INDEX_TYPE_U16</a> = 4,</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="group__gx2__draw.html#gga05cdb8739488621652b08674ff9cd2e4a7ebd4e4ae358281c02f4a461781c0192"> 27</a></span>  <a class="code" href="group__gx2__draw.html#gga05cdb8739488621652b08674ff9cd2e4a7ebd4e4ae358281c02f4a461781c0192">GX2_INDEX_TYPE_U32</a> = 9,</div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> } <a class="code" href="group__gx2__draw.html#ga05cdb8739488621652b08674ff9cd2e4">GX2IndexType</a>;</div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <a class="code" href="group__gx2__draw.html#ga0c09f787c7b765fdf4455771f20d60f3">GX2SetAttribBuffer</a>(uint32_t index,</div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  uint32_t size,</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  uint32_t stride,</div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordtype">void</span> *buffer);</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <a class="code" href="group__gx2__draw.html#gac8eb066ce57bfeb74da1f80bb985c03a">GX2DrawEx</a>(<a class="code" href="group__gx2__draw.html#ga759347839142a01bbb4c01112b437f7a">GX2PrimitiveMode</a> mode,</div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  uint32_t numVertices,</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  uint32_t offset,</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  uint32_t numInstances);</div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <a class="code" href="group__gx2__draw.html#gada448aa4bef5f864b4468a4cbf8f2688">GX2DrawIndexedEx</a>(<a class="code" href="group__gx2__draw.html#ga759347839142a01bbb4c01112b437f7a">GX2PrimitiveMode</a> mode,</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  uint32_t numVertices,</div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <a class="code" href="group__gx2__draw.html#ga05cdb8739488621652b08674ff9cd2e4">GX2IndexType</a> indexType,</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordtype">void</span> *indices,</div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  uint32_t offset,</div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  uint32_t numInstances);</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <a class="code" href="group__gx2__draw.html#ga8eb94d40e9d568489a11e6656080f5b5">GX2SetPrimitiveRestartIndex</a>(uint32_t index);</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> }</div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div>
|
|
<div class="ttc" id="group__gx2__draw_html_gga05cdb8739488621652b08674ff9cd2e4a7ebd4e4ae358281c02f4a461781c0192"><div class="ttname"><a href="group__gx2__draw.html#gga05cdb8739488621652b08674ff9cd2e4a7ebd4e4ae358281c02f4a461781c0192">GX2_INDEX_TYPE_U32</a></div><div class="ttdef"><b>Definition:</b> <a href="draw_8h_source.html#l00027">draw.h:27</a></div></div>
|
|
<div class="ttc" id="group__gx2__draw_html_gga05cdb8739488621652b08674ff9cd2e4a0e27e2d53ecf375977d20064313fd93b"><div class="ttname"><a href="group__gx2__draw.html#gga05cdb8739488621652b08674ff9cd2e4a0e27e2d53ecf375977d20064313fd93b">GX2_INDEX_TYPE_U16_LE</a></div><div class="ttdef"><b>Definition:</b> <a href="draw_8h_source.html#l00024">draw.h:24</a></div></div>
|
|
<div class="ttc" id="group__gx2__draw_html_ga8eb94d40e9d568489a11e6656080f5b5"><div class="ttname"><a href="group__gx2__draw.html#ga8eb94d40e9d568489a11e6656080f5b5">GX2SetPrimitiveRestartIndex</a></div><div class="ttdeci">void GX2SetPrimitiveRestartIndex(uint32_t index)</div></div>
|
|
<div class="ttc" id="group__gx2__draw_html_ga759347839142a01bbb4c01112b437f7a"><div class="ttname"><a href="group__gx2__draw.html#ga759347839142a01bbb4c01112b437f7a">GX2PrimitiveMode</a></div><div class="ttdeci">GX2PrimitiveMode</div><div class="ttdef"><b>Definition:</b> <a href="draw_8h_source.html#l00014">draw.h:14</a></div></div>
|
|
<div class="ttc" id="group__gx2__draw_html_gga759347839142a01bbb4c01112b437f7aa180108b77727e46d694d1325bbc8d56a"><div class="ttname"><a href="group__gx2__draw.html#gga759347839142a01bbb4c01112b437f7aa180108b77727e46d694d1325bbc8d56a">GX2_PRIMITIVE_MODE_TRIANGLE_STRIP</a></div><div class="ttdef"><b>Definition:</b> <a href="draw_8h_source.html#l00017">draw.h:17</a></div></div>
|
|
<div class="ttc" id="group__gx2__draw_html_gga759347839142a01bbb4c01112b437f7aa9dbeef8ec5d13e36051cb89bb05cc6ce"><div class="ttname"><a href="group__gx2__draw.html#gga759347839142a01bbb4c01112b437f7aa9dbeef8ec5d13e36051cb89bb05cc6ce">GX2_PRIMITIVE_MODE_QUAD_STRIP</a></div><div class="ttdef"><b>Definition:</b> <a href="draw_8h_source.html#l00019">draw.h:19</a></div></div>
|
|
<div class="ttc" id="group__gx2__draw_html_gga05cdb8739488621652b08674ff9cd2e4abfd22dbfd5c99d680785cb6ca82b4990"><div class="ttname"><a href="group__gx2__draw.html#gga05cdb8739488621652b08674ff9cd2e4abfd22dbfd5c99d680785cb6ca82b4990">GX2_INDEX_TYPE_U32_LE</a></div><div class="ttdef"><b>Definition:</b> <a href="draw_8h_source.html#l00025">draw.h:25</a></div></div>
|
|
<div class="ttc" id="group__gx2__draw_html_ga05cdb8739488621652b08674ff9cd2e4"><div class="ttname"><a href="group__gx2__draw.html#ga05cdb8739488621652b08674ff9cd2e4">GX2IndexType</a></div><div class="ttdeci">GX2IndexType</div><div class="ttdef"><b>Definition:</b> <a href="draw_8h_source.html#l00022">draw.h:22</a></div></div>
|
|
<div class="ttc" id="group__gx2__draw_html_gac8eb066ce57bfeb74da1f80bb985c03a"><div class="ttname"><a href="group__gx2__draw.html#gac8eb066ce57bfeb74da1f80bb985c03a">GX2DrawEx</a></div><div class="ttdeci">void GX2DrawEx(GX2PrimitiveMode mode, uint32_t numVertices, uint32_t offset, uint32_t numInstances)</div></div>
|
|
<div class="ttc" id="group__gx2__draw_html_gga759347839142a01bbb4c01112b437f7aa856c4751543c93cb1da797152123a7e7"><div class="ttname"><a href="group__gx2__draw.html#gga759347839142a01bbb4c01112b437f7aa856c4751543c93cb1da797152123a7e7">GX2_PRIMITIVE_MODE_QUADS</a></div><div class="ttdef"><b>Definition:</b> <a href="draw_8h_source.html#l00018">draw.h:18</a></div></div>
|
|
<div class="ttc" id="group__gx2__draw_html_gada448aa4bef5f864b4468a4cbf8f2688"><div class="ttname"><a href="group__gx2__draw.html#gada448aa4bef5f864b4468a4cbf8f2688">GX2DrawIndexedEx</a></div><div class="ttdeci">void GX2DrawIndexedEx(GX2PrimitiveMode mode, uint32_t numVertices, GX2IndexType indexType, void *indices, uint32_t offset, uint32_t numInstances)</div></div>
|
|
<div class="ttc" id="wut_8h_html"><div class="ttname"><a href="wut_8h.html">wut.h</a></div></div>
|
|
<div class="ttc" id="group__gx2__draw_html_gga759347839142a01bbb4c01112b437f7aa8bbbd9cfc4cd6485ca5e6ae5eed99719"><div class="ttname"><a href="group__gx2__draw.html#gga759347839142a01bbb4c01112b437f7aa8bbbd9cfc4cd6485ca5e6ae5eed99719">GX2_PRIMITIVE_MODE_TRIANGLES</a></div><div class="ttdef"><b>Definition:</b> <a href="draw_8h_source.html#l00016">draw.h:16</a></div></div>
|
|
<div class="ttc" id="group__gx2__draw_html_ga0c09f787c7b765fdf4455771f20d60f3"><div class="ttname"><a href="group__gx2__draw.html#ga0c09f787c7b765fdf4455771f20d60f3">GX2SetAttribBuffer</a></div><div class="ttdeci">void GX2SetAttribBuffer(uint32_t index, uint32_t size, uint32_t stride, void *buffer)</div></div>
|
|
<div class="ttc" id="group__gx2__draw_html_gga05cdb8739488621652b08674ff9cd2e4af5e4728f4cfd27ef61af39d372e62ce4"><div class="ttname"><a href="group__gx2__draw.html#gga05cdb8739488621652b08674ff9cd2e4af5e4728f4cfd27ef61af39d372e62ce4">GX2_INDEX_TYPE_U16</a></div><div class="ttdef"><b>Definition:</b> <a href="draw_8h_source.html#l00026">draw.h:26</a></div></div>
|
|
</div><!-- fragment --></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.10
|
|
</small></address>
|
|
</body>
|
|
</html>
|