Back to index

supertuxkart  0.5+dfsg1
btBroadphaseInterface.h
Go to the documentation of this file.
00001 /*
00002 Bullet Continuous Collision Detection and Physics Library
00003 Copyright (c) 2003-2006 Erwin Coumans  http://continuousphysics.com/Bullet/
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 #ifndef              BROADPHASE_INTERFACE_H
00017 #define       BROADPHASE_INTERFACE_H
00018 
00019 
00020 
00021 struct btDispatcherInfo;
00022 class btDispatcher;
00023 #include "btBroadphaseProxy.h"
00024 class btOverlappingPairCache;
00025 
00026 #include "LinearMath/btVector3.h"
00027 
00029 class btBroadphaseInterface
00030 {
00031 public:
00032        virtual ~btBroadphaseInterface() {}
00033 
00034        virtual btBroadphaseProxy*  createProxy(  const btVector3& aabbMin,  const btVector3& aabbMax,int shapeType,void* userPtr, short int collisionFilterGroup,short int collisionFilterMask, btDispatcher* dispatcher,void* multiSapProxy) =0;
00035        virtual void  destroyProxy(btBroadphaseProxy* proxy,btDispatcher* dispatcher)=0;
00036        virtual void  setAabb(btBroadphaseProxy* proxy,const btVector3& aabbMin,const btVector3& aabbMax, btDispatcher* dispatcher)=0;
00037        
00039        virtual void  calculateOverlappingPairs(btDispatcher* dispatcher)=0;
00040 
00041        virtual       btOverlappingPairCache*     getOverlappingPairCache()=0;
00042        virtual       const btOverlappingPairCache*      getOverlappingPairCache() const =0;
00043 
00046        virtual void getBroadphaseAabb(btVector3& aabbMin,btVector3& aabbMax) const =0;
00047 
00048        virtual void  printStats() = 0;
00049 
00050 };
00051 
00052 #endif //BROADPHASE_INTERFACE_H