1 #include "configure.hpp"
\r
2 #include "mof/Application.hpp"
\r
3 #include "mof/streams.hpp"
\r
4 #include "mof/Color.hpp"
\r
6 #include "mof/utilities.hpp"
\r
7 #include "mof/ConsoleIO.hpp"
\r
9 #include "mof/Finalizer.hpp"
\r
10 #include "mof/Font.hpp"
\r
12 #include "Demo1.hpp"
\r
13 #include "Demo2.hpp"
\r
14 #include "Demo3.hpp"
\r
17 int main(int , char**)
\r
19 mof::Font::addFontResource( FONT_PATH_UME );
\r
20 mof::Finalizer application;
\r
23 { //
\83A
\83v
\83\8a\83P
\81[
\83V
\83\87\83\93\82Ì
\8f\89\8aú
\89»
\r
24 mof::Application::initialize
\r
26 _T("MyApplication") ,
\r
27 640 , 480 , false , // fullscreen
\r
31 application = mof::Finalizer( mof::Application::finalize );
\r
34 { //
\83V
\81[
\83\93\82Ì
\83Z
\83b
\83g
\82Æ
\8aJ
\8en
\r
36 #define FIRST_SCENE ::Demo3
\r
37 scene.initialize = FIRST_SCENE::initialize;
\r
38 scene.finalize = FIRST_SCENE::finalize;
\r
39 scene.update = FIRST_SCENE::update;
\r
40 scene.draw = FIRST_SCENE::draw;
\r
41 mof::Application::run( scene );
\r
44 catch(std::exception& e)
\r
46 DEBUG_PRINT( e.what() );
\r