Mercurial > hg > Members > kono > Cerium
view Document/document/html/Tapestry_8h-source.html @ 290:82219f78083a
doxygen
author | e065746@localhost.localdomain |
---|---|
date | Fri, 05 Jun 2009 18:05:46 +0900 |
parents | 87f76ea9c445 |
children | 3569d31705b6 |
line wrap: on
line source
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Cerium: Tapestry.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.7.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> </ul> </div> <h1>Tapestry.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef INCLUDED_TAPESTRY</span> <a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define INCLUDED_TAPESTRY</span> <a name="l00003"></a>00003 <span class="preprocessor"></span> <a name="l00004"></a>00004 <span class="preprocessor">#ifndef INCLUDED_TYPES</span> <a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor"># include "types.h"</span> <a name="l00006"></a>00006 <span class="preprocessor">#endif</span> <a name="l00007"></a>00007 <span class="preprocessor"></span> <a name="l00008"></a>00008 <span class="preprocessor">#ifndef INCLUDED_VIEWER_TYPES</span> <a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor"># include "viewer_types.h"</span> <a name="l00010"></a>00010 <span class="preprocessor">#endif</span> <a name="l00011"></a>00011 <span class="preprocessor"></span> <a name="l00073"></a><a class="code" href="structtexture__block.html">00073</a> <span class="keyword">struct </span><a class="code" href="structtexture__block.html">texture_block</a> { <a name="l00074"></a>00074 <a name="l00075"></a>00075 }; <a name="l00076"></a>00076 <a name="l00077"></a>00077 <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00078"></a>00078 uint32 pixel[TEXTURE_BLOCK_SIZE]; <span class="comment">// 8*8</span> <a name="l00079"></a>00079 uint32 *texture_addr; <a name="l00080"></a>00080 <span class="keywordtype">int</span> pad[3]; <a name="l00081"></a>00081 } Tile, *TilePtr; <a name="l00082"></a>00082 <a name="l00083"></a>00083 <span class="preprocessor">#define MAX_TILE 128</span> <a name="l00084"></a>00084 <span class="preprocessor"></span> <a name="l00088"></a><a class="code" href="classTileList.html">00088</a> <span class="keyword">class </span><a class="code" href="classTileList.html">TileList</a> { <a name="l00089"></a>00089 <span class="keyword">public</span>: <a name="l00090"></a>00090 <span class="keywordtype">int</span> curIndex; <a name="l00091"></a>00091 <span class="keywordtype">int</span> pad[3]; <a name="l00092"></a>00092 Tile tile[MAX_TILE]; <a name="l00093"></a>00093 <a name="l00094"></a>00094 <a class="code" href="classTileList.html">TileList</a>(<span class="keywordtype">void</span>) { <a name="l00095"></a>00095 curIndex = 0; <a name="l00096"></a>00096 } <a name="l00097"></a>00097 <a name="l00106"></a><a class="code" href="classTileList.html#e74c2d4e781fdde223961c00d75a791c">00106</a> TilePtr <a class="code" href="classTileList.html#e74c2d4e781fdde223961c00d75a791c">nextTile</a>(<span class="keywordtype">void</span>) { <a name="l00107"></a>00107 TilePtr t = &tile[curIndex]; <a name="l00108"></a>00108 curIndex = (curIndex + 1) % MAX_TILE; <a name="l00109"></a>00109 <span class="keywordflow">return</span> t; <a name="l00110"></a>00110 } <a name="l00111"></a>00111 <a name="l00117"></a><a class="code" href="classTileList.html#81f144e0c87ba9a92c8e4a10990caeb5">00117</a> <span class="keywordtype">void</span> <a class="code" href="classTileList.html#81f144e0c87ba9a92c8e4a10990caeb5">clear</a>(<span class="keywordtype">void</span>) { <a name="l00118"></a>00118 curIndex = 0; <a name="l00119"></a>00119 } <a name="l00120"></a>00120 }; <a name="l00121"></a>00121 <a name="l00122"></a>00122 <span class="keyword">typedef</span> <a class="code" href="classTileList.html">TileList</a>* <a class="code" href="classTileList.html">TileListPtr</a>; <a name="l00123"></a>00123 <a name="l00124"></a>00124 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 5 18:05:15 2009 for Cerium by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.7.1 </small></address> </body> </html>