00001 /*************************************************************************** 00002 00003 This source file is part of OGREBULLET 00004 (Object-oriented Graphics Rendering Engine Bullet Wrapper) 00005 For the latest info, see http://www.ogre3d.org/phpBB2addons/viewforum.php?f=10 00006 00007 Copyright (c) 2007 tuan.kuranes@gmail.com (Use it Freely, even Statically, but have to contribute any changes) 00008 00009 00010 00011 Permission is hereby granted, free of charge, to any person obtaining a copy 00012 of this software and associated documentation files (the "Software"), to deal 00013 in the Software without restriction, including without limitation the rights 00014 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00015 copies of the Software, and to permit persons to whom the Software is 00016 furnished to do so, subject to the following conditions: 00017 00018 The above copyright notice and this permission notice shall be included in 00019 all copies or substantial portions of the Software. 00020 00021 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00022 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00023 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00024 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00025 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00026 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00027 THE SOFTWARE. 00028 ----------------------------------------------------------------------------- 00029 */ 00030 00031 #ifndef _OGREBULLETCOLLISIONS_Shape_H 00032 #define _OGREBULLETCOLLISIONS_Shape_H 00033 00034 #include "OgreBulletCollisionsPreRequisites.h" 00035 00036 00037 namespace OgreBulletCollisions 00038 { 00039 // ------------------------------------------------------------------------- 00040 // basic Shape 00041 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 00042 class __declspec( dllexport ) CollisionShape 00043 #else 00044 class CollisionShape 00045 #endif 00046 { 00047 00048 public: 00049 CollisionShape(); 00050 virtual ~CollisionShape(); 00051 00052 inline btCollisionShape* getBulletShape () {return mShape;}; 00053 00054 virtual bool drawWireFrame(DebugLines *wire, 00055 const Ogre::Vector3 &pos = Ogre::Vector3::ZERO, 00056 const Ogre::Quaternion &quat= Ogre::Quaternion::IDENTITY) const; 00057 00058 bool drawConvexWireFrame(DebugLines *wire, const Ogre::Vector3 &pos, const Ogre::Quaternion &quat) const; 00059 00060 00061 protected: 00062 btCollisionShape* mShape; 00063 00064 }; 00065 } 00066 #endif //_OGREBULLETCOLLISIONS_Shape_H 00067
1.7.1