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

Method drawPrimitives

Engine/source/gfx/gfxDevice.cpp:562–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562void GFXDevice::drawPrimitives()
563{
564 AssertFatal( mCurrentPrimitiveBuffer.isValid(), "Trying to call drawPrimitive with no current primitive buffer, call setPrimitiveBuffer()" );
565
566 GFXPrimitive *info = NULL;
567
568 for( U32 i = 0; i < mCurrentPrimitiveBuffer->mPrimitiveCount; i++ ) {
569 info = &mCurrentPrimitiveBuffer->mPrimitiveArray[i];
570
571 // Do NOT add index buffer offset to this call, it will be added by drawIndexedPrimitive
572 drawIndexedPrimitive( info->type,
573 info->startVertex,
574 info->minIndex,
575 info->numVertices,
576 info->startIndex,
577 info->numPrimitives );
578 }
579}
580
581DefineEngineFunction( getDisplayDeviceList, String, (),,
582 "Returns a tab-seperated string of the detected devices across all adapters.\n"

Callers 1

innerRenderMethod · 0.80

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected