00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PHYSXCONVEXMESH_H
00016 #define PHYSXCONVEXMESH_H
00017
00018 #include "pandabase.h"
00019
00020 #include "physxObject.h"
00021 #include "physx_includes.h"
00022
00023
00024
00025
00026
00027
00028
00029 class EXPCL_PANDAPHYSX PhysxConvexMesh : public PhysxObject {
00030
00031 PUBLISHED:
00032 unsigned int get_reference_count() const;
00033
00034
00035 PUBLISHED:
00036 void release();
00037
00038 INLINE void ls() const;
00039 INLINE void ls(ostream &out, int indent_level=0) const;
00040
00041 public:
00042 INLINE PhysxConvexMesh();
00043 INLINE ~PhysxConvexMesh();
00044
00045 INLINE NxConvexMesh *ptr() const { return _ptr; };
00046
00047 void link(NxConvexMesh *meshPtr);
00048 void unlink();
00049
00050 private:
00051 NxConvexMesh *_ptr;
00052
00053
00054 public:
00055 static TypeHandle get_class_type() {
00056 return _type_handle;
00057 }
00058 static void init_type() {
00059 PhysxObject::init_type();
00060 register_type(_type_handle, "PhysxConvexMesh",
00061 PhysxObject::get_class_type());
00062 }
00063 virtual TypeHandle get_type() const {
00064 return get_class_type();
00065 }
00066 virtual TypeHandle force_init_type() {
00067 init_type();
00068 return get_class_type();
00069 }
00070
00071 private:
00072 static TypeHandle _type_handle;
00073 };
00074
00075 #include "physxConvexMesh.I"
00076
00077 #endif // PHYSXCONVEXMESH_H