77a045e902
-Reworked how meshes are treated by importer by using EditorSceneImporterMesh and EditorSceneImporterMeshNode. Instead of Mesh and MeshInstance, this allows more efficient processing of meshes before they are actually registered in the RenderingServer. -Integrated MeshOptimizer -Reworked internals of SurfaceTool to use arrays, making it more performant and easy to run optimizatons on.
8 lines
311 B
C++
8 lines
311 B
C++
// This file is part of meshoptimizer library; see meshoptimizer.h for version/license details
|
|
#include "meshoptimizer.h"
|
|
|
|
void meshopt_setAllocator(void* (*allocate)(size_t), void (*deallocate)(void*))
|
|
{
|
|
meshopt_Allocator::Storage::allocate = allocate;
|
|
meshopt_Allocator::Storage::deallocate = deallocate;
|
|
}
|