Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
Memory.cpp File Reference
#include <Jolt/Jolt.h>
#include <cstdlib>
#include <stdlib.h>

Macros

#define JPH_ALLOC_FN(x)   x##Impl
 
#define JPH_ALLOC_SCOPE   static
 

Functions

JPH_ALLOC_SCOPE void *JPH_ALLOC_FN() Allocate (size_t inSize)
 
JPH_ALLOC_SCOPE void JPH_ALLOC_FN() Free (void *inBlock)
 
JPH_ALLOC_SCOPE void *JPH_ALLOC_FN() AlignedAllocate (size_t inSize, size_t inAlignment)
 
JPH_ALLOC_SCOPE void JPH_ALLOC_FN() AlignedFree (void *inBlock)
 
void RegisterDefaultAllocator ()
 Register platform default allocation / free functions. More...
 

Variables

AllocateFunction Allocate = nullptr
 
FreeFunction Free = nullptr
 
AlignedAllocateFunction AlignedAllocate = nullptr
 
AlignedFreeFunction AlignedFree = nullptr
 

Macro Definition Documentation

◆ JPH_ALLOC_FN

#define JPH_ALLOC_FN (   x)    x##Impl

◆ JPH_ALLOC_SCOPE

#define JPH_ALLOC_SCOPE   static

Function Documentation

◆ AlignedAllocate()

JPH_ALLOC_SCOPE void *JPH_ALLOC_FN() AlignedAllocate ( size_t  inSize,
size_t  inAlignment 
)

◆ AlignedFree()

JPH_ALLOC_SCOPE void JPH_ALLOC_FN() AlignedFree ( void *  inBlock)

◆ Allocate()

JPH_ALLOC_SCOPE void *JPH_ALLOC_FN() Allocate ( size_t  inSize)

◆ Free()

JPH_ALLOC_SCOPE void JPH_ALLOC_FN() Free ( void *  inBlock)

◆ RegisterDefaultAllocator()

void RegisterDefaultAllocator ( )

Register platform default allocation / free functions.

Variable Documentation

◆ AlignedAllocate

AlignedAllocateFunction AlignedAllocate = nullptr

◆ AlignedFree

AlignedFreeFunction AlignedFree = nullptr

◆ Allocate

AllocateFunction Allocate = nullptr

◆ Free

FreeFunction Free = nullptr