00001 // Filename: panda.cxx 00002 // Created by: drose (15May00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 00006 #include "panda.h" 00007 00008 #include "config_device.h" 00009 #include "config_display.h" 00010 #include "config_pnmimagetypes.h" 00011 #include "config_pgraph.h" 00012 #ifdef DO_PSTATS 00013 #include "config_pstats.h" 00014 #endif 00015 00016 #ifdef LINK_IN_GL 00017 #include "config_glgsg.h" 00018 #ifdef HAVE_WGL 00019 #include "config_wgldisplay.h" 00020 #endif 00021 #endif 00022 00023 #ifdef LINK_IN_PHYSICS 00024 #include "config_physics.h" 00025 #include "config_particlesystem.h" 00026 #endif 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Function: init_libpanda 00030 // Description: Initializes the library. This must be called at 00031 // least once before any of the functions or classes in 00032 // this library can be used. Normally it will be 00033 // called by the static initializers and need not be 00034 // called explicitly, but special cases exist. 00035 //////////////////////////////////////////////////////////////////// 00036 void 00037 init_libpanda() { 00038 init_libdevice(); 00039 init_libdisplay(); 00040 init_libpgraph(); 00041 init_libpnmimagetypes(); 00042 #ifdef DO_PSTATS 00043 init_libpstatclient(); 00044 #endif 00045 00046 #ifdef LINK_IN_GL 00047 init_libglgsg(); 00048 #ifdef HAVE_WGL 00049 init_libwgldisplay(); 00050 #endif 00051 #endif 00052 00053 #ifdef LINK_IN_PHYSICS 00054 init_libphysics(); 00055 init_libparticlesystem(); 00056 #endif 00057 }