Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/express/trueClock.I

Go to the documentation of this file.
00001 // Filename: trueClock.I
00002 // Created by:  drose (04Jul00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 ////////////////////////////////////////////////////////////////////
00020 //     Function: TrueClock::get_ptr
00021 //       Access: Public
00022 //  Description: Returns a pointer to the one TrueClock object in
00023 //               the world.
00024 ////////////////////////////////////////////////////////////////////
00025 INLINE TrueClock *TrueClock::
00026 get_ptr() {
00027   if (_global_ptr == (TrueClock *)NULL) {
00028     _global_ptr = new TrueClock;
00029   }
00030   return _global_ptr;
00031 }
00032 
00033 ////////////////////////////////////////////////////////////////////
00034 //     Function: TrueClock::Destructor
00035 //       Access: Protected
00036 //  Description: A protected destructor because no one should try to
00037 //               delete the global TrueClock.
00038 ////////////////////////////////////////////////////////////////////
00039 INLINE TrueClock::
00040 ~TrueClock() {
00041 }

Generated on Fri May 2 00:38:42 2003 for Panda by doxygen1.3