Panda3D
config_interval.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file config_interval.cxx
10  * @author drose
11  * @date 2002-08-27
12  */
13 
14 #include "config_interval.h"
15 #include "cInterval.h"
16 #include "cConstraintInterval.h"
18 #include "cConstrainPosInterval.h"
19 #include "cConstrainHprInterval.h"
21 #include "cLerpInterval.h"
22 #include "cLerpNodePathInterval.h"
24 #include "cMetaInterval.h"
25 #include "showInterval.h"
26 #include "hideInterval.h"
27 #include "waitInterval.h"
28 #include "lerpblend.h"
29 
30 #include "dconfig.h"
31 
32 #if !defined(CPPPARSER) && !defined(LINK_ALL_STATIC) && !defined(BUILDING_DIRECT_INTERVAL)
33  #error Buildsystem error: BUILDING_DIRECT_INTERVAL not defined
34 #endif
35 
36 Configure(config_interval);
37 NotifyCategoryDef(interval, "");
38 
39 ConfigureFn(config_interval) {
41 }
42 
43 ConfigVariableDouble interval_precision
44 ("interval-precision", 1000.0,
45  PRC_DESC("Set this to the default value for set_precision() for each "
46  "CMetaInterval created."));
47 
48 ConfigVariableBool verify_intervals
49 ("verify-intervals", false,
50  PRC_DESC("Set this true to generate an assertion failure if interval "
51  "functions are called out-of-order."));
52 
53 
54 /**
55  * Initializes the library. This must be called at least once before any of
56  * the functions or classes in this library can be used. Normally it will be
57  * called by the static initializers and need not be called explicitly, but
58  * special cases exist.
59  */
60 void
62  static bool initialized = false;
63  if (initialized) {
64  return;
65  }
66  initialized = true;
67 
68  CInterval::init_type();
69  CConstraintInterval::init_type();
70  CConstrainTransformInterval::init_type();
71  CConstrainPosInterval::init_type();
72  CConstrainHprInterval::init_type();
73  CConstrainPosHprInterval::init_type();
74  CLerpInterval::init_type();
75  CLerpNodePathInterval::init_type();
76  CLerpAnimEffectInterval::init_type();
77  CMetaInterval::init_type();
78  ShowInterval::init_type();
79  HideInterval::init_type();
80  WaitInterval::init_type();
81  LerpBlendType::init_type();
82  EaseInBlendType::init_type();
83  EaseOutBlendType::init_type();
84  EaseInOutBlendType::init_type();
85  NoBlendType::init_type();
86 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a convenience class to specialize ConfigVariable as a boolean type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a convenience class to specialize ConfigVariable as a floating- point type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void init_libinterval()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.