{"id":158439,"date":"2012-11-13T13:21:03","date_gmt":"2012-11-13T09:21:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=158439"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=158439","title":{"rendered":"<span class=\"post_title\">Cocos2d-x \u043f\u043e\u0434 Android: \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041e\u0434\u0438\u043d \u0438\u0437 \u043c\u043e\u0438\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u2014 \u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0433\u0440\u044b \u0441 iOS \u043d\u0430 Android. \u0418\u0433\u0440\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"http:\/\/www.cocos2d-x.org\/projects\/cocos2d-x\/wiki\">Cocos2d-x<\/a>, \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e Cocos2d-x \u0434\u043b\u044f Android<\/b><\/p>\n<div class=\"spoiler_text\">Cocos2d-x \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043b\u044f Android \u0443\u0436\u0435 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u0432\u0430 \u0433\u043e\u0434\u0430, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043e\u043b\u0438\u0434\u043d\u044b\u0439 \u0432\u043e\u0437\u0440\u0430\u0441\u0442. \u041e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434, \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f MIT (\u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439).<br \/>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u0434\u043b\u044f OpenGL ES 1.x \u2014 0.13.0, \u0432\u044b\u0448\u0435\u043b \u0432 \u043c\u0430\u0440\u0442\u0435 \u044d\u0442\u043e\u0433\u043e \u0433\u043e\u0434\u0430.<br \/>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u0434\u043b\u044f OpenGL ES 2.0 \u2014 2.0.2, \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 \u043a\u043e\u043d\u0446\u0435 \u0430\u0432\u0433\u0443\u0441\u0442\u0430.<\/div>\n<\/div>\n<p>  \u0425\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u043e \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438\u0433\u0440\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u043e\u0431\u0449\u0443\u044e \u043f\u043b\u0430\u0432\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u0430\u043a\u0446\u0438\u0438 \u043d\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h5>\u0421\u043f\u043e\u043a\u043e\u0439\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430<\/h5>\n<p>  \u0418\u0433\u0440\u0430 \u043d\u0430 iOS \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u0435\u0440\u0441\u0438\u044e 0.13, \u0442\u0430\u043a \u0447\u0442\u043e \u0434\u043b\u044f Android \u0432\u0437\u044f\u043b\u0438 \u0442\u0443 \u0436\u0435 \u0441\u0430\u043c\u0443\u044e (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0437 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f). \u0412\u0441\u0451 \u0448\u043b\u043e \u0432 \u043e\u0431\u0449\u0435\u043c-\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u0431\u0435\u0437 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0439 \u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0431\u0430\u0433\u043e\u0432 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u0434\u0432\u0438\u0436\u043a\u0435, \u0432\u0435\u0440\u0441\u0438\u044f \u0438\u0433\u0440\u0443\u0448\u043a\u0438 \u0434\u043b\u044f \u0441\u043b\u0430\u0431\u043e\u0439 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 (\u0441\u0442\u0430\u0440\u044b\u0439 iPhone 480&#215;320) \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430. \u041f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u00abHD\u00bb \u0440\u0435\u0436\u0438\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0438 (960&#215;640).<\/p>\n<p>  \u041d\u0430 iOS \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0442\u043a\u0435 cocos2d \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0432 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0444\u0430\u0439\u043b\u0430 \u0441 \u0441\u0443\u0444\u0444\u0438\u043a\u0441\u043e\u043c \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430, \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0439 \u0444\u0430\u0439\u043b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0438\u043d\u0430\u0447\u0435 \u0436\u0435 \u2014 \u0444\u0430\u0439\u043b\u043e\u043c \u0431\u0435\u0437 \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u0443\u0444\u0444\u0438\u043a\u0441\u0430. \u0421\u0443\u0444\u0444\u0438\u043a\u0441\u044b \u2014 \u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e &#8216;<i>-hd<\/i>&#8216; \u0434\u043b\u044f iPhone HD \u0438 iPad SD \u0440\u0435\u0436\u0438\u043c\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 &#8216;<i>-ipadhd<\/i>&#8216; \u0434\u043b\u044f iPad HD. \u0422\u0430\u043a, \u043f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b &#8216;image.png&#8217;, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u0444\u0430\u0439\u043b &#8216;image-hd.png&#8217;. \u0414\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u043e\u0434 Android \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e. \u0413\u0440\u0430\u0444\u0438\u043a\u0430 \u0441\u0442\u0430\u043b\u0430 \u043b\u0443\u0447\u0448\u0435.<\/p>\n<h5>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/h5>\n<p>  \u0418\u0433\u0440\u0443\u0448\u043a\u0430 \u0441\u0442\u0430\u043b\u0430 \u0434\u043e\u043b\u044c\u0448\u0435 \u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f, \u0438 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u0443\u0436\u0435 \u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b \u0432 \u043c\u0435\u043d\u044e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440).<\/p>\n<p>  \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0444\u0430\u0439\u043b \u0441 \u0441\u0443\u0444\u0444\u0438\u043a\u0441\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0430\u0432\u0430\u043d\u0438\u0435, \u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u043a\u0435\u0448\u0430 \u0432 \u0432\u0438\u0434\u0435 std::unordered_map&lt;std::string requestedFile, std::string receivedFile&gt; \u2014 \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0444\u0430\u0439\u043b \u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0433\u043e 1 \u0440\u0430\u0437 \u2014 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u043f\u043e\u043c\u043e\u0433\u043b\u043e, \u043d\u043e \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0430\u0441\u044c \u043e\u0447\u0435\u043d\u044c \u0442\u044f\u0436\u0435\u043b\u043e\u0439. \u0423\u0434\u0438\u0432\u043b\u044f\u043b\u043e, \u0447\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u0440\u0442\u0430 \u0442\u043e\u0439 \u0436\u0435 \u0441\u0430\u043c\u043e\u0439 \u0438\u0433\u0440\u044b \u043d\u0430 Win8 \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0435 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u043b\u043e\u0441\u044c (\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u0434\u043b\u044f Win8 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b\u0430 \u0432\u0441\u0451, \u0432\u043a\u043b\u044e\u0447\u0430\u044f iPad HD \u0440\u0435\u0436\u0438\u043c \u2014 \u0441 \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u0430\u043c\u0438 \u043f\u043e\u0434 \u044d\u043a\u0440\u0430\u043d 2048&#215;1536).<\/p>\n<p>  \u0421\u0442\u0430\u043b \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435.<br \/>  CCFileUtils::getFileData \u2014 \u043c\u0435\u0442\u043e\u0434, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0439 \u0437\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 Cocos2d-x (\u043d\u0430 <a href=\"https:\/\/github.com\/cocos2d\/cocos2d-x\/blob\/master\/cocos2dx\/platform\/android\/CCFileUtils_android.cpp#L65\">github<\/a> \u2014 \u0438 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0438 \u0442\u0443\u0434\u0430 \u0436\u0435) \u2014 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438\u0437 APK \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 <a href=\"https:\/\/github.com\/cocos2d\/cocos2d-x\/blob\/master\/cocos2dx\/platform\/CCFileUtils.cpp#L307\">CCFileUtils::getFileDataFromZip<\/a>:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">unsigned char* CCFileUtils::getFileDataFromZip(const char* pszZipFilePath, const char* pszFileName, unsigned long * pSize) {     unsigned char * pBuffer = NULL;     unzFile pFile = NULL;     *pSize = 0;      do     {         CC_BREAK_IF(!pszZipFilePath || !pszFileName);         CC_BREAK_IF(strlen(pszZipFilePath) == 0);          pFile = unzOpen(pszZipFilePath);         CC_BREAK_IF(!pFile);          int nRet = unzLocateFile(pFile, pszFileName, 1);         CC_BREAK_IF(UNZ_OK != nRet);          char szFilePathA[260];         unz_file_info FileInfo;         nRet = unzGetCurrentFileInfo(pFile, &FileInfo, szFilePathA, sizeof(szFilePathA), NULL, 0, NULL, 0);         CC_BREAK_IF(UNZ_OK != nRet);          nRet = unzOpenCurrentFile(pFile);         CC_BREAK_IF(UNZ_OK != nRet);          pBuffer = new unsigned char[FileInfo.uncompressed_size];         int nSize = 0;         nSize = unzReadCurrentFile(pFile, pBuffer, FileInfo.uncompressed_size);         CCAssert(nSize == 0 || nSize == (int)FileInfo.uncompressed_size, &quot;the file size is wrong&quot;);          *pSize = FileInfo.uncompressed_size;         unzCloseCurrentFile(pFile);     } while (0);      if (pFile)     {         unzClose(pFile);     }      return pBuffer; } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0438\u0437 APK \u2014 \u0438\u0434\u0451\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435\/\u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435 \u0430\u0440\u0445\u0438\u0432\u0430. \u0421\u0430\u043c\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u2014 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435\u0433\u043e \u0440\u0430\u0437, \u0440\u0435\u0448\u0430\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e \u043b\u0438 \u044d\u0442\u043e \u0432 2.0.x \u0432\u0435\u0440\u0441\u0438\u044f\u0445 Cocos2d-x \u2014 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u044e, \u0447\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e, \u043d\u043e \u0438 \u0443\u0445\u0443\u0434\u0448\u0435\u043d\u043e \u2014 \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u043e\u0439 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 (\u0443\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0434\u043b\u044f Android \u0432\u0435\u0440\u0441\u0438\u0438) \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 <a href=\"https:\/\/github.com\/cocos2d\/cocos2d-x\/blob\/d4b80c5f5cc5ef48a544b3b95c8222614928d107\/cocos2dx\/platform\/android\/CCFileUtils.cpp#L97\">\u0434\u0432\u043e\u0439\u043d\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f<\/a> \u0438\u0437 APK \u0444\u0430\u0439\u043b\u0430.<\/p>\n<p>  \u041b\u0430\u0434\u043d\u043e, \u0441\u043c\u043e\u0442\u0440\u044e \u0434\u0430\u043b\u044c\u0448\u0435 \u2014 \u0432\u044b\u0437\u043e\u0432 unzLocateFile. \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u0430 <a href=\"https:\/\/github.com\/cocos2d\/cocos2d-x\/blob\/master\/cocos2dx\/support\/zip_support\/unzip.cpp#L1233\">\u0444\u0443\u043d\u043a\u0446\u0438\u044f<\/a>?  <\/p>\n<pre><code class=\"cpp\">    err = unzGoToFirstFile(file);      while (err == UNZ_OK)     {         char szCurrentFileName[UNZ_MAXFILENAMEINZIP+1];         err = unzGetCurrentFileInfo64(file,NULL, szCurrentFileName,sizeof(szCurrentFileName)-1,NULL,0,NULL,0);         if (err == UNZ_OK)         {             if (unzStringFileNameCompare(szCurrentFileName, szFileName,iCaseSensitivity)==0)                 return UNZ_OK;             err = unzGoToNextFile(file);         }     } <\/code><\/pre>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u2014 \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0439 \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0432\u0441\u0435\u043c \u0444\u0430\u0439\u043b\u0430\u043c \u0432 \u0430\u0440\u0445\u0438\u0432\u0435. \u041a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437. \u0422\u0430\u043c \u0433\u043b\u0443\u0431\u0436\u0435 \u043f\u043e \u043a\u043e\u0434\u0443 \u2014 \u0441 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0435\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u0442\u043e \u0438 \u0434\u0435\u043b\u043e \u2014 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043f\u043e \u0444\u0430\u0439\u043b\u0443 \u0441 \u0430\u0440\u0445\u0438\u0432\u043e\u043c \u0438 \u0447\u0442\u0435\u043d\u0438\u0435\u043c. \u0412 APK \u0441 \u0438\u0433\u0440\u0443\u0448\u043a\u043e\u0439 \u2014 \u0431\u043e\u043b\u0435\u0435 1300 \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438.<br \/>  \u0410 \u0434\u043b\u044f gles20 \u0432\u0435\u0440\u0441\u0438\u0438 cocos2d-x \u2014 \u0432\u043e\u043e\u0431\u0449\u0435 \u0445\u0443\u0434\u0448\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0433\u0434\u0430 \u0444\u0430\u0439\u043b \u043d\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b\u0441\u044f, \u0438 \u043d\u0430\u0434\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0439 \u0437\u0430\u043d\u043e\u0432\u043e.<\/p>\n<h5>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h5>\n<p>  \u0425\u043e\u0440\u043e\u0448\u043e \u2014 \u0440\u0435\u0448\u0438\u043b \u043a\u0430\u043a-\u0442\u043e \u0437\u0430\u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0445\u043e\u0442\u044f \u0431\u044b \u0441\u043f\u0438\u0441\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432, \u0434\u0430 \u0438 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0435\u0433\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0432 \u0430\u0440\u0445\u0438\u0432\u0435, \u0447\u0442\u043e\u0431\u044b unzLocateFile \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b. \u041d\u0430\u0447\u0438\u043d\u0430\u044e \u043a\u043e\u043f\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435 \u2014 \u0438 c \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u044e, \u0447\u0442\u043e \u0432\u0441\u0451 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0430\u0447\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c:  <\/p>\n<pre><code class=\"cpp\">\/* unz_file_info contain information about a file in the zipfile *\/ typedef struct unz_file_pos_s {     uLong pos_in_zip_directory; \/* offset in zip file directory *\/     uLong num_of_file; \/* # of file *\/ } unz_file_pos;  int ZEXPORT unzGetFilePos(unzFile file, unz_file_pos* file_pos);  int ZEXPORT unzGoToFilePos(unzFile file, unz_file_pos* file_pos); <\/code><\/pre>\n<p>  \u0422\u0430\u043a \u0447\u0442\u043e \u0432 \u043e\u0431\u0449\u0435\u043c-\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u043c\u0438 1 \u0440\u0430\u0437, \u0430 \u0443\u0436 \u0434\u0430\u043b\u044c\u0448\u0435 \u2014 \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0447\u0438\u0442\u0430\u0442\u044c, \u0447\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0438\u0434\u0435\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430 \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 5 \u0440\u0430\u0437 (\u043f\u0440\u0438\u0447\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u0438 \u0441 \u0442\u044f\u0436\u0435\u043b\u043e\u0439 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0439, \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441\u043e \u0441\u0442\u0430\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u0441 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u043e\u0439 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0439), \u0438 \u043e\u0431\u0449\u0435\u0435 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0435 \u0438\u0433\u0440\u044b (\u0442\u0430\u043a \u043a\u0430\u043a \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043c\u043d\u043e\u0433\u043e, \u0442\u043e \u0432\u0441\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0442\u044c).<\/p>\n<p>  \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u2014 \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c unzGetCurrentFileInfo \u043f\u043e\u0441\u043b\u0435 unzGoToFirstFile\/unzGoToNextFile \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f, \u043e\u043d\u0438 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442 \u0442\u0443 \u0436\u0435 \u0441\u0430\u043c\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.<\/p>\n<p>  \u0422\u0430\u043a \u0447\u0442\u043e \u0432 \u0438\u0442\u043e\u0433\u0435 \u2014 \u0441\u043e\u0437\u0434\u0430\u043d \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441, \u0447\u0438\u0442\u0430\u044e\u0449\u0438\u0439 \u0432\u0435\u0441\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0437 ZIP \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0437\u0430 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f, \u0447\u0442\u043e \u0438 \u043f\u043e\u0438\u0441\u043a \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 unzLocateFile.<\/p>\n<p>  <a href=\"https:\/\/github.com\/cocos2d\/cocos2d-x\/pull\/1562\">Pull request<\/a> \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Cocos2d-x, \u0434\u043b\u044f Android \u2014 \u0442\u043e\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0412\u0435\u0440\u0441\u0438\u044f \u0434\u043b\u044f 0.13 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u0430\u0432\u043a\u043e\u0439.<br \/>  \u041f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u0435.<\/p>\n<h5>\u0412\u044b\u0432\u043e\u0434\u044b<\/h5>\n<p>  \u041f\u043e\u0447\u0435\u043c\u0443 \u0442\u0430\u043a\u043e\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e? \u0412\u0441\u0451 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u0445 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0433\u043e\u0442\u043e\u0432\u043e, \u043f\u043e\u0438\u0441\u043a \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u043d\u044f\u043b \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u0438 \u0440\u0435\u0448\u0430\u043b\u0430\u0441\u044c \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438, \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u2014 \u00ab\u043c\u0435\u043d\u044c\u0448\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 APK\u00bb.<br \/>  \u041f\u043e\u0442\u043e\u043c \u0443\u0436\u0435 \u043d\u0430\u0448\u0435\u043b \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 3 \u043c\u0435\u0441\u044f\u0446\u0430 \u043d\u0430\u0437\u0430\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"http:\/\/www.cocos2d-x.org\/issues\/1435\">Asset Manager<\/a> \u2014 \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0433\u043b\u044f\u043d\u0443\u0442\u044c, \u0447\u0442\u043e \u0442\u0430\u043c \u0438 \u043a\u0430\u043a, \u0438 \u0431\u0443\u0434\u0435\u0442 \u043b\u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0440\u043e\u0441\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 (\u0438\u043b\u0438 \u0443\u0436\u0435 \u043f\u0430\u0434\u0435\u043d\u0438\u0435).<\/p>\n<p>  \u0414\u0443\u043c\u0430\u044e, \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043d\u0435\u043e\u0434\u043d\u043e\u043a\u0440\u0430\u0442\u043d\u043e \u0440\u0435\u0448\u0430\u043b\u043e\u0441\u044c \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\u0445, \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u043b \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e.<\/p>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0436\u0435 \u0447\u0430\u0441\u0442\u0438 MiniZip \u0432 Cocos2d-x \u2014 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0442 \u043a\u0430\u043a \u043d\u0430\u0434\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u0438 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0430\u043b\u0438\u0441\u044c \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0433\u043e \u0447\u0442\u0435\u043d\u0438\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<p>  \u0422\u0430\u043a \u0447\u0442\u043e \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0434\u0432\u0430 \u0433\u043e\u0434\u0430, \u0432 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0432\u0441\u0451 \u0435\u0449\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442, \u0433\u0434\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c. \u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u2014 \u0434\u0430 \u0442\u0435 \u0436\u0435 \u0441\u0430\u043c\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0438\u0437 CCProfiling.h\/.cpp, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0432\u0438\u0436\u043a\u0430, \u0433\u0434\u0435 \u043d\u0435\u0447\u0442\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e \u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u043c \u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c <a href=\"https:\/\/github.com\/cocos2d\/cocos2d-x\/blob\/gles20\/cocos2dx\/support\/CCProfiling.cpp#L156\">\u043f\u043e\u043f\u043e\u043b\u0430\u043c<\/a>. \u0422\u0430\u043a \u0447\u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0434\u043b\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0434\u043d\u0438\u0445 \u0438 \u0442\u0435\u0445 \u0436\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 10 4 1 \u0438 1 4 10 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0440\u0430\u0437\u043d\u044b\u0435 (4 \u0438 6.25 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e). \u0422\u043e\u0447\u043d\u043e \u0442\u0430 \u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0438 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u0445 cocos2d-iphone, \u0442\u0430\u043a \u0447\u0442\u043e \u043e\u0431\u0449\u0435\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0443 \u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u2014 \u0435\u0441\u043b\u0438 \u043d\u0438\u043a\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u044d\u0442\u043e \u043d\u0435 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442.<\/p>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0431\u0443\u0434\u0435\u0442 \u0432\u0440\u0435\u043c\u044f, \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u043e\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e, \u0441 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c \u0438\u0437 0.13 \u0432 \u0442\u0435\u043a\u0443\u0449\u0443\u044e 2.x. \t\t\t \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/158439\/\"> http:\/\/habrahabr.ru\/post\/158439\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041e\u0434\u0438\u043d \u0438\u0437 \u043c\u043e\u0438\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u2014 \u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0433\u0440\u044b \u0441 iOS \u043d\u0430 Android. \u0418\u0433\u0440\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"http:\/\/www.cocos2d-x.org\/projects\/cocos2d-x\/wiki\">Cocos2d-x<\/a>, \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e Cocos2d-x \u0434\u043b\u044f Android<\/b><\/p>\n<div class=\"spoiler_text\">Cocos2d-x \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043b\u044f Android \u0443\u0436\u0435 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u0432\u0430 \u0433\u043e\u0434\u0430, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043e\u043b\u0438\u0434\u043d\u044b\u0439 \u0432\u043e\u0437\u0440\u0430\u0441\u0442. \u041e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434, \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044f MIT (\u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439).<br \/>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u0434\u043b\u044f OpenGL ES 1.x \u2014 0.13.0, \u0432\u044b\u0448\u0435\u043b \u0432 \u043c\u0430\u0440\u0442\u0435 \u044d\u0442\u043e\u0433\u043e \u0433\u043e\u0434\u0430.<br \/>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 \u0434\u043b\u044f OpenGL ES 2.0 \u2014 2.0.2, \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 \u043a\u043e\u043d\u0446\u0435 \u0430\u0432\u0433\u0443\u0441\u0442\u0430.<\/div>\n<\/div>\n<p>  \u0425\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u043e \u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438\u0433\u0440\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u043e\u0431\u0449\u0443\u044e \u043f\u043b\u0430\u0432\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u0430\u043a\u0446\u0438\u0438 \u043d\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-158439","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/158439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=158439"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/158439\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=158439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=158439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}