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

clanapp.cpp

Go to the documentation of this file.
00001 /*
00002         $Id: clanapp.cpp,v 1.4 2001/02/21 01:49:00 plasmoid Exp $
00003 
00004         ------------------------------------------------------------------------
00005         ClanLib, the platform independent game SDK.
00006 
00007         This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00008         version 2. See COPYING for details.
00009 
00010         For a total list of contributers see CREDITS.
00011 
00012         ------------------------------------------------------------------------
00013 */
00014 
00015 #include <stdlib.h>
00016 #include <iostream.h>
00017 #include "API/Core/System/setupcore.h"
00018 #include "API/Application/clanapp.h"
00019 
00021 // main:
00022 
00023 int main(int argc, char **argv)
00024 {
00025         if (CL_ClanApplication::app == NULL)
00026         {
00027                 std::cout << "ClanLib: No global CL_ClanApplication instance!!!" << std::endl;
00028                 return 255;
00029         }
00030 
00031         CL_SetupCore::init();
00032         int retval = CL_ClanApplication::app->main(argc, argv);
00033         CL_SetupCore::deinit();
00034 
00035         return retval;
00036 }
00037 
00038 
00040 // CL_ClanApplication:
00041 
00042 CL_ClanApplication *CL_ClanApplication::app = NULL;
00043 
00044 CL_ClanApplication::CL_ClanApplication()
00045 {
00046         CL_ClanApplication::app = this;
00047 }
00048 
00049 CL_ClanApplication::~CL_ClanApplication()
00050 {
00051         CL_ClanApplication::app = NULL;
00052 }

Generated at Wed Apr 4 19:53:59 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001