Panda3D
config_daeegg.cxx
1 // Filename: config_daeegg.cxx
2 // Created by: pro-rsoft (30Oct08)
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_daeegg.h"
16 #include "daeCharacter.h"
17 #include "daeMaterials.h"
18 
19 #include "dconfig.h"
20 
21 Configure(config_daeegg);
22 NotifyCategoryDef(daeegg, "");
23 
24 ConfigureFn(config_daeegg) {
25  init_libdaeegg();
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: init_libdaeegg
30 // Description: Initializes the library. This must be called at
31 // least once before any of the functions or classes in
32 // this library can be used. Normally it will be
33 // called by the static initializers and need not be
34 // called explicitly, but special cases exist.
35 ////////////////////////////////////////////////////////////////////
36 void
37 init_libdaeegg() {
38  static bool initialized = false;
39  if (initialized) {
40  return;
41  }
42  initialized = true;
43 
44  DaeCharacter::init_type();
45  DaeMaterials::init_type();
46 }
47