allocator.cpp 216 B

1234567
  1. #include "meshoptimizer.h"
  2. void meshopt_setAllocator(void* (*allocate)(size_t), void (*deallocate)(void*))
  3. {
  4. meshopt_Allocator::Storage::allocate = allocate;
  5. meshopt_Allocator::Storage::deallocate = deallocate;
  6. }