MCPcopy Create free account
hub / github.com/OGRECave/ogre / getCurrentVertexCount

Method getCurrentVertexCount

OgreMain/src/OgreManualObject.cpp:212–225  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

210 }
211 //-----------------------------------------------------------------------------
212 size_t ManualObject::getCurrentVertexCount() const
213 {
214 if (!mCurrentSection)
215 return 0;
216
217 RenderOperation* rop = mCurrentSection->getRenderOperation();
218
219 // There's an unfinished vertex being defined, so include it in count
220 if (mTempVertexPending)
221 return rop->vertexData->vertexCount + 1;
222 else
223 return rop->vertexData->vertexCount;
224
225 }
226 //-----------------------------------------------------------------------------
227 size_t ManualObject::getCurrentIndexCount() const
228 {

Callers 7

drawLineMethod · 0.80
beginLinesMethod · 0.80
beginAxesMethod · 0.80
drawWireBoxMethod · 0.80
drawFrustumMethod · 0.80
drawAxis2DMethod · 0.80

Calls 1

getRenderOperationMethod · 0.45

Tested by

no test coverage detected