<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Crystal Space 1.2.1: csCoreRenderMesh Struct Reference (Crystal Space 1.2.1 Public API Reference)</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head"> <tr height="59"> <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td> <td class="head"><h2>Public API Reference</h2></td> </tr> <tr height="11"> <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td> </tr> </table> <div class="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <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> <h1>csCoreRenderMesh Struct Reference<br> <small> [<a class="el" href="group__gfx3d.html">3D</a>]</small> </h1><!-- doxytag: class="csCoreRenderMesh" -->Data required by the renderer to draw a mesh. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="rendermesh_8h-source.html">ivideo/rendermesh.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for csCoreRenderMesh:</div> <div class="dynsection"> <p><center><img src="structcsCoreRenderMesh__inherit__graph.png" border="0" usemap="#csCoreRenderMesh__inherit__map" alt="Inheritance graph"></center> <map name="csCoreRenderMesh__inherit__map"> <area shape="rect" href="structcsRenderMesh.html" title="Mesh data as returned by mesh plugins." alt="" coords="21,84,136,111"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="structcsCoreRenderMesh-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bf3ce4bcd61b83f618294ec043399190"></a><!-- doxytag: member="csCoreRenderMesh::csCoreRenderMesh" ref="bf3ce4bcd61b83f618294ec043399190" args="()" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCoreRenderMesh.html#bf3ce4bcd61b83f618294ec043399190">csCoreRenderMesh</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="470e5056f7cc5343b11e4e1689133233"></a><!-- doxytag: member="csCoreRenderMesh::~csCoreRenderMesh" ref="470e5056f7cc5343b11e4e1689133233" args="()" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCoreRenderMesh.html#470e5056f7cc5343b11e4e1689133233">~csCoreRenderMesh</a> ()</td></tr> <tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCoreRenderMesh.html#3c35f6d5e8d5da5a832374ddd03714d7">clip_plane</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Clipping parameter. <a href="#3c35f6d5e8d5da5a832374ddd03714d7"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCoreRenderMesh.html#afa7c7b1d36da72e6bf573f82452fbb3">clip_portal</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Clipping parameter. <a href="#afa7c7b1d36da72e6bf573f82452fbb3"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCoreRenderMesh.html#e2e0fc17635f046dff994b06122906d3">clip_z_plane</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Clipping parameter. <a href="#e2e0fc17635f046dff994b06122906d3"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCoreRenderMesh.html#ffb991132d48d8d860a372989ea385b9">db_mesh_name</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">To make debugging easier we add the name of the mesh object here in debug mode. <a href="#ffb991132d48d8d860a372989ea385b9"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCoreRenderMesh.html#91b1e6a5c386d7dde3ac02f3bab9a8e2">do_mirror</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Mirror mode - whether the mesh should be mirrored. <a href="#91b1e6a5c386d7dde3ac02f3bab9a8e2"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structiMaterialWrapper.html">iMaterialWrapper</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCoreRenderMesh.html#e9b1eeff54033825df54436192070703">material</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Material used for this mesh. <a href="#e9b1eeff54033825df54436192070703"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="graph3d_8h.html#df2df8d75f18c8ea2351b8e2c8180420">csRenderMeshType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCoreRenderMesh.html#17a9a2deb7ff1dde7350968b4e61a5bf">meshtype</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Mesh type. <a href="#17a9a2deb7ff1dde7350968b4e61a5bf"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcsReversibleTransform.html">csReversibleTransform</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCoreRenderMesh.html#82a54b280a1146694a458c0b4ac16fa7">object2world</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Transform object space -> world space. <a href="#82a54b280a1146694a458c0b4ac16fa7"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="299ff12f55436838afdae35f62f9de3c"></a><!-- doxytag: member="csCoreRenderMesh::indexend" ref="299ff12f55436838afdae35f62f9de3c" args="" --> unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCoreRenderMesh.html#299ff12f55436838afdae35f62f9de3c">indexend</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="structcsCoreRenderMesh.html#240ba4344d046f8af60869d1acc3fef8">indexstart</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Start and end of the range of indices to use. <a href="#240ba4344d046f8af60869d1acc3fef8"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Data required by the renderer to draw a mesh. <p>Definition at line <a class="el" href="rendermesh_8h-source.html#l00077">77</a> of file <a class="el" href="rendermesh_8h-source.html">rendermesh.h</a>.</p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="3c35f6d5e8d5da5a832374ddd03714d7"></a><!-- doxytag: member="csCoreRenderMesh::clip_plane" ref="3c35f6d5e8d5da5a832374ddd03714d7" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="structcsCoreRenderMesh.html#3c35f6d5e8d5da5a832374ddd03714d7">csCoreRenderMesh::clip_plane</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Clipping parameter. <p> <p>Definition at line <a class="el" href="rendermesh_8h-source.html#l00101">101</a> of file <a class="el" href="rendermesh_8h-source.html">rendermesh.h</a>.</p> <p>Referenced by <a class="el" href="rendermesh_8h-source.html#l00085">csCoreRenderMesh()</a>.</p> </div> </div><p> <a class="anchor" name="afa7c7b1d36da72e6bf573f82452fbb3"></a><!-- doxytag: member="csCoreRenderMesh::clip_portal" ref="afa7c7b1d36da72e6bf573f82452fbb3" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="structcsCoreRenderMesh.html#afa7c7b1d36da72e6bf573f82452fbb3">csCoreRenderMesh::clip_portal</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Clipping parameter. <p> <p>Definition at line <a class="el" href="rendermesh_8h-source.html#l00098">98</a> of file <a class="el" href="rendermesh_8h-source.html">rendermesh.h</a>.</p> <p>Referenced by <a class="el" href="rendermesh_8h-source.html#l00085">csCoreRenderMesh()</a>.</p> </div> </div><p> <a class="anchor" name="e2e0fc17635f046dff994b06122906d3"></a><!-- doxytag: member="csCoreRenderMesh::clip_z_plane" ref="e2e0fc17635f046dff994b06122906d3" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="structcsCoreRenderMesh.html#e2e0fc17635f046dff994b06122906d3">csCoreRenderMesh::clip_z_plane</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Clipping parameter. <p> <p>Definition at line <a class="el" href="rendermesh_8h-source.html#l00104">104</a> of file <a class="el" href="rendermesh_8h-source.html">rendermesh.h</a>.</p> <p>Referenced by <a class="el" href="rendermesh_8h-source.html#l00085">csCoreRenderMesh()</a>.</p> </div> </div><p> <a class="anchor" name="ffb991132d48d8d860a372989ea385b9"></a><!-- doxytag: member="csCoreRenderMesh::db_mesh_name" ref="ffb991132d48d8d860a372989ea385b9" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const char* <a class="el" href="structcsCoreRenderMesh.html#ffb991132d48d8d860a372989ea385b9">csCoreRenderMesh::db_mesh_name</a> </td> </tr> </table> </div> <div class="memdoc"> <p> To make debugging easier we add the name of the mesh object here in debug mode. <p> <p>Definition at line <a class="el" href="rendermesh_8h-source.html#l00083">83</a> of file <a class="el" href="rendermesh_8h-source.html">rendermesh.h</a>.</p> <p>Referenced by <a class="el" href="rendermesh_8h-source.html#l00085">csCoreRenderMesh()</a>.</p> </div> </div><p> <a class="anchor" name="91b1e6a5c386d7dde3ac02f3bab9a8e2"></a><!-- doxytag: member="csCoreRenderMesh::do_mirror" ref="91b1e6a5c386d7dde3ac02f3bab9a8e2" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool <a class="el" href="structcsCoreRenderMesh.html#91b1e6a5c386d7dde3ac02f3bab9a8e2">csCoreRenderMesh::do_mirror</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Mirror mode - whether the mesh should be mirrored. <p> Essentially toggles between back- and front-face culling. It should be set to <code>true</code> if <em>object2camera</em> contains a negative scaling. Basically, in almost any case it should be set to the camera's mirror mode.<p> <div class="fragment"><pre class="fragment"> <a class="code" href="structiCamera.html" title="Camera class.">iCamera</a>* camera; <a class="code" href="structcsRenderMesh.html" title="Mesh data as returned by mesh plugins.">csRenderMesh</a> myMesh; ... myMesh.object2camera = camera-><a class="code" href="structiCamera.html#39c734c8b8ed6fe791adc9305f4f20e9" title="Get the transform corresponding to this camera.">GetTransform</a> () / movable->GetFullTransform (); myMesh.<a class="code" href="structcsCoreRenderMesh.html#91b1e6a5c386d7dde3ac02f3bab9a8e2" title="Mirror mode - whether the mesh should be mirrored.">do_mirror</a> = camera-><a class="code" href="structiCamera.html#19105d5e760e20e0dfeec7cd7916ab67" title="Return true if space is mirrored.">IsMirrored</a> (); </pre></div> <p>Definition at line <a class="el" href="rendermesh_8h-source.html#l00122">122</a> of file <a class="el" href="rendermesh_8h-source.html">rendermesh.h</a>.</p> <p>Referenced by <a class="el" href="rendermesh_8h-source.html#l00085">csCoreRenderMesh()</a>.</p> </div> </div><p> <a class="anchor" name="240ba4344d046f8af60869d1acc3fef8"></a><!-- doxytag: member="csCoreRenderMesh::indexstart" ref="240ba4344d046f8af60869d1acc3fef8" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned int <a class="el" href="structcsCoreRenderMesh.html#240ba4344d046f8af60869d1acc3fef8">csCoreRenderMesh::indexstart</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Start and end of the range of indices to use. <p> The indices are used in the range from <em>indexstart</em> (inclusive) to <em>indexend</em> (exclusive): indexstart <= n < indexend <p>Definition at line <a class="el" href="rendermesh_8h-source.html#l00133">133</a> of file <a class="el" href="rendermesh_8h-source.html">rendermesh.h</a>.</p> <p>Referenced by <a class="el" href="rendermesh_8h-source.html#l00085">csCoreRenderMesh()</a>.</p> </div> </div><p> <a class="anchor" name="e9b1eeff54033825df54436192070703"></a><!-- doxytag: member="csCoreRenderMesh::material" ref="e9b1eeff54033825df54436192070703" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structiMaterialWrapper.html">iMaterialWrapper</a>* <a class="el" href="structcsCoreRenderMesh.html#e9b1eeff54033825df54436192070703">csCoreRenderMesh::material</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Material used for this mesh. <p> Used for e.g. sorting by material. <p>Definition at line <a class="el" href="rendermesh_8h-source.html#l00141">141</a> of file <a class="el" href="rendermesh_8h-source.html">rendermesh.h</a>.</p> </div> </div><p> <a class="anchor" name="17a9a2deb7ff1dde7350968b4e61a5bf"></a><!-- doxytag: member="csCoreRenderMesh::meshtype" ref="17a9a2deb7ff1dde7350968b4e61a5bf" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="graph3d_8h.html#df2df8d75f18c8ea2351b8e2c8180420">csRenderMeshType</a> <a class="el" href="structcsCoreRenderMesh.html#17a9a2deb7ff1dde7350968b4e61a5bf">csCoreRenderMesh::meshtype</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Mesh type. <p> <p>Definition at line <a class="el" href="rendermesh_8h-source.html#l00125">125</a> of file <a class="el" href="rendermesh_8h-source.html">rendermesh.h</a>.</p> </div> </div><p> <a class="anchor" name="82a54b280a1146694a458c0b4ac16fa7"></a><!-- doxytag: member="csCoreRenderMesh::object2world" ref="82a54b280a1146694a458c0b4ac16fa7" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcsReversibleTransform.html">csReversibleTransform</a> <a class="el" href="structcsCoreRenderMesh.html#82a54b280a1146694a458c0b4ac16fa7">csCoreRenderMesh::object2world</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Transform object space -> world space. <p> <dl class="remark" compact><dt><b>Remarks:</b></dt><dd>'this' space is object space, 'other' space is world space </dd></dl> <p>Definition at line <a class="el" href="rendermesh_8h-source.html#l00147">147</a> of file <a class="el" href="rendermesh_8h-source.html">rendermesh.h</a>.</p> </div> </div><p> <hr>The documentation for this struct was generated from the following file:<ul> <li>ivideo/<a class="el" href="rendermesh_8h-source.html">rendermesh.h</a></ul> <hr size="1"><address><small>Generated for Crystal Space 1.2.1 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 </small></address> </div></body> </html>