Panda3D

config_objegg.cxx

00001 // Filename: config_objegg.cxx
00002 // Created by:  drose (07Dec10)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "config_objegg.h"
00016 #include "dconfig.h"
00017 
00018 Configure(config_objegg);
00019 NotifyCategoryDef(objegg, "");
00020 
00021 ConfigureFn(config_objegg) {
00022   init_libobjegg();
00023 }
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //     Function: init_libobjegg
00027 //  Description: Initializes the library.  This must be called at
00028 //               least once before any of the functions or classes in
00029 //               this library can be used.  Normally it will be
00030 //               called by the static initializers and need not be
00031 //               called explicitly, but special cases exist.
00032 ////////////////////////////////////////////////////////////////////
00033 void
00034 init_libobjegg() {
00035   static bool initialized = false;
00036   if (initialized) {
00037     return;
00038   }
00039   initialized = true;
00040 }
00041 
 All Classes Functions Variables Enumerations