allocator.cpp 369 B

12345678
  1. // This file is part of meshoptimizer library; see meshoptimizer.h for version/license details
  2. #include "meshoptimizer.h"
  3. void meshopt_setAllocator(void* (MESHOPTIMIZER_ALLOC_CALLCONV* allocate)(size_t), void (MESHOPTIMIZER_ALLOC_CALLCONV* deallocate)(void*))
  4. {
  5. meshopt_Allocator::Storage::allocate = allocate;
  6. meshopt_Allocator::Storage::deallocate = deallocate;
  7. }