00001 /* 00002 * PhysX static object header 00003 * 00004 * This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns) 00005 * See "SoftPixelEngine.hpp" for license information. 00006 */ 00007 00008 #ifndef __SP_PHYSICS_PHYSX_STATICOBJECT_H__ 00009 #define __SP_PHYSICS_PHYSX_STATICOBJECT_H__ 00010 00011 00012 #include "Base/spStandard.hpp" 00013 00014 #ifdef SP_COMPILE_WITH_PHYSX 00015 00016 00017 #include "Framework/Physics/spPhysicsStaticObject.hpp" 00018 #include "Framework/Physics/PhysX/spPhysXBaseObject.hpp" 00019 00020 00021 namespace sp 00022 { 00023 namespace physics 00024 { 00025 00026 00027 class SP_EXPORT PhysXStaticObject : public StaticPhysicsObject, public PhysXBaseObject 00028 { 00029 00030 public: 00031 00032 PhysXStaticObject( 00033 PxPhysics* PxDevice, PxCooking* PxCookDevice, PhysXMaterial* Material, scene::Mesh* Mesh 00034 ); 00035 virtual ~PhysXStaticObject(); 00036 00037 protected: 00038 00039 friend class PhysXSimulator; 00040 00041 /* === Members === */ 00042 00043 PxRigidStatic* PxActor_; 00044 00045 }; 00046 00047 00048 } // /namespace physics 00049 00050 } // /namespace sp 00051 00052 00053 #endif 00054 00055 #endif 00056 00057 00058 00059 // ================================================================================