mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
oops, BoundedObject needs a copy constructor
This commit is contained in:
parent
9b773e5f89
commit
0e3c5ccb5c
@ -39,6 +39,34 @@ INLINE_GRAPH BoundedObject::
|
|||||||
BoundedObject() {
|
BoundedObject() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: BoundedObject::Copy Constructor
|
||||||
|
// Access: Published
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE_GRAPH BoundedObject::
|
||||||
|
BoundedObject(const BoundedObject ©) {
|
||||||
|
CDWriter cdata(_cycler);
|
||||||
|
CDReader copy_cdata(copy._cycler);
|
||||||
|
cdata->_flags = copy_cdata->_flags;
|
||||||
|
cdata->_bound_type = copy_cdata->_bound_type;
|
||||||
|
cdata->_bound = copy_cdata->_bound;
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: BoundedObject::Copy Assignment Operator
|
||||||
|
// Access: Published
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE_GRAPH void BoundedObject::
|
||||||
|
operator = (const BoundedObject ©) {
|
||||||
|
CDWriter cdata(_cycler);
|
||||||
|
CDReader copy_cdata(copy._cycler);
|
||||||
|
cdata->_flags = copy_cdata->_flags;
|
||||||
|
cdata->_bound_type = copy_cdata->_bound_type;
|
||||||
|
cdata->_bound = copy_cdata->_bound;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: BoundedObject::set_bound
|
// Function: BoundedObject::set_bound
|
||||||
// Access: Published
|
// Access: Published
|
||||||
|
@ -40,6 +40,8 @@
|
|||||||
class EXPCL_PANDA BoundedObject {
|
class EXPCL_PANDA BoundedObject {
|
||||||
public:
|
public:
|
||||||
INLINE_GRAPH BoundedObject();
|
INLINE_GRAPH BoundedObject();
|
||||||
|
INLINE_GRAPH BoundedObject(const BoundedObject ©);
|
||||||
|
INLINE_GRAPH void operator = (const BoundedObject ©);
|
||||||
virtual ~BoundedObject();
|
virtual ~BoundedObject();
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user