open_toontown_panda3d/panda/src/physx/physxActorDesc.I

62 lines
1.7 KiB
Plaintext

// Filename: physxActorDesc.I
// Created by: enn0x (05Sep09)
//
////////////////////////////////////////////////////////////////////
//
// 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."
//
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function: PhysxActorDesc::Constructor
// Access: Published
// Description:
////////////////////////////////////////////////////////////////////
INLINE PhysxActorDesc::
PhysxActorDesc() {
_name = NULL;
_desc.name = _name;
}
////////////////////////////////////////////////////////////////////
// Function: PhysxActorDesc::Destructor
// Access: Published
// Description:
////////////////////////////////////////////////////////////////////
INLINE PhysxActorDesc::
~PhysxActorDesc() {
free(_name);
}
////////////////////////////////////////////////////////////////////
// Function: PhysxActorDesc::set_to_default
// Access: Published
// Description: (re)sets the structure to the default.
////////////////////////////////////////////////////////////////////
INLINE void PhysxActorDesc::
set_to_default() {
_desc.setToDefault();
}
////////////////////////////////////////////////////////////////////
// Function: PhysxActorDesc::is_valid
// Access: Published
// Description: Returns true if the descriptor is valid.
////////////////////////////////////////////////////////////////////
INLINE bool PhysxActorDesc::
is_valid() const {
return _desc.isValid();
}