diff options
Diffstat (limited to 'docs/doxygen/nel/classNL3D_1_1CCoarseMeshManager.html')
-rw-r--r-- | docs/doxygen/nel/classNL3D_1_1CCoarseMeshManager.html | 800 |
1 files changed, 800 insertions, 0 deletions
diff --git a/docs/doxygen/nel/classNL3D_1_1CCoarseMeshManager.html b/docs/doxygen/nel/classNL3D_1_1CCoarseMeshManager.html new file mode 100644 index 00000000..736a4fe7 --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CCoarseMeshManager.html @@ -0,0 +1,800 @@ +<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<HTML> +<HEAD> + <TITLE>nevrax.org : docs</TITLE> + <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css"> + <link href="doxygen.css" rel="stylesheet" type="text/css"> +</HEAD> +<BODY MARGINHEIGHT="0" MARGINWIDTH="0"> + +<!-- uplinks --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD> + </TR> +</TABLE> + +<!-- banner Nevrax --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%> + <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR> +</TABLE> + +<!-- main table --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + + <!------ Begin Box ------> + <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black> + <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF> + <TABLE cellspacing=0 cellpadding=1 border=0> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr> + </TABLE> + </TD></TR></TABLE></TD></TR></TABLE> + <!------ End Box ------> + + </TD> + <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + +<!-- title --> +<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td> +<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A> +</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""> +</td></tr></table> + + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Documentation</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<!-- Generated by Doxygen 1.2.14 --> +<center> +<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> </center> +<hr><h1>NL3D::CCoarseMeshManager Class Reference</h1>Management of coarse meshes. +<a href="#_details">More...</a> +<p> +<code>#include <<a class="el" href="coarse__mesh__manager_8h-source.html">coarse_mesh_manager.h</a>></code> +<p> +<p>Inheritance diagram for NL3D::CCoarseMeshManager: +<p><center><img src="classNL3D_1_1CCoarseMeshManager.gif" usemap="#NL3D::CCoarseMeshManager_map" border="0"></center> +<map name="NL3D::CCoarseMeshManager_map"> +<area href="classNL3D_1_1CTransform.html" alt="NL3D::CTransform" shape="rect" coords="96,112,278,136"> +<area href="classNL3D_1_1IModel.html" alt="NL3D::IModel" shape="rect" coords="0,56,182,80"> +<area href="classNL3D_1_1ITransformable.html" alt="NL3D::ITransformable" shape="rect" coords="192,56,374,80"> +<area href="classNLMISC_1_1CRefCount.html" alt="NLMISC::CRefCount" shape="rect" coords="0,0,182,24"> +<area href="classNL3D_1_1IAnimatable.html" alt="NL3D::IAnimatable" shape="rect" coords="192,0,374,24"> +</map> +<a href="classNL3D_1_1CCoarseMeshManager-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> +<tr><td colspan=2><br><h2>Public Types</h2></td></tr> +<tr><td nowrap align=right valign=top>enum </td><td valign=bottom>{ <a class="el" href="classNL3D_1_1CCoarseMeshManager.html#s1s0">CantAddCoarseMesh</a> = 0xffffffff + }</td></tr> +<tr><td colspan=2><br><h2>Public Methods</h2></td></tr> +<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#a0">CCoarseMeshManager</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Constructor.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#a1">setTextureFile</a> (const char *<a class="el" href="cf__lexical_8cpp.html#a95">file</a>)</td></tr> +<tr><td> </td><td><font size=-1><em>Set texture file to use with this coarse mesh.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="memory__common_8h.html#a13">uint64</a> </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#a2">addMesh</a> (const <a class="el" href="classNL3D_1_1CMeshGeom.html">CMeshGeom</a> &geom)</td></tr> +<tr><td> </td><td><font size=-1><em>Add a coarse mesh in the manager.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#a3">removeMesh</a> (<a class="el" href="memory__common_8h.html#a13">uint64</a> <a class="el" href="driver__opengl__extension__def_8h.html#a356">id</a>)</td></tr> +<tr><td> </td><td><font size=-1><em>Remove a coarse mesh in the manager.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#a4">setMatrixMesh</a> (<a class="el" href="memory__common_8h.html#a13">uint64</a> <a class="el" href="driver__opengl__extension__def_8h.html#a356">id</a>, const <a class="el" href="classNL3D_1_1CMeshGeom.html">CMeshGeom</a> &geom, const CMatrix &<a class="el" href="driver__opengl__extension__def_8h.html#a370">matrix</a>)</td></tr> +<tr><td> </td><td><font size=-1><em>Set the matrix of a mesh.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#a5">setColorMesh</a> (<a class="el" href="memory__common_8h.html#a13">uint64</a> <a class="el" href="driver__opengl__extension__def_8h.html#a356">id</a>, const <a class="el" href="classNL3D_1_1CMeshGeom.html">CMeshGeom</a> &geom, <a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> color)</td></tr> +<tr><td> </td><td><font size=-1><em>Set color of a mesh.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#a6">render</a> (<a class="el" href="classNL3D_1_1IDriver.html">IDriver</a> *drv)</td></tr> +<tr><td> </td><td><font size=-1><em>Render the container.</em> <a href="#a6">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="classNL3D_1_1CMaterial.html">CMaterial</a> & </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#a7">getMaterial</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Get material of the container.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#d0">registerBasic</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Register class id.</em> <a href="#d0">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan=2><br><h2>Private Types</h2></td></tr> +<tr><td nowrap align=right valign=top>typedef std::map< <a class="el" href="memory__common_8h.html#a15">uint</a>, <a class="el" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html">CRenderPass</a> > </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#u0">TRenderingPassMap</a></td></tr> +<tr><td colspan=2><br><h2>Static Private Methods</h2></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="memory__common_8h.html#a13">uint64</a> </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#f0">buildId</a> (<a class="el" href="memory__common_8h.html#a11">uint32</a> renderPassId, <a class="el" href="memory__common_8h.html#a11">uint32</a> renderPassMeshId)</td></tr> +<tr><td> </td><td><font size=-1><em>Build a manager id.</em> <a href="#f0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="memory__common_8h.html#a11">uint32</a> </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#f1">getRenderPassId</a> (<a class="el" href="memory__common_8h.html#a13">uint64</a> <a class="el" href="driver__opengl__extension__def_8h.html#a356">id</a>)</td></tr> +<tr><td> </td><td><font size=-1><em>Get the render pass id.</em> <a href="#f1">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="memory__common_8h.html#a11">uint32</a> </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#f2">getRenderPassMeshId</a> (<a class="el" href="memory__common_8h.html#a13">uint64</a> <a class="el" href="driver__opengl__extension__def_8h.html#a356">id</a>)</td></tr> +<tr><td> </td><td><font size=-1><em>Get the render pass mesh id.</em> <a href="#f2">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="classNL3D_1_1IModel.html">IModel</a> * </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#f3">creator</a> ()</td></tr> +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#u0">TRenderingPassMap</a> </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#o0">_RenderPass</a></td></tr> +<tr><td nowrap align=right valign=top>CSmartPtr< <a class="el" href="classNL3D_1_1CTextureFile.html">CTextureFile</a> > </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#o1">_Texture</a></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="classNL3D_1_1CMaterial.html">CMaterial</a> </td><td valign=bottom><a class="el" href="classNL3D_1_1CCoarseMeshManager.html#o2">_Material</a></td></tr> +</table> +<hr><a name="_details"></a><h2>Detailed Description</h2> +Management of coarse meshes. +<p> +This container will render meshes with very low polygon count efficiently. +<p> +Coarse meshes are merged in render passes. They are inserted in the render pass depending there number of vertices, with a granularity (NL3D_COARSEMESH_VERTEXBUFFER_GRANULARITY). +<p> +If NL3D_COARSEMESH_VERTEXBUFFER_GRANULARITY is 8, all meshes with 1 to 7 vertices will be rendered at the same time using the same vertex buffer, the same material and the same matrix. Then, meshes with 8 to 15 vertices will be rendered at the same time. etc.. +<p> +Vertices are softly transformed in world space at the "setMatrixMesh" call. +<p> +Vertices get a uniform color per instance at the "setColorMesh" call. +<p> +All coarse meshes must use a common vertex format. It is a pos + UV vertex format. (NL3D_COARSEMESH_VERTEX_FORMAT_EXPORT) +<p> +Internally the <a class="el" href="classNL3D_1_1CCoarseMeshManager.html">CCoarseMeshManager</a> store meshes with pos + UV + color vertex format, to color instances (NL3D_COARSEMESH_VERTEX_FORMAT_MGR) +<p> +Coarse meshes must use indexed triangle primitive in a single render pass in a single matrix block. +<p> +All coarse meshes musts use a single material. It is a simple mapping with alpha test rendering and a common texture. +<p> +The coarse meshes must have been preprocessed to build the common texture and remap the UV mapping coordinates in the new common texture. +<p> +The manager must have been setuped with the common texture. +<p> +NB: the manager is not renderable, because CoarseMeshManager must be rendered at end of frame in a direct call by <a class="el" href="classNL3D_1_1CRenderTrav.html#z745_3">CRenderTrav::traverse</a>(), after coarse mesh instances added/removed in +<p> +<dl compact><dt><b> +Author: </b><dd> +Cyril 'Hulud' Corvazier , Nevrax France </dl><dl compact><dt><b> +Date: </b><dd> +2001 </dl> +<p> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8h-source.html#l00103">103</a> of file <a class="el" href="coarse__mesh__manager_8h-source.html">coarse_mesh_manager.h</a>.<hr><h2>Member Typedef Documentation</h2> +<a name="u0" doxytag="NL3D::CCoarseMeshManager::TRenderingPassMap"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> typedef std::map< <a class="el" href="memory__common_8h.html#a15">uint</a>, <a class="el" href="classNL3D_1_1CCoarseMeshManager_1_1CRenderPass.html">CRenderPass</a> > NL3D::CCoarseMeshManager::TRenderingPassMap<code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8h-source.html#l00309">309</a> of file <a class="el" href="coarse__mesh__manager_8h-source.html">coarse_mesh_manager.h</a>. </td> + </tr> +</table> +<hr><h2>Member Enumeration Documentation</h2> +<a name="s1" doxytag="NL3D::CCoarseMeshManager::@29"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> anonymous enum + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<dl compact><dt><b> +Enumeration values:</b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em><a name="s1s0" doxytag="CantAddCoarseMesh"></a><em>CantAddCoarseMesh</em></em> </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8h-source.html#l00107">107</a> of file <a class="el" href="coarse__mesh__manager_8h-source.html">coarse_mesh_manager.h</a>. </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a name="a0" doxytag="NL3D::CCoarseMeshManager::CCoarseMeshManager"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NL3D::CCoarseMeshManager::CCoarseMeshManager </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Constructor. +<p> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00053">53</a> of file <a class="el" href="coarse__mesh__manager_8cpp-source.html">coarse_mesh_manager.cpp</a>. +<p> +References <a class="el" href="coarse__mesh__manager_8h-source.html#l00316">_Material</a>, <a class="el" href="coarse__mesh__manager_8h-source.html#l00313">_Texture</a>, <a class="el" href="transform_8h-source.html#l00114">NL3D::CTransform::setOpacity</a>, and <a class="el" href="transform_8h-source.html#l00113">NL3D::CTransform::setTransparency</a>. +<p> +Referenced by <a class="el" href="coarse__mesh__manager_8h-source.html#l00318">creator</a>. </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a name="a2" doxytag="NL3D::CCoarseMeshManager::addMesh"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="memory__common_8h.html#a13">uint64</a> NL3D::CCoarseMeshManager::addMesh </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="classNL3D_1_1CMeshGeom.html">CMeshGeom</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>geom</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Add a coarse mesh in the manager. +<p> +If an error occured, it returns CantAddCoarseMesh. Error can be too much vertex, wrong vertex format. +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00087">87</a> of file <a class="el" href="coarse__mesh__manager_8cpp-source.html">coarse_mesh_manager.cpp</a>. +<p> +References <a class="el" href="coarse__mesh__manager_8h-source.html#l00310">_RenderPass</a>, <a class="el" href="coarse__mesh__manager_8h-source.html#l00159">buildId</a>, <a class="el" href="classNL3D_1_1CCoarseMeshManager.html#s1s0">CantAddCoarseMesh</a>, <a class="el" href="hierarchical__timer_8h-source.html#l00062">H_AUTO_USE</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00218">id</a>, <a class="el" href="coarse__mesh__manager_8h-source.html#l00044">NL3D_COARSEMESH_VERTEXBUFFER_GRANULARITY</a>, and <a class="el" href="coarse__mesh__manager_8h-source.html#l00043">NL3D_COARSEMESH_VERTEXBUFFER_GRANULARITY_MASK</a>. </td> + </tr> +</table> +<a name="f0" doxytag="NL3D::CCoarseMeshManager::buildId"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="memory__common_8h.html#a13">uint64</a> NL3D::CCoarseMeshManager::buildId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>renderPassId</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="memory__common_8h.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>renderPassMeshId</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, static, private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Build a manager id. +<p> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8h-source.html#l00159">159</a> of file <a class="el" href="coarse__mesh__manager_8h-source.html">coarse_mesh_manager.h</a>. +<p> +Referenced by <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00087">addMesh</a>. </td> + </tr> +</table> +<a name="f3" doxytag="NL3D::CCoarseMeshManager::creator"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="classNL3D_1_1IModel.html">IModel</a>* NL3D::CCoarseMeshManager::creator </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline, static, private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented from <a class="el" href="classNL3D_1_1CTransform.html#f0">NL3D::CTransform</a>. +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8h-source.html#l00318">318</a> of file <a class="el" href="coarse__mesh__manager_8h-source.html">coarse_mesh_manager.h</a>. +<p> +References <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00053">CCoarseMeshManager</a>, and <a class="el" href="mot_8cpp-source.html#l00464">NL3D::IModel::IModel</a>. </td> + </tr> +</table> +<a name="a7" doxytag="NL3D::CCoarseMeshManager::getMaterial"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="classNL3D_1_1CMaterial.html">CMaterial</a>& NL3D::CCoarseMeshManager::getMaterial </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get material of the container. +<p> +For rendering purpose only. +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8h-source.html#l00152">152</a> of file <a class="el" href="coarse__mesh__manager_8h-source.html">coarse_mesh_manager.h</a>. +<p> +References <a class="el" href="coarse__mesh__manager_8h-source.html#l00316">_Material</a>. </td> + </tr> +</table> +<a name="f1" doxytag="NL3D::CCoarseMeshManager::getRenderPassId"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="memory__common_8h.html#a11">uint32</a> NL3D::CCoarseMeshManager::getRenderPassId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a13">uint64</a> </td> + <td class="mdname1" valign="top" nowrap> <em>id</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline, static, private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the render pass id. +<p> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8h-source.html#l00167">167</a> of file <a class="el" href="coarse__mesh__manager_8h-source.html">coarse_mesh_manager.h</a>. +<p> +References <a class="el" href="driver__opengl__extension__def_8h-source.html#l00218">id</a>. +<p> +Referenced by <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00124">removeMesh</a>, <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00162">setColorMesh</a>, and <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00143">setMatrixMesh</a>. </td> + </tr> +</table> +<a name="f2" doxytag="NL3D::CCoarseMeshManager::getRenderPassMeshId"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="memory__common_8h.html#a11">uint32</a> NL3D::CCoarseMeshManager::getRenderPassMeshId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a13">uint64</a> </td> + <td class="mdname1" valign="top" nowrap> <em>id</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline, static, private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the render pass mesh id. +<p> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8h-source.html#l00175">175</a> of file <a class="el" href="coarse__mesh__manager_8h-source.html">coarse_mesh_manager.h</a>. +<p> +References <a class="el" href="driver__opengl__extension__def_8h-source.html#l00218">id</a>. +<p> +Referenced by <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00124">removeMesh</a>, <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00162">setColorMesh</a>, and <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00143">setMatrixMesh</a>. </td> + </tr> +</table> +<a name="d0" doxytag="NL3D::CCoarseMeshManager::registerBasic"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CCoarseMeshManager::registerBasic </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Register class id. +<p> + +<p> +Reimplemented from <a class="el" href="classNL3D_1_1CTransform.html#d0">NL3D::CTransform</a>. +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00045">45</a> of file <a class="el" href="coarse__mesh__manager_8cpp-source.html">coarse_mesh_manager.cpp</a>. +<p> +References <a class="el" href="clip__trav_8h-source.html#l00070">NL3D::ClipTravId</a>, <a class="el" href="coarse__mesh__manager_8h-source.html#l00060">NL3D::CoarseMeshManagerId</a>, and <a class="el" href="transform_8h-source.html#l00075">NL3D::TransformId</a>. </td> + </tr> +</table> +<a name="a3" doxytag="NL3D::CCoarseMeshManager::removeMesh"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CCoarseMeshManager::removeMesh </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a13">uint64</a> </td> + <td class="mdname1" valign="top" nowrap> <em>id</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Remove a coarse mesh in the manager. +<p> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00124">124</a> of file <a class="el" href="coarse__mesh__manager_8cpp-source.html">coarse_mesh_manager.cpp</a>. +<p> +References <a class="el" href="coarse__mesh__manager_8h-source.html#l00310">_RenderPass</a>, <a class="el" href="coarse__mesh__manager_8h-source.html#l00167">getRenderPassId</a>, <a class="el" href="coarse__mesh__manager_8h-source.html#l00175">getRenderPassMeshId</a>, <a class="el" href="hierarchical__timer_8h-source.html#l00062">H_AUTO_USE</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00218">id</a>, and <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. </td> + </tr> +</table> +<a name="a6" doxytag="NL3D::CCoarseMeshManager::render"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CCoarseMeshManager::render </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="classNL3D_1_1IDriver.html">IDriver</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>drv</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Render the container. +<p> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00181">181</a> of file <a class="el" href="coarse__mesh__manager_8cpp-source.html">coarse_mesh_manager.cpp</a>. +<p> +References <a class="el" href="coarse__mesh__manager_8h-source.html#l00316">_Material</a>, <a class="el" href="coarse__mesh__manager_8h-source.html#l00310">_RenderPass</a>, and <a class="el" href="hierarchical__timer_8h-source.html#l00054">H_AUTO</a>. </td> + </tr> +</table> +<a name="a5" doxytag="NL3D::CCoarseMeshManager::setColorMesh"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CCoarseMeshManager::setColorMesh </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a13">uint64</a> </td> + <td class="mdname" nowrap> <em>id</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNL3D_1_1CMeshGeom.html">CMeshGeom</a> & </td> + <td class="mdname" nowrap> <em>geom</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> </td> + <td class="mdname" nowrap> <em>color</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set color of a mesh. +<p> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00162">162</a> of file <a class="el" href="coarse__mesh__manager_8cpp-source.html">coarse_mesh_manager.cpp</a>. +<p> +References <a class="el" href="coarse__mesh__manager_8h-source.html#l00310">_RenderPass</a>, <a class="el" href="coarse__mesh__manager_8h-source.html#l00167">getRenderPassId</a>, <a class="el" href="coarse__mesh__manager_8h-source.html#l00175">getRenderPassMeshId</a>, <a class="el" href="hierarchical__timer_8h-source.html#l00062">H_AUTO_USE</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00218">id</a>, and <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. </td> + </tr> +</table> +<a name="a4" doxytag="NL3D::CCoarseMeshManager::setMatrixMesh"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CCoarseMeshManager::setMatrixMesh </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="memory__common_8h.html#a13">uint64</a> </td> + <td class="mdname" nowrap> <em>id</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="classNL3D_1_1CMeshGeom.html">CMeshGeom</a> & </td> + <td class="mdname" nowrap> <em>geom</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const CMatrix & </td> + <td class="mdname" nowrap> <em>matrix</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the matrix of a mesh. +<p> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00143">143</a> of file <a class="el" href="coarse__mesh__manager_8cpp-source.html">coarse_mesh_manager.cpp</a>. +<p> +References <a class="el" href="coarse__mesh__manager_8h-source.html#l00310">_RenderPass</a>, <a class="el" href="coarse__mesh__manager_8h-source.html#l00167">getRenderPassId</a>, <a class="el" href="coarse__mesh__manager_8h-source.html#l00175">getRenderPassMeshId</a>, <a class="el" href="hierarchical__timer_8h-source.html#l00062">H_AUTO_USE</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00218">id</a>, <a class="el" href="driver__opengl__extension__def_8h-source.html#l00240">matrix</a>, and <a class="el" href="debug_8h-source.html#l00254">nlassert</a>. </td> + </tr> +</table> +<a name="a1" doxytag="NL3D::CCoarseMeshManager::setTextureFile"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CCoarseMeshManager::setTextureFile </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>file</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set texture file to use with this coarse mesh. +<p> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00080">80</a> of file <a class="el" href="coarse__mesh__manager_8cpp-source.html">coarse_mesh_manager.cpp</a>. +<p> +References <a class="el" href="coarse__mesh__manager_8h-source.html#l00313">_Texture</a>, and <a class="el" href="cf__lexical_8cpp-source.html#l02654">file</a>. </td> + </tr> +</table> +<hr><h2>Member Data Documentation</h2> +<a name="o2" doxytag="NL3D::CCoarseMeshManager::_Material"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="classNL3D_1_1CMaterial.html">CMaterial</a> NL3D::CCoarseMeshManager::_Material<code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8h-source.html#l00316">316</a> of file <a class="el" href="coarse__mesh__manager_8h-source.html">coarse_mesh_manager.h</a>. +<p> +Referenced by <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00053">CCoarseMeshManager</a>, <a class="el" href="coarse__mesh__manager_8h-source.html#l00152">getMaterial</a>, and <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00181">render</a>. </td> + </tr> +</table> +<a name="o0" doxytag="NL3D::CCoarseMeshManager::_RenderPass"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="classNL3D_1_1CCoarseMeshManager.html#u0">TRenderingPassMap</a> NL3D::CCoarseMeshManager::_RenderPass<code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8h-source.html#l00310">310</a> of file <a class="el" href="coarse__mesh__manager_8h-source.html">coarse_mesh_manager.h</a>. +<p> +Referenced by <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00087">addMesh</a>, <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00124">removeMesh</a>, <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00181">render</a>, <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00162">setColorMesh</a>, and <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00143">setMatrixMesh</a>. </td> + </tr> +</table> +<a name="o1" doxytag="NL3D::CCoarseMeshManager::_Texture"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> CSmartPtr<<a class="el" href="classNL3D_1_1CTextureFile.html">CTextureFile</a>> NL3D::CCoarseMeshManager::_Texture<code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="coarse__mesh__manager_8h-source.html#l00313">313</a> of file <a class="el" href="coarse__mesh__manager_8h-source.html">coarse_mesh_manager.h</a>. +<p> +Referenced by <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00053">CCoarseMeshManager</a>, and <a class="el" href="coarse__mesh__manager_8cpp-source.html#l00080">setTextureFile</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="coarse__mesh__manager_8h-source.html">coarse_mesh_manager.h</a><li><a class="el" href="coarse__mesh__manager_8cpp-source.html">coarse_mesh_manager.cpp</a></ul> + + +<!-- footer --> +<BR><FONT Size=+5> </FONT> +</TD> +<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD> +</TR> +</TABLE> +</BODY> +</HTML> |