Bullet Collision Detection & Physics Library
|
Go to the source code of this file.
Functions | |
static void * | btAllocDefault (size_t size) |
static void | btFreeDefault (void *ptr) |
static void * | btAlignedAllocDefault (size_t size, int alignment) |
static void | btAlignedFreeDefault (void *ptr) |
void | btAlignedAllocSetCustomAligned (btAlignedAllocFunc *allocFunc, btAlignedFreeFunc *freeFunc) |
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. | |
void | btAlignedAllocSetCustom (btAllocFunc *allocFunc, btFreeFunc *freeFunc) |
The developer can let all Bullet memory allocations go through a custom memory allocator, using btAlignedAllocSetCustom. | |
void * | btAlignedAllocInternal (size_t size, int alignment) |
we probably replace this with our own aligned memory allocator so we replace _aligned_malloc and _aligned_free with our own that is better portable and more predictable | |
void | btAlignedFreeInternal (void *ptr) |
Definition at line 65 of file btAlignedAllocator.cpp.
we probably replace this with our own aligned memory allocator so we replace _aligned_malloc and _aligned_free with our own that is better portable and more predictable
BT_DEBUG_MEMORY_ALLOCATIONS preprocessor can be set in build system for regression tests to detect memory leaks define BT_DEBUG_MEMORY_ALLOCATIONS 1
Definition at line 249 of file btAlignedAllocator.cpp.
void btAlignedAllocSetCustom | ( | btAllocFunc * | allocFunc, |
btFreeFunc * | freeFunc | ||
) |
The developer can let all Bullet memory allocations go through a custom memory allocator, using btAlignedAllocSetCustom.
Definition at line 105 of file btAlignedAllocator.cpp.
void btAlignedAllocSetCustomAligned | ( | btAlignedAllocFunc * | allocFunc, |
btAlignedFreeFunc * | freeFunc | ||
) |
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.
Definition at line 99 of file btAlignedAllocator.cpp.
Definition at line 84 of file btAlignedAllocator.cpp.
Definition at line 257 of file btAlignedAllocator.cpp.
Definition at line 25 of file btAlignedAllocator.cpp.
Definition at line 32 of file btAlignedAllocator.cpp.
|
static |
Definition at line 96 of file btAlignedAllocator.cpp.
|
static |
Definition at line 97 of file btAlignedAllocator.cpp.
|
static |
Definition at line 37 of file btAlignedAllocator.cpp.
|
static |
Definition at line 38 of file btAlignedAllocator.cpp.