Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 06719cf03808e17ae6f0852ca1052dc2 > files > 3217

libogre1-devel-0.13.0-1mdk.i586.rpm

<html>
<head>
<title>Ogre::VertexElement class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<link type="text/css" rel="stylesheet" href="style.css">
</head>

<body>
<!-- Generated by Doxygen 1.2.16 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>Ogre::VertexElement  Class Reference</h1>This class declares the usage of a single vertex buffer as a component of a complete <a class="el" href="classOgre_1_1VertexDeclaration.html">VertexDeclaration</a>. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>&gt;</code>
<p>
<a href="classOgre_1_1VertexElement-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementa0">VertexElement</a> (unsigned short source, size_t offset, <a class="el" href="namespaceOgre.html#a631">VertexElementType</a> theType, <a class="el" href="namespaceOgre.html#a630">VertexElementSemantic</a> semantic, unsigned short index=0)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Constructor, should not be called directly, call <a class="el" href="classOgre_1_1VertexDeclaration.html#Ogre_1_1VertexDeclarationa3">VertexDeclaration::addElement</a>.</em> <a href="#Ogre_1_1VertexElementa0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>unsigned short&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementa1">getSource</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the vertex buffer index from where this element draws it's values.</em> <a href="#Ogre_1_1VertexElementa1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementa2">getOffset</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the offset into the buffer where this element starts.</em> <a href="#Ogre_1_1VertexElementa2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a631">VertexElementType</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementa3">getType</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the data format of this element.</em> <a href="#Ogre_1_1VertexElementa3"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a630">VertexElementSemantic</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementa4">getSemantic</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the meaning of this element.</em> <a href="#Ogre_1_1VertexElementa4"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>unsigned short&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementa5">getIndex</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the index of this element, only applicable for repeating elements.</em> <a href="#Ogre_1_1VertexElementa5"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementa6">getSize</a> (void) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the size of this element in bytes.</em> <a href="#Ogre_1_1VertexElementa6"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementa7">operator==</a> (const VertexElement &amp;rhs) const</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementa8">baseVertexPointerToElement</a> (void *pBase, <a class="el" href="namespaceOgre.html#a349">Real</a> **pElem) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Adjusts a pointer to the base of a vertex to point at this element.</em> <a href="#Ogre_1_1VertexElementa8"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementa9">baseVertexPointerToElement</a> (void *pBase, <a class="el" href="namespaceOgre.html#a53">RGBA</a> **pElem) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Adjusts a pointer to the base of a vertex to point at this element.</em> <a href="#Ogre_1_1VertexElementa9"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementa10">baseVertexPointerToElement</a> (void *pBase, unsigned char **pElem) const</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Adjusts a pointer to the base of a vertex to point at this element.</em> <a href="#Ogre_1_1VertexElementa10"></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>size_t&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementd0">getTypeSize</a> (<a class="el" href="namespaceOgre.html#a631">VertexElementType</a> etype)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Utility method for helping to calculate offsets.</em> <a href="#Ogre_1_1VertexElementd0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>unsigned short&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementd1">getTypeCount</a> (<a class="el" href="namespaceOgre.html#a631">VertexElementType</a> etype)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Utility method which returns the count of values in a given type.</em> <a href="#Ogre_1_1VertexElementd1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a631">VertexElementType</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementd2">multiplyTypeCount</a> (<a class="el" href="namespaceOgre.html#a631">VertexElementType</a> baseType, unsigned short count)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Simple converter function which will turn a single-value type into a multi-value type based on a parameter.</em> <a href="#Ogre_1_1VertexElementd2"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top>unsigned short&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementn0">mSource</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>The source vertex buffer, as bound to an index using <a class="el" href="classOgre_1_1VertexBufferBinding.html">VertexBufferBinding</a>.</em> <a href="#Ogre_1_1VertexElementn0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>size_t&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementn1">mOffset</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>The offset in the buffer that this element starts at.</em> <a href="#Ogre_1_1VertexElementn1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a631">VertexElementType</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementn2">mType</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>The type of element.</em> <a href="#Ogre_1_1VertexElementn2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="namespaceOgre.html#a630">VertexElementSemantic</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementn3">mSemantic</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>The meaning of the element.</em> <a href="#Ogre_1_1VertexElementn3"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>unsigned short&nbsp;</td><td valign=bottom><a class="el" href="classOgre_1_1VertexElement.html#Ogre_1_1VertexElementn4">mIndex</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Index of the item, only applicable for some elements like texture coords.</em> <a href="#Ogre_1_1VertexElementn4"></a><em></em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This class declares the usage of a single vertex buffer as a component of a complete <a class="el" href="classOgre_1_1VertexDeclaration.html">VertexDeclaration</a>.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Several vertex buffers can be used to supply the input geometry for a rendering operation, and in each case a vertex buffer can be used in different ways for different operations; the buffer itself does not define the semantics (position, normal etc), the <a class="el" href="classOgre_1_1VertexElement.html">VertexElement</a> class does. </dl>
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00115">115</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="Ogre_1_1VertexElementa0" doxytag="Ogre::VertexElement::VertexElement"></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"> Ogre::VertexElement::VertexElement </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>source</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>size_t&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>offset</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceOgre.html#a631">VertexElementType</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>theType</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceOgre.html#a630">VertexElementSemantic</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>semantic</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>index</em> = 0</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructor, should not be called directly, call <a class="el" href="classOgre_1_1VertexDeclaration.html#Ogre_1_1VertexDeclarationa3">VertexDeclaration::addElement</a>.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html#l00063">63</a> of file <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html">OgreHardwareVertexBuffer.cpp</a>.
<p>
References <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00070">Ogre::VertexElementSemantic</a>, and <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00093">Ogre::VertexElementType</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="Ogre_1_1VertexElementa10" doxytag="Ogre::VertexElement::baseVertexPointerToElement"></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 Ogre::VertexElement::baseVertexPointerToElement </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>pBase</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned char **&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>pElem</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Adjusts a pointer to the base of a vertex to point at this element.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 This variant is for char pointers, passed as a parameter because we can't rely on covariant return types. </dl><dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>pBase</em>&nbsp;</td><td>
Pointer to the start of a vertex in this buffer. </td></tr>
<tr><td valign=top><em>pElem</em>&nbsp;</td><td>
Pointer to a pointer which will be set to the start of this element. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00202">202</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementa9" doxytag="Ogre::VertexElement::baseVertexPointerToElement"></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 Ogre::VertexElement::baseVertexPointerToElement </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>pBase</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceOgre.html#a53">RGBA</a> **&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>pElem</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Adjusts a pointer to the base of a vertex to point at this element.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 This variant is for RGBA pointers, passed as a parameter because we can't rely on covariant return types. </dl><dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>pBase</em>&nbsp;</td><td>
Pointer to the start of a vertex in this buffer. </td></tr>
<tr><td valign=top><em>pElem</em>&nbsp;</td><td>
Pointer to a pointer which will be set to the start of this element. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00189">189</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.
<p>
References <a class="el" href="OgreColourValue_8h-source.html#l00032">Ogre::RGBA</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementa8" doxytag="Ogre::VertexElement::baseVertexPointerToElement"></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 Ogre::VertexElement::baseVertexPointerToElement </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>pBase</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="namespaceOgre.html#a349">Real</a> **&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>pElem</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Adjusts a pointer to the base of a vertex to point at this element.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 This variant is for Real pointers, passed as a parameter because we can't rely on covariant return types. </dl><dl compact><dt><b>
Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>pBase</em>&nbsp;</td><td>
Pointer to the start of a vertex in this buffer. </td></tr>
<tr><td valign=top><em>pElem</em>&nbsp;</td><td>
Pointer to a pointer which will be set to the start of this element. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00172">172</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.
<p>
References <a class="el" href="OgrePrerequisites_8h-source.html#l00086">Ogre::Real</a>.
<p>
Referenced by <a class="el" href="OgreProgressiveMesh_8cpp-source.html#l00172">Ogre::ProgressiveMesh::addWorkingData</a>(), <a class="el" href="OgrePatchSurface_8cpp-source.html#l00053">Ogre::PatchSurface::defineSurface</a>(), <a class="el" href="OgrePatchSurface_8cpp-source.html#l00381">Ogre::PatchSurface::distributeControlPoints</a>(), <a class="el" href="OgrePatchSurface_8cpp-source.html#l00629">Ogre::PatchSurface::interpolateVertexData</a>(), and <a class="el" href="OgreMeshSerializerImpl_8cpp-source.html#l00237">Ogre::MeshSerializerImpl::writeCondensedVertexBuffer</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementa5" doxytag="Ogre::VertexElement::getIndex"></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"> unsigned short Ogre::VertexElement::getIndex </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the index of this element, only applicable for repeating elements.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00141">141</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.
<p>
Referenced by <a class="el" href="OgreD3D7RenderSystem_8cpp-source.html#l01352">Ogre::D3DRenderSystem::_render</a>(), and <a class="el" href="OgreMesh_8cpp-source.html#l00575">Ogre::Mesh::compileBoneAssignmentsHardware</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementa2" doxytag="Ogre::VertexElement::getOffset"></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"> size_t Ogre::VertexElement::getOffset </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the offset into the buffer where this element starts.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00135">135</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.
<p>
Referenced by <a class="el" href="OgreD3D7RenderSystem_8cpp-source.html#l01352">Ogre::D3DRenderSystem::_render</a>(), and <a class="el" href="OgreRenderSystem_8cpp-source.html#l00321">Ogre::RenderSystem::softwareVertexBlend</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementa4" doxytag="Ogre::VertexElement::getSemantic"></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="namespaceOgre.html#a630">VertexElementSemantic</a> Ogre::VertexElement::getSemantic </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the meaning of this element.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00139">139</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.
<p>
References <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00070">Ogre::VertexElementSemantic</a>.
<p>
Referenced by <a class="el" href="OgreD3D7RenderSystem_8cpp-source.html#l01352">Ogre::D3DRenderSystem::_render</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementa6" doxytag="Ogre::VertexElement::getSize"></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"> size_t Ogre::VertexElement::getSize </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the size of this element in bytes.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html#l00070">70</a> of file <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html">OgreHardwareVertexBuffer.cpp</a>.
<p>
References <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html#l00075">getTypeSize</a>(), and <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00123">mType</a>.
<p>
Referenced by <a class="el" href="OgreMeshSerializerImpl_8cpp-source.html#l00237">Ogre::MeshSerializerImpl::writeCondensedVertexBuffer</a>(), and <a class="el" href="OgreMeshSerializerImpl_8cpp-source.html#l00268">Ogre::MeshSerializerImpl::writeGeometry</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementa1" doxytag="Ogre::VertexElement::getSource"></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"> unsigned short Ogre::VertexElement::getSource </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the vertex buffer index from where this element draws it's values.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00133">133</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.
<p>
Referenced by <a class="el" href="OgreD3D7RenderSystem_8cpp-source.html#l01352">Ogre::D3DRenderSystem::_render</a>(), <a class="el" href="OgreProgressiveMesh_8cpp-source.html#l00172">Ogre::ProgressiveMesh::addWorkingData</a>(), <a class="el" href="OgreMesh_8cpp-source.html#l00907">Ogre::Mesh::buildTangentVectors</a>(), <a class="el" href="OgreMesh_8cpp-source.html#l00868">Ogre::Mesh::getTangentsBuffer</a>(), <a class="el" href="OgreRenderSystem_8cpp-source.html#l00321">Ogre::RenderSystem::softwareVertexBlend</a>(), and <a class="el" href="OgreMeshSerializerImpl_8cpp-source.html#l00268">Ogre::MeshSerializerImpl::writeGeometry</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementa3" doxytag="Ogre::VertexElement::getType"></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="namespaceOgre.html#a631">VertexElementType</a> Ogre::VertexElement::getType </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the data format of this element.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00137">137</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.
<p>
References <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00093">Ogre::VertexElementType</a>.
<p>
Referenced by <a class="el" href="OgreD3D7RenderSystem_8cpp-source.html#l01352">Ogre::D3DRenderSystem::_render</a>(), <a class="el" href="OgreMesh_8cpp-source.html#l00907">Ogre::Mesh::buildTangentVectors</a>(), <a class="el" href="OgreMeshSerializerImpl_8cpp-source.html#l00389">Ogre::MeshSerializerImpl::calcGeometrySize</a>(), <a class="el" href="OgrePatchSurface_8cpp-source.html#l00381">Ogre::PatchSurface::distributeControlPoints</a>(), <a class="el" href="OgreMesh_8cpp-source.html#l00868">Ogre::Mesh::getTangentsBuffer</a>(), <a class="el" href="OgrePatchSurface_8cpp-source.html#l00629">Ogre::PatchSurface::interpolateVertexData</a>(), <a class="el" href="OgreMeshSerializerImpl_8cpp-source.html#l00237">Ogre::MeshSerializerImpl::writeCondensedVertexBuffer</a>(), and <a class="el" href="OgreMeshSerializerImpl_8cpp-source.html#l00268">Ogre::MeshSerializerImpl::writeGeometry</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementd1" doxytag="Ogre::VertexElement::getTypeCount"></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"> unsigned short Ogre::VertexElement::getTypeCount </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a631">VertexElementType</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>etype</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Utility method which returns the count of values in a given type.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html#l00101">101</a> of file <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html">OgreHardwareVertexBuffer.cpp</a>.
<p>
References <a class="el" href="OgreException_8h-source.html#l00033">Except</a>, <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00093">Ogre::VertexElementType</a>, <a class="el" href="namespaceOgre.html#a631a156">Ogre::VET_COLOUR</a>, <a class="el" href="namespaceOgre.html#a631a152">Ogre::VET_FLOAT1</a>, <a class="el" href="namespaceOgre.html#a631a153">Ogre::VET_FLOAT2</a>, <a class="el" href="namespaceOgre.html#a631a154">Ogre::VET_FLOAT3</a>, <a class="el" href="namespaceOgre.html#a631a155">Ogre::VET_FLOAT4</a>, <a class="el" href="namespaceOgre.html#a631a157">Ogre::VET_SHORT1</a>, <a class="el" href="namespaceOgre.html#a631a158">Ogre::VET_SHORT2</a>, <a class="el" href="namespaceOgre.html#a631a159">Ogre::VET_SHORT3</a>, and <a class="el" href="namespaceOgre.html#a631a160">Ogre::VET_SHORT4</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementd0" doxytag="Ogre::VertexElement::getTypeSize"></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"> size_t Ogre::VertexElement::getTypeSize </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a631">VertexElementType</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>etype</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Utility method for helping to calculate offsets.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html#l00075">75</a> of file <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html">OgreHardwareVertexBuffer.cpp</a>.
<p>
References <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00093">Ogre::VertexElementType</a>, <a class="el" href="namespaceOgre.html#a631a156">Ogre::VET_COLOUR</a>, <a class="el" href="namespaceOgre.html#a631a152">Ogre::VET_FLOAT1</a>, <a class="el" href="namespaceOgre.html#a631a153">Ogre::VET_FLOAT2</a>, <a class="el" href="namespaceOgre.html#a631a154">Ogre::VET_FLOAT3</a>, <a class="el" href="namespaceOgre.html#a631a155">Ogre::VET_FLOAT4</a>, <a class="el" href="namespaceOgre.html#a631a157">Ogre::VET_SHORT1</a>, <a class="el" href="namespaceOgre.html#a631a158">Ogre::VET_SHORT2</a>, <a class="el" href="namespaceOgre.html#a631a159">Ogre::VET_SHORT3</a>, and <a class="el" href="namespaceOgre.html#a631a160">Ogre::VET_SHORT4</a>.
<p>
Referenced by <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html#l00070">getSize</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementd2" doxytag="Ogre::VertexElement::multiplyTypeCount"></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="namespaceOgre.html#a631">VertexElementType</a> Ogre::VertexElement::multiplyTypeCount </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="namespaceOgre.html#a631">VertexElementType</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>baseType</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>unsigned short&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>count</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Simple converter function which will turn a single-value type into a multi-value type based on a parameter.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html#l00128">128</a> of file <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html">OgreHardwareVertexBuffer.cpp</a>.
<p>
References <a class="el" href="OgreException_8h-source.html#l00033">Except</a>, <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00093">Ogre::VertexElementType</a>, <a class="el" href="namespaceOgre.html#a631a152">Ogre::VET_FLOAT1</a>, <a class="el" href="namespaceOgre.html#a631a153">Ogre::VET_FLOAT2</a>, <a class="el" href="namespaceOgre.html#a631a154">Ogre::VET_FLOAT3</a>, <a class="el" href="namespaceOgre.html#a631a155">Ogre::VET_FLOAT4</a>, <a class="el" href="namespaceOgre.html#a631a157">Ogre::VET_SHORT1</a>, <a class="el" href="namespaceOgre.html#a631a158">Ogre::VET_SHORT2</a>, <a class="el" href="namespaceOgre.html#a631a159">Ogre::VET_SHORT3</a>, and <a class="el" href="namespaceOgre.html#a631a160">Ogre::VET_SHORT4</a>.    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementa7" doxytag="Ogre::VertexElement::operator=="></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"> bool Ogre::VertexElement::operator== </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const VertexElement &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>rhs</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00153">153</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.
<p>
References <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00127">mIndex</a>, <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00121">mOffset</a>, <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00125">mSemantic</a>, <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00119">mSource</a>, and <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00123">mType</a>.    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="Ogre_1_1VertexElementn4" doxytag="Ogre::VertexElement::mIndex"></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"> unsigned short Ogre::VertexElement::mIndex<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Index of the item, only applicable for some elements like texture coords.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00127">127</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.
<p>
Referenced by <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00153">operator==</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementn1" doxytag="Ogre::VertexElement::mOffset"></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"> size_t Ogre::VertexElement::mOffset<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The offset in the buffer that this element starts at.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00121">121</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.
<p>
Referenced by <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00153">operator==</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementn3" doxytag="Ogre::VertexElement::mSemantic"></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="namespaceOgre.html#a630">VertexElementSemantic</a> Ogre::VertexElement::mSemantic<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The meaning of the element.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00125">125</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.
<p>
Referenced by <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00153">operator==</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementn0" doxytag="Ogre::VertexElement::mSource"></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"> unsigned short Ogre::VertexElement::mSource<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The source vertex buffer, as bound to an index using <a class="el" href="classOgre_1_1VertexBufferBinding.html">VertexBufferBinding</a>.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00119">119</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.
<p>
Referenced by <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00153">operator==</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1VertexElementn2" doxytag="Ogre::VertexElement::mType"></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="namespaceOgre.html#a631">VertexElementType</a> Ogre::VertexElement::mType<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The type of element.
<p>

<p>
Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00123">123</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>.
<p>
Referenced by <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html#l00070">getSize</a>(), and <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00153">operator==</a>().    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a><li><a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html">OgreHardwareVertexBuffer.cpp</a></ul>
<p>
Copyright &copy; 2002-2003 by The OGRE Team<br />
Last modified Wed Jan 21 00:21:14 2004
</p>
</body>
</html>