Panda3D
|
00001 // Filename: physxHeightFieldShapeDesc.h 00002 // Created by: enn0x (15Oct09) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PHYSXHEIGHTFIELDSHAPEDESC_H 00016 #define PHYSXHEIGHTFIELDSHAPEDESC_H 00017 00018 #include "pandabase.h" 00019 00020 #include "physxShapeDesc.h" 00021 #include "physx_includes.h" 00022 00023 class PhysxHeightField; 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Class : PhysxHeightFieldShapeDesc 00027 // Description : Descriptor class for PhysxHeightFieldShape. 00028 //////////////////////////////////////////////////////////////////// 00029 class EXPCL_PANDAPHYSX PhysxHeightFieldShapeDesc : public PhysxShapeDesc { 00030 00031 PUBLISHED: 00032 INLINE PhysxHeightFieldShapeDesc(); 00033 INLINE ~PhysxHeightFieldShapeDesc(); 00034 00035 void set_to_default(); 00036 INLINE bool is_valid() const; 00037 00038 void set_height_field(const PhysxHeightField &hf); 00039 void set_dimensions(const LVector3f &dimensions); 00040 void set_hole_material(unsigned short index); 00041 void set_material_index_high_bits(unsigned short index); 00042 00043 unsigned short get_hole_material() const; 00044 unsigned short get_material_index_hight_bits() const; 00045 00046 public: 00047 NxShapeDesc *ptr() const { return (NxShapeDesc *)&_desc; }; 00048 NxHeightFieldShapeDesc _desc; 00049 }; 00050 00051 #include "physxHeightFieldShapeDesc.I" 00052 00053 #endif // PHYSXHEIGHTFIELDSHAPEDESC_H