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