MCPcopy Create free account
hub / github.com/OpenMW/openmw / getArraySizeOrZero

Function getArraySizeOrZero

components/sceneutil/optimizer.cpp:1207–1210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1205 namespace
1206 {
1207 unsigned getArraySizeOrZero(const osg::Array* array)
1208 {
1209 return array == nullptr ? 0 : array->getNumElements();
1210 }
1211
1212 void fillArraySizes(const std::vector<osg::ref_ptr<osg::Array>>& arrays, std::vector<unsigned>& sizes)
1213 {

Callers 2

fillArraySizesFunction · 0.85
initArraySizesFunction · 0.85

Calls 1

getNumElementsMethod · 0.80

Tested by

no test coverage detected