mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
ClockObject needs a copy constructor
This commit is contained in:
parent
7d9778f2b9
commit
57165297a7
@ -74,6 +74,28 @@ ClockObject() {
|
||||
_error_count = _true_clock->get_error_count();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: ClockObject::Copy Constructor
|
||||
// Access: Published
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
ClockObject::
|
||||
ClockObject(const ClockObject ©) :
|
||||
_true_clock(copy._true_clock),
|
||||
_mode(copy._mode),
|
||||
_start_short_time(copy._start_short_time),
|
||||
_start_long_time(copy._start_long_time),
|
||||
_actual_frame_time(copy._actual_frame_time),
|
||||
_max_dt(copy._max_dt),
|
||||
_user_frame_rate(copy._user_frame_rate),
|
||||
_degrade_factor(copy._degrade_factor),
|
||||
_error_count(copy._error_count),
|
||||
_average_frame_rate_interval(copy._average_frame_rate_interval),
|
||||
_ticks(copy._ticks),
|
||||
_cycler(copy._cycler)
|
||||
{
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: ClockObject::set_mode
|
||||
// Access: Published
|
||||
|
@ -77,6 +77,7 @@ PUBLISHED:
|
||||
};
|
||||
|
||||
ClockObject();
|
||||
ClockObject(const ClockObject ©);
|
||||
INLINE ~ClockObject();
|
||||
|
||||
void set_mode(Mode mode);
|
||||
|
Loading…
x
Reference in New Issue
Block a user