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

Function cloneArray

components/sceneutil/optimizer.cpp:631–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631osg::Array* cloneArray(osg::Array* array, osg::VertexBufferObject*& vbo, const osg::Geometry* geom)
632{
633 array = static_cast<osg::Array*>(array->clone(osg::CopyOp::DEEP_COPY_ALL));
634 if (!vbo) vbo = new osg::VertexBufferObject;
635 array->setVertexBufferObject(vbo);
636 return array;
637}
638
639void Optimizer::FlattenStaticTransformsVisitor::apply(osg::Geometry& geometry)
640{

Callers 2

applyMethod · 0.85
mergeGeometryMethod · 0.85

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected