Panda3D
recorderBase.I
1 // Filename: recorderBase.I
2 // Created by: drose (24Jan04)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: RecorderBase::is_recording
18 // Access: Published
19 // Description: Returns true if this recorder is presently recording
20 // data for saving to a session file, false otherwise.
21 // If this is true, record_data() will be called from
22 // time to time.
23 ////////////////////////////////////////////////////////////////////
24 INLINE bool RecorderBase::
25 is_recording() const {
26  return (_flags & F_recording) != 0;
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: RecorderBase::is_playing
31 // Access: Published
32 // Description: Returns true if this recorder is presently playing back
33 // data from session file, false otherwise. If this is
34 // true, play_data() will be called from time to time.
35 ////////////////////////////////////////////////////////////////////
36 INLINE bool RecorderBase::
37 is_playing() const {
38  return (_flags & F_playing) != 0;
39 }
bool is_playing() const
Returns true if this recorder is presently playing back data from session file, false otherwise...
Definition: recorderBase.I:37
bool is_recording() const
Returns true if this recorder is presently recording data for saving to a session file...
Definition: recorderBase.I:25