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

panda/src/egg/test_egg.cxx

Go to the documentation of this file.
00001 // Filename: test_egg.cxx
00002 // Created by:  drose (16Jan99)
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 "eggData.h"
00020 #include "notify.h"
00021 
00022 
00023 int
00024 main(int argc, char *argv[]) {
00025   if (argc != 2) {
00026     nout << "Specify an egg file to load.\n";
00027     exit(1);
00028   }
00029   const char *egg_filename = argv[1];
00030 
00031   EggData data;
00032   data.set_coordinate_system(CS_default);
00033 
00034   if (data.read(egg_filename)) {
00035     data.load_externals("");
00036     data.write_egg(cout);
00037   } else {
00038     nout << "Errors.\n";
00039   }
00040   return (0);
00041 }
00042 

Generated on Fri May 2 00:38:07 2003 for Panda by doxygen1.3