btGpu3DGridBroadphaseSharedDefs.h

Go to the documentation of this file.
00001 /*
00002 Bullet Continuous Collision Detection and Physics Library, http://bulletphysics.org
00003 Copyright (C) 2006, 2009 Sony Computer Entertainment Inc. 
00004 
00005 This software is provided 'as-is', without any express or implied warranty.
00006 In no event will the authors be held liable for any damages arising from the use of this software.
00007 Permission is granted to anyone to use this software for any purpose, 
00008 including commercial applications, and to alter it and redistribute it freely, 
00009 subject to the following restrictions:
00010 
00011 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
00012 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
00013 3. This notice may not be removed or altered from any source distribution.
00014 */
00015 
00016 //----------------------------------------------------------------------------------------
00017 
00018 // Shared definitions for GPU-based 3D Grid collision detection broadphase
00019 
00021 //  Keep this file free from Bullet headers
00022 //  it is included into both CUDA and CPU code
00024 
00025 //----------------------------------------------------------------------------------------
00026 
00027 #ifndef BTGPU3DGRIDBROADPHASESHAREDDEFS_H
00028 #define BTGPU3DGRIDBROADPHASESHAREDDEFS_H
00029 
00030 //----------------------------------------------------------------------------------------
00031 
00032 #include "btGpu3DGridBroadphaseSharedTypes.h"
00033 
00034 //----------------------------------------------------------------------------------------
00035 
00036 extern "C"
00037 {
00038 
00039 //----------------------------------------------------------------------------------------
00040 
00041 void BT_GPU_PREF(calcHashAABB)(bt3DGrid3F1U* pAABB, unsigned int* hash, unsigned int numBodies);
00042 
00043 void BT_GPU_PREF(findCellStart)(unsigned int* hash, unsigned int* cellStart, unsigned int numBodies, unsigned int numCells);
00044 
00045 void BT_GPU_PREF(findOverlappingPairs)(bt3DGrid3F1U* pAABB, unsigned int* pHash,        unsigned int* pCellStart, unsigned int* pPairBuff, unsigned int*        pPairBuffStartCurr, unsigned int        numBodies);
00046 
00047 void BT_GPU_PREF(findPairsLarge)(bt3DGrid3F1U* pAABB, unsigned int* pHash, unsigned int* pCellStart, unsigned int* pPairBuff, unsigned int* pPairBuffStartCurr, unsigned int numBodies, unsigned int numLarge);
00048 
00049 void BT_GPU_PREF(computePairCacheChanges)(unsigned int* pPairBuff, unsigned int* pPairBuffStartCurr, unsigned int* pPairScan, bt3DGrid3F1U* pAABB, unsigned int numBodies);
00050 
00051 void BT_GPU_PREF(squeezeOverlappingPairBuff)(unsigned int* pPairBuff, unsigned int* pPairBuffStartCurr, unsigned int* pPairScan, unsigned int* pPairOut, bt3DGrid3F1U* pAABB, unsigned int numBodies);
00052 
00053 
00054 //----------------------------------------------------------------------------------------
00055 
00056 } // extern "C"
00057 
00058 //----------------------------------------------------------------------------------------
00059 
00060 #endif // BTGPU3DGRIDBROADPHASESHAREDDEFS_H
00061