Panda3D
 All Classes Functions Variables Enumerations
config_objegg.cxx
1 // Filename: config_objegg.cxx
2 // Created by: drose (07Dec10)
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_objegg.h"
16 #include "dconfig.h"
17 
18 Configure(config_objegg);
19 NotifyCategoryDef(objegg, "");
20 
21 ConfigureFn(config_objegg) {
22  init_libobjegg();
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: init_libobjegg
27 // Description: Initializes the library. This must be called at
28 // least once before any of the functions or classes in
29 // this library can be used. Normally it will be
30 // called by the static initializers and need not be
31 // called explicitly, but special cases exist.
32 ////////////////////////////////////////////////////////////////////
33 void
34 init_libobjegg() {
35  static bool initialized = false;
36  if (initialized) {
37  return;
38  }
39  initialized = true;
40 }
41