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

direct/src/interval/config_interval.cxx

Go to the documentation of this file.
00001 // Filename: config_interval.cxx
00002 // Created by:  drose (27Aug02)
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 #include "config_interval.h"
00020 #include "cInterval.h"
00021 #include "cLerpInterval.h"
00022 #include "cLerpNodePathInterval.h"
00023 #include "cLerpAnimEffectInterval.h"
00024 #include "cMetaInterval.h"
00025 #include "showInterval.h"
00026 #include "hideInterval.h"
00027 
00028 #include "dconfig.h"
00029 
00030 Configure(config_interval);
00031 NotifyCategoryDef(interval, "");
00032 
00033 ConfigureFn(config_interval) {
00034   init_libinterval();
00035 }
00036 
00037 // Set this to the default value for set_precision() for each
00038 // CMetaInterval created.
00039 const double interval_precision = config_interval.GetDouble("interval-precision", 1000.0);
00040 
00041 // Set this true to generate an assertion failure if interval
00042 // functions are called out-of-order.
00043 const bool verify_intervals = config_interval.GetBool("verify-intervals", false);
00044 
00045 ////////////////////////////////////////////////////////////////////
00046 //     Function: init_libinterval
00047 //  Description: Initializes the library.  This must be called at
00048 //               least once before any of the functions or classes in
00049 //               this library can be used.  Normally it will be
00050 //               called by the static initializers and need not be
00051 //               called explicitly, but special cases exist.
00052 ////////////////////////////////////////////////////////////////////
00053 void
00054 init_libinterval() {
00055   static bool initialized = false;
00056   if (initialized) {
00057     return;
00058   }
00059   initialized = true;
00060 
00061   CInterval::init_type();
00062   CLerpInterval::init_type();
00063   CLerpNodePathInterval::init_type();
00064   CLerpAnimEffectInterval::init_type();
00065   CMetaInterval::init_type();
00066   ShowInterval::init_type();
00067   HideInterval::init_type();
00068 }
00069 

Generated on Fri May 2 01:37:54 2003 for Direct by doxygen1.3