Panda3D
 All Classes Functions Variables Enumerations
recorderBase.I
00001 // Filename: recorderBase.I
00002 // Created by:  drose (24Jan04)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: RecorderBase::is_recording
00018 //       Access: Published
00019 //  Description: Returns true if this recorder is presently recording
00020 //               data for saving to a session file, false otherwise.
00021 //               If this is true, record_data() will be called from
00022 //               time to time.
00023 ////////////////////////////////////////////////////////////////////
00024 INLINE bool RecorderBase::
00025 is_recording() const {
00026   return (_flags & F_recording) != 0;
00027 }
00028 
00029 ////////////////////////////////////////////////////////////////////
00030 //     Function: RecorderBase::is_playing
00031 //       Access: Published
00032 //  Description: Returns true if this recorder is presently playing back
00033 //               data from session file, false otherwise.  If this is
00034 //               true, play_data() will be called from time to time.
00035 ////////////////////////////////////////////////////////////////////
00036 INLINE bool RecorderBase::
00037 is_playing() const {
00038   return (_flags & F_playing) != 0;
00039 }
 All Classes Functions Variables Enumerations