Tizen 2.1 base
[platform/upstream/libbullet.git] / Extras / RigidBodyGpuPipeline / dynamics / basic_demo / CustomConvexShape.h
1 /*
2 Copyright (c) 2012 Advanced Micro Devices, Inc.  
3
4 This software is provided 'as-is', without any express or implied warranty.
5 In no event will the authors be held liable for any damages arising from the use of this software.
6 Permission is granted to anyone to use this software for any purpose, 
7 including commercial applications, and to alter it and redistribute it freely, 
8 subject to the following restrictions:
9
10 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.
11 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
12 3. This notice may not be removed or altered from any source distribution.
13 */
14 //Originally written by Erwin Coumans
15
16 #ifndef CUSTOM_CONVEX_SHAPE_H
17 #define CUSTOM_CONVEX_SHAPE_H
18
19 #include "BulletCollision/CollisionShapes/btConvexHullShape.h"
20
21 class CustomConvexShape  : public btConvexHullShape
22 {
23         public:
24                 
25                 class ConvexHeightField* m_ConvexHeightField;
26
27                 int m_acceleratedCompanionShapeIndex;
28
29                 CustomConvexShape(const btScalar* points,int numPoints,int stride);
30                 virtual ~CustomConvexShape();
31                 
32 };
33
34 #endif //CUSTOM_CONVEX_SHAPE_H
35