| 560 | } |
| 561 | |
| 562 | void 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 | |
| 581 | DefineEngineFunction( getDisplayDeviceList, String, (),, |
| 582 | "Returns a tab-seperated string of the detected devices across all adapters.\n" |