<html> <head> <title>Ogre::GLDefaultHardwareVertexBuffer 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> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>Ogre::GLDefaultHardwareVertexBuffer Class Reference</h1>Specialisation of <a class="el" href="classOgre_1_1HardwareVertexBuffer.html">HardwareVertexBuffer</a> for emulation. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="OgreGLDefaultHardwareBufferManager_8h-source.html">OgreGLDefaultHardwareBufferManager.h</a>></code> <p> Inheritance diagram for Ogre::GLDefaultHardwareVertexBuffer:<p><center><img src="classOgre_1_1GLDefaultHardwareVertexBuffer__inherit__graph.png" border="0" usemap="#Ogre_1_1GLDefaultHardwareVertexBuffer__inherit__map" alt="Inheritance graph"></center> <map name="Ogre_1_1GLDefaultHardwareVertexBuffer__inherit__map"> <area href="classOgre_1_1HardwareVertexBuffer.html" shape="rect" coords="36,105,212,86" alt=""> <area href="classOgre_1_1HardwareBuffer.html" shape="rect" coords="56,36,192,17" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for Ogre::GLDefaultHardwareVertexBuffer:<p><center><img src="classOgre_1_1GLDefaultHardwareVertexBuffer__coll__graph.png" border="0" usemap="#Ogre_1_1GLDefaultHardwareVertexBuffer__coll__map" alt="Collaboration graph"></center> <map name="Ogre_1_1GLDefaultHardwareVertexBuffer__coll__map"> <area href="classOgre_1_1HardwareVertexBuffer.html" shape="rect" coords="36,107,212,89" alt=""> <area href="classOgre_1_1HardwareBuffer.html" shape="rect" coords="56,35,192,17" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classOgre_1_1GLDefaultHardwareVertexBuffer-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Public Types</h2></td></tr> <tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffers9">Usage</a> { <br> <a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffers9Ogre_1_1HardwareVertexBuffers0">HBU_STATIC</a> = 1, <a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffers9Ogre_1_1HardwareVertexBuffers1">HBU_DYNAMIC</a> = 2, <a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffers9Ogre_1_1HardwareVertexBuffers2">HBU_WRITE_ONLY</a> = 4, <a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffers9Ogre_1_1HardwareVertexBuffers3">HBU_STATIC_WRITE_ONLY</a> = 5, <br> <a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffers9Ogre_1_1HardwareVertexBuffers4">HBU_DYNAMIC_WRITE_ONLY</a> = 6 <br> }</td></tr> <tr><td> </td><td><font size=-1><em>Enums describing buffer usage; not mutually exclusive.</em> <a href="#Ogre_1_1HardwareVertexBuffers9">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffers10">LockOptions</a> { <a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffers10Ogre_1_1HardwareVertexBuffers5">HBL_NORMAL</a>, <a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffers10Ogre_1_1HardwareVertexBuffers6">HBL_DISCARD</a>, <a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffers10Ogre_1_1HardwareVertexBuffers7">HBL_READ_ONLY</a>, <a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffers10Ogre_1_1HardwareVertexBuffers8">HBL_NO_OVERWRITE</a> }</td></tr> <tr><td> </td><td><font size=-1><em>Locking options.</em> <a href="#Ogre_1_1HardwareVertexBuffers10">More...</a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1GLDefaultHardwareVertexBuffera0">GLDefaultHardwareVertexBuffer</a> (size_t vertexSize, size_t numVertices, <a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffers9">HardwareBuffer::Usage</a> usage)</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1GLDefaultHardwareVertexBuffera1">~GLDefaultHardwareVertexBuffer</a> ()</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1GLDefaultHardwareVertexBuffera2">readData</a> (size_t offset, size_t length, void *pDest)</td></tr> <tr><td> </td><td><font size=-1><em>See <a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a>.</em> <a href="#Ogre_1_1GLDefaultHardwareVertexBuffera2"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1GLDefaultHardwareVertexBuffera3">writeData</a> (size_t offset, size_t length, const void *pSource, bool discardWholeBuffer=false)</td></tr> <tr><td> </td><td><font size=-1><em>See <a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a>.</em> <a href="#Ogre_1_1GLDefaultHardwareVertexBuffera3"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void * </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1GLDefaultHardwareVertexBuffera4">lock</a> (size_t offset, size_t length, <a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffers10">LockOptions</a> options)</td></tr> <tr><td> </td><td><font size=-1><em>Override <a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a> to turn off all shadowing.</em> <a href="#Ogre_1_1GLDefaultHardwareVertexBuffera4"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1GLDefaultHardwareVertexBuffera5">unlock</a> (void)</td></tr> <tr><td> </td><td><font size=-1><em>Override <a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a> to turn off all shadowing.</em> <a href="#Ogre_1_1GLDefaultHardwareVertexBuffera5"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void * </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1GLDefaultHardwareVertexBuffera6">getDataPtr</a> (size_t offset) const</td></tr> <tr><td nowrap align=right valign=top>size_t </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffera2">getVertexSize</a> (void) const</td></tr> <tr><td> </td><td><font size=-1><em>Gets the size in bytes of a single vertex in this buffer.</em> <a href="#Ogre_1_1HardwareVertexBuffera2"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>size_t </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffera3">getNumVertices</a> (void) const</td></tr> <tr><td> </td><td><font size=-1><em>Get the number of vertices in this buffer.</em> <a href="#Ogre_1_1HardwareVertexBuffera3"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void * </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffera5">lock</a> (<a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffers10">LockOptions</a> options)</td></tr> <tr><td> </td><td><font size=-1><em>Lock the entire buffer for (potentially) reading / writing.</em> <a href="#Ogre_1_1HardwareVertexBuffera5"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffera9">copyData</a> (<a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a> &srcBuffer, size_t srcOffset, size_t dstOffset, size_t length, bool discardWholeBuffer=false)</td></tr> <tr><td> </td><td><font size=-1><em>Copy data from another buffer into this one.</em> <a href="#Ogre_1_1HardwareVertexBuffera9"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffera10">_updateFromShadow</a> (void)</td></tr> <tr><td> </td><td><font size=-1><em>Updates the real buffer from the shadow buffer, if required.</em> <a href="#Ogre_1_1HardwareVertexBuffera10"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>size_t </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffera11">getSizeInBytes</a> (void) const</td></tr> <tr><td> </td><td><font size=-1><em>Returns the size of this buffer in bytes.</em> <a href="#Ogre_1_1HardwareVertexBuffera11"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffers9">Usage</a> </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffera12">getUsage</a> (void) const</td></tr> <tr><td> </td><td><font size=-1><em>Returns the Usage flags with which this buffer was created.</em> <a href="#Ogre_1_1HardwareVertexBuffera12"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffera13">isSystemMemory</a> (void) const</td></tr> <tr><td> </td><td><font size=-1><em>Returns whether this buffer is held in system memory.</em> <a href="#Ogre_1_1HardwareVertexBuffera13"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffera14">isLocked</a> (void) const</td></tr> <tr><td> </td><td><font size=-1><em>Returns whether or not this buffer is currently locked.</em> <a href="#Ogre_1_1HardwareVertexBuffera14"></a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Protected Methods</h2></td></tr> <tr><td nowrap align=right valign=top>void * </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1GLDefaultHardwareVertexBufferb0">lockImpl</a> (size_t offset, size_t length, <a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffers10">LockOptions</a> options)</td></tr> <tr><td> </td><td><font size=-1><em>See <a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a>.</em> <a href="#Ogre_1_1GLDefaultHardwareVertexBufferb0"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1GLDefaultHardwareVertexBufferb1">unlockImpl</a> (void)</td></tr> <tr><td> </td><td><font size=-1><em>See <a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a>.</em> <a href="#Ogre_1_1GLDefaultHardwareVertexBufferb1"></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 char * </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1GLDefaultHardwareVertexBuffern0">mpData</a></td></tr> <tr><td nowrap align=right valign=top>size_t </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffern0">mNumVertices</a></td></tr> <tr><td nowrap align=right valign=top>size_t </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffern1">mVertexSize</a></td></tr> <tr><td nowrap align=right valign=top>size_t </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffern2">mSizeInBytes</a></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffers9">Usage</a> </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffern3">mUsage</a></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffern4">mIsLocked</a></td></tr> <tr><td nowrap align=right valign=top>size_t </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffern5">mLockStart</a></td></tr> <tr><td nowrap align=right valign=top>size_t </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffern6">mLockSize</a></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffern7">mSystemMemory</a></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffern8">mUseShadowBuffer</a></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a> * </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffern9">mpShadowBuffer</a></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classOgre_1_1GLDefaultHardwareVertexBuffer.html#Ogre_1_1HardwareVertexBuffern10">mShadowUpdated</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Specialisation of <a class="el" href="classOgre_1_1HardwareVertexBuffer.html">HardwareVertexBuffer</a> for emulation. <p> <p> Definition at line <a class="el" href="OgreGLDefaultHardwareBufferManager_8h-source.html#l00037">37</a> of file <a class="el" href="OgreGLDefaultHardwareBufferManager_8h-source.html">OgreGLDefaultHardwareBufferManager.h</a>.<hr><h2>Member Enumeration Documentation</h2> <a name="Ogre_1_1HardwareVertexBuffers10" doxytag="Ogre::GLDefaultHardwareVertexBuffer::LockOptions"></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"> enum Ogre::HardwareBuffer::LockOptions<code> [inherited]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Locking options. <p> <dl compact><dt><b> Enumeration values:</b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em><a name="Ogre_1_1HardwareVertexBuffers10Ogre_1_1HardwareVertexBuffers5" doxytag="HBL_NORMAL"></a><em>HBL_NORMAL</em></em> </td><td> Normal mode, ie allows read/write and contents are preserved.</td></tr> <tr><td valign=top><em><a name="Ogre_1_1HardwareVertexBuffers10Ogre_1_1HardwareVertexBuffers6" doxytag="HBL_DISCARD"></a><em>HBL_DISCARD</em></em> </td><td> Discards the <em>entire</em> buffer while locking; this allows optimisation to be performed because synchronisation issues are relaxed. <p> Only allowed on buffers created with the HBU_DYNAMIC flag. </td></tr> <tr><td valign=top><em><a name="Ogre_1_1HardwareVertexBuffers10Ogre_1_1HardwareVertexBuffers7" doxytag="HBL_READ_ONLY"></a><em>HBL_READ_ONLY</em></em> </td><td> Lock the buffer for reading only. <p> Not allowed in buffers which are created with HBU_WRITE_ONLY. Mandatory on statuc buffers, ie those created without the HBU_DYNAMIC flag. </td></tr> <tr><td valign=top><em><a name="Ogre_1_1HardwareVertexBuffers10Ogre_1_1HardwareVertexBuffers8" doxytag="HBL_NO_OVERWRITE"></a><em>HBL_NO_OVERWRITE</em></em> </td><td> As HBL_NORMAL, except the application guarantees not to overwrite any region of the buffer which has already been used in this frame, can allow some optimisation on some APIs.</td></tr> </table> </dl> <p> Definition at line <a class="el" href="OgreHardwareBuffer_8h-source.html#l00096">96</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffers9" doxytag="Ogre::GLDefaultHardwareVertexBuffer::Usage"></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"> enum Ogre::HardwareBuffer::Usage<code> [inherited]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Enums describing buffer usage; not mutually exclusive. <p> <dl compact><dt><b> Enumeration values:</b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em><a name="Ogre_1_1HardwareVertexBuffers9Ogre_1_1HardwareVertexBuffers0" doxytag="HBU_STATIC"></a><em>HBU_STATIC</em></em> </td><td> Static buffer which the application rarely modifies once created. <p> Modifying the contents of this buffer will involve a performance hit. </td></tr> <tr><td valign=top><em><a name="Ogre_1_1HardwareVertexBuffers9Ogre_1_1HardwareVertexBuffers1" doxytag="HBU_DYNAMIC"></a><em>HBU_DYNAMIC</em></em> </td><td> Indicates the application would like to modify this buffer with the CPU fairly often. <p> Buffers created with this flag will typically end up in AGP memory rather than video memory. </td></tr> <tr><td valign=top><em><a name="Ogre_1_1HardwareVertexBuffers9Ogre_1_1HardwareVertexBuffers2" doxytag="HBU_WRITE_ONLY"></a><em>HBU_WRITE_ONLY</em></em> </td><td> Indicates the application will never read the contents of the buffer back, it will only ever write data. <p> Locking a buffer with this flag will ALWAYS return a pointer to new, blank memory rather than the memory associated with the contents of the buffer; this avoids DMA stalls because you can write to a new memory area while the previous one is being used </td></tr> <tr><td valign=top><em><a name="Ogre_1_1HardwareVertexBuffers9Ogre_1_1HardwareVertexBuffers3" doxytag="HBU_STATIC_WRITE_ONLY"></a><em>HBU_STATIC_WRITE_ONLY</em></em> </td><td> Combination of HBU_STATIC and HBU_WRITE_ONLY.</td></tr> <tr><td valign=top><em><a name="Ogre_1_1HardwareVertexBuffers9Ogre_1_1HardwareVertexBuffers4" doxytag="HBU_DYNAMIC_WRITE_ONLY"></a><em>HBU_DYNAMIC_WRITE_ONLY</em></em> </td><td> Combination of HBU_DYNAMIC and HBU_WRITE_ONLY.</td></tr> </table> </dl> <p> Definition at line <a class="el" href="OgreHardwareBuffer_8h-source.html#l00069">69</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. </td> </tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a name="Ogre_1_1GLDefaultHardwareVertexBuffera0" doxytag="Ogre::GLDefaultHardwareVertexBuffer::GLDefaultHardwareVertexBuffer"></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::GLDefaultHardwareVertexBuffer::GLDefaultHardwareVertexBuffer </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">size_t </td> <td class="mdname" nowrap> <em>vertexSize</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>size_t </td> <td class="mdname" nowrap> <em>numVertices</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffers9">HardwareBuffer::Usage</a> </td> <td class="mdname" nowrap> <em>usage</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="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00029">29</a> of file <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html">OgreGLDefaultHardwareBufferManager.cpp</a>. <p> References <a class="el" href="OgreGLDefaultHardwareBufferManager_8h-source.html#l00040">mpData</a>, and <a class="el" href="OgreHardwareBuffer_8h-source.html#l00116">Ogre::HardwareBuffer::mSizeInBytes</a>. </td> </tr> </table> <a name="Ogre_1_1GLDefaultHardwareVertexBuffera1" doxytag="Ogre::GLDefaultHardwareVertexBuffer::~GLDefaultHardwareVertexBuffer"></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::GLDefaultHardwareVertexBuffer::~GLDefaultHardwareVertexBuffer </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00036">36</a> of file <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html">OgreGLDefaultHardwareBufferManager.cpp</a>. <p> References <a class="el" href="OgreGLDefaultHardwareBufferManager_8h-source.html#l00040">mpData</a>. </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="Ogre_1_1HardwareVertexBuffera10" doxytag="Ogre::GLDefaultHardwareVertexBuffer::_updateFromShadow"></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"> virtual void Ogre::HardwareBuffer::_updateFromShadow </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Updates the real buffer from the shadow buffer, if required. <p> <p> Definition at line <a class="el" href="OgreHardwareBuffer_8h-source.html#l00247">247</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. <p> References <a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBufferb0">Ogre::HardwareBuffer::lockImpl</a>(), and <a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBufferb1">Ogre::HardwareBuffer::unlockImpl</a>(). </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffera9" doxytag="Ogre::GLDefaultHardwareVertexBuffer::copyData"></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"> virtual void Ogre::HardwareBuffer::copyData </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a> & </td> <td class="mdname" nowrap> <em>srcBuffer</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>size_t </td> <td class="mdname" nowrap> <em>srcOffset</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>size_t </td> <td class="mdname" nowrap> <em>dstOffset</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>size_t </td> <td class="mdname" nowrap> <em>length</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>discardWholeBuffer</em> = false</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Copy data from another buffer into this one. <p> <dl compact><dt><b> Remarks: </b><dd> Note that the source buffer must not be created with the usage HBU_WRITE_ONLY otherwise this will fail. </dl><dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>srcBuffer</em> </td><td> The buffer from which to read the copied data </td></tr> <tr><td valign=top><em>srcOffset</em> </td><td> Offset in the source buffer at which to start reading </td></tr> <tr><td valign=top><em>dstOffset</em> </td><td> Offset in the destination buffer to start writing </td></tr> <tr><td valign=top><em>length</em> </td><td> Length of the data to copy, in bytes. </td></tr> <tr><td valign=top><em>discardWholeBuffer</em> </td><td> If true, will discard the entire contents of this buffer before copying </td></tr> </table> </dl> <p> Definition at line <a class="el" href="OgreHardwareBuffer_8h-source.html#l00237">237</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. <p> References <a class="el" href="OgreHardwareBuffer_8h-source.html#l00143">Ogre::HardwareBuffer::lock</a>(), and <a class="el" href="OgreHardwareBuffer_8h-source.html#l00189">Ogre::HardwareBuffer::unlock</a>(). </td> </tr> </table> <a name="Ogre_1_1GLDefaultHardwareVertexBuffera6" doxytag="Ogre::GLDefaultHardwareVertexBuffer::getDataPtr"></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::GLDefaultHardwareVertexBuffer::getDataPtr </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">size_t </td> <td class="mdname1" valign="top" nowrap> <em>offset</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</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="OgreGLDefaultHardwareBufferManager_8h-source.html#l00061">61</a> of file <a class="el" href="OgreGLDefaultHardwareBufferManager_8h-source.html">OgreGLDefaultHardwareBufferManager.h</a>. <p> References <a class="el" href="OgreGLDefaultHardwareBufferManager_8h-source.html#l00040">mpData</a>. </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffera3" doxytag="Ogre::GLDefaultHardwareVertexBuffer::getNumVertices"></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::HardwareVertexBuffer::getNumVertices </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Get the number of vertices in this buffer. <p> <p> Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00051">51</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>. </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffera11" doxytag="Ogre::GLDefaultHardwareVertexBuffer::getSizeInBytes"></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::HardwareBuffer::getSizeInBytes </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns the size of this buffer in bytes. <p> <p> Definition at line <a class="el" href="OgreHardwareBuffer_8h-source.html#l00272">272</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffera12" doxytag="Ogre::GLDefaultHardwareVertexBuffer::getUsage"></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="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffers9">Usage</a> Ogre::HardwareBuffer::getUsage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns the Usage flags with which this buffer was created. <p> <p> Definition at line <a class="el" href="OgreHardwareBuffer_8h-source.html#l00274">274</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffera2" doxytag="Ogre::GLDefaultHardwareVertexBuffer::getVertexSize"></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::HardwareVertexBuffer::getVertexSize </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the size in bytes of a single vertex in this buffer. <p> <p> Definition at line <a class="el" href="OgreHardwareVertexBuffer_8h-source.html#l00049">49</a> of file <a class="el" href="OgreHardwareVertexBuffer_8h-source.html">OgreHardwareVertexBuffer.h</a>. <p> Referenced by <a class="el" href="OgreD3D9RenderSystem_8cpp-source.html#l01781">Ogre::D3D9RenderSystem::setVertexBufferBinding</a>(). </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffera14" doxytag="Ogre::GLDefaultHardwareVertexBuffer::isLocked"></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::HardwareBuffer::isLocked </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns whether or not this buffer is currently locked. <p> <p> Definition at line <a class="el" href="OgreHardwareBuffer_8h-source.html#l00278">278</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. <p> Referenced by <a class="el" href="OgreHardwareBuffer_8h-source.html#l00189">Ogre::HardwareBuffer::unlock</a>(). </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffera13" doxytag="Ogre::GLDefaultHardwareVertexBuffer::isSystemMemory"></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::HardwareBuffer::isSystemMemory </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns whether this buffer is held in system memory. <p> <p> Definition at line <a class="el" href="OgreHardwareBuffer_8h-source.html#l00276">276</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffera5" doxytag="Ogre::GLDefaultHardwareVertexBuffer::lock"></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::HardwareBuffer::lock </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffers10">LockOptions</a> </td> <td class="mdname1" valign="top" nowrap> <em>options</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Lock the entire buffer for (potentially) reading / writing. <p> <dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>options</em> </td><td> Locking options </td></tr> </table> </dl><dl compact><dt><b> Returns: </b><dd> Pointer to the locked memory </dl> <p> Definition at line <a class="el" href="OgreHardwareBuffer_8h-source.html#l00173">173</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. </td> </tr> </table> <a name="Ogre_1_1GLDefaultHardwareVertexBuffera4" doxytag="Ogre::GLDefaultHardwareVertexBuffer::lock"></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::GLDefaultHardwareVertexBuffer::lock </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">size_t </td> <td class="mdname" nowrap> <em>offset</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>size_t </td> <td class="mdname" nowrap> <em>length</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffers10">LockOptions</a> </td> <td class="mdname" nowrap> <em>options</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Override <a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a> to turn off all shadowing. <p> <p> Reimplemented from <a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffera4">Ogre::HardwareBuffer</a>. <p> Definition at line <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00052">52</a> of file <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html">OgreGLDefaultHardwareBufferManager.cpp</a>. <p> References <a class="el" href="OgreHardwareBuffer_8h-source.html#l00118">Ogre::HardwareBuffer::mIsLocked</a>, and <a class="el" href="OgreGLDefaultHardwareBufferManager_8h-source.html#l00040">mpData</a>. </td> </tr> </table> <a name="Ogre_1_1GLDefaultHardwareVertexBufferb0" doxytag="Ogre::GLDefaultHardwareVertexBuffer::lockImpl"></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::GLDefaultHardwareVertexBuffer::lockImpl </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">size_t </td> <td class="mdname" nowrap> <em>offset</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>size_t </td> <td class="mdname" nowrap> <em>length</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffers10">LockOptions</a> </td> <td class="mdname" nowrap> <em>options</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [protected, virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> See <a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a>. <p> <p> Implements <a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBufferb0">Ogre::HardwareBuffer</a>. <p> Definition at line <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00041">41</a> of file <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html">OgreGLDefaultHardwareBufferManager.cpp</a>. <p> References <a class="el" href="OgreGLDefaultHardwareBufferManager_8h-source.html#l00040">mpData</a>. </td> </tr> </table> <a name="Ogre_1_1GLDefaultHardwareVertexBuffera2" doxytag="Ogre::GLDefaultHardwareVertexBuffer::readData"></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::GLDefaultHardwareVertexBuffer::readData </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">size_t </td> <td class="mdname" nowrap> <em>offset</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>size_t </td> <td class="mdname" nowrap> <em>length</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>void * </td> <td class="mdname" nowrap> <em>pDest</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> See <a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a>. <p> <p> Implements <a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffera7">Ogre::HardwareBuffer</a>. <p> Definition at line <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00064">64</a> of file <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html">OgreGLDefaultHardwareBufferManager.cpp</a>. <p> References <a class="el" href="OgreGLDefaultHardwareBufferManager_8h-source.html#l00040">mpData</a>, and <a class="el" href="OgreHardwareBuffer_8h-source.html#l00116">Ogre::HardwareBuffer::mSizeInBytes</a>. </td> </tr> </table> <a name="Ogre_1_1GLDefaultHardwareVertexBuffera5" doxytag="Ogre::GLDefaultHardwareVertexBuffer::unlock"></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::GLDefaultHardwareVertexBuffer::unlock </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Override <a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a> to turn off all shadowing. <p> <p> Reimplemented from <a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffera6">Ogre::HardwareBuffer</a>. <p> Definition at line <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00058">58</a> of file <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html">OgreGLDefaultHardwareBufferManager.cpp</a>. <p> References <a class="el" href="OgreHardwareBuffer_8h-source.html#l00118">Ogre::HardwareBuffer::mIsLocked</a>. </td> </tr> </table> <a name="Ogre_1_1GLDefaultHardwareVertexBufferb1" doxytag="Ogre::GLDefaultHardwareVertexBuffer::unlockImpl"></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::GLDefaultHardwareVertexBuffer::unlockImpl </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [protected, virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> See <a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a>. <p> <p> Implements <a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBufferb1">Ogre::HardwareBuffer</a>. <p> Definition at line <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00047">47</a> of file <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html">OgreGLDefaultHardwareBufferManager.cpp</a>. </td> </tr> </table> <a name="Ogre_1_1GLDefaultHardwareVertexBuffera3" doxytag="Ogre::GLDefaultHardwareVertexBuffer::writeData"></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::GLDefaultHardwareVertexBuffer::writeData </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">size_t </td> <td class="mdname" nowrap> <em>offset</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>size_t </td> <td class="mdname" nowrap> <em>length</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const void * </td> <td class="mdname" nowrap> <em>pSource</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>discardWholeBuffer</em> = false</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> See <a class="el" href="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a>. <p> <p> Implements <a class="el" href="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffera8">Ogre::HardwareBuffer</a>. <p> Definition at line <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00070">70</a> of file <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html">OgreGLDefaultHardwareBufferManager.cpp</a>. <p> References <a class="el" href="OgreGLDefaultHardwareBufferManager_8h-source.html#l00040">mpData</a>, and <a class="el" href="OgreHardwareBuffer_8h-source.html#l00116">Ogre::HardwareBuffer::mSizeInBytes</a>. </td> </tr> </table> <hr><h2>Member Data Documentation</h2> <a name="Ogre_1_1HardwareVertexBuffern4" doxytag="Ogre::GLDefaultHardwareVertexBuffer::mIsLocked"></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::HardwareBuffer::mIsLocked<code> [protected, inherited]</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="OgreHardwareBuffer_8h-source.html#l00118">118</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. <p> Referenced by <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00103">Ogre::GLDefaultHardwareIndexBuffer::lock</a>(), <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00052">lock</a>(), <a class="el" href="OgreDefaultHardwareBufferManager_8cpp-source.html#l00104">Ogre::DefaultHardwareIndexBuffer::lock</a>(), <a class="el" href="OgreDefaultHardwareBufferManager_8cpp-source.html#l00053">Ogre::DefaultHardwareVertexBuffer::lock</a>(), <a class="el" href="OgreGLHardwareVertexBuffer_8cpp-source.html#l00059">Ogre::GLHardwareVertexBuffer::lockImpl</a>(), <a class="el" href="OgreGLHardwareIndexBuffer_8cpp-source.html#l00059">Ogre::GLHardwareIndexBuffer::lockImpl</a>(), <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00109">Ogre::GLDefaultHardwareIndexBuffer::unlock</a>(), <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00058">unlock</a>(), <a class="el" href="OgreDefaultHardwareBufferManager_8cpp-source.html#l00110">Ogre::DefaultHardwareIndexBuffer::unlock</a>(), <a class="el" href="OgreDefaultHardwareBufferManager_8cpp-source.html#l00059">Ogre::DefaultHardwareVertexBuffer::unlock</a>(), <a class="el" href="OgreGLHardwareVertexBuffer_8cpp-source.html#l00116">Ogre::GLHardwareVertexBuffer::unlockImpl</a>(), and <a class="el" href="OgreGLHardwareIndexBuffer_8cpp-source.html#l00118">Ogre::GLHardwareIndexBuffer::unlockImpl</a>(). </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffern6" doxytag="Ogre::GLDefaultHardwareVertexBuffer::mLockSize"></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::HardwareBuffer::mLockSize<code> [protected, inherited]</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="OgreHardwareBuffer_8h-source.html#l00120">120</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffern5" doxytag="Ogre::GLDefaultHardwareVertexBuffer::mLockStart"></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::HardwareBuffer::mLockStart<code> [protected, inherited]</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="OgreHardwareBuffer_8h-source.html#l00119">119</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffern0" doxytag="Ogre::GLDefaultHardwareVertexBuffer::mNumVertices"></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::HardwareVertexBuffer::mNumVertices<code> [protected, inherited]</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="OgreHardwareVertexBuffer_8h-source.html#l00040">40</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#l00036">Ogre::HardwareVertexBuffer::HardwareVertexBuffer</a>(). </td> </tr> </table> <a name="Ogre_1_1GLDefaultHardwareVertexBuffern0" doxytag="Ogre::GLDefaultHardwareVertexBuffer::mpData"></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 char* Ogre::GLDefaultHardwareVertexBuffer::mpData<code> [protected]</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="OgreGLDefaultHardwareBufferManager_8h-source.html#l00040">40</a> of file <a class="el" href="OgreGLDefaultHardwareBufferManager_8h-source.html">OgreGLDefaultHardwareBufferManager.h</a>. <p> Referenced by <a class="el" href="OgreGLDefaultHardwareBufferManager_8h-source.html#l00061">getDataPtr</a>(), <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00029">GLDefaultHardwareVertexBuffer</a>(), <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00052">lock</a>(), <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00041">lockImpl</a>(), <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00064">readData</a>(), <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00070">writeData</a>(), and <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00036">~GLDefaultHardwareVertexBuffer</a>(). </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffern9" doxytag="Ogre::GLDefaultHardwareVertexBuffer::mpShadowBuffer"></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="classOgre_1_1HardwareBuffer.html">HardwareBuffer</a>* Ogre::HardwareBuffer::mpShadowBuffer<code> [protected, inherited]</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="OgreHardwareBuffer_8h-source.html#l00123">123</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. <p> Referenced by <a class="el" href="OgreHardwareIndexBuffer_8cpp-source.html#l00034">Ogre::HardwareIndexBuffer::HardwareIndexBuffer</a>(), <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html#l00036">Ogre::HardwareVertexBuffer::HardwareVertexBuffer</a>(), <a class="el" href="OgreHardwareIndexBuffer_8cpp-source.html#l00061">Ogre::HardwareIndexBuffer::~HardwareIndexBuffer</a>(), and <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html#l00055">Ogre::HardwareVertexBuffer::~HardwareVertexBuffer</a>(). </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffern10" doxytag="Ogre::GLDefaultHardwareVertexBuffer::mShadowUpdated"></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::HardwareBuffer::mShadowUpdated<code> [protected, inherited]</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="OgreHardwareBuffer_8h-source.html#l00124">124</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffern2" doxytag="Ogre::GLDefaultHardwareVertexBuffer::mSizeInBytes"></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::HardwareBuffer::mSizeInBytes<code> [protected, inherited]</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="OgreHardwareBuffer_8h-source.html#l00116">116</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. <p> Referenced by <a class="el" href="OgreD3D9HardwareVertexBuffer_8cpp-source.html#l00032">Ogre::D3D9HardwareVertexBuffer::D3D9HardwareVertexBuffer</a>(), <a class="el" href="OgreDefaultHardwareBufferManager_8cpp-source.html#l00081">Ogre::DefaultHardwareIndexBuffer::DefaultHardwareIndexBuffer</a>(), <a class="el" href="OgreDefaultHardwareBufferManager_8cpp-source.html#l00030">Ogre::DefaultHardwareVertexBuffer::DefaultHardwareVertexBuffer</a>(), <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00080">Ogre::GLDefaultHardwareIndexBuffer::GLDefaultHardwareIndexBuffer</a>(), <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00029">GLDefaultHardwareVertexBuffer</a>(), <a class="el" href="OgreGLHardwareIndexBuffer_8cpp-source.html#l00032">Ogre::GLHardwareIndexBuffer::GLHardwareIndexBuffer</a>(), <a class="el" href="OgreGLHardwareVertexBuffer_8cpp-source.html#l00032">Ogre::GLHardwareVertexBuffer::GLHardwareVertexBuffer</a>(), <a class="el" href="OgreHardwareIndexBuffer_8cpp-source.html#l00034">Ogre::HardwareIndexBuffer::HardwareIndexBuffer</a>(), <a class="el" href="OgreHardwareVertexBuffer_8cpp-source.html#l00036">Ogre::HardwareVertexBuffer::HardwareVertexBuffer</a>(), <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00115">Ogre::GLDefaultHardwareIndexBuffer::readData</a>(), <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00064">readData</a>(), <a class="el" href="OgreDefaultHardwareBufferManager_8cpp-source.html#l00116">Ogre::DefaultHardwareIndexBuffer::readData</a>(), <a class="el" href="OgreDefaultHardwareBufferManager_8cpp-source.html#l00065">Ogre::DefaultHardwareVertexBuffer::readData</a>(), <a class="el" href="OgreGLHardwareVertexBuffer_8cpp-source.html#l00137">Ogre::GLHardwareVertexBuffer::writeData</a>(), <a class="el" href="OgreGLHardwareIndexBuffer_8cpp-source.html#l00139">Ogre::GLHardwareIndexBuffer::writeData</a>(), <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00121">Ogre::GLDefaultHardwareIndexBuffer::writeData</a>(), <a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html#l00070">writeData</a>(), <a class="el" href="OgreDefaultHardwareBufferManager_8cpp-source.html#l00122">Ogre::DefaultHardwareIndexBuffer::writeData</a>(), and <a class="el" href="OgreDefaultHardwareBufferManager_8cpp-source.html#l00071">Ogre::DefaultHardwareVertexBuffer::writeData</a>(). </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffern7" doxytag="Ogre::GLDefaultHardwareVertexBuffer::mSystemMemory"></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::HardwareBuffer::mSystemMemory<code> [protected, inherited]</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="OgreHardwareBuffer_8h-source.html#l00121">121</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffern3" doxytag="Ogre::GLDefaultHardwareVertexBuffer::mUsage"></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="classOgre_1_1HardwareBuffer.html#Ogre_1_1HardwareVertexBuffers9">Usage</a> Ogre::HardwareBuffer::mUsage<code> [protected, inherited]</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="OgreHardwareBuffer_8h-source.html#l00117">117</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. <p> Referenced by <a class="el" href="OgreGLHardwareVertexBuffer_8cpp-source.html#l00059">Ogre::GLHardwareVertexBuffer::lockImpl</a>(), <a class="el" href="OgreGLHardwareIndexBuffer_8cpp-source.html#l00059">Ogre::GLHardwareIndexBuffer::lockImpl</a>(), <a class="el" href="OgreD3D9HardwareVertexBuffer_8cpp-source.html#l00059">Ogre::D3D9HardwareVertexBuffer::lockImpl</a>(), <a class="el" href="OgreD3D9HardwareIndexBuffer_8cpp-source.html#l00061">Ogre::D3D9HardwareIndexBuffer::lockImpl</a>(), <a class="el" href="OgreGLHardwareVertexBuffer_8cpp-source.html#l00137">Ogre::GLHardwareVertexBuffer::writeData</a>(), and <a class="el" href="OgreGLHardwareIndexBuffer_8cpp-source.html#l00139">Ogre::GLHardwareIndexBuffer::writeData</a>(). </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffern8" doxytag="Ogre::GLDefaultHardwareVertexBuffer::mUseShadowBuffer"></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::HardwareBuffer::mUseShadowBuffer<code> [protected, inherited]</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="OgreHardwareBuffer_8h-source.html#l00122">122</a> of file <a class="el" href="OgreHardwareBuffer_8h-source.html">OgreHardwareBuffer.h</a>. </td> </tr> </table> <a name="Ogre_1_1HardwareVertexBuffern1" doxytag="Ogre::GLDefaultHardwareVertexBuffer::mVertexSize"></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::HardwareVertexBuffer::mVertexSize<code> [protected, inherited]</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="OgreHardwareVertexBuffer_8h-source.html#l00041">41</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#l00036">Ogre::HardwareVertexBuffer::HardwareVertexBuffer</a>(). </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="OgreGLDefaultHardwareBufferManager_8h-source.html">OgreGLDefaultHardwareBufferManager.h</a><li><a class="el" href="OgreGLDefaultHardwareBufferManager_8cpp-source.html">OgreGLDefaultHardwareBufferManager.cpp</a></ul> <p> Copyright © 2002-2003 by The OGRE Team<br /> Last modified Wed Jan 21 00:12:31 2004 </p> </body> </html>