diff options
Diffstat (limited to 'docs/doxygen/nel/a02904.html')
-rw-r--r-- | docs/doxygen/nel/a02904.html | 509 |
1 files changed, 509 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02904.html b/docs/doxygen/nel/a02904.html new file mode 100644 index 00000000..3d7e273f --- /dev/null +++ b/docs/doxygen/nel/a02904.html @@ -0,0 +1,509 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>NeL: NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.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">Data Structures</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">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer Class Reference</h1><code>#include <<a class="el" href="a06012.html">mesh_mrm_skinned.h</a>></code> +<p> +<hr><a name="_details"></a><h2>Detailed Description</h2> +The packed vertex buffer. +<p> + +<p> +Definition at line <a class="el" href="a06012.html#l00423">423</a> of file <a class="el" href="a06012.html">mesh_mrm_skinned.h</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>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera0">build</a> (const <a class="el" href="a03692.html">CVertexBuffer</a> &<a class="el" href="a04223.html#a589">buffer</a>, const std::vector< <a class="el" href="a02865.html">CMesh::CSkinWeight</a> > &skinWeight)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera1">clear</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera2">contReset</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera3">getNumVertices</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02905.html">CPackedVertex</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera4">getPackedVertices</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02905.html">CPackedVertex</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera5">getPackedVertices</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera6">getPos</a> (<a class="el" href="a03128.html">CVector</a> &dest, const <a class="el" href="a02905.html">CPackedVertex</a> &<a class="el" href="a04223.html#a652">src</a>) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera7">serial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &f)</td></tr> + +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>float </td><td class="memItemRight" valign=bottom><a class="el" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr0">_DecompactScale</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Decompact position values. <a href="#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="a02905.html">CPackedVertex</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr1">_PackedBuffer</a></td></tr> + +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera0" doxytag="NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::build" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::build </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03692.html">CVertexBuffer</a> & </td> + <td class="mdname" nowrap> <em>buffer</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const std::vector< <a class="el" href="a02865.html">CMesh::CSkinWeight</a> > & </td> + <td class="mdname" nowrap> <em>skinWeight</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> + +<p> +Definition at line <a class="el" href="a06011.html#l02018">2018</a> of file <a class="el" href="a06011.html">mesh_mrm_skinned.cpp</a>. +<p> +References <a class="el" href="a06012.html#l00521">_DecompactScale</a>, <a class="el" href="a06012.html#l00524">_PackedBuffer</a>, <a class="el" href="a05646.html#l00649">buffer</a>, <a class="el" href="a06012.html#l00432">NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::CPackedVertex::Matrices</a>, <a class="el" href="a06682.html#l00192">NLMISC::CVector::maxof()</a>, <a class="el" href="a06682.html#l00186">NLMISC::CVector::minof()</a>, <a class="el" href="a06012.html#l00072">NL3D_MESH_MRM_SKINNED_DEFAULT_POS_SCALE</a>, <a class="el" href="a06012.html#l00073">NL3D_MESH_MRM_SKINNED_MAX_MATRIX</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06011.html#l01960">NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::CPackedVertex::setNormal()</a>, <a class="el" href="a06011.html#l01977">NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::CPackedVertex::setPos()</a>, <a class="el" href="a06011.html#l01994">NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::CPackedVertex::setUV()</a>, <a class="el" href="a06011.html#l02008">NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::CPackedVertex::setWeight()</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00096">uint8</a>, <a class="el" href="a06012.html#l00433">NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::CPackedVertex::Weights</a>, <a class="el" href="a06673.html#l00051">NLMISC::CVector::x</a>, <a class="el" href="a06673.html#l00051">NLMISC::CVector::y</a>, and <a class="el" href="a06673.html#l00051">NLMISC::CVector::z</a>. +<p> +Referenced by <a class="el" href="a06011.html#l00206">NL3D::CMeshMRMSkinnedGeom::build()</a>. +<p> +<div class="fragment"><pre>02019 { +02020 <span class="keyword">const</span> <a class="code" href="a04558.html#a15">uint</a> numVertices = <a class="code" href="a04223.html#a589">buffer</a>.getNumVertices(); +02021 <a class="code" href="a04199.html#a6">nlassert</a> (numVertices == skinWeight.size()); +02022 <a class="code" href="a04199.html#a6">nlassert</a> (<a class="code" href="a04223.html#a589">buffer</a>.getVertexFormat() & (CVertexBuffer::PositionFlag|CVertexBuffer::NormalFlag|CVertexBuffer::TexCoord0Flag) == (CVertexBuffer::PositionFlag|CVertexBuffer::NormalFlag|CVertexBuffer::TexCoord0Flag)); +02023 +02024 <a class="code" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr1">_PackedBuffer</a>.resize (numVertices); +02025 +02026 <span class="comment">// default scale</span> +02027 <a class="code" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr0">_DecompactScale</a> = <a class="code" href="a04589.html#a3">NL3D_MESH_MRM_SKINNED_DEFAULT_POS_SCALE</a>; +02028 +02029 <span class="keywordflow">if</span> (numVertices) +02030 { +02031 <span class="comment">// Get the min max of the bbox</span> +02032 CVector _min = *(<span class="keyword">const</span> CVector*)<a class="code" href="a04223.html#a589">buffer</a>.getVertexCoordPointer(0); +02033 CVector _max = _min; +02034 +02035 <span class="comment">// For each vertex</span> +02036 <a class="code" href="a04558.html#a15">uint</a> i; +02037 <span class="keywordflow">for</span> (i=1; i<numVertices; i++) +02038 { +02039 <span class="comment">// Update min max</span> +02040 <span class="keyword">const</span> CVector &vect = *(<span class="keyword">const</span> CVector*)<a class="code" href="a04223.html#a589">buffer</a>.getVertexCoordPointer(i); +02041 _min.minof(_min, vect); +02042 _max.maxof(_max, vect); +02043 } +02044 +02045 <span class="comment">// Scale enough ?</span> +02046 <span class="keywordtype">float</span> max_width = std::max((<span class="keywordtype">float</span>)fabs(_min.x), std::max((<span class="keywordtype">float</span>)fabs(_min.y), (<span class="keywordtype">float</span>)fabs(_min.z))); +02047 max_width = std::max(max_width, std::max((<span class="keywordtype">float</span>)fabs(_max.x), std::max((<span class="keywordtype">float</span>)fabs(_max.y), (<span class="keywordtype">float</span>)fabs(_max.z)))); +02048 <a class="code" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr0">_DecompactScale</a> = std::max(_DecompactScale, max_width / 32767.f); +02049 +02050 <span class="comment">// Pack</span> +02051 <span class="keywordflow">for</span> (i=0; i<numVertices; i++) +02052 { +02053 CPackedVertex &vertex = <a class="code" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr1">_PackedBuffer</a>[i]; +02054 +02055 <span class="comment">// Position</span> +02056 vertex.setPos (*(<span class="keyword">const</span> CVector*)<a class="code" href="a04223.html#a589">buffer</a>.getVertexCoordPointer(i), <a class="code" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr0">_DecompactScale</a>); +02057 +02058 <span class="comment">// Normal</span> +02059 vertex.setNormal (*(<span class="keyword">const</span> CVector*)<a class="code" href="a04223.html#a589">buffer</a>.getNormalCoordPointer(i)); +02060 +02061 <span class="comment">// UV</span> +02062 <span class="keyword">const</span> <span class="keywordtype">float</span> *uv = (<span class="keyword">const</span> <span class="keywordtype">float</span>*)<a class="code" href="a04223.html#a589">buffer</a>.getTexCoordPointer(i, 0); +02063 vertex.setUV (uv[0], uv[1]); +02064 +02065 <span class="comment">// Matrices</span> +02066 <a class="code" href="a04558.html#a15">uint</a> j; +02067 <a class="code" href="a04558.html#a14">sint</a> weightSum = 0; +02068 <span class="keywordflow">for</span> (j=0; j<<a class="code" href="a04589.html#a4">NL3D_MESH_MRM_SKINNED_MAX_MATRIX</a>; j++) +02069 { +02070 vertex.Matrices[j] = (<a class="code" href="a04558.html#a7">uint8</a>)skinWeight[i].MatrixId[j]; +02071 vertex.setWeight (j, skinWeight[i].Weights[j]); +02072 weightSum += (<a class="code" href="a04558.html#a14">sint</a>)vertex.Weights[j]; +02073 } +02074 +02075 <span class="comment">// Weight error</span> +02076 weightSum = 255 - weightSum; +02077 +02078 <span class="comment">// Add error to the first weight</span> +02079 <a class="code" href="a04199.html#a6">nlassert</a> ((<a class="code" href="a04558.html#a14">sint</a>)vertex.Weights[0] + weightSum <= 255); +02080 <a class="code" href="a04199.html#a6">nlassert</a> ((<a class="code" href="a04558.html#a14">sint</a>)vertex.Weights[0] + weightSum > 0); +02081 vertex.Weights[0] += weightSum; +02082 } +02083 } +02084 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera1" doxytag="NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::clear" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::clear </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> + +<p> +Definition at line <a class="el" href="a06012.html#l00475">475</a> of file <a class="el" href="a06012.html">mesh_mrm_skinned.h</a>. +<p> +References <a class="el" href="a06012.html#l00524">_PackedBuffer</a>. +<p> +Referenced by <a class="el" href="a06011.html#l00206">NL3D::CMeshMRMSkinnedGeom::build()</a>. +<p> +<div class="fragment"><pre>00476 { +00477 <a class="code" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr1">_PackedBuffer</a>.clear(); +00478 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera2" doxytag="NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::contReset" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::contReset </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> + +<p> +Definition at line <a class="el" href="a06012.html#l00481">481</a> of file <a class="el" href="a06012.html">mesh_mrm_skinned.h</a>. +<p> +References <a class="el" href="a06012.html#l00524">_PackedBuffer</a>, and <a class="el" href="a05587.html#l00141">NLMISC::contReset()</a>. +<p> +Referenced by <a class="el" href="a06011.html#l00991">NL3D::CMeshMRMSkinnedGeom::serial()</a>. +<p> +<div class="fragment"><pre>00482 { +00483 <a class="code" href="a05378.html#a381">NLMISC::contReset</a> (_PackedBuffer); +00484 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera3" doxytag="NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::getNumVertices" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::getNumVertices </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06012.html#l00505">505</a> of file <a class="el" href="a06012.html">mesh_mrm_skinned.h</a>. +<p> +References <a class="el" href="a06012.html#l00524">_PackedBuffer</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a06011.html#l00206">NL3D::CMeshMRMSkinnedGeom::build()</a>, <a class="el" href="a06011.html#l01273">NL3D::CMeshMRMSkinnedGeom::compileRunTime()</a>, <a class="el" href="a06011.html#l01062">NL3D::CMeshMRMSkinnedGeom::computeBonesId()</a>, <a class="el" href="a06011.html#l02107">NL3D::CMeshMRMSkinnedGeom::getSkinWeights()</a>, <a class="el" href="a06011.html#l02088">NL3D::CMeshMRMSkinnedGeom::getVertexBuffer()</a>, and <a class="el" href="a06011.html#l01568">NL3D::CMeshMRMSkinnedGeom::updateRawSkinNormal()</a>. +<p> +<div class="fragment"><pre>00506 { +00507 <span class="keywordflow">return</span> <a class="code" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr1">_PackedBuffer</a>.size(); +00508 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera4" doxytag="NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::getPackedVertices" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02905.html">CPackedVertex</a>* NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::getPackedVertices </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> + +<p> +Definition at line <a class="el" href="a06012.html#l00496">496</a> of file <a class="el" href="a06012.html">mesh_mrm_skinned.h</a>. +<p> +References <a class="el" href="a06012.html#l00524">_PackedBuffer</a>. +<p> +<div class="fragment"><pre>00497 { +00498 <span class="keywordflow">if</span> (<a class="code" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr1">_PackedBuffer</a>.empty()) +00499 <span class="keywordflow">return</span> NULL; +00500 <span class="keywordflow">else</span> +00501 <span class="keywordflow">return</span> &(<a class="code" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr1">_PackedBuffer</a>[0]); +00502 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera5" doxytag="NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::getPackedVertices" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a02905.html">CPackedVertex</a>* NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::getPackedVertices </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06012.html#l00487">487</a> of file <a class="el" href="a06012.html">mesh_mrm_skinned.h</a>. +<p> +References <a class="el" href="a06012.html#l00524">_PackedBuffer</a>. +<p> +Referenced by <a class="el" href="a06011.html#l00417">NL3D::CMeshMRMSkinnedGeom::applyGeomorphWithVBHardPtr()</a>, <a class="el" href="a06011.html#l00206">NL3D::CMeshMRMSkinnedGeom::build()</a>, <a class="el" href="a06011.html#l01062">NL3D::CMeshMRMSkinnedGeom::computeBonesId()</a>, <a class="el" href="a06011.html#l02107">NL3D::CMeshMRMSkinnedGeom::getSkinWeights()</a>, <a class="el" href="a06011.html#l02088">NL3D::CMeshMRMSkinnedGeom::getVertexBuffer()</a>, and <a class="el" href="a06011.html#l01568">NL3D::CMeshMRMSkinnedGeom::updateRawSkinNormal()</a>. +<p> +<div class="fragment"><pre>00488 { +00489 <span class="keywordflow">if</span> (<a class="code" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr1">_PackedBuffer</a>.empty()) +00490 <span class="keywordflow">return</span> NULL; +00491 <span class="keywordflow">else</span> +00492 <span class="keywordflow">return</span> &(<a class="code" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr1">_PackedBuffer</a>[0]); +00493 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera6" doxytag="NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::getPos" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::getPos </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a03128.html">CVector</a> & </td> + <td class="mdname" nowrap> <em>dest</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const <a class="el" href="a02905.html">CPackedVertex</a> & </td> + <td class="mdname" nowrap> <em>src</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"> const<code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06012.html#l00511">511</a> of file <a class="el" href="a06012.html">mesh_mrm_skinned.h</a>. +<p> +References <a class="el" href="a06012.html#l00521">_DecompactScale</a>, and <a class="el" href="a05646.html#l01124">src</a>. +<p> +Referenced by <a class="el" href="a06011.html#l01062">NL3D::CMeshMRMSkinnedGeom::computeBonesId()</a>, <a class="el" href="a06011.html#l02088">NL3D::CMeshMRMSkinnedGeom::getVertexBuffer()</a>, and <a class="el" href="a06011.html#l01568">NL3D::CMeshMRMSkinnedGeom::updateRawSkinNormal()</a>. +<p> +<div class="fragment"><pre>00512 { +00513 <a class="code" href="a04223.html#a652">src</a>.getPos (dest, _DecompactScale); +00514 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBuffera7" doxytag="NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::serial" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>f</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> + +<p> +Definition at line <a class="el" href="a06011.html#l01926">1926</a> of file <a class="el" href="a06011.html">mesh_mrm_skinned.cpp</a>. +<p> +References <a class="el" href="a06012.html#l00521">_DecompactScale</a>, <a class="el" href="a06012.html#l00524">_PackedBuffer</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a06462.html#l00324">NLMISC::IStream::serialCont()</a>, <a class="el" href="a06461.html#l00266">NLMISC::IStream::serialVersion()</a>, and <a class="el" href="a05981.html#l00104">sint</a>. +<p> +Referenced by <a class="el" href="a06011.html#l00991">NL3D::CMeshMRMSkinnedGeom::serial()</a>. +<p> +<div class="fragment"><pre>01927 { +01928 <span class="comment">// Version</span> +01929 <a class="code" href="a04558.html#a14">sint</a> ver = f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion</a>(0); +01930 +01931 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a> (_PackedBuffer); +01932 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a> (_DecompactScale); +01933 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr0" doxytag="NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::_DecompactScale" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float <a class="el" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr0">NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::_DecompactScale</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Decompact position values. +<p> + +<p> +Definition at line <a class="el" href="a06012.html#l00521">521</a> of file <a class="el" href="a06012.html">mesh_mrm_skinned.h</a>. +<p> +Referenced by <a class="el" href="a06011.html#l02018">build()</a>, <a class="el" href="a06012.html#l00511">getPos()</a>, and <a class="el" href="a06011.html#l01926">serial()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr1" doxytag="NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::_PackedBuffer" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::vector<<a class="el" href="a02905.html">CPackedVertex</a>> <a class="el" href="a02904.html#NL3D_1_1CMeshMRMSkinnedGeom_1_1CPackedVertexBufferr1">NL3D::CMeshMRMSkinnedGeom::CPackedVertexBuffer::_PackedBuffer</a><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="a06012.html#l00524">524</a> of file <a class="el" href="a06012.html">mesh_mrm_skinned.h</a>. +<p> +Referenced by <a class="el" href="a06011.html#l02018">build()</a>, <a class="el" href="a06012.html#l00475">clear()</a>, <a class="el" href="a06012.html#l00481">contReset()</a>, <a class="el" href="a06012.html#l00505">getNumVertices()</a>, <a class="el" href="a06012.html#l00487">getPackedVertices()</a>, and <a class="el" href="a06011.html#l01926">serial()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a06012.html">mesh_mrm_skinned.h</a><li><a class="el" href="a06011.html">mesh_mrm_skinned.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:54:30 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |