本文整理汇总了C++中CCEGLView::setVersionName方法的典型用法代码示例。如果您正苦于以下问题:C++ CCEGLView::setVersionName方法的具体用法?C++ CCEGLView::setVersionName怎么用?C++ CCEGLView::setVersionName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCEGLView
的用法示例。
在下文中一共展示了CCEGLView::setVersionName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: _tWinMain
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;
//.........这里部分代码省略.........