Mercurial > hg > Game > Cerium
view Document/document/html/structtexture__block.html @ 291:d7803cea25a3 draft
document
author | kono@localhost.localdomain |
---|---|
date | Fri, 05 Jun 2009 18:16:31 +0900 |
parents | d5c479b69b46 |
children |
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: texture_block Struct Reference</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 class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>texture_block Struct Reference</h1><!-- doxytag: class="texture_block" --><code>#include <<a class="el" href="Tapestry_8h-source.html">Tapestry.h</a>></code> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> image file name と tapestry DB の binary tree<p> // PPE main memory の tapestry DB (Array) tapestry DB への accessor<p> TapestryPtr getTapestry(int TapestryID); TilePtr getTile(TapestryPtr tapsetry, int tx, int ty, int scale);<p> SPE が生成する tapestry List (in CreateSpan) (no texture image) TapestryDBPtr, Tapestry ID, x, y, tx, ty, px, py x, y : polygon の中の平面座標 tx, ty : texture の座標 px, py : texture の分割数<p> (TilePtr, tix1, tiy1, tix2, tiy2)*<p> SPE に渡す tapestry List Tile<p> // SPE SPE 内部での tapestry DB (Hash) TapestryID, scale, TilePtr, Tile<p> SPE 内部での tapestry DB への accessor TileEntryPtr getTile(int TapestryID, int tx, int ty, int scale);<p> if (TileEntry == NULL) { DMA read }<p> Rendering 1pass Zbuffer と Texture の有無の判定 if (zbuffer ok) { if (texture ある) { zbuffer 、linebunf に書き込む } else { texture の load list に加える zbuffer だけ更新しておく } } else { 無視 }<p> 1pass で texture が一杯になったら、中断して ここまでのを書き込んどけ<p> 2pass rgb の書き込み<p> if (zbuffer の値が自分と一緒) { read した texture みて 書き込め! } <p>Definition at line <a class="el" href="Tapestry_8h-source.html#l00073">73</a> of file <a class="el" href="Tapestry_8h-source.html">Tapestry.h</a>.</p> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="Tapestry_8h-source.html">Tapestry.h</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Fri Jun 5 18:14:06 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>