~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to extern/bullet2/src/BulletCollision/BroadphaseCollision/btDispatcher.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
3. This notice may not be removed or altered from any source distribution.
14
14
*/
15
15
 
16
 
#ifndef _DISPATCHER_H
17
 
#define _DISPATCHER_H
18
 
 
 
16
#ifndef BT_DISPATCHER_H
 
17
#define BT_DISPATCHER_H
19
18
#include "LinearMath/btScalar.h"
20
19
 
21
20
class btCollisionAlgorithm;
27
26
 
28
27
class btPersistentManifold;
29
28
class btStackAlloc;
 
29
class btPoolAllocator;
30
30
 
31
31
struct btDispatcherInfo
32
32
{
40
40
                m_stepCount(0),
41
41
                m_dispatchFunc(DISPATCH_DISCRETE),
42
42
                m_timeOfImpact(btScalar(1.)),
43
 
                m_useContinuous(false),
 
43
                m_useContinuous(true),
44
44
                m_debugDraw(0),
45
45
                m_enableSatConvex(false),
46
46
                m_enableSPU(true),
48
48
                m_allowedCcdPenetration(btScalar(0.04)),
49
49
                m_useConvexConservativeDistanceUtil(false),
50
50
                m_convexConservativeDistanceThreshold(0.0f),
51
 
                m_convexMaxDistanceUseCPT(false),
52
51
                m_stackAllocator(0)
53
52
        {
54
53
 
65
64
        btScalar        m_allowedCcdPenetration;
66
65
        bool            m_useConvexConservativeDistanceUtil;
67
66
        btScalar        m_convexConservativeDistanceThreshold;
68
 
        bool            m_convexMaxDistanceUseCPT;
69
67
        btStackAlloc*   m_stackAllocator;
70
68
};
71
69
 
98
96
 
99
97
        virtual btPersistentManifold**  getInternalManifoldPointer() = 0;
100
98
 
 
99
        virtual btPoolAllocator*        getInternalManifoldPool() = 0;
 
100
 
 
101
        virtual const btPoolAllocator*  getInternalManifoldPool() const = 0;
 
102
 
101
103
        virtual void* allocateCollisionAlgorithm(int size)  = 0;
102
104
 
103
105
        virtual void freeCollisionAlgorithm(void* ptr) = 0;
105
107
};
106
108
 
107
109
 
108
 
#endif //_DISPATCHER_H
 
110
#endif //BT_DISPATCHER_H