removed tchar.h usage
[fegdk.git] / core / code / system / f_application.cpp
blobaedec93c70ab383094ebe84961d9a97d12c34f54
1 /*
2 fegdk: FE Game Development Kit
3 Copyright (C) 2001-2008 Alexey "waker" Yakovenko
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 Alexey Yakovenko
20 waker@users.sourceforge.net
23 #include "pch.h"
24 #include "f_application.h"
25 #include "f_types.h"
26 #include "f_engine.h"
27 #include "f_baserenderer.h"
28 #include "f_parser.h"
29 #include "f_console.h"
31 namespace fe
34 application::application(void)
38 application::~application(void)
42 void application::configure (void)
44 // read config
45 charParser p (g_engine->getFileSystem (), "autoexec.cfg");
46 p.errMode (0);
47 char s[1024];
48 for (;;)
50 if (p.getToken ())
51 break;;
52 strcpy (s, p.token());
53 while (!p.isEOL ())
55 if (p.getToken ())
56 p.error ();
57 strcat (s, " ");
58 strcat (s, p.token ());
60 fprintf (stderr, "%s\n", s);
61 g_engine->getConsole ()->command (s);
65 void application::init( void ) {}
67 void application::free( void ) {}
69 const char* application::getTitle( void ) const { return "FE application"; }
71 const char* application::dataPath( void ) const { return "data"; }
73 void application::keyDown( int keycode ) {}
75 void application::keyUp( int keycode ) {}
77 void application::mouseMove( int x, int y ) {}
79 void application::mouseDown( int keycode ) {}
81 void application::mouseUp( int keycode ) {}
83 void application::mouseWheel(int delta) {}
85 void application::update( void )
89 void application::render( void ) const