40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
// Filename: p3dObject.I
|
|
// Created by: drose (30Jun09)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// 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: P3DObject::Constructor
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
inline P3DObject::
|
|
P3DObject() {
|
|
_class = &_object_class;
|
|
|
|
// The reference count is initially 1.
|
|
_ref_count = 1;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Function: P3DObject::Copy Constructor
|
|
// Access: Public
|
|
// Description:
|
|
////////////////////////////////////////////////////////////////////
|
|
inline P3DObject::
|
|
P3DObject(const P3DObject ©) {
|
|
assert(copy._class == &_object_class);
|
|
_class = copy._class;
|
|
_ref_count = 1;
|
|
}
|