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

Function fillArraySizes

components/sceneutil/optimizer.cpp:1212–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210 }
1211
1212 void fillArraySizes(const std::vector<osg::ref_ptr<osg::Array>>& arrays, std::vector<unsigned>& sizes)
1213 {
1214 sizes.reserve(arrays.size());
1215 for (const auto& array : arrays)
1216 sizes.push_back(getArraySizeOrZero(array));
1217 }
1218
1219 void initArraySizes(const osg::Geometry& geometry, Optimizer::GeometryArraySizes& sizes)
1220 {

Callers 1

initArraySizesFunction · 0.85

Calls 3

getArraySizeOrZeroFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected