guiApplicationInterface.cpp

00001 /*
00002   GUI Application のフレームワーク
00003   Satofumi KAMIMURA
00004   $Id$
00005 */
00006 
00007 #include "guiApplicationInterface.h"
00008 #include <stdlib.h>
00009 
00010 
00011 WindowInterface* GUI_ApplicationInterface::win = NULL;
00012 TTF_Draw* GUI_ApplicationInterface::ttf = NULL;
00013 
00014 
00015 GUI_ApplicationInterface::GUI_ApplicationInterface(void) {
00016 }
00017 
00018 
00019 int GUI_ApplicationInterface::run(int argc, char *argv[]) {
00020   int ret_value = -1;
00021   if (!win) {
00022     win = new SDL_Window();
00023   }
00024 
00025   win->lock();
00026   ret_value = Initialize(argc, argv);
00027   win->unlock();
00028   if (ret_value < 0) {
00029     return ret_value;
00030   }
00031 
00032   return MainLoop();
00033 }
00034 

Generated on Mon Apr 13 22:52:02 2009 by  doxygen 1.5.7.1