Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release > by-pkgid > 58828b263d8f56d90ac336dea07a4586 > files > 308

irrlicht-doc-1.6.1-1mdv2010.1.x86_64.rpm

<!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>Irrlicht Engine: SSharedMeshBuffer.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table class="irrlicht" >
  <tr valign="middle"> 
    <td><font size="2"><a class="qindex" href="index.html"><font color="#FFFFFF">Home</font></a> 
      | <a class="qindex" href="namespaces.html"><font color="#FFFFFF">Namespaces</font></a> 
      | <a class="qindex" href="hierarchy.html"><font color="#FFFFFF">Hierarchy</font></a> 
      | <a class="qindex" href="classes.html"><font color="#FFFFFF">Alphabetical 
      List</font></a> | <a class="qindex" href="annotated.html"><font color="#FFFFFF"> 
      Class list</font></a> | <a class="qindex" href="files.html"><font color="#FFFFFF">Files</font></a> 
      | <a class="qindex" href="namespacemembers.html"><font color="#FFFFFF"> 
      Namespace&nbsp;Members</font></a> | <a class="qindex" href="functions.html"><font color="#FFFFFF">Class 
      members</font></a> | <a class="qindex" href="globals.html"><font color="#FFFFFF">File 
      members</font></a> | <a class="qindex" href="pages.html"><font color="#FFFFFF">Tutorials</font></a></font> </td>
  </tr>
</table>
<!-- Generated by Doxygen 1.5.6 -->
<h1>SSharedMeshBuffer.h</h1><a href="_s_shared_mesh_buffer_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 2002-2009 Nikolaus Gebhardt</span>
<a name="l00002"></a>00002 <span class="comment">// This file is part of the "Irrlicht Engine".</span>
<a name="l00003"></a>00003 <span class="comment">// For conditions of distribution and use, see copyright notice in irrlicht.h</span>
<a name="l00004"></a>00004 
<a name="l00005"></a>00005 <span class="preprocessor">#ifndef __S_SHARED_MESH_BUFFER_H_INCLUDED__</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __S_SHARED_MESH_BUFFER_H_INCLUDED__</span>
<a name="l00007"></a>00007 <span class="preprocessor"></span>
<a name="l00008"></a>00008 <span class="preprocessor">#include "<a class="code" href="irr_array_8h.html">irrArray.h</a>"</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include "<a class="code" href="_i_mesh_buffer_8h.html">IMeshBuffer.h</a>"</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="keyword">namespace </span>irr
<a name="l00012"></a>00012 {
<a name="l00013"></a>00013 <span class="keyword">namespace </span>scene
<a name="l00014"></a>00014 {
<a name="l00016"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html">00016</a>         <span class="keyword">struct </span><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html" title="Implementation of the IMeshBuffer interface with shared vertex list.">SSharedMeshBuffer</a> : <span class="keyword">public</span> <a class="code" href="classirr_1_1scene_1_1_i_mesh_buffer.html" title="Struct for holding a mesh with a single material.">IMeshBuffer</a>
<a name="l00017"></a>00017         {
<a name="l00019"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#9d122d688d0823345807cf9ef0efb952">00019</a>                 <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#9d122d688d0823345807cf9ef0efb952" title="constructor">SSharedMeshBuffer</a>() : <a class="code" href="classirr_1_1scene_1_1_i_mesh_buffer.html" title="Struct for holding a mesh with a single material.">IMeshBuffer</a>(), <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad7715caa73e08a0d638ccf22e739882" title="Shared Array of vertices.">Vertices</a>(0), <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#04de0bd0ecc19d2026ae110c75ebe8b5" title="ID used for hardware buffer management.">ChangedID_Vertex</a>(1), <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#854d104dc67995a49f65c902195e9d5f" title="ID used for hardware buffer management.">ChangedID_Index</a>(1), <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#9e78b3a22c91f6c0681335d0a71367e2" title="hardware mapping hint">MappingHintVertex</a>(<a class="code" href="namespaceirr_1_1scene.html#c7d8ee8d77da75f2580bb9bb17231c276eaae9a4147dfc68ce11fa12b9ce3c0d" title="Don&amp;#39;t store on the hardware.">EHM_NEVER</a>), <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#04d69f8d8b1793b2a5b574cc28bd518e">MappingHintIndex</a>(<a class="code" href="namespaceirr_1_1scene.html#c7d8ee8d77da75f2580bb9bb17231c276eaae9a4147dfc68ce11fa12b9ce3c0d" title="Don&amp;#39;t store on the hardware.">EHM_NEVER</a>)
<a name="l00020"></a>00020                 {
<a name="l00021"></a>00021 <span class="preprocessor">                        #ifdef _DEBUG</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>                        <a class="code" href="classirr_1_1_i_reference_counted.html#704c5042d399fe8cd3bdd65a0559002a" title="Sets the debug name of the object.">setDebugName</a>(<span class="stringliteral">"SSharedMeshBuffer"</span>);
<a name="l00023"></a>00023 <span class="preprocessor">                        #endif</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>                }
<a name="l00025"></a>00025 
<a name="l00027"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#c6bc32830ae182696d3063a972762bec">00027</a>                 <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#9d122d688d0823345807cf9ef0efb952" title="constructor">SSharedMeshBuffer</a>(<a class="code" href="classirr_1_1core_1_1array.html" title="Self reallocating template array (like stl vector) with additional features.">core::array&lt;video::S3DVertex&gt;</a> *vertices) : <a class="code" href="classirr_1_1scene_1_1_i_mesh_buffer.html" title="Struct for holding a mesh with a single material.">IMeshBuffer</a>(), <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad7715caa73e08a0d638ccf22e739882" title="Shared Array of vertices.">Vertices</a>(vertices)
<a name="l00028"></a>00028                 {
<a name="l00029"></a>00029 <span class="preprocessor">                        #ifdef _DEBUG</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>                        <a class="code" href="classirr_1_1_i_reference_counted.html#704c5042d399fe8cd3bdd65a0559002a" title="Sets the debug name of the object.">setDebugName</a>(<span class="stringliteral">"SSharedMeshBuffer"</span>);
<a name="l00031"></a>00031 <span class="preprocessor">                        #endif</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>                }
<a name="l00033"></a>00033 
<a name="l00035"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#bc0edf2793790586ec61aee9164f6878">00035</a>                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classirr_1_1video_1_1_s_material.html" title="Struct for holding parameters for a material renderer.">video::SMaterial</a>&amp; <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#bc0edf2793790586ec61aee9164f6878" title="returns the material of this meshbuffer">getMaterial</a>()<span class="keyword"> const</span>
<a name="l00036"></a>00036 <span class="keyword">                </span>{
<a name="l00037"></a>00037                         <span class="keywordflow">return</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#30c1b48a206d109c3b030a8cc3fc017a" title="Material of this meshBuffer.">Material</a>;
<a name="l00038"></a>00038                 }
<a name="l00039"></a>00039 
<a name="l00041"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#c1dcea2247c8f63adc4a5935ce39bcbc">00041</a>                 <span class="keyword">virtual</span> <a class="code" href="classirr_1_1video_1_1_s_material.html" title="Struct for holding parameters for a material renderer.">video::SMaterial</a>&amp; <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#bc0edf2793790586ec61aee9164f6878" title="returns the material of this meshbuffer">getMaterial</a>()
<a name="l00042"></a>00042                 {
<a name="l00043"></a>00043                         <span class="keywordflow">return</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#30c1b48a206d109c3b030a8cc3fc017a" title="Material of this meshBuffer.">Material</a>;
<a name="l00044"></a>00044                 }
<a name="l00045"></a>00045 
<a name="l00047"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#eebe2b6c402e30a137cefcacecf55b2c">00047</a>                 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">void</span>* <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#eebe2b6c402e30a137cefcacecf55b2c" title="returns pointer to vertices">getVertices</a>()<span class="keyword"> const</span>
<a name="l00048"></a>00048 <span class="keyword">                </span>{
<a name="l00049"></a>00049                         <span class="keywordflow">if</span> (<a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad7715caa73e08a0d638ccf22e739882" title="Shared Array of vertices.">Vertices</a>)
<a name="l00050"></a>00050                                 <span class="keywordflow">return</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad7715caa73e08a0d638ccf22e739882" title="Shared Array of vertices.">Vertices</a>-&gt;const_pointer();
<a name="l00051"></a>00051                         <span class="keywordflow">else</span>
<a name="l00052"></a>00052                                 <span class="keywordflow">return</span> 0;
<a name="l00053"></a>00053                 }
<a name="l00054"></a>00054 
<a name="l00056"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#43d93dd17ede5931189376c1518ee501">00056</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span>* <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#eebe2b6c402e30a137cefcacecf55b2c" title="returns pointer to vertices">getVertices</a>()
<a name="l00057"></a>00057                 {
<a name="l00058"></a>00058                         <span class="keywordflow">if</span> (<a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad7715caa73e08a0d638ccf22e739882" title="Shared Array of vertices.">Vertices</a>)
<a name="l00059"></a>00059                                 <span class="keywordflow">return</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad7715caa73e08a0d638ccf22e739882" title="Shared Array of vertices.">Vertices</a>-&gt;pointer();
<a name="l00060"></a>00060                         <span class="keywordflow">else</span>
<a name="l00061"></a>00061                                 <span class="keywordflow">return</span> 0;
<a name="l00062"></a>00062                 }
<a name="l00063"></a>00063 
<a name="l00065"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#1face8290026416ce0cd27b333bf1a1d">00065</a>                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#1face8290026416ce0cd27b333bf1a1d" title="returns amount of vertices">getVertexCount</a>()<span class="keyword"> const</span>
<a name="l00066"></a>00066 <span class="keyword">                </span>{
<a name="l00067"></a>00067                         <span class="keywordflow">if</span> (<a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad7715caa73e08a0d638ccf22e739882" title="Shared Array of vertices.">Vertices</a>)
<a name="l00068"></a>00068                                 <span class="keywordflow">return</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad7715caa73e08a0d638ccf22e739882" title="Shared Array of vertices.">Vertices</a>-&gt;size();
<a name="l00069"></a>00069                         <span class="keywordflow">else</span>
<a name="l00070"></a>00070                                 <span class="keywordflow">return</span> 0;
<a name="l00071"></a>00071                 }
<a name="l00072"></a>00072 
<a name="l00074"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#aa81ec019c8ec19b10816360b8ed1a09">00074</a>                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="namespaceirr.html#e9f8ec82692ad3b83c21f555bfa70bcc" title="16 bit unsigned variable.">u16</a>* <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#aa81ec019c8ec19b10816360b8ed1a09" title="returns pointer to Indices">getIndices</a>()<span class="keyword"> const</span>
<a name="l00075"></a>00075 <span class="keyword">                </span>{
<a name="l00076"></a>00076                         <span class="keywordflow">return</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#2a395f9867a12fa8c99a93098299e1f4" title="Array of Indices.">Indices</a>.const_pointer();
<a name="l00077"></a>00077                 }
<a name="l00078"></a>00078 
<a name="l00080"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#16f7c525acba8d913b8de49dee869465">00080</a>                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#e9f8ec82692ad3b83c21f555bfa70bcc" title="16 bit unsigned variable.">u16</a>* <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#aa81ec019c8ec19b10816360b8ed1a09" title="returns pointer to Indices">getIndices</a>()
<a name="l00081"></a>00081                 {
<a name="l00082"></a>00082                         <span class="keywordflow">return</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#2a395f9867a12fa8c99a93098299e1f4" title="Array of Indices.">Indices</a>.pointer();
<a name="l00083"></a>00083                 }
<a name="l00084"></a>00084 
<a name="l00086"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#40bfe98e4a8a15f44d09d45bcac0bedd">00086</a>                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#40bfe98e4a8a15f44d09d45bcac0bedd" title="returns amount of indices">getIndexCount</a>()<span class="keyword"> const</span>
<a name="l00087"></a>00087 <span class="keyword">                </span>{
<a name="l00088"></a>00088                         <span class="keywordflow">return</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#2a395f9867a12fa8c99a93098299e1f4" title="Array of Indices.">Indices</a>.size();
<a name="l00089"></a>00089                 }
<a name="l00090"></a>00090 
<a name="l00092"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad8041f4d5ad454be304352e706a789d">00092</a>                 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1aabbox3d.html" title="Axis aligned bounding box in 3d dimensional space.">core::aabbox3d&lt;f32&gt;</a>&amp; <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad8041f4d5ad454be304352e706a789d" title="returns an axis aligned bounding box">getBoundingBox</a>()<span class="keyword"> const</span>
<a name="l00093"></a>00093 <span class="keyword">                </span>{
<a name="l00094"></a>00094                         <span class="keywordflow">return</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#98dc504864fb163b0628a658fa9897b5" title="Bounding box.">BoundingBox</a>;
<a name="l00095"></a>00095                 }
<a name="l00096"></a>00096 
<a name="l00098"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#54e11fd284245c3f5e5e07145ad4a202">00098</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#54e11fd284245c3f5e5e07145ad4a202" title="set user axis aligned bounding box">setBoundingBox</a>( <span class="keyword">const</span> <a class="code" href="classirr_1_1core_1_1aabbox3d.html" title="Axis aligned bounding box in 3d dimensional space.">core::aabbox3df</a>&amp; box)
<a name="l00099"></a>00099                 {
<a name="l00100"></a>00100                         <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#98dc504864fb163b0628a658fa9897b5" title="Bounding box.">BoundingBox</a> = box;
<a name="l00101"></a>00101                 }
<a name="l00102"></a>00102 
<a name="l00104"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#e5b4d8b4c56379b0b2892fc12ff99670">00104</a>                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr_1_1video.html#0e3b59e025e0d0db0ed2ee0ce904deac" title="Enumeration for all vertex types there are.">video::E_VERTEX_TYPE</a> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#e5b4d8b4c56379b0b2892fc12ff99670" title="returns which type of vertex data is stored.">getVertexType</a>()<span class="keyword"> const</span>
<a name="l00105"></a>00105 <span class="keyword">                </span>{
<a name="l00106"></a>00106                         <span class="keywordflow">return</span> <a class="code" href="namespaceirr_1_1video.html#0e3b59e025e0d0db0ed2ee0ce904deac98c8b791280bbf9252c4f4a37e91a416" title="Standard vertex type used by the Irrlicht engine, video::S3DVertex.">video::EVT_STANDARD</a>;
<a name="l00107"></a>00107                 }
<a name="l00108"></a>00108 
<a name="l00110"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#1425de91a910751d0e7fc8b8dca636e9">00110</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#1425de91a910751d0e7fc8b8dca636e9" title="recalculates the bounding box. should be called if the mesh changed.">recalculateBoundingBox</a>()
<a name="l00111"></a>00111                 {
<a name="l00112"></a>00112                         <span class="keywordflow">if</span> (!<a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad7715caa73e08a0d638ccf22e739882" title="Shared Array of vertices.">Vertices</a> || <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad7715caa73e08a0d638ccf22e739882" title="Shared Array of vertices.">Vertices</a>-&gt;empty() || <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#2a395f9867a12fa8c99a93098299e1f4" title="Array of Indices.">Indices</a>.empty())
<a name="l00113"></a>00113                                 <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#98dc504864fb163b0628a658fa9897b5" title="Bounding box.">BoundingBox</a>.<a class="code" href="classirr_1_1core_1_1aabbox3d.html#fc718e96ed11aa71a30311d32bfc885a" title="Resets the bounding box to a one-point box.">reset</a>(0,0,0);
<a name="l00114"></a>00114                         <span class="keywordflow">else</span>
<a name="l00115"></a>00115                         {
<a name="l00116"></a>00116                                 <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#98dc504864fb163b0628a658fa9897b5" title="Bounding box.">BoundingBox</a>.<a class="code" href="classirr_1_1core_1_1aabbox3d.html#fc718e96ed11aa71a30311d32bfc885a" title="Resets the bounding box to a one-point box.">reset</a>((*<a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad7715caa73e08a0d638ccf22e739882" title="Shared Array of vertices.">Vertices</a>)[<a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#2a395f9867a12fa8c99a93098299e1f4" title="Array of Indices.">Indices</a>[0]].Pos);
<a name="l00117"></a>00117                                 <span class="keywordflow">for</span> (<a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> i=1; i&lt;<a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#2a395f9867a12fa8c99a93098299e1f4" title="Array of Indices.">Indices</a>.size(); ++i)
<a name="l00118"></a>00118                                         <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#98dc504864fb163b0628a658fa9897b5" title="Bounding box.">BoundingBox</a>.<a class="code" href="classirr_1_1core_1_1aabbox3d.html#49e3765fd2f40a115f8f28bd74d62ccf" title="Adds a point to the bounding box.">addInternalPoint</a>((*<a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad7715caa73e08a0d638ccf22e739882" title="Shared Array of vertices.">Vertices</a>)[<a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#2a395f9867a12fa8c99a93098299e1f4" title="Array of Indices.">Indices</a>[i]].Pos);
<a name="l00119"></a>00119                         }
<a name="l00120"></a>00120                 }
<a name="l00121"></a>00121 
<a name="l00123"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#f7faf5e2b8245c4be3efb6e766281579">00123</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#f7faf5e2b8245c4be3efb6e766281579" title="append the vertices and indices to the current buffer">append</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* <span class="keyword">const</span> vertices, <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> numVertices, <span class="keyword">const</span> <a class="code" href="namespaceirr.html#e9f8ec82692ad3b83c21f555bfa70bcc" title="16 bit unsigned variable.">u16</a>* <span class="keyword">const</span> indices, <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> numIndices) {}
<a name="l00124"></a>00124 
<a name="l00126"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#a4fbcc497cfd0b431bb85d607ed6a2fb">00126</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#f7faf5e2b8245c4be3efb6e766281579" title="append the vertices and indices to the current buffer">append</a>(<span class="keyword">const</span> <a class="code" href="classirr_1_1scene_1_1_i_mesh_buffer.html" title="Struct for holding a mesh with a single material.">IMeshBuffer</a>* <span class="keyword">const</span> other) {}
<a name="l00127"></a>00127 
<a name="l00128"></a>00128 
<a name="l00130"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#cdb08316eb2a9ed75efbf2a73eb011cb">00130</a>                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr_1_1scene.html#c7d8ee8d77da75f2580bb9bb17231c27">E_HARDWARE_MAPPING</a> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#cdb08316eb2a9ed75efbf2a73eb011cb" title="get the current hardware mapping hint">getHardwareMappingHint_Vertex</a>()<span class="keyword"> const</span>
<a name="l00131"></a>00131 <span class="keyword">                </span>{
<a name="l00132"></a>00132                         <span class="keywordflow">return</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#9e78b3a22c91f6c0681335d0a71367e2" title="hardware mapping hint">MappingHintVertex</a>;
<a name="l00133"></a>00133                 }
<a name="l00134"></a>00134 
<a name="l00136"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#5196a40df0ebf8c46783943724003eaa">00136</a>                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr_1_1scene.html#c7d8ee8d77da75f2580bb9bb17231c27">E_HARDWARE_MAPPING</a> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#5196a40df0ebf8c46783943724003eaa" title="get the current hardware mapping hint">getHardwareMappingHint_Index</a>()<span class="keyword"> const</span>
<a name="l00137"></a>00137 <span class="keyword">                </span>{
<a name="l00138"></a>00138                         <span class="keywordflow">return</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#04d69f8d8b1793b2a5b574cc28bd518e">MappingHintIndex</a>;
<a name="l00139"></a>00139                 }
<a name="l00140"></a>00140 
<a name="l00142"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#0e0927ba679258099697688ac123af88">00142</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#0e0927ba679258099697688ac123af88" title="set the hardware mapping hint, for driver">setHardwareMappingHint</a>( <a class="code" href="namespaceirr_1_1scene.html#c7d8ee8d77da75f2580bb9bb17231c27">E_HARDWARE_MAPPING</a> NewMappingHint, <a class="code" href="namespaceirr_1_1scene.html#8f59a89ffef0ad8e5b2c2cb874a93e8c">E_BUFFER_TYPE</a> buffer=<a class="code" href="namespaceirr_1_1scene.html#8f59a89ffef0ad8e5b2c2cb874a93e8c833624730c30cffccc121fe31aa0832c" title="Change both vertex and index mapping to the same value.">EBT_VERTEX_AND_INDEX</a> )
<a name="l00143"></a>00143                 {
<a name="l00144"></a>00144                         <span class="keywordflow">if</span> (buffer==<a class="code" href="namespaceirr_1_1scene.html#8f59a89ffef0ad8e5b2c2cb874a93e8c833624730c30cffccc121fe31aa0832c" title="Change both vertex and index mapping to the same value.">EBT_VERTEX_AND_INDEX</a> || buffer==<a class="code" href="namespaceirr_1_1scene.html#8f59a89ffef0ad8e5b2c2cb874a93e8cee6af56d004d0171bdd3f94968be5c9d" title="Change the vertex mapping.">EBT_VERTEX</a>)
<a name="l00145"></a>00145                                 <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#9e78b3a22c91f6c0681335d0a71367e2" title="hardware mapping hint">MappingHintVertex</a>=NewMappingHint;
<a name="l00146"></a>00146                         <span class="keywordflow">if</span> (buffer==<a class="code" href="namespaceirr_1_1scene.html#8f59a89ffef0ad8e5b2c2cb874a93e8c833624730c30cffccc121fe31aa0832c" title="Change both vertex and index mapping to the same value.">EBT_VERTEX_AND_INDEX</a> || buffer==<a class="code" href="namespaceirr_1_1scene.html#8f59a89ffef0ad8e5b2c2cb874a93e8cc94c9bb193455a5a064f2757eb797bac" title="Change the index mapping.">EBT_INDEX</a>)
<a name="l00147"></a>00147                                 <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#04d69f8d8b1793b2a5b574cc28bd518e">MappingHintIndex</a>=NewMappingHint;
<a name="l00148"></a>00148                 }
<a name="l00149"></a>00149 
<a name="l00150"></a>00150 
<a name="l00152"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#b49d4330e436e4e841e28aa867038e22">00152</a>                 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#b49d4330e436e4e841e28aa867038e22" title="flags the mesh as changed, reloads hardware buffers">setDirty</a>(<a class="code" href="namespaceirr_1_1scene.html#8f59a89ffef0ad8e5b2c2cb874a93e8c">E_BUFFER_TYPE</a> buffer=<a class="code" href="namespaceirr_1_1scene.html#8f59a89ffef0ad8e5b2c2cb874a93e8c833624730c30cffccc121fe31aa0832c" title="Change both vertex and index mapping to the same value.">EBT_VERTEX_AND_INDEX</a>)
<a name="l00153"></a>00153                 {
<a name="l00154"></a>00154                         <span class="keywordflow">if</span> (buffer==<a class="code" href="namespaceirr_1_1scene.html#8f59a89ffef0ad8e5b2c2cb874a93e8c833624730c30cffccc121fe31aa0832c" title="Change both vertex and index mapping to the same value.">EBT_VERTEX_AND_INDEX</a> || buffer==<a class="code" href="namespaceirr_1_1scene.html#8f59a89ffef0ad8e5b2c2cb874a93e8cee6af56d004d0171bdd3f94968be5c9d" title="Change the vertex mapping.">EBT_VERTEX</a>)
<a name="l00155"></a>00155                                 ++<a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#04de0bd0ecc19d2026ae110c75ebe8b5" title="ID used for hardware buffer management.">ChangedID_Vertex</a>;
<a name="l00156"></a>00156                         <span class="keywordflow">if</span> (buffer==<a class="code" href="namespaceirr_1_1scene.html#8f59a89ffef0ad8e5b2c2cb874a93e8c833624730c30cffccc121fe31aa0832c" title="Change both vertex and index mapping to the same value.">EBT_VERTEX_AND_INDEX</a> || buffer==<a class="code" href="namespaceirr_1_1scene.html#8f59a89ffef0ad8e5b2c2cb874a93e8cc94c9bb193455a5a064f2757eb797bac" title="Change the index mapping.">EBT_INDEX</a>)
<a name="l00157"></a>00157                                 ++<a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#854d104dc67995a49f65c902195e9d5f" title="ID used for hardware buffer management.">ChangedID_Index</a>;
<a name="l00158"></a>00158                 }
<a name="l00159"></a>00159 
<a name="l00161"></a>00161 
<a name="l00162"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#63b6279a8512c5bb67f37aade6b2fe35">00162</a>                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#63b6279a8512c5bb67f37aade6b2fe35" title="Get the currently used ID for identification of changes.">getChangedID_Vertex</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#04de0bd0ecc19d2026ae110c75ebe8b5" title="ID used for hardware buffer management.">ChangedID_Vertex</a>;}
<a name="l00163"></a>00163 
<a name="l00165"></a>00165 
<a name="l00166"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#c5f8e348958acc482d62d600a3d17bc5">00166</a>                 <span class="keyword">virtual</span> <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#c5f8e348958acc482d62d600a3d17bc5" title="Get the currently used ID for identification of changes.">getChangedID_Index</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#854d104dc67995a49f65c902195e9d5f" title="ID used for hardware buffer management.">ChangedID_Index</a>;}
<a name="l00167"></a>00167 
<a name="l00169"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#30c1b48a206d109c3b030a8cc3fc017a">00169</a>                 <a class="code" href="classirr_1_1video_1_1_s_material.html" title="Struct for holding parameters for a material renderer.">video::SMaterial</a> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#30c1b48a206d109c3b030a8cc3fc017a" title="Material of this meshBuffer.">Material</a>;
<a name="l00170"></a>00170 
<a name="l00172"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad7715caa73e08a0d638ccf22e739882">00172</a>                 <a class="code" href="classirr_1_1core_1_1array.html" title="Self reallocating template array (like stl vector) with additional features.">core::array&lt;video::S3DVertex&gt;</a> *<a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#ad7715caa73e08a0d638ccf22e739882" title="Shared Array of vertices.">Vertices</a>;
<a name="l00173"></a>00173 
<a name="l00175"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#2a395f9867a12fa8c99a93098299e1f4">00175</a>                 <a class="code" href="classirr_1_1core_1_1array.html" title="Self reallocating template array (like stl vector) with additional features.">core::array&lt;u16&gt;</a> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#2a395f9867a12fa8c99a93098299e1f4" title="Array of Indices.">Indices</a>;
<a name="l00176"></a>00176 
<a name="l00178"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#04de0bd0ecc19d2026ae110c75ebe8b5">00178</a>                 <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#04de0bd0ecc19d2026ae110c75ebe8b5" title="ID used for hardware buffer management.">ChangedID_Vertex</a>;
<a name="l00179"></a>00179 
<a name="l00181"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#854d104dc67995a49f65c902195e9d5f">00181</a>                 <a class="code" href="namespaceirr.html#0416a53257075833e7002efd0a18e804" title="32 bit unsigned variable.">u32</a> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#854d104dc67995a49f65c902195e9d5f" title="ID used for hardware buffer management.">ChangedID_Index</a>;
<a name="l00182"></a>00182 
<a name="l00184"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#98dc504864fb163b0628a658fa9897b5">00184</a>                 <a class="code" href="classirr_1_1core_1_1aabbox3d.html" title="Axis aligned bounding box in 3d dimensional space.">core::aabbox3df</a> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#98dc504864fb163b0628a658fa9897b5" title="Bounding box.">BoundingBox</a>;
<a name="l00185"></a>00185 
<a name="l00187"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#9e78b3a22c91f6c0681335d0a71367e2">00187</a>                 <a class="code" href="namespaceirr_1_1scene.html#c7d8ee8d77da75f2580bb9bb17231c27">E_HARDWARE_MAPPING</a> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#9e78b3a22c91f6c0681335d0a71367e2" title="hardware mapping hint">MappingHintVertex</a>;
<a name="l00188"></a><a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#04d69f8d8b1793b2a5b574cc28bd518e">00188</a>                 <a class="code" href="namespaceirr_1_1scene.html#c7d8ee8d77da75f2580bb9bb17231c27">E_HARDWARE_MAPPING</a> <a class="code" href="structirr_1_1scene_1_1_s_shared_mesh_buffer.html#04d69f8d8b1793b2a5b574cc28bd518e">MappingHintIndex</a>;
<a name="l00189"></a>00189 
<a name="l00190"></a>00190         };
<a name="l00191"></a>00191 
<a name="l00192"></a>00192 
<a name="l00193"></a>00193 } <span class="comment">// end namespace scene</span>
<a name="l00194"></a>00194 } <span class="comment">// end namespace irr</span>
<a name="l00195"></a>00195 
<a name="l00196"></a>00196 <span class="preprocessor">#endif</span>
<a name="l00197"></a>00197 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1">
<address style="align: right;">
<small> </small>
</address>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
  <tr> 
    <td width="0"> <div align="left"><small><a href="http://irrlicht.sourceforge.net" target="_blank"><img src="irrlicht.png" alt="The Irrlicht Engine" align="middle" border=0 width=88 height=31></a></small></div></td>
    <td> <div align="left"><small><em><font size="2">The <a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht 
        Engine</a> Documentation &copy; 2003-2009 by Nikolaus Gebhardt. Generated 
        on Sun Jan 10 09:24:05 2010 by <a href="http://www.doxygen.org" target="_blank">Doxygen</a> 
        (1.5.6)</font></em></small></div></td>
  </tr>
</table>
<address style="align: right;">
</address>
</body>
</html>