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

Method getBlockInt

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

hig level macro functs, return true on success:

Source from the content-addressed store, hash-verified

400
401// hig level macro functs, return true on success:
402bool ODBlock::getBlockInt(const char * ident, int* p, unsigned count) //reads blocks of form: ident{ 123; 123; ... }
403{
404 ODBlock* temp = getBlock(ident);
405 if (temp)
406 {
407 temp->reset();
408 for(; count && temp->moreTerminals(); --count)
409 if(p)
410 sscanf(temp->nextTerminal(),"%d", p++);
411
412 return !count;
413 }
414 return false;
415}
416
417// hig level macro functs, return true on success:
418bool ODBlock::getBlockU32(const char * ident, physx::PxU32* p, unsigned count) //reads blocks of form: ident{ 123;}

Callers 1

Calls 4

sscanfFunction · 0.85
moreTerminalsMethod · 0.80
nextTerminalMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected