Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/pnmimage/config_pnmimage.cxx

Go to the documentation of this file.
00001 // Filename: config_pnmimage.cxx
00002 // Created by:  drose (19Mar00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #include "config_pnmimage.h"
00020 #include "pnmFileType.h"
00021 
00022 #include <dconfig.h>
00023 
00024 Configure(config_pnmimage);
00025 NotifyCategoryDef(pnmimage, "");
00026 
00027 ConfigureFn(config_pnmimage) {
00028   init_libpnmimage();
00029 }
00030 
00031 ////////////////////////////////////////////////////////////////////
00032 //     Function: init_libpnmimage
00033 //  Description: Initializes the library.  This must be called at
00034 //               least once before any of the functions or classes in
00035 //               this library can be used.  Normally it will be
00036 //               called by the static initializers and need not be
00037 //               called explicitly, but special cases exist.
00038 ////////////////////////////////////////////////////////////////////
00039 void
00040 init_libpnmimage() {
00041   static bool initialized = false;
00042   if (initialized) {
00043     return;
00044   }
00045   initialized = true;
00046 
00047   PNMFileType::init_type();
00048 }

Generated on Fri May 2 00:43:05 2003 for Panda by doxygen1.3