OROCHI
 
Loading...
Searching...
No Matches
GxNxUserAllocator.h
Go to the documentation of this file.
1//===========================================================================
10//===========================================================================
11#pragma once
12
13#if PLATFORM_PHYSX_SUPPORT
14
16//===========================================================================
18//===========================================================================
19class UserAllocator : public PxAllocatorCallback
20{
21 //-------------------------------------------------------------
23 //-------------------------------------------------------------
25public:
27 UserAllocator(void);
29 virtual ~UserAllocator(void);
30
32 //-----------------------------------------------------------
34 //-----------------------------------------------------------
36
38 virtual void* allocate(size_t size, GX_CSTR typeName, GX_CSTR filename, s32 line);
40 virtual void deallocate(void* pPointer);
41
42#if GX_DEVELOP
45 void setDevelop( b32 usesDevelop ) { _type = usesDevelop ? GxAllocatorList::ALLOCATOR_TYPE::DEVELOP : GxAllocatorList::ALLOCATOR_TYPE::PHYSICS; }
46#endif // GX_DEVELOP
48 //-----------------------------------------------------------
50 //-----------------------------------------------------------
52
53#if GX_DEVELOP
55#endif // GX_DEVELOP
56
58};
59GX_PHYSICS_NAMESPACE_END()
60
61#endif //PLATFORM_PHYSX_SUPPORT
#define GX_PHYSICS_NAMESPACE_BEGIN()
ネームスペースマクロ
Definition GxPhysics.h:28
ALLOCATOR_TYPE
アロケータ定義
Definition GxAllocator.h:355
@ PHYSICS
物理エンジン
32bitブーリアン
Definition GxDefine.h:173