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

clanapp.h

Go to the documentation of this file.
00001 /*
00002         ------------------------------------------------------------------------
00003         ClanLib, the platform independent game SDK.
00004 
00005         This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00006         version 2. See COPYING for details.
00007 
00008         For a total list of contributers see CREDITS.
00009 
00010         ------------------------------------------------------------------------
00011 */
00012 
00014 
00015 #ifndef header_clanapp
00016 #define header_clanapp
00017 
00018 class CL_ClanApplication
00019 //: The starting place for all applications.
00020 // The application class must be inherited by all ClanLib applications.
00021 // In your application create a class inheriting CL_ClanApplication, 
00022 // make a global instance of it, and fill in the main() and get_title() functions.
00023 {
00024 public:
00025         CL_ClanApplication();
00026         virtual ~CL_ClanApplication();
00027 
00028         virtual int main(int argc, char** argv)=0;
00029 //: Every program made using ClanLib must implement this function. 
00030 //: This is the main application function, which will be called 
00031 //: _once_ following system initialization.
00035 
00036         virtual char* get_title()=0;
00037 
00038         static CL_ClanApplication *app;
00039 //: Static pointer to an initialized instance of this class. This is set by the 
00040 //: constructor.
00041 };
00042 
00043 #endif

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