Ejemplo n.º 1
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

#ifdef USE_WIN32_CONSOLE
    AllocConsole();
    freopen("CONIN$", "r", stdin);
    freopen("CONOUT$", "w", stdout);
    freopen("CONOUT$", "w", stderr);
#endif

    // create the application instance
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
    eglView->setViewName("FFQ");
    eglView->setFrameSize(640, 960);

    int ret = CCApplication::sharedApplication()->run();

#ifdef USE_WIN32_CONSOLE
    FreeConsole();
#endif

    return ret;
}
Ejemplo n.º 2
0
MainPage::MainPage()
{
	InitializeComponent();
	// Note AppDelegate is in MainPage.xaml.h
    CCEGLView* eglView = new CCEGLView();
	eglView->Create(Window::Current->CoreWindow, SwapChainPanel);
    eglView->setViewName("TestCpp");
    CCApplication::sharedApplication()->run();
}
Ejemplo n.º 3
0
MainPage::MainPage()
{
	InitializeComponent();

    CCEGLView* eglView = new CCEGLView();
	eglView->Create(Window::Current->CoreWindow, SwapChainPanel);
    eglView->setViewName("OzgGameRPG");
    CCApplication::sharedApplication()->run();
}
Ejemplo n.º 4
0
int main(int argc, char **argv)
{
    // create the application instance
    AppDelegate app;

    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
    eglView->setFrameSize(480, 800);
    eglView->setViewName("2048");
    return CCApplication::sharedApplication()->run();
}
Ejemplo n.º 5
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    // create the application instance
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
    eglView->setViewName("netsample");
    eglView->setFrameSize(480, 320);
    return CCApplication::sharedApplication()->run();
}
Ejemplo n.º 6
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    // create the application instance
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
    eglView->setViewName("MiniGame");
    eglView->setFrameSize(SCREEN_WIDTH, SCREEN_HEIGHT);
	eglView->setFrameZoomFactor(0.5);
    return CCApplication::sharedApplication()->run();
}
Ejemplo n.º 7
0
//-------------------------------------------------------------------------
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

	LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
    eglView->setViewName(A2U("FKImageTool图片格式转译&查看工具").c_str());
    eglView->setFrameSize(1624, 1024);
	eglView->setFrameZoomFactor(0.8f);
    return CCApplication::sharedApplication()->run();
}
Ejemplo n.º 8
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    // create the application instance
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
    eglView->setViewName("SpineExample");
    eglView->setFrameSize(480, 320);
    // So we need to invoke 'setFrameZoomFactor' (only valid on desktop(win32, mac, linux)) to make the window smaller.
   // eglView->setFrameZoomFactor(0.4f);
    return CCApplication::sharedApplication()->run();
}
Ejemplo n.º 9
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);//该宏用于通知编译器不用检测变量是否使用
    UNREFERENCED_PARAMETER(lpCmdLine);

    // create the application instance
    AppDelegate app;

    CCEGLView* eglView = CCEGLView::sharedOpenGLView();	
	eglView->setViewName("Airplane");
    eglView->setFrameSize(320, 480);
    //eglView->setFrameZoomFactor(0.4f);

    return CCApplication::sharedApplication()->run();
}
Ejemplo n.º 10
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    // create the application instance
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
    eglView->setViewName("ChineseChess");
    eglView->setFrameSize(1080, 1500);
    // The resolution of ipad3 is very large. In general, PC's resolution is smaller than it.
    // So we need to invoke 'setFrameZoomFactor'(only valid on desktop(win32, mac, linux)) to make the window smaller.
    eglView->setFrameZoomFactor(0.5f);
    return CCApplication::sharedApplication()->run();
}
Ejemplo n.º 11
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    // create the application instance
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
    eglView->setViewName("Test");
    eglView->setFrameSize(750, 1334);
    
    CCApplication::sharedApplication()->setResourceRootPath("../../Resources");

    return CCApplication::sharedApplication()->run();
}
Ejemplo n.º 12
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    // create the application instance
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
    eglView->setViewName("2048");
    eglView->setFrameSize(1080, 1920);
	 //eglView->setFrameSize(400, 640);
	//eglView->setFrameSize(400, 640);
	eglView->setFrameZoomFactor(0.4f);//ÉèÖÃÆÁÄ»Ëõ·Å±ÈÀý
    return CCApplication::sharedApplication()->run();
}
Ejemplo n.º 13
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    // create the application instance
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
    eglView->setViewName("FacebookPlugin");

	int nSimW = CIniMgr::GetInstance()->GetValue(DEBUG_INI, "Sim", "Width", 480);
	int nSimH = CIniMgr::GetInstance()->GetValue(DEBUG_INI, "Sim", "Height", 720);

    eglView->setFrameSize(nSimW, nSimH);
    return CCApplication::sharedApplication()->run();
}
Ejemplo n.º 14
0
void Cocos2dxView::initCocos2dx()
{
	HWND hwnd = (HWND)this->winId();
	
	CCEGLView *eglView = CCEGLView::sharedOpenGLView(hwnd);
	eglView->setViewName("cocos2dx_view");
	eglView->setFrameSize(defaultSizeX, defaultSizeY);
	this->setGeometry(0, 0, defaultSizeX, defaultSizeY);

	CCApplication::sharedApplication()->run(false);

	cocos2d::CCScene *sc = CCDirector::sharedDirector()->getRunningScene();
	//先运行一帧,保证当前运行场景不为空
	CCDirector::sharedDirector()->mainLoop();
	
	m_timer.setParent(this);
	connect(&m_timer, SIGNAL(timeout()), this, SLOT(renderCocos2dx()));
	m_timer.start();
}
Ejemplo n.º 15
0
Archivo: main.cpp Proyecto: joyfish/zgc
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
	setProcessEncoding(encode_utf8);
    UNREFERENCED_PARAMETER(hPrevInstance);
    //UNREFERENCED_PARAMETER(lpCmdLine);
	char sz[128];
	WideCharToMultiByte( CP_ACP, 0, lpCmdLine, -1,   
        sz, 127, NULL, NULL );   
	GameRoot::getSingleton().ParseCmd(sz);
    // create the application instance
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
    eglView->setViewName("HelloCpp");
    eglView->setFrameSize(1024, 768);
    return CCApplication::sharedApplication()->run();
}
Ejemplo n.º 16
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
	HINSTANCE hPrevInstance,
	LPTSTR lpCmdLine,
	int nCmdShow)
{
#ifdef _DEBUG
	AllocConsole();
	freopen("CONIN$", "r", stdin);
	freopen("CONOUT$", "w", stdout);
	freopen("CONOUT$", "w", stderr);
#endif
	if (lpCmdLine && lpCmdLine[0])
	{
		string filename = lpCmdLine;
		filename.erase(std::remove(filename.begin(),filename.end(),'\"'),filename.end());
		CCUserDefault::sharedUserDefault()->setStringForKey("ScriptEntry", filename.c_str());
	}

	// create the application instance
	AppDelegate app;
	CCEGLView* eglView = CCEGLView::sharedOpenGLView();
	eglView->setViewName("Dorothy");

	SetClassLong(eglView->getHWnd(), GCL_HICON, (long)LoadIcon(hInstance, MAKEINTRESOURCE(IDR_MAINFRAME)));
	int width = CCUserDefault::sharedUserDefault()->getIntegerForKey("Width");
	int height = CCUserDefault::sharedUserDefault()->getIntegerForKey("Height");
	if (width == 0 || height == 0)
	{
		width = 800;
		height = 600;
		CCUserDefault::sharedUserDefault()->setIntegerForKey("Width", width);
		CCUserDefault::sharedUserDefault()->setIntegerForKey("Height", height);
	}

	eglView->setFrameSize(CCSize(width, height));

	int ret = CCApplication::sharedApplication()->run();
#if defined(_DEBUG)
	FreeConsole();
#endif
	return ret;
}
	MEDUSA_EXPORT_API bool MInitializeApplication( HWND hwnd )
	{

		cocos2d::CCEGLView::SetParentHwnd(hwnd);

		// create the application instance
		AppDelegate app;


		CCEGLView* eglView = CCEGLView::sharedOpenGLView();
		eglView->setViewName("HelloCpp");
		eglView->setFrameSize(960, 640);
		// The resolution of ipad3 is very large. In general, PC's resolution is smaller than it.
		// So we need to invoke 'setFrameZoomFactor'(only valid on desktop(win32, mac, linux)) to make the window smaller.
		eglView->setFrameZoomFactor(1);


		CCApplication::sharedApplication()->run();
		return true;
	}
Ejemplo n.º 18
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    AllocConsole();   // create console
    SetConsoleTitle(_T("Debug Output"));      // console title
    // redirect STDIN
    {
        FILE*fp;
        errno_t eno=freopen_s(&fp,"CONIN$", "r+t", stdin);
        if(eno!=0) { //failed
            MessageBox(NULL,_T("redirect stdin failed!"),_T("error"),MB_OK|MB_ICONEXCLAMATION);
            exit(0);
        }
    }
    // redirect STDOUT
    {
        FILE*fp;
        errno_t eno=freopen_s(&fp,"CONOUT$", "w+t", stdout);
        if(eno!=0) { //failed
            MessageBox(NULL,_T("redirect stdout failed!"),_T("error"),MB_OK|MB_ICONEXCLAMATION);
            exit(0);
        }

    }

    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    // create the application instance
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
    eglView->setViewName("HelloCpp");
    eglView->setFrameSize(960,640);//(480,320);//(2048, 1536);
    // The resolution of ipad3 is very large. In general, PC's resolution is smaller than it.
    // So we need to invoke 'setFrameZoomFactor'(only valid on desktop(win32, mac, linux)) to make the window smaller.
    eglView->setFrameZoomFactor(0.7f);//(0.4f);
    return CCApplication::sharedApplication()->run();
}
Ejemplo n.º 19
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    // create the application instance
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
	eglView->setViewName("Gravity");
#if PROGRAM_MODE == PROGRAM_MODE_GAME
	eglView->setFrameSize(1280, 800);
#elif PROGRAM_MODE == PROGRAM_MODE_CREATER
	eglView->setFrameSize(1280, 900);
#else
	CCAssert(false, "PROGRAM_MODE unexpect.");
#endif
	eglView->setFrameZoomFactor(.8f);
    return CCApplication::sharedApplication()->run();
}
Ejemplo n.º 20
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

#ifdef USE_WIN32_CONSOLE
    AllocConsole();
    freopen("CONIN$", "r", stdin);
    freopen("CONOUT$", "w", stdout);
    freopen("CONOUT$", "w", stderr);
#endif

	int nRes = 0;
	char szFolderName[MAX_PATH] = {0};
	//int nScreenWidth = 960, nScreenHeight = 640;
	sscanf(lpCmdLine, "%d %d %s", &g_nScreenWidth, &g_nScreenHeight, szFolderName);
	//_tscanf
	if (strlen(szFolderName) > 0)
	{
		ScutDataLogic::CFileHelper::setResourceFolderName(szFolderName);
	}
    // create the application instance
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();

	eglView->setViewName("MainApp");
	eglView->setFrameSize(g_nScreenWidth, g_nScreenHeight);
    int ret = CCApplication::sharedApplication()->run();

#ifdef USE_WIN32_CONSOLE
    FreeConsole();
#endif

    return ret;
}
Ejemplo n.º 21
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

//#if _DEBUG
//	_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
//#endif

	// create the application instance
	AppDelegate app;
	CCEGLView* eglView = CCEGLView::sharedOpenGLView();
	eglView->setViewName( "Hello 3D World" );
	eglView->setFrameSize( SCREEN_WIDTH, SCREEN_HEIGHT );
	CCApplication::sharedApplication()->run();

//#if _DEBUG
//	_CrtDumpMemoryLeaks();
//#endif
}
Ejemplo n.º 22
0
// Creates and restores Cocos2d-x after DirectX and Angle contexts are created or updated
void Cocos2dRenderer::CreateGLResources()
{
	if (!mInitialized)
	{
		mInitialized = true;
		CCEGLView* pEGLView = new CCEGLView();
		pEGLView->Create(m_eglDisplay, m_eglContext, m_eglSurface, m_renderTargetSize.Width, m_renderTargetSize.Height);
		pEGLView->setViewName("Cocos2d-x");
		CCApplication::sharedApplication()->run();
		pEGLView->SetXamlEventDelegate(m_delegate);
	}
	else
	{
		ccGLInvalidateStateCache();
		CCShaderCache::sharedShaderCache()->reloadDefaultShaders();
		ccDrawInit();
		CCTextureCache::sharedTextureCache()->reloadAllTextures();
		CCNotificationCenter::sharedNotificationCenter()->postNotification(EVENT_COME_TO_FOREGROUND, NULL);
		CCDirector::sharedDirector()->setGLDefaultValues();
		CCDirector::sharedDirector()->resume();
	}

	m_loadingComplete = true;
}
Ejemplo n.º 23
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
                       HINSTANCE hPrevInstance,
                       LPTSTR    lpCmdLine,
                       int       nCmdShow)
{
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);


	// create a command line window
	AllocConsole();
	freopen("CONIN$", "r", stdin);
	freopen("CONOUT$", "w", stdout);
	freopen("CONOUT$", "w", stderr);


    // create the application instance
    AppDelegate app;
    CCEGLView* eglView = CCEGLView::sharedOpenGLView();
    eglView->setViewName("Example");
    eglView->setFrameSize(854, 480);

    return CCApplication::sharedApplication()->run();
}
Ejemplo n.º 24
0
int APIENTRY _tWinMain(HINSTANCE hInstance,
					   HINSTANCE hPrevInstance,
					   LPTSTR    lpCmdLine,
					   int       nCmdShow)
{
	UNREFERENCED_PARAMETER(hPrevInstance);
	UNREFERENCED_PARAMETER(lpCmdLine);

	// create the application instance
	AppDelegate app;
	CCEGLView* eglView = CCEGLView::sharedOpenGLView();

	eglView->setViewName("ROBOT_APP"); 
	eglView->setVersionName("1.0.1127");
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)  	
	int ScreenHeight, ScreenWidth;
	ScreenHeight = GetSystemMetrics(SM_CYSCREEN); //取得高度的像素
	ScreenWidth = GetSystemMetrics(SM_CXSCREEN); //取得寬度的像素
	
	int iIdx_H =0 ,iIdx_W=0,iIdx_win=0; //找出最適合辨識率
	for(int i=0;i<4;i++)
	{
		if(IMAGE_SIZE_TABLE_H[i]<ScreenHeight)
			iIdx_H=i;
		if(IMAGE_SIZE_TABLE_W[i]<ScreenWidth)
			iIdx_W=i;
	}

	if(iIdx_H<iIdx_W)
		iIdx_win=iIdx_H;
	else
		iIdx_win=iIdx_W;
	//讀取設定!強制改變解析度
	FILE *pFile=fopen("WIN.INI","r");
	if(pFile!=NULL)
	{
		char sTemp[256];
		int iValue;
		fscanf(pFile,"%d %[^\n]",&iValue,sTemp);
		if(iValue>=0 && iValue<4)
			iIdx_win=iValue;
		fclose(pFile);
	}
	//決定字體大小
	switch(iIdx_win)
	{
	case WINFRAME_M:
		pSTR_TITAL_SIZE		= &STR_TITAL_SIZE_M;
		pSTR_ERROR_SIZE		= &STR_ERROR_SIZE_M;
		pSTR_STATE_SIZE		= &STR_STATE_SIZE_M;
		pSTR_WIFILIST_SIZE	= &STR_WIFILIST_SIZE_M;
		pSTR_ROBOTMAIN_LABSIZE	= &STR_ROBOTMAIN_LABSIZE_M;
		pSTR_CLEAN_LABSIZE	= &STR_CLEAN_LABSIZE_M;
		pSTR_RESERV_LABSIZE	= &STR_RESERV_LABSIZE_M;
		pSTR_HELP_SIZE		= &STR_HELP_SIZE_M;
		pSTR_DATE_SIZE		= &STR_DATE_SIZE_M;
		pSTR_TIME_SIZE		= &STR_TIME_SIZE_M;
		pSTR_LINK_SIZE		= &STR_LINK_SIZE_M;
		pSTR_SETUP_SIZE		= &STR_SETUP_SIZE_M;
		pSTR_CLEANJOB_SIZE	= &STR_CLEANJOB_SIZE_M;
		pSTR_BTN_SIZE		= &STR_BTN_SIZE_M;
		pSTR_TOAST_SIZE		= &STR_TOAST_SIZE_M;
		pSTR_DIALOG_SIZE	= &STR_DIALOG_SIZE_M;
		pSTR_LATER_SIZE		= &STR_LATER_SIZE_M;
		break;
	case WINFRAME_XH:
		pSTR_TITAL_SIZE		= &STR_TITAL_SIZE_XH;
		pSTR_ERROR_SIZE		= &STR_ERROR_SIZE_XH;
		pSTR_STATE_SIZE		= &STR_STATE_SIZE_XH;
		pSTR_WIFILIST_SIZE	= &STR_WIFILIST_SIZE_XH;
		pSTR_ROBOTMAIN_LABSIZE	= &STR_ROBOTMAIN_LABSIZE_XH;
		pSTR_CLEAN_LABSIZE	= &STR_CLEAN_LABSIZE_XH;
		pSTR_RESERV_LABSIZE	= &STR_RESERV_LABSIZE_XH;
		pSTR_HELP_SIZE		= &STR_HELP_SIZE_XH;
		pSTR_DATE_SIZE		= &STR_DATE_SIZE_XH;
		pSTR_TIME_SIZE		= &STR_TIME_SIZE_XH;
		pSTR_LINK_SIZE		= &STR_LINK_SIZE_XH;
		pSTR_SETUP_SIZE		= &STR_SETUP_SIZE_XH;
		pSTR_CLEANJOB_SIZE	= &STR_CLEANJOB_SIZE_XH;
		pSTR_BTN_SIZE		= &STR_BTN_SIZE_XH;
		pSTR_TOAST_SIZE		= &STR_TOAST_SIZE_XH;
		pSTR_DIALOG_SIZE	= &STR_DIALOG_SIZE_XH;
		pSTR_LATER_SIZE		= &STR_LATER_SIZE_XH;
		break;
	case WINFRAME_XXH:
		pSTR_TITAL_SIZE		= &STR_TITAL_SIZE_XXH;
		pSTR_ERROR_SIZE		= &STR_ERROR_SIZE_XXH;
		pSTR_STATE_SIZE		= &STR_STATE_SIZE_XXH;
		pSTR_WIFILIST_SIZE	= &STR_WIFILIST_SIZE_XXH;
		pSTR_ROBOTMAIN_LABSIZE	= &STR_ROBOTMAIN_LABSIZE_XXH;
		pSTR_CLEAN_LABSIZE	= &STR_CLEAN_LABSIZE_XXH;
		pSTR_RESERV_LABSIZE	= &STR_RESERV_LABSIZE_XXH;
		pSTR_HELP_SIZE		= &STR_HELP_SIZE_XXH;
		pSTR_DATE_SIZE		= &STR_DATE_SIZE_XXH;
		pSTR_TIME_SIZE		= &STR_TIME_SIZE_XXH;
		pSTR_LINK_SIZE		= &STR_LINK_SIZE_XXH;
		pSTR_SETUP_SIZE		= &STR_SETUP_SIZE_XXH;
		pSTR_CLEANJOB_SIZE	= &STR_CLEANJOB_SIZE_XXH;
		pSTR_BTN_SIZE		= &STR_BTN_SIZE_XXH;
		pSTR_TOAST_SIZE		= &STR_TOAST_SIZE_XXH;
		pSTR_DIALOG_SIZE	= &STR_DIALOG_SIZE_XXH;
		pSTR_LATER_SIZE		= &STR_LATER_SIZE_XXH;
		break;
	default:
	case WINFRAME_H:
		pSTR_TITAL_SIZE		= &STR_TITAL_SIZE_H;
		pSTR_ERROR_SIZE		= &STR_ERROR_SIZE_H;
		pSTR_STATE_SIZE		= &STR_STATE_SIZE_H;
		pSTR_WIFILIST_SIZE	= &STR_WIFILIST_SIZE_H;
		pSTR_ROBOTMAIN_LABSIZE	= &STR_ROBOTMAIN_LABSIZE_H;
		pSTR_CLEAN_LABSIZE	= &STR_CLEAN_LABSIZE_H;
		pSTR_RESERV_LABSIZE	= &STR_RESERV_LABSIZE_H;
		pSTR_HELP_SIZE		= &STR_HELP_SIZE_H;
		pSTR_DATE_SIZE		= &STR_DATE_SIZE_H;
		pSTR_TIME_SIZE		= &STR_TIME_SIZE_H;
		pSTR_LINK_SIZE		= &STR_LINK_SIZE_H;
		pSTR_SETUP_SIZE		= &STR_SETUP_SIZE_H;
		pSTR_CLEANJOB_SIZE	= &STR_CLEANJOB_SIZE_H;
		pSTR_BTN_SIZE		= &STR_BTN_SIZE_H;
		pSTR_TOAST_SIZE		= &STR_TOAST_SIZE_H;
		pSTR_DIALOG_SIZE	= &STR_DIALOG_SIZE_H;
		pSTR_LATER_SIZE		= &STR_LATER_SIZE_H;
		break;


	}
	
	eglView->setFrameSize(IMAGE_SIZE_TABLE_W[iIdx_win],IMAGE_SIZE_TABLE_H[iIdx_win] );
	SetWindwsSizeIdx(iIdx_win);
#else 
	//setDesignResolutionSize 手機上用此函數動作
	eglView->setViewName("ROBOT_APP");
	eglView->setFrameSize(540, 960);
#endif
	int iRunState=CCApplication::sharedApplication()->run();
	//這邊增加 釋放THREAD 資源的函數
	CCApplication::sharedApplication()->ManualFree();
	return iRunState;
}