Panda3D
config_maya.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_maya.cxx
10  * @author drose
11  * @date 2002-04-15
12  */
13 
14 #include "config_maya.h"
15 
16 #include "dconfig.h"
17 
18 Configure(config_maya);
19 NotifyCategoryDef(maya, "");
20 
21 ConfigureFn(config_maya) {
22  init_libmaya();
23 }
24 
25 ConfigVariableInt init_maya_repeat_count
26 ("init-maya-repeat-count", 5,
27  PRC_DESC("The number of times to attempt to initialize Maya and acquire the "
28  "Maya license before giving up."));
29 
30 ConfigVariableDouble init_maya_timeout
31 ("init-maya-timeout", 5.0,
32  PRC_DESC("The number of seconds to wait between attempts to acquire the "
33  "Maya license."));
34 
35 /**
36  * Initializes the library. This must be called at least once before any of
37  * the functions or classes in this library can be used. Normally it will be
38  * called by the static initializers and need not be called explicitly, but
39  * special cases exist.
40  */
41 void
43  static bool initialized = false;
44  if (initialized) {
45  return;
46  }
47  initialized = true;
48 }
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void init_libmaya()
Initializes the library.
Definition: config_maya.cxx:42
This is a convenience class to specialize ConfigVariable as a floating- point type.
This is a convenience class to specialize ConfigVariable as an integer type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.