MCPcopy Create free account
hub / github.com/OGRECave/ogre / _getVector

Function _getVector

OgreMain/src/OgreScriptTranslator.cpp:472–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470
471 template <typename T>
472 static bool _getVector(AbstractNodeList::const_iterator i, AbstractNodeList::const_iterator end,
473 std::vector<T>& vals, size_t count)
474 {
475 vals.reserve(count);
476 size_t n = 0;
477 while (n < count)
478 {
479 if (i != end)
480 {
481 T v;
482 if (!getValue(*i++, v))
483 return false;
484 vals.push_back(v);
485 }
486 ++n;
487 }
488
489 vals.resize(count);
490 return true;
491 }
492
493 static GpuProgramType getProgramType(int id)
494 {

Callers 5

getVectorMethod · 0.85
translateGpuProgramMethod · 0.85
safeSetConstantFunction · 0.85
translateMethod · 0.85

Calls 4

getValueFunction · 0.70
reserveMethod · 0.45
push_backMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected