pentagram.cpp

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 2002-2004 The Pentagram team
00003 
00004 This program is free software; you can redistribute it and/or
00005 modify it under the terms of the GNU General Public License
00006 as published by the Free Software Foundation; either version 2
00007 of the License, or (at your option) any later version.
00008 
00009 This program is distributed in the hope that it will be useful,
00010 but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 GNU General Public License for more details.
00013 
00014 You should have received a copy of the GNU General Public License
00015 along with this program; if not, write to the Free Software
00016 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017 */
00018 
00019 #include "pent_include.h"
00020 
00021 #include <SDL.h>
00022 #include "GUIApp.h"
00023 #include "MemoryManager.h"
00024 #include "version.h"
00025 
00026 int main(int argc, char* argv[])
00027 {
00028         // Initialize Memory Manager here to avoid extra tools depending on it
00029         MemoryManager mm;
00030         GUIApp app(argc, argv);
00031 
00032 #ifdef SAFE_CONSOLE_STREAMS
00033         console_streambuf<char> fb;
00034         ppout = new console_ostream<char>(&fb);
00035 
00036         console_err_streambuf<char> err_fb;
00037         pperr = new console_err_ostream<char>(&err_fb);
00038 
00039 #endif
00040 
00041         pout << "Pentagram version " << PentagramVersion::version << std::endl;
00042         pout << "Built: " << PentagramVersion::buildtime << std::endl;
00043         pout << "Optional features: " << PentagramVersion::features << std::endl;
00044         pout << std::endl;
00045 
00046         app.startup();
00047         app.run();
00048 
00049         return 0;
00050 }

Generated on Fri Jul 27 22:27:29 2007 for pentagram by  doxygen 1.4.7