MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / addBlockInts

Method addBlockInts

physx/samples/sampleframework/framework/src/ODBlock.cpp:512–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512bool ODBlock::addBlockInts(const char * ident, int *f, unsigned numInts)
513{
514 char buf[32];
515 ODBlock & newBlock = *new ODBlock();
516
517 addStatement(newBlock);
518 newBlock.ident(ident);
519
520 for (unsigned i = 0; i < numInts; i++)
521 {
522 ODBlock & floatBlock = *new ODBlock();
523 newBlock.addStatement(floatBlock);
524 //_itoa_s(f[i], buf, 32, 10); //gcc doesn't support this
525 sprintf(buf, "%d", f[i]);
526 floatBlock.ident(buf);
527 }
528 return true;
529}
530

Callers

nothing calls this directly

Calls 2

identMethod · 0.80
addStatementMethod · 0.80

Tested by

no test coverage detected