allocator.cpp 311 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* (*allocate)(size_t), void (*deallocate)(void*))
  4. {
  5. meshopt_Allocator::Storage::allocate = allocate;
  6. meshopt_Allocator::Storage::deallocate = deallocate;
  7. }