00001 // Filename: load_egg_file.h 00002 // Created by: drose (26Feb02) 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 #ifndef LOAD_EGG_FILE_H 00020 #define LOAD_EGG_FILE_H 00021 00022 #include "pandabase.h" 00023 00024 #include "pandaNode.h" 00025 #include "coordinateSystem.h" 00026 00027 class EggData; 00028 00029 //////////////////////////////////////////////////////////////////// 00030 // Function: load_egg_file 00031 // Description: A convenience function; the primary interface to this 00032 // package. Loads up the indicated egg file, and 00033 // returns the root of a scene graph. Returns NULL if 00034 // the file cannot be read for some reason. 00035 // 00036 // Also see the EggLoader class, which can exercise a 00037 // bit more manual control over the loading process. 00038 //////////////////////////////////////////////////////////////////// 00039 EXPCL_PANDAEGG PT(PandaNode) 00040 load_egg_file(const string &filename, CoordinateSystem cs = CS_default); 00041 00042 //////////////////////////////////////////////////////////////////// 00043 // Function: load_egg_data 00044 // Description: Another convenience function; works like 00045 // load_egg_file() but starts from an already-filled 00046 // EggData structure. The structure is destroyed in the 00047 // loading. 00048 //////////////////////////////////////////////////////////////////// 00049 EXPCL_PANDAEGG PT(PandaNode) 00050 load_egg_data(EggData &data); 00051 00052 #endif