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

Method drawPrimitive

Engine/source/gfx/gfxDevice.cpp:544–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544void GFXDevice::drawPrimitive( U32 primitiveIndex )
545{
546 AssertFatal( mCurrentPrimitiveBuffer.isValid(), "Trying to call drawPrimitive with no current primitive buffer, call setPrimitiveBuffer()" );
547 AssertFatal( primitiveIndex < mCurrentPrimitiveBuffer->mPrimitiveCount, "Out of range primitive index.");
548 drawPrimitive( mCurrentPrimitiveBuffer->mPrimitiveArray[primitiveIndex] );
549}
550
551void GFXDevice::drawPrimitive( const GFXPrimitive &prim )
552{

Callers 15

renderMethod · 0.45
innerRenderMethod · 0.45
processMethod · 0.45
_updateBaseTextureMethod · 0.45
drawBitmapStretchSRMethod · 0.45
drawRectMethod · 0.45
drawRectFillMethod · 0.45
draw2DSquareMethod · 0.45
drawLineMethod · 0.45
drawSphereMethod · 0.45
_drawWireTriangleMethod · 0.45
_drawSolidTriangleMethod · 0.45

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected