Changeset 2882 for code/trunk/src/bullet/LinearMath/btAlignedAllocator.h
- Timestamp:
- Mar 31, 2009, 8:05:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/bullet/LinearMath/btAlignedAllocator.h
r2662 r2882 39 39 void btAlignedFreeInternal (void* ptr); 40 40 41 #define btAlignedAlloc( a,b) btAlignedAllocInternal(a,b)41 #define btAlignedAlloc(size,alignment) btAlignedAllocInternal(size,alignment) 42 42 #define btAlignedFree(ptr) btAlignedFreeInternal(ptr) 43 43 … … 50 50 typedef void (btFreeFunc)(void *memblock); 51 51 52 ///The developer can let all Bullet memory allocations go through a custom memory allocator, using btAlignedAllocSetCustom 53 void btAlignedAllocSetCustom(btAllocFunc *allocFunc, btFreeFunc *freeFunc); 54 ///If the developer has already an custom aligned allocator, then btAlignedAllocSetCustomAligned can be used. The default aligned allocator pre-allocates extra memory using the non-aligned allocator, and instruments it. 52 55 void btAlignedAllocSetCustomAligned(btAlignedAllocFunc *allocFunc, btAlignedFreeFunc *freeFunc); 53 void btAlignedAllocSetCustom(btAllocFunc *allocFunc, btFreeFunc *freeFunc); 56 54 57 55 58 ///The btAlignedAllocator is a portable class for aligned memory allocations.
Note: See TracChangeset
for help on using the changeset viewer.