open_toontown_panda3d/panda/src/physx/physxConvexShapeDesc.h

48 lines
1.3 KiB
C++

// Filename: physxConvexShapeDesc.h
// Created by: enn0x (14Oct09)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
#ifndef PHYSXCONVEXSHAPEDESC_H
#define PHYSXCONVEXSHAPEDESC_H
#include "pandabase.h"
#include "physxShapeDesc.h"
#include "physx_includes.h"
class PhysxConvexMesh;
////////////////////////////////////////////////////////////////////
// Class : PhysxConvexShapeDesc
// Description : Descriptor class for PhysxConvexShape.
////////////////////////////////////////////////////////////////////
class EXPCL_PANDAPHYSX PhysxConvexShapeDesc : public PhysxShapeDesc {
PUBLISHED:
INLINE PhysxConvexShapeDesc();
INLINE ~PhysxConvexShapeDesc();
INLINE void set_to_default();
INLINE bool is_valid() const;
void set_mesh(PhysxConvexMesh *mesh);
public:
NxShapeDesc *ptr() const { return (NxShapeDesc *)&_desc; };
NxConvexShapeDesc _desc;
};
#include "physxConvexShapeDesc.I"
#endif // PHYSXCONVEXSHAPEDESC_H