MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getVertexBuffer

Method getVertexBuffer

Engine/source/ts/tsShape.cpp:728–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726}
727
728void TSShape::getVertexBuffer(TSVertexBufferHandle &vb, GFXBufferType bufferType)
729{
730 vb.set(GFX, mVertexSize, &mVertexFormat, mShapeVertexData.size / mVertexSize, bufferType);
731
732 U8 *vertPtr = vb.lock();
733 dMemcpy(vertPtr, mShapeVertexData.base, mShapeVertexData.size);
734 vb.unlock();
735}
736
737void TSShape::initVertexBufferPointers()
738{

Callers 1

renderMethod · 0.80

Calls 4

dMemcpyFunction · 0.50
setMethod · 0.45
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected