Panda3D
 All Classes Functions Variables Enumerations
config_cftalk.cxx
1 // Filename: config_cftalk.cxx
2 // Created by: drose (26Mar09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "config_cftalk.h"
16 #include "cfCommand.h"
17 #include "pandaSystem.h"
18 
19 ConfigureDef(config_cftalk);
20 NotifyCategoryDef(cftalk, "");
21 
22 ConfigureFn(config_cftalk) {
23  init_libcftalk();
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: init_libcftalk
28 // Description: Initializes the library. This must be called at
29 // least once before any of the functions or classes in
30 // this library can be used. Normally it will be
31 // called by the static initializers and need not be
32 // called explicitly, but special cases exist.
33 ////////////////////////////////////////////////////////////////////
34 void
35 init_libcftalk() {
36  static bool initialized = false;
37  if (initialized) {
38  return;
39  }
40  initialized = true;
41 
42  CFCommand::init_type();
43  CFDoCullCommand::init_type();
44 
46 
48  ps->add_system("cftalk");
49 }
static PandaSystem * get_global_ptr()
Returns the global PandaSystem object.
This class is used as a namespace to group several global properties of Panda.
Definition: pandaSystem.h:29
void add_system(const string &system)
Intended for use by each subsystem to register itself at startup.
static void register_with_read_factory()
Tells the BamReader how to create objects of type CFDoCullCommand.
Definition: cfCommand.cxx:36