/** * @author Edouard DUPIN * * @copyright 2010, Edouard DUPIN, all right reserved * * @license BSD v3 (see license file) */ #include #include #include #include #include #include #include #include #include #include MainWindows * basicWindows = NULL; /** * @brief Main of the program (This can be set in every case, but it is not used in Andoid...). * @param std IO * @return std IO */ int main(int argc, const char *argv[]) { // only one things to do : return ewol::Run(argc, argv); } /** * @brief main application function Initialisation */ void APP_Init(void) { #ifdef __TARGET_OS__Linux #ifdef MODE_RELEASE APPL_INFO("==> Init "PROJECT_NAME" (START) (Linux) (Release)"); #else APPL_INFO("==> Init "PROJECT_NAME" (START) (Linux) (Debug)"); #endif #else #ifdef MODE_RELEASE APPL_INFO("==> Init "PROJECT_NAME" (START) (Android) (Release)"); #else APPL_INFO("==> Init "PROJECT_NAME" (START) (Android) (Debug)"); #endif #endif etk::InitDefaultFolder(PROJECT_NAME); ewol::ChangeSize(ivec2(800, 300)); #ifdef __TARGET_OS__Android ewol::config::FontSetDefault("FreeSerif", 19); #else ewol::config::FontSetDefault("FreeSerif", 14); #endif basicWindows = new MainWindows(); if (NULL == basicWindows) { APPL_ERROR("Can not allocate the basic windows"); ewol::Stop(); return; } // create the specific windows ewol::WindowsSet(basicWindows); // add files APPL_INFO("show list of command line input : "); for( int32_t iii=0 ; iii Init "PROJECT_NAME" (END)"); } /** * @brief the system request the icon file name : */ etk::UString APP_Icon(void) { etk::UString bitmapFile("DATA:iconHuman.bmp"); return bitmapFile; } /** * @brief main application function Un-Initialisation */ void APP_UnInit(void) { APPL_INFO("==> Un-Init "PROJECT_NAME" (START)"); // Remove windows : ewol::WindowsSet(NULL); if (NULL != basicWindows) { delete(basicWindows); basicWindows = NULL; } APPL_INFO("==> Un-Init "PROJECT_NAME" (END)"); }