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