ShapeManipulator.cpp
// Sends the triangulated shape data to the GPU, only if necessary.
Sends the triangulated shape data to the GPU, only if necessary.
Sends the triangulated shape data to the GPU only if necessary .
colorVertex* ShapeManipulator::LoadTriangulatedShape(int &vertexCount)
{
    if (!needsGpuUpdate || pShapeOctree == nullptr)
    {
        return nullptr;
    }
    colorVertex *pTriangles = pShapeOctree->Triangulate(vertexCount);
    needsGpuUpdate = false;
    return pTriangles;
}
colorVertex * ShapeManipulator :: LoadTriangulatedShape ( int & vertexCount ) { if ( ! needsGpuUpdate || pShapeOctree == nullptr ) { return nullptr ; } colorVertex * pTriangles = pShapeOctree -> Triangulate ( vertexCount ) ; needsGpuUpdate = false ; return pTriangles ; }
Sends the triangulated shape data to the GPU, only if necessary.
Sends the triangulated shape data to the GPU only if necessary .