mirror of https://github.com/axmolengine/axmol.git
Merge https://github.com/cocos2d/cocos2d-x into iss455
This commit is contained in:
commit
7e40957e04
|
@ -67,7 +67,7 @@ namespace CocosDenshion
|
|||
s3eFreeBase(g_AudioBuffer);
|
||||
}
|
||||
|
||||
void SimpleAudioEngine::setResource(const char* pszZipFileName, const char* pszResPath)
|
||||
void SimpleAudioEngine::setResource(const char* pszZipFileName)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ namespace CocosDenshion
|
|||
endJNI();
|
||||
}
|
||||
|
||||
void SimpleAudioEngine::setResource(const char* pszZipFileName, const char* pszResPath)
|
||||
void SimpleAudioEngine::setResource(const char* pszZipFileName)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -53,11 +53,10 @@ public:
|
|||
static void end();
|
||||
|
||||
/**
|
||||
@brief Set the ResourcePath and(or) the zip file name
|
||||
@param pszResPath The absolute resource path
|
||||
@brief Set the zip file name
|
||||
@param pszZipFileName The relative path of the .zip file
|
||||
*/
|
||||
static void setResource(const char* pszZipFileName, const char* pszResPath = NULL);
|
||||
static void setResource(const char* pszZipFileName);
|
||||
|
||||
/**
|
||||
@brief Preload background music
|
||||
|
|
|
@ -145,7 +145,7 @@ namespace CocosDenshion
|
|||
static_end();
|
||||
}
|
||||
|
||||
void SimpleAudioEngine::setResource(const char* pszZipFileName, const char* pszResPath)
|
||||
void SimpleAudioEngine::setResource(const char* pszZipFileName)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ void SimpleAudioEngine::end()
|
|||
return;
|
||||
}
|
||||
|
||||
void SimpleAudioEngine::setResource(const char* pszZipFileName, const char* pszResPath)
|
||||
void SimpleAudioEngine::setResource(const char* pszZipFileName)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -13,8 +13,6 @@ static char s_AppDataPath[EOS_FILE_MAX_PATH] = {0};
|
|||
|
||||
unsigned char* getFileDataFromZip(const char* pszZipFilePath, const char* pszFileName, unsigned long * pSize);
|
||||
void fullPathFromRelativePath(const char *pszRelativePath, char* fullPath);
|
||||
void updateZipFilePath(const char* pResPath);
|
||||
void setZipFilePath(const char* pZipFileName);
|
||||
const char* getDataPath();
|
||||
|
||||
bool FileUtils::isFileExisted(const char* pFilePath)
|
||||
|
@ -57,29 +55,39 @@ bool FileUtils::isFileExisted(const char* pFilePath)
|
|||
return bRet;
|
||||
}
|
||||
|
||||
void FileUtils::setResource(const char* pszResPath, const char* pszZipFileName)
|
||||
void FileUtils::setResource(const char* pszZipFileName)
|
||||
{
|
||||
if (pszResPath != NULL && pszZipFileName != NULL)
|
||||
// get the full path of zip file
|
||||
char fullPath[EOS_FILE_MAX_PATH] = {0};
|
||||
if (strlen(s_ResourcePath))
|
||||
{
|
||||
// record the resource path
|
||||
strcpy(s_ResourcePath, pszResPath);
|
||||
strcpy(fullPath, s_ResourcePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
const char* pAppDataPath = getDataPath();
|
||||
strcpy(fullPath, pAppDataPath);
|
||||
}
|
||||
strcat(fullPath, pszZipFileName);
|
||||
|
||||
// record the zip file path
|
||||
setZipFilePath(pszZipFileName);
|
||||
}
|
||||
else if (pszResPath != NULL)
|
||||
// if the zip file not exist,use message box to warn developer
|
||||
TUChar pszTmp[EOS_FILE_MAX_PATH] = {0};
|
||||
TUString::StrGBToUnicode(pszTmp, (const Char*) fullPath);
|
||||
Boolean bExist = EOS_IsFileExist(pszTmp);
|
||||
if (!bExist)
|
||||
{
|
||||
// update the zip file path
|
||||
updateZipFilePath(pszResPath);
|
||||
std::string strErr = "zip file ";
|
||||
strErr += fullPath;
|
||||
strErr += " not exist!";
|
||||
TUChar szText[EOS_FILE_MAX_PATH] = { 0 };
|
||||
TUString::StrUtf8ToStrUnicode(szText,(Char*)strErr.c_str());
|
||||
TApplication::GetCurrentApplication()->MessageBox(szText,NULL,WMB_OK);
|
||||
return;
|
||||
}
|
||||
|
||||
// record the resource path
|
||||
strcpy(s_ResourcePath, pszResPath);
|
||||
}
|
||||
else if (pszZipFileName != NULL)
|
||||
{
|
||||
// record the zip file path
|
||||
setZipFilePath(pszZipFileName);
|
||||
}
|
||||
// clear the zip file path recorded before and record the new path
|
||||
memset(s_ZipFilePath, 0, sizeof(char) * EOS_FILE_MAX_PATH);
|
||||
strcpy(s_ZipFilePath, fullPath);
|
||||
}
|
||||
|
||||
unsigned char* FileUtils::getFileData(const char* pszFileName, const char* pszMode, unsigned long * pSize)
|
||||
|
@ -179,110 +187,25 @@ void fullPathFromRelativePath(const char *pszRelativePath, char* fullPath)
|
|||
strcpy(s_ResourcePath, pAppDataPath);
|
||||
}
|
||||
|
||||
#ifndef _TRANZDA_VM_
|
||||
char *pszDriver = "";
|
||||
#else
|
||||
char *pszDriver = "D:/Work7";
|
||||
#endif
|
||||
|
||||
std::string pRet;
|
||||
if ((strlen(pszRelativePath) > 1 && pszRelativePath[1] == ':'))
|
||||
if ((strlen(pszRelativePath) > 1 && pszRelativePath[1] == ':') ||
|
||||
(strlen(pszRelativePath) > 0 && pszRelativePath[0] == '/'))
|
||||
{
|
||||
pRet = pszRelativePath;
|
||||
}
|
||||
else if (strlen(pszRelativePath) > 0 && pszRelativePath[0] == '/')
|
||||
{
|
||||
pRet = pszDriver;
|
||||
pRet += pszRelativePath;
|
||||
}
|
||||
else
|
||||
{
|
||||
pRet = pszDriver;
|
||||
pRet += s_ResourcePath;
|
||||
pRet = s_ResourcePath;
|
||||
pRet += pszRelativePath;
|
||||
}
|
||||
|
||||
if (strlen(pRet.c_str()) < EOS_FILE_MAX_PATH &&
|
||||
strlen(pRet.c_str()) > 0)
|
||||
if (pRet.length() < EOS_FILE_MAX_PATH && pRet.length() > 0)
|
||||
{
|
||||
strcpy(fullPath, pRet.c_str());
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
void updateZipFilePath(const char* pResPath)
|
||||
{
|
||||
if (! strlen(s_ZipFilePath))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
std::string strTemp = s_ZipFilePath;
|
||||
int nPos = std::string::npos;
|
||||
|
||||
// find the path need br replaced
|
||||
std::string ResPath;
|
||||
if (strlen(s_ResourcePath))
|
||||
{
|
||||
ResPath = s_ResourcePath;
|
||||
}
|
||||
else
|
||||
{
|
||||
ResPath = getDataPath();
|
||||
}
|
||||
|
||||
// replace the resource path in s_ZipFilePath
|
||||
nPos = strTemp.find(ResPath.c_str());
|
||||
if (nPos != std::string::npos)
|
||||
{
|
||||
strTemp.replace(nPos, ResPath.length(), pResPath);
|
||||
memset(s_ZipFilePath, 0, sizeof(char) * EOS_FILE_MAX_PATH);
|
||||
strcpy(s_ZipFilePath, strTemp.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
void setZipFilePath(const char* pZipFileName)
|
||||
{
|
||||
// get the full path of zip file
|
||||
char fullPath[EOS_FILE_MAX_PATH] = {0};
|
||||
if (strlen(s_ResourcePath))
|
||||
{
|
||||
strcpy(fullPath, s_ResourcePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
const char* pAppDataPath = getDataPath();
|
||||
strcpy(fullPath, pAppDataPath);
|
||||
}
|
||||
strcat(fullPath, pZipFileName);
|
||||
|
||||
// if the zip file not exist,use message box to warn developer
|
||||
TUChar pszTmp[EOS_FILE_MAX_PATH] = {0};
|
||||
TUString::StrGBToUnicode(pszTmp, (const Char*) fullPath);
|
||||
Boolean bExist = EOS_IsFileExist(pszTmp);
|
||||
if (!bExist)
|
||||
{
|
||||
std::string strErr = "zip file ";
|
||||
strErr += fullPath;
|
||||
strErr += " not exist!";
|
||||
TUChar szText[EOS_FILE_MAX_PATH] = { 0 };
|
||||
TUString::StrUtf8ToStrUnicode(szText,(Char*)strErr.c_str());
|
||||
TApplication::GetCurrentApplication()->MessageBox(szText,NULL,WMB_OK);
|
||||
return;
|
||||
}
|
||||
|
||||
#ifndef _TRANZDA_VM_
|
||||
char *pszDriver = "";
|
||||
#else
|
||||
char *pszDriver = "D:/Work7";
|
||||
#endif
|
||||
|
||||
// record the zip file path
|
||||
strcpy(s_ZipFilePath, pszDriver);
|
||||
strcat(s_ZipFilePath, fullPath);
|
||||
}
|
||||
|
||||
const char* getDataPath()
|
||||
{
|
||||
if (strlen(s_AppDataPath))
|
||||
|
@ -298,8 +221,19 @@ const char* getDataPath()
|
|||
BREAK_IF(nRet < 0);
|
||||
|
||||
TUChar AppPath[EOS_FILE_MAX_PATH] = {0};
|
||||
SS_GetApplicationPath(AppID, SS_APP_PATH_TYPE_EXECUTABLE, AppPath);
|
||||
TUString::StrUnicodeToStrUtf8((Char*) s_AppDataPath, AppPath);
|
||||
char DataPath[EOS_FILE_MAX_PATH] = {0};
|
||||
SS_GetApplicationPath(AppID, SS_APP_PATH_TYPE_CONST, AppPath);
|
||||
TUString::StrUnicodeToStrUtf8((Char*) DataPath, AppPath);
|
||||
|
||||
#ifndef _TRANZDA_VM_
|
||||
char *pszDriver = "";
|
||||
#else
|
||||
char *pszDriver = "D:/Work7";
|
||||
#endif
|
||||
|
||||
// record the data path
|
||||
strcpy(s_AppDataPath, pszDriver);
|
||||
strcat(s_AppDataPath, DataPath);
|
||||
} while (0);
|
||||
|
||||
return s_AppDataPath;
|
||||
|
|
|
@ -24,7 +24,7 @@ public:
|
|||
@param pszResPath The absolute resource path
|
||||
@param pszZipFileName The relative path of the .zip file
|
||||
*/
|
||||
static void setResource(const char* pszResPath, const char* pszZipFileName);
|
||||
static void setResource(const char* pszZipFileName);
|
||||
|
||||
/**
|
||||
@brief Get resource file data
|
||||
|
|
|
@ -80,9 +80,9 @@ void SimpleAudioEngine::end()
|
|||
}
|
||||
}
|
||||
|
||||
void SimpleAudioEngine::setResource(const char* pszZipFileName, const char* pszResPath)
|
||||
void SimpleAudioEngine::setResource(const char* pszZipFileName)
|
||||
{
|
||||
FileUtils::setResource(pszResPath, pszZipFileName);
|
||||
FileUtils::setResource(pszZipFileName);
|
||||
}
|
||||
|
||||
void SimpleAudioEngine::playBackgroundMusic(const char* pszFilePath, bool bLoop)
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
CommandLine="mkdir D:\Work7\NEWPLUS\TDA_DATA\Data
copy ..\Resource\*.* D:\Work7\NEWPLUS\TDA_DATA\Data
"
|
||||
CommandLine="mkdir D:\Work7\NEWPLUS\TG3\ConstData
copy ..\Resource\*.* D:\Work7\NEWPLUS\TG3\ConstData"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
|
|
|
@ -1,50 +1,56 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libBox2D", "Box2D\proj.win32\Box2D.win32.vcxproj", "{929480E7-23C0-4DF6-8456-096D71547116}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libchipmunk", "chipmunk\proj.win32\chipmunk.win32.vcxproj", "{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosDenshion", "CocosDenshion\proj.win32\CocosDenshion.win32.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "cocos2dx\proj.win32\cocos2d-win32.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloWorld", "HelloWorld\win32\HelloWorld.win32.vcxproj", "{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tests", "tests\test.win32\test.win32.vcxproj", "{76A39BB2-9B84-4C65-98A5-654D86B86F2A}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{929480E7-23C0-4DF6-8456-096D71547116}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{929480E7-23C0-4DF6-8456-096D71547116}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{929480E7-23C0-4DF6-8456-096D71547116}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{929480E7-23C0-4DF6-8456-096D71547116}.Release|Win32.Build.0 = Release|Win32
|
||||
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.Build.0 = Release|Win32
|
||||
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.Build.0 = Release|Win32
|
||||
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.Build.0 = Release|Win32
|
||||
{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}.Release|Win32.Build.0 = Release|Win32
|
||||
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libBox2D", "Box2D\proj.win32\Box2D.win32.vcxproj", "{929480E7-23C0-4DF6-8456-096D71547116}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libchipmunk", "chipmunk\proj.win32\chipmunk.win32.vcxproj", "{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libCocosDenshion", "CocosDenshion\proj.win32\CocosDenshion.win32.vcxproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcocos2d", "cocos2dx\proj.win32\cocos2d-win32.vcxproj", "{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloWorld", "HelloWorld\win32\HelloWorld.win32.vcxproj", "{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tests", "tests\test.win32\test.win32.vcxproj", "{76A39BB2-9B84-4C65-98A5-654D86B86F2A}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E} = {98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}
|
||||
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25} = {207BC7A9-CCF1-4F2F-A04D-45F72242AE25}
|
||||
{929480E7-23C0-4DF6-8456-096D71547116} = {929480E7-23C0-4DF6-8456-096D71547116}
|
||||
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{929480E7-23C0-4DF6-8456-096D71547116}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{929480E7-23C0-4DF6-8456-096D71547116}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{929480E7-23C0-4DF6-8456-096D71547116}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{929480E7-23C0-4DF6-8456-096D71547116}.Release|Win32.Build.0 = Release|Win32
|
||||
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{207BC7A9-CCF1-4F2F-A04D-45F72242AE25}.Release|Win32.Build.0 = Release|Win32
|
||||
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}.Release|Win32.Build.0 = Release|Win32
|
||||
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}.Release|Win32.Build.0 = Release|Win32
|
||||
{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{B8BF9E81-35FD-4582-BA1C-B85FA365BABB}.Release|Win32.Build.0 = Release|Win32
|
||||
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{76A39BB2-9B84-4C65-98A5-654D86B86F2A}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
|
|
@ -63,12 +63,39 @@ NS_CC_END;
|
|||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WOPHONE)
|
||||
#include "TG3.h"
|
||||
|
||||
#define LOG_FILE_PATH "/NEWPLUS/TDA_DATA/UserData/Cocos2dLog.txt"
|
||||
static char s_szLogFilePath[EOS_FILE_MAX_PATH] = {0};
|
||||
|
||||
NS_CC_BEGIN;
|
||||
|
||||
void CCLog(const char * pszFormat, ...)
|
||||
{
|
||||
if (! s_szLogFilePath[0])
|
||||
{
|
||||
// save the log file named "Cocos2dxLog.txt" to the directory which the app.so in.
|
||||
TUChar AppID[EOS_FILE_MAX_PATH] = {0};
|
||||
UInt32 nCmdType = 0;
|
||||
Int32 nRet = SS_AppRequest_GetAppName(AppID, &nCmdType);
|
||||
if (nRet < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
TUChar AppPath[EOS_FILE_MAX_PATH] = {0};
|
||||
if (SS_GetApplicationPath(AppID, SS_APP_PATH_TYPE_EXECUTABLE, AppPath) < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
char szAppPath[EOS_FILE_MAX_PATH] = {0};
|
||||
TUString::StrUnicodeToStrUtf8((Char*) szAppPath, AppPath);
|
||||
#ifndef _TRANZDA_VM_
|
||||
strcpy(s_szLogFilePath, "");
|
||||
#else
|
||||
strcpy(s_szLogFilePath, "D:/Work7");
|
||||
#endif
|
||||
strcat(s_szLogFilePath, szAppPath);
|
||||
strcat(s_szLogFilePath, "Cocos2dxLog.txt");
|
||||
}
|
||||
|
||||
SS_printf("Cocos2d: ");
|
||||
char szBuf[MAX_LEN];
|
||||
|
||||
|
@ -86,7 +113,7 @@ void CCLog(const char * pszFormat, ...)
|
|||
SS_printf("\n");
|
||||
#else
|
||||
SS_printf("\r\n");
|
||||
FILE * pf = fopen(LOG_FILE_PATH, "a+");
|
||||
FILE * pf = fopen(s_szLogFilePath, "a+");
|
||||
if (! pf)
|
||||
{
|
||||
return;
|
||||
|
|
|
@ -141,7 +141,7 @@ static cocos2d::CCTouch *s_pTouches[MAX_TOUCHES];
|
|||
multiSampling_ = sampling;
|
||||
requestedSamples_ = nSamples;
|
||||
preserveBackbuffer_ = retained;
|
||||
|
||||
markedText_ = nil;
|
||||
if( ! [self setupSurfaceWithSharegroup:sharegroup] ) {
|
||||
[self release];
|
||||
return nil;
|
||||
|
@ -166,7 +166,8 @@ static cocos2d::CCTouch *s_pTouches[MAX_TOUCHES];
|
|||
multiSampling_= NO;
|
||||
requestedSamples_ = 0;
|
||||
size_ = [eaglLayer bounds].size;
|
||||
|
||||
markedText_ = nil;
|
||||
|
||||
if( ! [self setupSurfaceWithSharegroup:nil] ) {
|
||||
[self release];
|
||||
return nil;
|
||||
|
@ -193,7 +194,6 @@ static cocos2d::CCTouch *s_pTouches[MAX_TOUCHES];
|
|||
[[NSNotificationCenter defaultCenter] addObserver:self
|
||||
selector:@selector(onUIKeyboardNotification:)
|
||||
name:UIKeyboardDidHideNotification object:nil];
|
||||
|
||||
}
|
||||
|
||||
-(int) getWidth
|
||||
|
@ -516,6 +516,9 @@ static cocos2d::CCTouch *s_pTouches[MAX_TOUCHES];
|
|||
|
||||
- (BOOL)canBecomeFirstResponder
|
||||
{
|
||||
if (nil != markedText_) {
|
||||
[markedText_ release];
|
||||
}
|
||||
markedText_ = nil;
|
||||
return YES;
|
||||
}
|
||||
|
@ -530,12 +533,20 @@ static cocos2d::CCTouch *s_pTouches[MAX_TOUCHES];
|
|||
|
||||
- (void)insertText:(NSString *)text
|
||||
{
|
||||
if (nil != markedText_) {
|
||||
[markedText_ release];
|
||||
markedText_ = nil;
|
||||
}
|
||||
const char * pszText = [text cStringUsingEncoding:NSUTF8StringEncoding];
|
||||
cocos2d::CCIMEDispatcher::sharedDispatcher()->dispatchInsertText(pszText, strlen(pszText));
|
||||
}
|
||||
|
||||
- (void)deleteBackward
|
||||
{
|
||||
if (nil != markedText_) {
|
||||
[markedText_ release];
|
||||
markedText_ = nil;
|
||||
}
|
||||
cocos2d::CCIMEDispatcher::sharedDispatcher()->dispatchDeleteBackward();
|
||||
}
|
||||
|
||||
|
@ -576,7 +587,7 @@ static cocos2d::CCTouch *s_pTouches[MAX_TOUCHES];
|
|||
- (NSString *)textInRange:(UITextRange *)range;
|
||||
{
|
||||
CCLOG("textInRange");
|
||||
return nil;
|
||||
return @"";
|
||||
}
|
||||
- (void)replaceRange:(UITextRange *)range withText:(NSString *)theText;
|
||||
{
|
||||
|
@ -618,7 +629,14 @@ static cocos2d::CCTouch *s_pTouches[MAX_TOUCHES];
|
|||
- (void)setMarkedText:(NSString *)markedText selectedRange:(NSRange)selectedRange;
|
||||
{
|
||||
CCLOG("setMarkedText");
|
||||
if (markedText == markedText_) {
|
||||
return;
|
||||
}
|
||||
if (nil != markedText_) {
|
||||
[markedText_ release];
|
||||
}
|
||||
markedText_ = markedText;
|
||||
[markedText_ retain];
|
||||
}
|
||||
- (void)unmarkText;
|
||||
{
|
||||
|
@ -629,6 +647,7 @@ static cocos2d::CCTouch *s_pTouches[MAX_TOUCHES];
|
|||
}
|
||||
const char * pszText = [markedText_ cStringUsingEncoding:NSUTF8StringEncoding];
|
||||
cocos2d::CCIMEDispatcher::sharedDispatcher()->dispatchInsertText(pszText, strlen(pszText));
|
||||
[markedText_ release];
|
||||
markedText_ = nil;
|
||||
}
|
||||
|
||||
|
@ -704,7 +723,7 @@ static cocos2d::CCTouch *s_pTouches[MAX_TOUCHES];
|
|||
/* JS - Find the closest position to a given point */
|
||||
- (UITextPosition *)closestPositionToPoint:(CGPoint)point;
|
||||
{
|
||||
CCLOG(@"closestPositionToPoint");
|
||||
CCLOG("closestPositionToPoint");
|
||||
return nil;
|
||||
}
|
||||
- (UITextPosition *)closestPositionToPoint:(CGPoint)point withinRange:(UITextRange *)range;
|
||||
|
@ -807,9 +826,10 @@ static cocos2d::CCTouch *s_pTouches[MAX_TOUCHES];
|
|||
}
|
||||
else if (UIKeyboardDidShowNotification == type)
|
||||
{
|
||||
CGSize screenSize = self.window.screen.bounds.size;
|
||||
dispatcher->dispatchKeyboardDidShow(notiInfo);
|
||||
caretRect_ = end;
|
||||
caretRect_.origin.y = caretRect_.origin.y + caretRect_.size.height;
|
||||
caretRect_.origin.y = viewSize.height - (caretRect_.origin.y + caretRect_.size.height + [UIFont smallSystemFontSize]);
|
||||
caretRect_.size.height = 0;
|
||||
}
|
||||
else if (UIKeyboardWillHideNotification == type)
|
||||
|
@ -822,5 +842,4 @@ static cocos2d::CCTouch *s_pTouches[MAX_TOUCHES];
|
|||
dispatcher->dispatchKeyboardDidHide(notiInfo);
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
// #define COCOS2D_DEBUG 1
|
||||
|
||||
#include "CCApplication_wophone.h"
|
||||
|
||||
#include "ssBackLightControl.h"
|
||||
#include "ssKeyLockControl.h"
|
||||
//#include "ssKeyLockControl.h"
|
||||
|
||||
#include "CCScheduler.h"
|
||||
|
||||
|
@ -50,7 +52,7 @@ CCApplication::CCApplication()
|
|||
|
||||
TUChar AppPath[EOS_FILE_MAX_PATH] = {0};
|
||||
char DataPath[EOS_FILE_MAX_PATH] = {0};
|
||||
SS_GetApplicationPath(AppID, SS_APP_PATH_TYPE_DATA, AppPath);
|
||||
SS_GetApplicationPath(AppID, SS_APP_PATH_TYPE_CONST, AppPath);
|
||||
TUString::StrUnicodeToStrUtf8((Char*) DataPath, AppPath);
|
||||
|
||||
#ifndef _TRANZDA_VM_
|
||||
|
@ -113,8 +115,16 @@ Boolean CCApplication::EventHandler(EventType* pEvent)
|
|||
{
|
||||
StopMainLoop();
|
||||
}
|
||||
CfgTurnOnBackLight();
|
||||
EnableKeyLock();
|
||||
|
||||
// restore back light open mode
|
||||
if (CfgGetBackLightStatus())
|
||||
{
|
||||
CfgTurnOnBackLightEx(SYS_BACK_LIGHT_MODE_TIME_LONG);
|
||||
CCLOG("AppActiveNotify::TurnOnBackLight:MODE_TIME_LONG");
|
||||
}
|
||||
|
||||
// EnableKeyLock();
|
||||
// CCLOG("AppActiveNotify::InBackground");
|
||||
}
|
||||
else if (pEvent->sParam1 > 0)
|
||||
{
|
||||
|
@ -126,12 +136,19 @@ Boolean CCApplication::EventHandler(EventType* pEvent)
|
|||
|
||||
StartMainLoop();
|
||||
|
||||
CfgTurnOnBackLightDelay(0x7fffffff);
|
||||
// if KeyLock disactived, disable it.
|
||||
if (! CfgKeyLock_GetActive())
|
||||
// modify back light open mode
|
||||
if (CfgGetBackLightStatus())
|
||||
{
|
||||
DisableKeyLock();
|
||||
CfgTurnOnBackLightDelay(0x7fffffff);
|
||||
CCLOG("AppActiveNotify::TurnOnBackLight:0x7fffffff");
|
||||
}
|
||||
|
||||
// if KeyLock disactived, disable it.
|
||||
// if (! CfgKeyLock_GetActive())
|
||||
// {
|
||||
// DisableKeyLock();
|
||||
// CCLOG("AppActiveNotify::DisableKeyLock");
|
||||
// }
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -172,6 +189,8 @@ void CCApplication::switchNotify(int nTurnOn)
|
|||
{
|
||||
bool bInBack = isInBackground();
|
||||
|
||||
// set the auto close screen and auto key lock status
|
||||
|
||||
do
|
||||
{
|
||||
// if the app have be in background,don't handle this message
|
||||
|
@ -182,9 +201,23 @@ void CCApplication::switchNotify(int nTurnOn)
|
|||
// CCDirector::sharedDirector()->pause();
|
||||
applicationDidEnterBackground();
|
||||
StopMainLoop();
|
||||
|
||||
// EnableKeyLock();
|
||||
// CCLOG("BLswitchNotify::EnableKeyLock");
|
||||
}
|
||||
else
|
||||
{
|
||||
// modify back light open mode
|
||||
CfgTurnOnBackLightDelay(0x7fffffff);
|
||||
CCLOG("AppActiveNotify::TurnOnBackLight:0x7fffffff");
|
||||
|
||||
// // if KeyLock disactived, disable it.
|
||||
// if (! CfgKeyLock_GetActive())
|
||||
// {
|
||||
// DisableKeyLock();
|
||||
// CCLOG("BLswitchNotify::DisableKeyLock");
|
||||
// }
|
||||
//
|
||||
// CCDirector::sharedDirector()->resume();
|
||||
applicationWillEnterForeground();
|
||||
StartMainLoop();
|
||||
|
|
|
@ -1,347 +1,348 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectName>libcocos2d</ProjectName>
|
||||
<ProjectGuid>{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}</ProjectGuid>
|
||||
<RootNamespace>cocos2d-x.win32</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration).win32\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration).win32\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration).win32\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration).win32\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<PreBuildEvent>
|
||||
<Command>
|
||||
</Command>
|
||||
</PreBuildEvent>
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(SolutionDir)\cocos2dx\platform;$(SolutionDir)cocos2dx\platform\third_party\win32\iconv;$(SolutionDir)cocos2dx\platform\third_party\win32\zlib;$(SolutionDir)cocos2dx\platform\third_party\win32\libpng;$(SolutionDir)cocos2dx\platform\third_party\win32\libjpeg;$(SolutionDir)cocos2dx\platform\third_party\win32\libxml2;$(SolutionDir)cocos2dx\platform\third_party\win32\OGLES;..\include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4996;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<PreLinkEvent>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectName>libcocos2d</ProjectName>
|
||||
<ProjectGuid>{98A51BA8-FC3A-415B-AC8F-8C7BD464E93E}</ProjectGuid>
|
||||
<RootNamespace>cocos2d-x.win32</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration).win32\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration).win32\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration).win32\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration).win32\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<PreBuildEvent>
|
||||
<Command>
|
||||
</Command>
|
||||
</PreBuildEvent>
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(SolutionDir)\cocos2dx\platform;$(SolutionDir)cocos2dx\platform\third_party\win32\iconv;$(SolutionDir)cocos2dx\platform\third_party\win32\zlib;$(SolutionDir)cocos2dx\platform\third_party\win32\libpng;$(SolutionDir)cocos2dx\platform\third_party\win32\libjpeg;$(SolutionDir)cocos2dx\platform\third_party\win32\libxml2;$(SolutionDir)cocos2dx\platform\third_party\win32\OGLES;..\include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4996;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<PreLinkEvent>
|
||||
<Command>if not exist "$(OutDir)" mkdir "$(OutDir)"
|
||||
xcopy /Y /Q "$(SolutionDir)cocos2dx\platform\third_party\win32\libraries\*.*" "$(OutDir)"</Command>
|
||||
</PreLinkEvent>
|
||||
<Link>
|
||||
<AdditionalDependencies>libEGL.lib;libgles_cm.lib;libxml2.lib;libzlib.lib;libpng.lib;libjpeg.lib;libiconv.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)$(ProjectName).dll</OutputFile>
|
||||
<AdditionalLibraryDirectories>$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||
<IgnoreSpecificDefaultLibraries> ;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<ImportLibrary>$(TargetDir)$(TargetName).lib</ImportLibrary>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>
|
||||
</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<PreBuildEvent>
|
||||
<Command>
|
||||
</Command>
|
||||
</PreBuildEvent>
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>$(SolutionDir)\cocos2dx\platform;$(SolutionDir)cocos2dx\platform\third_party\win32\iconv;$(SolutionDir)cocos2dx\platform\third_party\win32\zlib;$(SolutionDir)cocos2dx\platform\third_party\win32\libpng;$(SolutionDir)cocos2dx\platform\third_party\win32\libjpeg;$(SolutionDir)cocos2dx\platform\third_party\win32\libxml2;$(SolutionDir)cocos2dx\platform\third_party\win32\OGLES;..\include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4996;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<PreLinkEvent>
|
||||
xcopy /Y /Q "$(SolutionDir)cocos2dx\platform\third_party\win32\libraries\*.*" "$(OutDir)"</Command>
|
||||
</PreLinkEvent>
|
||||
<Link>
|
||||
<AdditionalDependencies>libEGL.lib;libgles_cm.lib;libxml2.lib;libzlib.lib;libpng.lib;libjpeg.lib;libiconv.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)$(ProjectName).dll</OutputFile>
|
||||
<AdditionalLibraryDirectories>$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||
<IgnoreSpecificDefaultLibraries> ;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<ImportLibrary>$(TargetDir)$(TargetName).lib</ImportLibrary>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>
|
||||
</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<PreBuildEvent>
|
||||
<Command>
|
||||
</Command>
|
||||
</PreBuildEvent>
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>$(SolutionDir)\cocos2dx\platform;$(SolutionDir)cocos2dx\platform\third_party\win32\iconv;$(SolutionDir)cocos2dx\platform\third_party\win32\zlib;$(SolutionDir)cocos2dx\platform\third_party\win32\libpng;$(SolutionDir)cocos2dx\platform\third_party\win32\libjpeg;$(SolutionDir)cocos2dx\platform\third_party\win32\libxml2;$(SolutionDir)cocos2dx\platform\third_party\win32\OGLES;..\include;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;COCOS2DXWIN32_EXPORTS;GL_GLEXT_PROTOTYPES;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4996;4267;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<PreLinkEvent>
|
||||
<Command>if not exist "$(OutDir)" mkdir "$(OutDir)"
|
||||
xcopy /Y /Q "$(SolutionDir)cocos2dx\platform\third_party\win32\libraries\*.*" "$(OutDir)"</Command>
|
||||
</PreLinkEvent>
|
||||
<Link>
|
||||
<AdditionalDependencies>libEGL.lib;libgles_cm.lib;libxml2.lib;libzlib.lib;libpng.lib;libjpeg.lib;libiconv.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)$(ProjectName).dll</OutputFile>
|
||||
<AdditionalLibraryDirectories>$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<IgnoreSpecificDefaultLibraries> ;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<ImportLibrary>$(TargetDir)$(TargetName).lib</ImportLibrary>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>
|
||||
</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\base_nodes\CCAtlasNode.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCAffineTransform.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCAutoreleasePool.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCData.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCGeometry.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCNS.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCObject.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCSet.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCZone.cpp" />
|
||||
<ClCompile Include="..\effects\CCGrabber.cpp" />
|
||||
<ClCompile Include="..\actions\CCAction.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionCamera.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionEase.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionGrid.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionGrid3D.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionInstant.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionInterval.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionManager.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionPageTurn3D.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionProgressTimer.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionTiledGrid.cpp" />
|
||||
<ClCompile Include="..\label_nodes\CCLabelAtlas.cpp" />
|
||||
<ClCompile Include="..\label_nodes\CCLabelBMFont.cpp" />
|
||||
<ClCompile Include="..\label_nodes\CCLabelTTF.cpp" />
|
||||
<ClCompile Include="..\layers_scenes_transitions_nodes\CCScene.cpp" />
|
||||
<ClCompile Include="..\layers_scenes_transitions_nodes\CCTransitionPageTurn.cpp" />
|
||||
<ClCompile Include="..\layers_scenes_transitions_nodes\CCTransitionRadial.cpp" />
|
||||
<ClCompile Include="..\menu_nodes\CCMenuItem.cpp" />
|
||||
<ClCompile Include="..\misc_nodes\CCMotionStreak.cpp" />
|
||||
<ClCompile Include="..\misc_nodes\CCProgressTimer.cpp" />
|
||||
<ClCompile Include="..\misc_nodes\CCRenderTexture.cpp" />
|
||||
<ClCompile Include="..\misc_nodes\CCRibbon.cpp" />
|
||||
<ClCompile Include="..\particle_nodes\CCParticleExamples.cpp" />
|
||||
<ClCompile Include="..\particle_nodes\CCParticleSystem.cpp" />
|
||||
<ClCompile Include="..\particle_nodes\CCParticleSystemQuad.cpp" />
|
||||
<ClCompile Include="..\platform\CCCommon.cpp" />
|
||||
<ClCompile Include="..\platform\CCDirector_mobile.cpp" />
|
||||
<ClCompile Include="..\platform\CCFileUtils.cpp" />
|
||||
<ClCompile Include="..\platform\CCGL.cpp" />
|
||||
<ClCompile Include="..\platform\CCGrid_mobile.cpp" />
|
||||
<ClCompile Include="..\platform\CCImage.cpp" />
|
||||
<ClCompile Include="..\platform\CCLayer_mobile.cpp" />
|
||||
<ClCompile Include="..\platform\CCMenu_mobile.cpp" />
|
||||
<ClCompile Include="..\platform\CCNode_mobile.cpp" />
|
||||
<ClCompile Include="..\platform\CCParticleSystemPoint_mobile.cpp" />
|
||||
<ClCompile Include="..\platform\CCSAXParser.cpp" />
|
||||
<ClCompile Include="..\platform\CCStdC.cpp" />
|
||||
<ClCompile Include="..\platform\CCThread.cpp" />
|
||||
<ClCompile Include="..\platform\CCTransition_mobile.cpp" />
|
||||
<ClCompile Include="..\platform\platform.cpp" />
|
||||
<ClCompile Include="..\platform\win32\CCApplication_win32.cpp" />
|
||||
<ClCompile Include="..\platform\win32\CCEGLView_win32.cpp" />
|
||||
<ClCompile Include="..\sprite_nodes\CCAnimation.cpp" />
|
||||
<ClCompile Include="..\sprite_nodes\CCAnimationCache.cpp" />
|
||||
<ClCompile Include="..\sprite_nodes\CCSprite.cpp" />
|
||||
<ClCompile Include="..\sprite_nodes\CCSpriteBatchNode.cpp" />
|
||||
<ClCompile Include="..\sprite_nodes\CCSpriteFrame.cpp" />
|
||||
<ClCompile Include="..\sprite_nodes\CCSpriteFrameCache.cpp" />
|
||||
<ClCompile Include="..\sprite_nodes\CCSpriteSheet.cpp" />
|
||||
<ClCompile Include="..\support\base64.cpp" />
|
||||
<ClCompile Include="..\support\CCPointExtension.cpp" />
|
||||
<ClCompile Include="..\support\CCProfiling.cpp" />
|
||||
<ClCompile Include="..\support\ccUtils.cpp" />
|
||||
<ClCompile Include="..\support\TransformUtils.cpp" />
|
||||
<ClCompile Include="..\support\image_support\TGAlib.cpp" />
|
||||
<ClCompile Include="..\support\zip_support\ioapi.cpp" />
|
||||
<ClCompile Include="..\support\zip_support\unzip.cpp" />
|
||||
<ClCompile Include="..\support\zip_support\ZipUtils.cpp" />
|
||||
<ClCompile Include="..\textures\CCPVRTexture.cpp" />
|
||||
<ClCompile Include="..\textures\CCTexture2D.cpp" />
|
||||
<ClCompile Include="..\textures\CCTextureAtlas.cpp" />
|
||||
<ClCompile Include="..\textures\CCTextureCache.cpp" />
|
||||
<ClCompile Include="..\tileMap_parallax_nodes\CCParallaxNode.cpp" />
|
||||
<ClCompile Include="..\tileMap_parallax_nodes\CCTileMapAtlas.cpp" />
|
||||
<ClCompile Include="..\tileMap_parallax_nodes\CCTMXLayer.cpp" />
|
||||
<ClCompile Include="..\tileMap_parallax_nodes\CCTMXObjectGroup.cpp" />
|
||||
<ClCompile Include="..\tileMap_parallax_nodes\CCTMXTiledMap.cpp" />
|
||||
<ClCompile Include="..\tileMap_parallax_nodes\CCTMXXMLParser.cpp" />
|
||||
<ClCompile Include="..\touch_dispatcher\CCTouchDispatcher.cpp" />
|
||||
<ClCompile Include="..\touch_dispatcher\CCTouchHandler.cpp" />
|
||||
<ClCompile Include="..\keypad_dispatcher\CCKeypadDelegate.cpp" />
|
||||
<ClCompile Include="..\keypad_dispatcher\CCKeypadDispatcher.cpp" />
|
||||
<ClCompile Include="..\event_dispatcher\CCEventDispatcher.cpp" />
|
||||
<ClCompile Include="..\event_dispatcher\CCKeyboardEventDelegate.cpp" />
|
||||
<ClCompile Include="..\event_dispatcher\CCMouseEventDelegate.cpp" />
|
||||
<ClCompile Include="..\CCCamera.cpp" />
|
||||
<ClCompile Include="..\CCConfiguration.cpp" />
|
||||
<ClCompile Include="..\CCDrawingPrimitives.cpp" />
|
||||
<ClCompile Include="..\CCScheduler.cpp" />
|
||||
<ClCompile Include="..\cocos2d.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\cocoa\CCNS.h" />
|
||||
<ClInclude Include="..\effects\CCGrabber.h" />
|
||||
<ClInclude Include="..\effects\CCGrid.h" />
|
||||
<ClInclude Include="..\include\CCAccelerometer.h" />
|
||||
<ClInclude Include="..\include\CCAccelerometerDelegate.h" />
|
||||
<ClInclude Include="..\include\CCAction.h" />
|
||||
<ClInclude Include="..\include\CCActionCamera.h" />
|
||||
<ClInclude Include="..\include\CCActionEase.h" />
|
||||
<ClInclude Include="..\include\CCActionGrid.h" />
|
||||
<ClInclude Include="..\include\CCActionGrid3D.h" />
|
||||
<ClInclude Include="..\include\CCActionInstant.h" />
|
||||
<ClInclude Include="..\include\CCActionInterval.h" />
|
||||
<ClInclude Include="..\include\CCActionManager.h" />
|
||||
<ClInclude Include="..\include\CCActionPageTurn3D.h" />
|
||||
<ClInclude Include="..\include\CCActionProgressTimer.h" />
|
||||
<ClInclude Include="..\include\CCActionTiledGrid.h" />
|
||||
<ClInclude Include="..\include\CCAffineTransform.h" />
|
||||
<ClInclude Include="..\include\CCAnimation.h" />
|
||||
<ClInclude Include="..\include\CCAnimationCache.h" />
|
||||
<ClInclude Include="..\include\CCApplication.h" />
|
||||
<ClInclude Include="..\include\CCAtlasNode.h" />
|
||||
<ClInclude Include="..\include\CCAutoreleasePool.h" />
|
||||
<ClInclude Include="..\include\CCCamera.h" />
|
||||
<ClInclude Include="..\include\ccConfig.h" />
|
||||
<ClInclude Include="..\include\CCData.h" />
|
||||
<ClInclude Include="..\include\CCDirector.h" />
|
||||
<ClInclude Include="..\include\CCDrawingPrimitives.h" />
|
||||
<ClInclude Include="..\include\CCEGLView.h" />
|
||||
<ClInclude Include="..\include\CCEvent.h" />
|
||||
<ClInclude Include="..\include\CCEventDispatcher.h" />
|
||||
<ClInclude Include="..\include\CCFileUtils.h" />
|
||||
<ClInclude Include="..\include\CCGeometry.h" />
|
||||
<ClInclude Include="..\include\CCGL.h" />
|
||||
<ClInclude Include="..\include\CCKeyboardEventDelegate.h" />
|
||||
<ClInclude Include="..\include\CCKeypadDelegate.h" />
|
||||
<ClInclude Include="..\include\CCKeypadDispatcher.h" />
|
||||
<ClInclude Include="..\include\CCLabelAtlas.h" />
|
||||
<ClInclude Include="..\include\CCLabelBMFont.h" />
|
||||
<ClInclude Include="..\include\CCLabelTTF.h" />
|
||||
<ClInclude Include="..\include\CCLayer.h" />
|
||||
<ClInclude Include="..\include\ccMacros.h" />
|
||||
<ClInclude Include="..\include\CCMenu.h" />
|
||||
<ClInclude Include="..\include\CCMenuItem.h" />
|
||||
<ClInclude Include="..\include\CCMotionStreak.h" />
|
||||
<ClInclude Include="..\include\CCMouseEventDelegate.h" />
|
||||
<ClInclude Include="..\include\CCMutableArray.h" />
|
||||
<ClInclude Include="..\include\CCMutableDictionary.h" />
|
||||
<ClInclude Include="..\include\CCNode.h" />
|
||||
<ClInclude Include="..\include\CCObject.h" />
|
||||
<ClInclude Include="..\include\CCParallaxNode.h" />
|
||||
<ClInclude Include="..\include\CCParticleExamples.h" />
|
||||
<ClInclude Include="..\include\CCParticleSystem.h" />
|
||||
<ClInclude Include="..\include\CCParticleSystemPoint.h" />
|
||||
<ClInclude Include="..\include\CCParticleSystemQuad.h" />
|
||||
<ClInclude Include="..\include\CCPointExtension.h" />
|
||||
<ClInclude Include="..\include\CCProgressTimer.h" />
|
||||
<ClInclude Include="..\include\CCProtocols.h" />
|
||||
<ClInclude Include="..\include\CCPVRTexture.h" />
|
||||
<ClInclude Include="..\include\CCRenderTexture.h" />
|
||||
<ClInclude Include="..\include\CCRibbon.h" />
|
||||
<ClInclude Include="..\include\CCScene.h" />
|
||||
<ClInclude Include="..\include\CCScheduler.h" />
|
||||
<ClInclude Include="..\include\CCSet.h" />
|
||||
<ClInclude Include="..\include\CCSprite.h" />
|
||||
<ClInclude Include="..\include\CCSpriteBatchNode.h" />
|
||||
<ClInclude Include="..\include\CCSpriteFrame.h" />
|
||||
<ClInclude Include="..\include\CCSpriteFrameCache.h" />
|
||||
<ClInclude Include="..\include\CCSpriteSheet.h" />
|
||||
<ClInclude Include="..\include\CCString.h" />
|
||||
<ClInclude Include="..\include\CCTexture2D.h" />
|
||||
<ClInclude Include="..\include\CCTextureAtlas.h" />
|
||||
<ClInclude Include="..\include\CCTextureCache.h" />
|
||||
<ClInclude Include="..\include\CCTileMapAtlas.h" />
|
||||
<ClInclude Include="..\include\CCTMXLayer.h" />
|
||||
<ClInclude Include="..\include\CCTMXObjectGroup.h" />
|
||||
<ClInclude Include="..\include\CCTMXTiledMap.h" />
|
||||
<ClInclude Include="..\include\CCTMXXMLParser.h" />
|
||||
<ClInclude Include="..\include\CCTouch.h" />
|
||||
<ClInclude Include="..\include\CCTouchDelegateProtocol.h" />
|
||||
<ClInclude Include="..\include\CCTouchDispatcher.h" />
|
||||
<ClInclude Include="..\include\CCTransition.h" />
|
||||
<ClInclude Include="..\include\CCTransitionPageTurn.h" />
|
||||
<ClInclude Include="..\include\CCTransitionRadial.h" />
|
||||
<ClInclude Include="..\include\ccTypes.h" />
|
||||
<ClInclude Include="..\include\CCZone.h" />
|
||||
<ClInclude Include="..\include\cocos2d.h" />
|
||||
<ClInclude Include="..\include\FileUtils.h" />
|
||||
<ClInclude Include="..\include\selector_protocol.h" />
|
||||
<ClInclude Include="..\platform\CCAccelerometer_platform.h" />
|
||||
<ClInclude Include="..\platform\CCApplication_platform.h" />
|
||||
<ClInclude Include="..\platform\CCArchOptimalParticleSystem.h" />
|
||||
<ClInclude Include="..\platform\CCCommon.h" />
|
||||
<ClInclude Include="..\platform\CCEGLView_platform.h" />
|
||||
<ClInclude Include="..\platform\CCFileUtils.h" />
|
||||
<ClInclude Include="..\platform\CCFileUtils_platform.h" />
|
||||
<ClInclude Include="..\platform\CCGL.h" />
|
||||
<ClInclude Include="..\platform\CCImage.h" />
|
||||
<ClInclude Include="..\platform\CCLibxml2.h" />
|
||||
<ClInclude Include="..\platform\CCNS.h" />
|
||||
<ClInclude Include="..\platform\CCParticleSystemPoint_mobile.h" />
|
||||
<ClInclude Include="..\platform\CCParticleSystemPoint_platform.h" />
|
||||
<ClInclude Include="..\platform\CCPlatformConfig.h" />
|
||||
<ClInclude Include="..\platform\CCPlatformMacros.h" />
|
||||
<ClInclude Include="..\platform\CCSAXParser.h" />
|
||||
<ClInclude Include="..\platform\CCStdC.h" />
|
||||
<ClInclude Include="..\platform\CCThread.h" />
|
||||
<ClInclude Include="..\platform\platform.h" />
|
||||
<ClInclude Include="..\platform\win32\CCAccelerometer_win32.h" />
|
||||
<ClInclude Include="..\platform\win32\CCApplication_win32.h" />
|
||||
<ClInclude Include="..\platform\win32\CCEGLView_win32.h" />
|
||||
<ClInclude Include="..\support\base64.h" />
|
||||
<ClInclude Include="..\support\CCProfiling.h" />
|
||||
<ClInclude Include="..\support\ccUtils.h" />
|
||||
<ClInclude Include="..\support\TransformUtils.h" />
|
||||
<ClInclude Include="..\support\data_support\ccCArray.h" />
|
||||
<ClInclude Include="..\support\data_support\uthash.h" />
|
||||
<ClInclude Include="..\support\data_support\utlist.h" />
|
||||
<ClInclude Include="..\support\image_support\TGAlib.h" />
|
||||
<ClInclude Include="..\support\zip_support\ioapi.h" />
|
||||
<ClInclude Include="..\support\zip_support\unzip.h" />
|
||||
<ClInclude Include="..\support\zip_support\ZipUtils.h" />
|
||||
<ClInclude Include="..\touch_dispatcher\CCTouchHandler.h" />
|
||||
<ClInclude Include="..\CCConfiguration.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
xcopy /Y /Q "$(SolutionDir)cocos2dx\platform\third_party\win32\libraries\*.*" "$(OutDir)"</Command>
|
||||
</PreLinkEvent>
|
||||
<Link>
|
||||
<AdditionalDependencies>libEGL.lib;libgles_cm.lib;libxml2.lib;libzlib.lib;libpng.lib;libjpeg.lib;libiconv.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)$(ProjectName).dll</OutputFile>
|
||||
<AdditionalLibraryDirectories>$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<IgnoreSpecificDefaultLibraries> ;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<ImportLibrary>$(TargetDir)$(TargetName).lib</ImportLibrary>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>
|
||||
</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\base_nodes\CCAtlasNode.cpp" />
|
||||
<ClCompile Include="..\base_nodes\CCNode.cpp" />
|
||||
<ClCompile Include="..\CCDirector.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCAffineTransform.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCAutoreleasePool.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCData.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCGeometry.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCNS.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCObject.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCSet.cpp" />
|
||||
<ClCompile Include="..\cocoa\CCZone.cpp" />
|
||||
<ClCompile Include="..\effects\CCGrabber.cpp" />
|
||||
<ClCompile Include="..\actions\CCAction.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionCamera.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionEase.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionGrid.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionGrid3D.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionInstant.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionInterval.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionManager.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionPageTurn3D.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionProgressTimer.cpp" />
|
||||
<ClCompile Include="..\actions\CCActionTiledGrid.cpp" />
|
||||
<ClCompile Include="..\effects\CCGrid.cpp" />
|
||||
<ClCompile Include="..\label_nodes\CCLabelAtlas.cpp" />
|
||||
<ClCompile Include="..\label_nodes\CCLabelBMFont.cpp" />
|
||||
<ClCompile Include="..\label_nodes\CCLabelTTF.cpp" />
|
||||
<ClCompile Include="..\layers_scenes_transitions_nodes\CCLayer.cpp" />
|
||||
<ClCompile Include="..\layers_scenes_transitions_nodes\CCScene.cpp" />
|
||||
<ClCompile Include="..\layers_scenes_transitions_nodes\CCTransition.cpp" />
|
||||
<ClCompile Include="..\layers_scenes_transitions_nodes\CCTransitionPageTurn.cpp" />
|
||||
<ClCompile Include="..\layers_scenes_transitions_nodes\CCTransitionRadial.cpp" />
|
||||
<ClCompile Include="..\menu_nodes\CCMenu.cpp" />
|
||||
<ClCompile Include="..\menu_nodes\CCMenuItem.cpp" />
|
||||
<ClCompile Include="..\misc_nodes\CCMotionStreak.cpp" />
|
||||
<ClCompile Include="..\misc_nodes\CCProgressTimer.cpp" />
|
||||
<ClCompile Include="..\misc_nodes\CCRenderTexture.cpp" />
|
||||
<ClCompile Include="..\misc_nodes\CCRibbon.cpp" />
|
||||
<ClCompile Include="..\particle_nodes\CCParticleExamples.cpp" />
|
||||
<ClCompile Include="..\particle_nodes\CCParticleSystem.cpp" />
|
||||
<ClCompile Include="..\particle_nodes\CCParticleSystemPoint.cpp" />
|
||||
<ClCompile Include="..\particle_nodes\CCParticleSystemQuad.cpp" />
|
||||
<ClCompile Include="..\platform\CCCommon.cpp" />
|
||||
<ClCompile Include="..\platform\CCFileUtils.cpp" />
|
||||
<ClCompile Include="..\platform\CCGL.cpp" />
|
||||
<ClCompile Include="..\platform\CCImage.cpp" />
|
||||
<ClCompile Include="..\platform\CCSAXParser.cpp" />
|
||||
<ClCompile Include="..\platform\CCStdC.cpp" />
|
||||
<ClCompile Include="..\platform\CCThread.cpp" />
|
||||
<ClCompile Include="..\platform\platform.cpp" />
|
||||
<ClCompile Include="..\platform\win32\CCApplication_win32.cpp" />
|
||||
<ClCompile Include="..\platform\win32\CCEGLView_win32.cpp" />
|
||||
<ClCompile Include="..\sprite_nodes\CCAnimation.cpp" />
|
||||
<ClCompile Include="..\sprite_nodes\CCAnimationCache.cpp" />
|
||||
<ClCompile Include="..\sprite_nodes\CCSprite.cpp" />
|
||||
<ClCompile Include="..\sprite_nodes\CCSpriteBatchNode.cpp" />
|
||||
<ClCompile Include="..\sprite_nodes\CCSpriteFrame.cpp" />
|
||||
<ClCompile Include="..\sprite_nodes\CCSpriteFrameCache.cpp" />
|
||||
<ClCompile Include="..\sprite_nodes\CCSpriteSheet.cpp" />
|
||||
<ClCompile Include="..\support\base64.cpp" />
|
||||
<ClCompile Include="..\support\CCArray.cpp" />
|
||||
<ClCompile Include="..\support\CCPointExtension.cpp" />
|
||||
<ClCompile Include="..\support\CCProfiling.cpp" />
|
||||
<ClCompile Include="..\support\ccUtils.cpp" />
|
||||
<ClCompile Include="..\support\TransformUtils.cpp" />
|
||||
<ClCompile Include="..\support\image_support\TGAlib.cpp" />
|
||||
<ClCompile Include="..\support\zip_support\ioapi.cpp" />
|
||||
<ClCompile Include="..\support\zip_support\unzip.cpp" />
|
||||
<ClCompile Include="..\support\zip_support\ZipUtils.cpp" />
|
||||
<ClCompile Include="..\textures\CCPVRTexture.cpp" />
|
||||
<ClCompile Include="..\textures\CCTexture2D.cpp" />
|
||||
<ClCompile Include="..\textures\CCTextureAtlas.cpp" />
|
||||
<ClCompile Include="..\textures\CCTextureCache.cpp" />
|
||||
<ClCompile Include="..\text_input_node\CCIMEDispatcher.cpp" />
|
||||
<ClCompile Include="..\text_input_node\CCTextFieldTTF.cpp" />
|
||||
<ClCompile Include="..\tileMap_parallax_nodes\CCParallaxNode.cpp" />
|
||||
<ClCompile Include="..\tileMap_parallax_nodes\CCTileMapAtlas.cpp" />
|
||||
<ClCompile Include="..\tileMap_parallax_nodes\CCTMXLayer.cpp" />
|
||||
<ClCompile Include="..\tileMap_parallax_nodes\CCTMXObjectGroup.cpp" />
|
||||
<ClCompile Include="..\tileMap_parallax_nodes\CCTMXTiledMap.cpp" />
|
||||
<ClCompile Include="..\tileMap_parallax_nodes\CCTMXXMLParser.cpp" />
|
||||
<ClCompile Include="..\touch_dispatcher\CCTouchDispatcher.cpp" />
|
||||
<ClCompile Include="..\touch_dispatcher\CCTouchHandler.cpp" />
|
||||
<ClCompile Include="..\keypad_dispatcher\CCKeypadDelegate.cpp" />
|
||||
<ClCompile Include="..\keypad_dispatcher\CCKeypadDispatcher.cpp" />
|
||||
<ClCompile Include="..\CCCamera.cpp" />
|
||||
<ClCompile Include="..\CCConfiguration.cpp" />
|
||||
<ClCompile Include="..\CCDrawingPrimitives.cpp" />
|
||||
<ClCompile Include="..\CCScheduler.cpp" />
|
||||
<ClCompile Include="..\cocos2d.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\cocoa\CCNS.h" />
|
||||
<ClInclude Include="..\effects\CCGrabber.h" />
|
||||
<ClInclude Include="..\effects\CCGrid.h" />
|
||||
<ClInclude Include="..\include\CCAccelerometer.h" />
|
||||
<ClInclude Include="..\include\CCAccelerometerDelegate.h" />
|
||||
<ClInclude Include="..\include\CCAction.h" />
|
||||
<ClInclude Include="..\include\CCActionCamera.h" />
|
||||
<ClInclude Include="..\include\CCActionEase.h" />
|
||||
<ClInclude Include="..\include\CCActionGrid.h" />
|
||||
<ClInclude Include="..\include\CCActionGrid3D.h" />
|
||||
<ClInclude Include="..\include\CCActionInstant.h" />
|
||||
<ClInclude Include="..\include\CCActionInterval.h" />
|
||||
<ClInclude Include="..\include\CCActionManager.h" />
|
||||
<ClInclude Include="..\include\CCActionPageTurn3D.h" />
|
||||
<ClInclude Include="..\include\CCActionProgressTimer.h" />
|
||||
<ClInclude Include="..\include\CCActionTiledGrid.h" />
|
||||
<ClInclude Include="..\include\CCAffineTransform.h" />
|
||||
<ClInclude Include="..\include\CCAnimation.h" />
|
||||
<ClInclude Include="..\include\CCAnimationCache.h" />
|
||||
<ClInclude Include="..\include\CCApplication.h" />
|
||||
<ClInclude Include="..\include\CCAtlasNode.h" />
|
||||
<ClInclude Include="..\include\CCAutoreleasePool.h" />
|
||||
<ClInclude Include="..\include\CCCamera.h" />
|
||||
<ClInclude Include="..\include\ccConfig.h" />
|
||||
<ClInclude Include="..\include\CCData.h" />
|
||||
<ClInclude Include="..\include\CCDirector.h" />
|
||||
<ClInclude Include="..\include\CCDrawingPrimitives.h" />
|
||||
<ClInclude Include="..\include\CCEGLView.h" />
|
||||
<ClInclude Include="..\include\CCEvent.h" />
|
||||
<ClInclude Include="..\include\CCEventDispatcher.h" />
|
||||
<ClInclude Include="..\include\CCFileUtils.h" />
|
||||
<ClInclude Include="..\include\CCGeometry.h" />
|
||||
<ClInclude Include="..\include\CCGL.h" />
|
||||
<ClInclude Include="..\include\CCIMEDelegate.h" />
|
||||
<ClInclude Include="..\include\CCIMEDispatcher.h" />
|
||||
<ClInclude Include="..\include\CCKeyboardEventDelegate.h" />
|
||||
<ClInclude Include="..\include\CCKeypadDelegate.h" />
|
||||
<ClInclude Include="..\include\CCKeypadDispatcher.h" />
|
||||
<ClInclude Include="..\include\CCLabelAtlas.h" />
|
||||
<ClInclude Include="..\include\CCLabelBMFont.h" />
|
||||
<ClInclude Include="..\include\CCLabelTTF.h" />
|
||||
<ClInclude Include="..\include\CCLayer.h" />
|
||||
<ClInclude Include="..\include\ccMacros.h" />
|
||||
<ClInclude Include="..\include\CCMenu.h" />
|
||||
<ClInclude Include="..\include\CCMenuItem.h" />
|
||||
<ClInclude Include="..\include\CCMotionStreak.h" />
|
||||
<ClInclude Include="..\include\CCMouseEventDelegate.h" />
|
||||
<ClInclude Include="..\include\CCMutableArray.h" />
|
||||
<ClInclude Include="..\include\CCMutableDictionary.h" />
|
||||
<ClInclude Include="..\include\CCNode.h" />
|
||||
<ClInclude Include="..\include\CCObject.h" />
|
||||
<ClInclude Include="..\include\CCParallaxNode.h" />
|
||||
<ClInclude Include="..\include\CCParticleExamples.h" />
|
||||
<ClInclude Include="..\include\CCParticleSystem.h" />
|
||||
<ClInclude Include="..\include\CCParticleSystemPoint.h" />
|
||||
<ClInclude Include="..\include\CCParticleSystemQuad.h" />
|
||||
<ClInclude Include="..\include\CCPointExtension.h" />
|
||||
<ClInclude Include="..\include\CCProgressTimer.h" />
|
||||
<ClInclude Include="..\include\CCProtocols.h" />
|
||||
<ClInclude Include="..\include\CCPVRTexture.h" />
|
||||
<ClInclude Include="..\include\CCRenderTexture.h" />
|
||||
<ClInclude Include="..\include\CCRibbon.h" />
|
||||
<ClInclude Include="..\include\CCScene.h" />
|
||||
<ClInclude Include="..\include\CCScheduler.h" />
|
||||
<ClInclude Include="..\include\CCSet.h" />
|
||||
<ClInclude Include="..\include\CCSprite.h" />
|
||||
<ClInclude Include="..\include\CCSpriteBatchNode.h" />
|
||||
<ClInclude Include="..\include\CCSpriteFrame.h" />
|
||||
<ClInclude Include="..\include\CCSpriteFrameCache.h" />
|
||||
<ClInclude Include="..\include\CCSpriteSheet.h" />
|
||||
<ClInclude Include="..\include\CCString.h" />
|
||||
<ClInclude Include="..\include\CCTextFieldTTF.h" />
|
||||
<ClInclude Include="..\include\CCTexture2D.h" />
|
||||
<ClInclude Include="..\include\CCTextureAtlas.h" />
|
||||
<ClInclude Include="..\include\CCTextureCache.h" />
|
||||
<ClInclude Include="..\include\CCTileMapAtlas.h" />
|
||||
<ClInclude Include="..\include\CCTMXLayer.h" />
|
||||
<ClInclude Include="..\include\CCTMXObjectGroup.h" />
|
||||
<ClInclude Include="..\include\CCTMXTiledMap.h" />
|
||||
<ClInclude Include="..\include\CCTMXXMLParser.h" />
|
||||
<ClInclude Include="..\include\CCTouch.h" />
|
||||
<ClInclude Include="..\include\CCTouchDelegateProtocol.h" />
|
||||
<ClInclude Include="..\include\CCTouchDispatcher.h" />
|
||||
<ClInclude Include="..\include\CCTransition.h" />
|
||||
<ClInclude Include="..\include\CCTransitionPageTurn.h" />
|
||||
<ClInclude Include="..\include\CCTransitionRadial.h" />
|
||||
<ClInclude Include="..\include\ccTypes.h" />
|
||||
<ClInclude Include="..\include\CCZone.h" />
|
||||
<ClInclude Include="..\include\cocos2d.h" />
|
||||
<ClInclude Include="..\include\FileUtils.h" />
|
||||
<ClInclude Include="..\include\selector_protocol.h" />
|
||||
<ClInclude Include="..\platform\CCAccelerometer_platform.h" />
|
||||
<ClInclude Include="..\platform\CCApplication_platform.h" />
|
||||
<ClInclude Include="..\platform\CCArchOptimalParticleSystem.h" />
|
||||
<ClInclude Include="..\platform\CCCommon.h" />
|
||||
<ClInclude Include="..\platform\CCEGLView_platform.h" />
|
||||
<ClInclude Include="..\platform\CCFileUtils.h" />
|
||||
<ClInclude Include="..\platform\CCFileUtils_platform.h" />
|
||||
<ClInclude Include="..\platform\CCGL.h" />
|
||||
<ClInclude Include="..\platform\CCImage.h" />
|
||||
<ClInclude Include="..\platform\CCLibxml2.h" />
|
||||
<ClInclude Include="..\platform\CCNS.h" />
|
||||
<ClInclude Include="..\platform\CCPlatformConfig.h" />
|
||||
<ClInclude Include="..\platform\CCPlatformMacros.h" />
|
||||
<ClInclude Include="..\platform\CCSAXParser.h" />
|
||||
<ClInclude Include="..\platform\CCStdC.h" />
|
||||
<ClInclude Include="..\platform\CCThread.h" />
|
||||
<ClInclude Include="..\platform\platform.h" />
|
||||
<ClInclude Include="..\platform\win32\CCAccelerometer_win32.h" />
|
||||
<ClInclude Include="..\platform\win32\CCApplication_win32.h" />
|
||||
<ClInclude Include="..\platform\win32\CCEGLView_win32.h" />
|
||||
<ClInclude Include="..\support\base64.h" />
|
||||
<ClInclude Include="..\support\CCProfiling.h" />
|
||||
<ClInclude Include="..\support\ccUtils.h" />
|
||||
<ClInclude Include="..\support\TransformUtils.h" />
|
||||
<ClInclude Include="..\support\data_support\ccCArray.h" />
|
||||
<ClInclude Include="..\support\data_support\uthash.h" />
|
||||
<ClInclude Include="..\support\data_support\utlist.h" />
|
||||
<ClInclude Include="..\support\image_support\TGAlib.h" />
|
||||
<ClInclude Include="..\support\zip_support\ioapi.h" />
|
||||
<ClInclude Include="..\support\zip_support\unzip.h" />
|
||||
<ClInclude Include="..\support\zip_support\ZipUtils.h" />
|
||||
<ClInclude Include="..\touch_dispatcher\CCTouchHandler.h" />
|
||||
<ClInclude Include="..\CCConfiguration.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
File diff suppressed because it is too large
Load Diff
|
@ -264,7 +264,7 @@ function AddConfigurations(proj, strProjectName) {
|
|||
|
||||
var PostBuildTool = config.Tools("VCPostBuildEventTool");
|
||||
PostBuildTool.Description = "Performing registration...";
|
||||
var strResDir = "..\\..\\NEWPLUS\\TDA_DATA\\Data\\";
|
||||
var strResDir = "..\\..\\NEWPLUS\\TG3\\ConstData\\";
|
||||
var strPostCmd = "mkdir " + strResDir;
|
||||
strPostCmd += "\r\nxcopy /E /Y .\\Resource\\*.* " + strResDir;
|
||||
PostBuildTool.CommandLine = strPostCmd;
|
||||
|
|
|
@ -1 +1 @@
|
|||
269f9caa1380bc1e08175decedc54e5216e425ed
|
||||
b7c09f3e759444e6da344ba829bac49f6742d22d
|
|
@ -120,7 +120,7 @@
|
|||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
EnableIntrinsicFunctions="true"
|
||||
AdditionalIncludeDirectories=""$(SolutionDir)cocos2dx\platform";"$(SolutionDir)cocos2dx";"$(SolutionDir)cocos2dx\include";"$(SolutionDir)";"$(SolutionDir)chipmunk\include\chipmunk";"$(SolutionDir)CocosDenshion\include";..\tests;"$(SolutionDir)cocos2dx\platform\third_party\win32\OGLES";..\;.\"
|
||||
AdditionalIncludeDirectories=""$(SolutionDir)cocos2dx\platform\third_party\win32";"$(SolutionDir)cocos2dx\platform";"$(SolutionDir)cocos2dx";"$(SolutionDir)cocos2dx\include";"$(SolutionDir)";"$(SolutionDir)chipmunk\include\chipmunk";"$(SolutionDir)CocosDenshion\include";..\tests;"$(SolutionDir)cocos2dx\platform\third_party\win32\OGLES";..\;.\"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES"
|
||||
RuntimeLibrary="2"
|
||||
EnableFunctionLevelLinking="true"
|
||||
|
@ -140,7 +140,7 @@
|
|||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="libcocos2d.lib libgles_cm.lib libBox2d.lib libchipmunk.lib"
|
||||
AdditionalDependencies="libcocos2d.lib libgles_cm.lib libBox2d.lib libchipmunk.lib libcurl_imp.lib"
|
||||
OutputFile="$(OutDir)\$(ProjectName).exe"
|
||||
LinkIncremental="1"
|
||||
AdditionalLibraryDirectories=""$(OutDir)""
|
||||
|
|
|
@ -1,284 +1,270 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectName>tests</ProjectName>
|
||||
<ProjectGuid>{76A39BB2-9B84-4C65-98A5-654D86B86F2A}</ProjectGuid>
|
||||
<RootNamespace>test_win32</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration).win32\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration).win32\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration).win32\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration).win32\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(SolutionDir)cocos2dx\platform;$(SolutionDir)cocos2dx;$(SolutionDir)cocos2dx\include;$(SolutionDir);$(SolutionDir)chipmunk\include\chipmunk;$(SolutionDir)CocosDenshion\include;..\tests;$(SolutionDir)cocos2dx\platform\third_party\win32\OGLES;..\;.\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4244;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>libcocos2d.lib;libgles_cm.lib;libBox2d.lib;libchipmunk.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)$(ProjectName).exe</OutputFile>
|
||||
<AdditionalLibraryDirectories>$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>copy_res.bat "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<AdditionalIncludeDirectories>$(SolutionDir)cocos2dx\platform;$(SolutionDir)cocos2dx;$(SolutionDir)cocos2dx\include;$(SolutionDir);$(SolutionDir)chipmunk\include\chipmunk;$(SolutionDir)CocosDenshion\include;..\tests;$(SolutionDir)cocos2dx\platform\third_party\win32\OGLES;..\;.\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4244;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>libcocos2d.lib;libgles_cm.lib;libBox2d.lib;libchipmunk.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)$(ProjectName).exe</OutputFile>
|
||||
<AdditionalLibraryDirectories>$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>copy_res.bat "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\tests\PerformanceTest\PerformanceNodeChildrenTest.cpp" />
|
||||
<ClCompile Include="..\tests\PerformanceTest\PerformanceParticleTest.cpp" />
|
||||
<ClCompile Include="..\tests\PerformanceTest\PerformanceSpriteTest.cpp" />
|
||||
<ClCompile Include="..\tests\PerformanceTest\PerformanceTest.cpp" />
|
||||
<ClCompile Include="..\tests\PerformanceTest\PerformanceTextureTest.cpp" />
|
||||
<ClCompile Include="..\tests\PerformanceTest\PerformanceTouchesTest.cpp" />
|
||||
<ClCompile Include="..\tests\ZwoptexTest\ZwoptexTest.cpp" />
|
||||
<ClCompile Include="main.cpp" />
|
||||
<ClCompile Include="..\AppDelegate.cpp" />
|
||||
<ClCompile Include="..\tests\controller.cpp" />
|
||||
<ClCompile Include="..\tests\testBasic.cpp" />
|
||||
<ClCompile Include="..\tests\ActionsTest\ActionsTest.cpp" />
|
||||
<ClCompile Include="..\tests\TransitionsTest\TransitionsTest.cpp" />
|
||||
<ClCompile Include="..\tests\ProgressActionsTest\ProgressActionsTest.cpp" />
|
||||
<ClCompile Include="..\tests\EffectsTest\EffectsTest.cpp" />
|
||||
<ClCompile Include="..\tests\ClickAndMoveTest\ClickAndMoveTest.cpp" />
|
||||
<ClCompile Include="..\tests\RotateWorldTest\RotateWorldTest.cpp" />
|
||||
<ClCompile Include="..\tests\ParticleTest\ParticleTest.cpp" />
|
||||
<ClCompile Include="..\tests\EaseActionsTest\EaseActionsTest.cpp" />
|
||||
<ClCompile Include="..\tests\MotionStreakTest\MotionStreakTest.cpp" />
|
||||
<ClCompile Include="..\tests\DrawPrimitivesTest\DrawPrimitivesTest.cpp" />
|
||||
<ClCompile Include="..\tests\CocosNodeTest\CocosNodeTest.cpp" />
|
||||
<ClCompile Include="..\tests\TouchesTest\Ball.cpp" />
|
||||
<ClCompile Include="..\tests\TouchesTest\Paddle.cpp" />
|
||||
<ClCompile Include="..\tests\TouchesTest\TouchesTest.cpp" />
|
||||
<ClCompile Include="..\tests\MenuTest\MenuTest.cpp" />
|
||||
<ClCompile Include="..\tests\ActionManagerTest\ActionManagerTest.cpp" />
|
||||
<ClCompile Include="..\tests\LayerTest\LayerTest.cpp" />
|
||||
<ClCompile Include="..\tests\SceneTest\SceneTest.cpp" />
|
||||
<ClCompile Include="..\tests\ParallaxTest\ParallaxTest.cpp" />
|
||||
<ClCompile Include="..\tests\TileMapTest\TileMapTest.cpp" />
|
||||
<ClCompile Include="..\tests\IntervalTest\IntervalTest.cpp" />
|
||||
<ClCompile Include="..\tests\LabelTest\LabelTest.cpp" />
|
||||
<ClCompile Include="..\tests\SpriteTest\SpriteTest.cpp" />
|
||||
<ClCompile Include="..\tests\SchedulerTest\SchedulerTest.cpp" />
|
||||
<ClCompile Include="..\tests\RenderTextureTest\RenderTextureTest.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Bounce.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\cocos2dChipmunkDemo.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\drawSpace.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Joints.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\LogoSmash.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\MagnetsElectric.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\OneWay.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Planet.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Player.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Plink.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Pump.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\PyramidStack.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\PyramidTopple.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Query.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Sensors.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Simple.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Springies.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\TheoJansen.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Tumble.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\UnsafeOps.cpp" />
|
||||
<ClCompile Include="..\tests\Box2DTest\Box2dTest.cpp" />
|
||||
<ClCompile Include="..\tests\Box2DTestBed\Box2dView.cpp" />
|
||||
<ClCompile Include="..\tests\Box2DTestBed\GLES-Render.cpp" />
|
||||
<ClCompile Include="..\tests\Box2DTestBed\Test.cpp" />
|
||||
<ClCompile Include="..\tests\Box2DTestBed\TestEntries.cpp" />
|
||||
<ClCompile Include="..\tests\EffectsAdvancedTest\EffectsAdvancedTest.cpp" />
|
||||
<ClCompile Include="..\tests\HiResTest\HiResTest.cpp" />
|
||||
<ClCompile Include="..\tests\KeypadTest\KeypadTest.cpp" />
|
||||
<ClCompile Include="..\tests\CocosDenshionTest\CocosDenshionTest.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\tests\PerformanceTest\PerformanceNodeChildrenTest.h" />
|
||||
<ClInclude Include="..\tests\PerformanceTest\PerformanceParticleTest.h" />
|
||||
<ClInclude Include="..\tests\PerformanceTest\PerformanceSpriteTest.h" />
|
||||
<ClInclude Include="..\tests\PerformanceTest\PerformanceTest.h" />
|
||||
<ClInclude Include="..\tests\PerformanceTest\PerformanceTextureTest.h" />
|
||||
<ClInclude Include="..\tests\PerformanceTest\PerformanceTouchesTest.h" />
|
||||
<ClInclude Include="..\tests\ZwoptexTest\ZwoptexTest.h" />
|
||||
<ClInclude Include="main.h" />
|
||||
<ClInclude Include="..\AppDelegate.h" />
|
||||
<ClInclude Include="..\tests\controller.h" />
|
||||
<ClInclude Include="..\tests\testBasic.h" />
|
||||
<ClInclude Include="..\tests\testResource.h" />
|
||||
<ClInclude Include="..\tests\tests.h" />
|
||||
<ClInclude Include="..\tests\ActionsTest\ActionsTest.h" />
|
||||
<ClInclude Include="..\tests\TransitionsTest\TransitionsTest.h" />
|
||||
<ClInclude Include="..\tests\ProgressActionsTest\ProgressActionsTest.h" />
|
||||
<ClInclude Include="..\tests\EffectsTest\EffectsTest.h" />
|
||||
<ClInclude Include="..\tests\ClickAndMoveTest\ClickAndMoveTest.h" />
|
||||
<ClInclude Include="..\tests\RotateWorldTest\RotateWorldTest.h" />
|
||||
<ClInclude Include="..\tests\ParticleTest\ParticleTest.h" />
|
||||
<ClInclude Include="..\tests\EaseActionsTest\EaseActionsTest.h" />
|
||||
<ClInclude Include="..\tests\MotionStreakTest\MotionStreakTest.h" />
|
||||
<ClInclude Include="..\tests\DrawPrimitivesTest\DrawPrimitivesTest.h" />
|
||||
<ClInclude Include="..\tests\CocosNodeTest\CocosNodeTest.h" />
|
||||
<ClInclude Include="..\tests\TouchesTest\Ball.h" />
|
||||
<ClInclude Include="..\tests\TouchesTest\Paddle.h" />
|
||||
<ClInclude Include="..\tests\TouchesTest\TouchesTest.h" />
|
||||
<ClInclude Include="..\tests\MenuTest\MenuTest.h" />
|
||||
<ClInclude Include="..\tests\ActionManagerTest\ActionManagerTest.h" />
|
||||
<ClInclude Include="..\tests\LayerTest\LayerTest.h" />
|
||||
<ClInclude Include="..\tests\SceneTest\SceneTest.h" />
|
||||
<ClInclude Include="..\tests\ParallaxTest\ParallaxTest.h" />
|
||||
<ClInclude Include="..\tests\TileMapTest\TileMapTest.h" />
|
||||
<ClInclude Include="..\tests\IntervalTest\IntervalTest.h" />
|
||||
<ClInclude Include="..\tests\LabelTest\LabelTest.h" />
|
||||
<ClInclude Include="..\tests\SpriteTest\SpriteTest.h" />
|
||||
<ClInclude Include="..\tests\SchedulerTest\SchedulerTest.h" />
|
||||
<ClInclude Include="..\tests\RenderTextureTest\RenderTextureTest.h" />
|
||||
<ClInclude Include="..\tests\ChipmunkTest\ChipmunkDemo.h" />
|
||||
<ClInclude Include="..\tests\ChipmunkTest\cocos2dChipmunkDemo.h" />
|
||||
<ClInclude Include="..\tests\ChipmunkTest\drawSpace.h" />
|
||||
<ClInclude Include="..\tests\Box2DTest\Box2dTest.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Box2dView.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\GLES-Render.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Test.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\ApplyForce.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\BodyTypes.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Breakable.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Bridge.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Cantilever.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Chain.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\CharacterCollision.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\CollisionFiltering.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\CollisionProcessing.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\CompoundShapes.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Confined.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\ContinuousTest.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\DistanceTest.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Dominos.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\DynamicTreeTest.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\EdgeShapes.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\ElasticBody.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Gears.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\LineJoint.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\OneSidedPlatform.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\PolyCollision.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\PolyShapes.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Prismatic.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Pulleys.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Pyramid.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\RayCast.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Revolute.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\SensorTest.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\ShapeEditing.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\SliderCrank.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\SphereStack.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\TheoJansen.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\TimeOfImpact.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\VaryingFriction.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\VaryingRestitution.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\VerticalStack.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Web.h" />
|
||||
<ClInclude Include="..\tests\EffectsAdvancedTest\EffectsAdvancedTest.h" />
|
||||
<ClInclude Include="..\tests\HiResTest\HiResTest.h" />
|
||||
<ClInclude Include="..\tests\KeypadTest\KeypadTest.h" />
|
||||
<ClInclude Include="..\tests\CocosDenshionTest\CocosDenshionTest.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Box2D\proj.win32\Box2D.win32.vcxproj">
|
||||
<Project>{929480e7-23c0-4df6-8456-096d71547116}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\chipmunk\proj.win32\chipmunk.win32.vcxproj">
|
||||
<Project>{207bc7a9-ccf1-4f2f-a04d-45f72242ae25}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\cocos2dx\proj.win32\cocos2d-win32.vcxproj">
|
||||
<Project>{98a51ba8-fc3a-415b-ac8f-8c7bd464e93e}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\CocosDenshion\proj.win32\CocosDenshion.win32.vcxproj">
|
||||
<Project>{f8edd7fa-9a51-4e80-baeb-860825d2eac6}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectName>tests</ProjectName>
|
||||
<ProjectGuid>{76A39BB2-9B84-4C65-98A5-654D86B86F2A}</ProjectGuid>
|
||||
<RootNamespace>test_win32</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration).win32\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration).win32\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration).win32\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration).win32\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>$(SolutionDir)cocos2dx\platform\third_party\win32;$(SolutionDir)cocos2dx\platform;$(SolutionDir)cocos2dx;$(SolutionDir)cocos2dx\include;$(SolutionDir);$(SolutionDir)chipmunk\include\chipmunk;$(SolutionDir)CocosDenshion\include;..\tests;$(SolutionDir)cocos2dx\platform\third_party\win32\OGLES;..\;.\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MinimalRebuild>true</MinimalRebuild>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4244;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>libcocos2d.lib;libgles_cm.lib;libBox2d.lib;libchipmunk.lib;libCocosDenshion.lib;libcurl_imp.lib;libcurl_imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)$(ProjectName).exe</OutputFile>
|
||||
<AdditionalLibraryDirectories>$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>copy_res.bat "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<AdditionalIncludeDirectories>$(SolutionDir)cocos2dx\platform\third_party\win32;$(SolutionDir)cocos2dx\platform;$(SolutionDir)cocos2dx;$(SolutionDir)cocos2dx\include;$(SolutionDir);$(SolutionDir)chipmunk\include\chipmunk;$(SolutionDir)CocosDenshion\include;..\tests;$(SolutionDir)cocos2dx\platform\third_party\win32\OGLES;..\;.\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<DisableSpecificWarnings>4244;4996;%(DisableSpecificWarnings)</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>libcocos2d.lib;libgles_cm.lib;libBox2d.lib;libchipmunk.lib;libCocosDenshion.lib;libcurl_imp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)$(ProjectName).exe</OutputFile>
|
||||
<AdditionalLibraryDirectories>$(OutDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Command>copy_res.bat "$(OutDir)"</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="main.cpp" />
|
||||
<ClCompile Include="..\AppDelegate.cpp" />
|
||||
<ClCompile Include="..\tests\controller.cpp" />
|
||||
<ClCompile Include="..\tests\testBasic.cpp" />
|
||||
<ClCompile Include="..\tests\ActionsTest\ActionsTest.cpp" />
|
||||
<ClCompile Include="..\tests\TransitionsTest\TransitionsTest.cpp" />
|
||||
<ClCompile Include="..\tests\ProgressActionsTest\ProgressActionsTest.cpp" />
|
||||
<ClCompile Include="..\tests\EffectsTest\EffectsTest.cpp" />
|
||||
<ClCompile Include="..\tests\ClickAndMoveTest\ClickAndMoveTest.cpp" />
|
||||
<ClCompile Include="..\tests\RotateWorldTest\RotateWorldTest.cpp" />
|
||||
<ClCompile Include="..\tests\ParticleTest\ParticleTest.cpp" />
|
||||
<ClCompile Include="..\tests\EaseActionsTest\EaseActionsTest.cpp" />
|
||||
<ClCompile Include="..\tests\MotionStreakTest\MotionStreakTest.cpp" />
|
||||
<ClCompile Include="..\tests\DrawPrimitivesTest\DrawPrimitivesTest.cpp" />
|
||||
<ClCompile Include="..\tests\CocosNodeTest\CocosNodeTest.cpp" />
|
||||
<ClCompile Include="..\tests\TouchesTest\Ball.cpp" />
|
||||
<ClCompile Include="..\tests\TouchesTest\Paddle.cpp" />
|
||||
<ClCompile Include="..\tests\TouchesTest\TouchesTest.cpp" />
|
||||
<ClCompile Include="..\tests\MenuTest\MenuTest.cpp" />
|
||||
<ClCompile Include="..\tests\ActionManagerTest\ActionManagerTest.cpp" />
|
||||
<ClCompile Include="..\tests\LayerTest\LayerTest.cpp" />
|
||||
<ClCompile Include="..\tests\SceneTest\SceneTest.cpp" />
|
||||
<ClCompile Include="..\tests\ParallaxTest\ParallaxTest.cpp" />
|
||||
<ClCompile Include="..\tests\TileMapTest\TileMapTest.cpp" />
|
||||
<ClCompile Include="..\tests\IntervalTest\IntervalTest.cpp" />
|
||||
<ClCompile Include="..\tests\LabelTest\LabelTest.cpp" />
|
||||
<ClCompile Include="..\tests\SpriteTest\SpriteTest.cpp" />
|
||||
<ClCompile Include="..\tests\SchedulerTest\SchedulerTest.cpp" />
|
||||
<ClCompile Include="..\tests\RenderTextureTest\RenderTextureTest.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Bounce.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\cocos2dChipmunkDemo.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\drawSpace.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Joints.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\LogoSmash.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\MagnetsElectric.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\OneWay.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Planet.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Player.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Plink.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Pump.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\PyramidStack.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\PyramidTopple.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Query.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Sensors.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Simple.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Springies.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\TheoJansen.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\Tumble.cpp" />
|
||||
<ClCompile Include="..\tests\ChipmunkTest\UnsafeOps.cpp" />
|
||||
<ClCompile Include="..\tests\Box2DTest\Box2dTest.cpp" />
|
||||
<ClCompile Include="..\tests\Box2DTestBed\Box2dView.cpp" />
|
||||
<ClCompile Include="..\tests\Box2DTestBed\GLES-Render.cpp" />
|
||||
<ClCompile Include="..\tests\Box2DTestBed\Test.cpp" />
|
||||
<ClCompile Include="..\tests\Box2DTestBed\TestEntries.cpp" />
|
||||
<ClCompile Include="..\tests\EffectsAdvancedTest\EffectsAdvancedTest.cpp" />
|
||||
<ClCompile Include="..\tests\HiResTest\HiResTest.cpp" />
|
||||
<ClCompile Include="..\tests\KeypadTest\KeypadTest.cpp" />
|
||||
<ClCompile Include="..\tests\CocosDenshionTest\CocosDenshionTest.cpp" />
|
||||
<ClCompile Include="..\tests\PerformanceTest\PerformanceNodeChildrenTest.cpp" />
|
||||
<ClCompile Include="..\tests\PerformanceTest\PerformanceParticleTest.cpp" />
|
||||
<ClCompile Include="..\tests\PerformanceTest\PerformanceSpriteTest.cpp" />
|
||||
<ClCompile Include="..\tests\PerformanceTest\PerformanceTest.cpp" />
|
||||
<ClCompile Include="..\tests\PerformanceTest\PerformanceTextureTest.cpp" />
|
||||
<ClCompile Include="..\tests\PerformanceTest\PerformanceTouchesTest.cpp" />
|
||||
<ClCompile Include="..\tests\ZwoptexTest\ZwoptexTest.cpp" />
|
||||
<ClCompile Include="..\tests\CurlTest\CurlTest.cpp" />
|
||||
<ClCompile Include="..\tests\TextInputTest\TextInputTest.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="main.h" />
|
||||
<ClInclude Include="..\AppDelegate.h" />
|
||||
<ClInclude Include="..\tests\controller.h" />
|
||||
<ClInclude Include="..\tests\testBasic.h" />
|
||||
<ClInclude Include="..\tests\testResource.h" />
|
||||
<ClInclude Include="..\tests\tests.h" />
|
||||
<ClInclude Include="..\tests\ActionsTest\ActionsTest.h" />
|
||||
<ClInclude Include="..\tests\TransitionsTest\TransitionsTest.h" />
|
||||
<ClInclude Include="..\tests\ProgressActionsTest\ProgressActionsTest.h" />
|
||||
<ClInclude Include="..\tests\EffectsTest\EffectsTest.h" />
|
||||
<ClInclude Include="..\tests\ClickAndMoveTest\ClickAndMoveTest.h" />
|
||||
<ClInclude Include="..\tests\RotateWorldTest\RotateWorldTest.h" />
|
||||
<ClInclude Include="..\tests\ParticleTest\ParticleTest.h" />
|
||||
<ClInclude Include="..\tests\EaseActionsTest\EaseActionsTest.h" />
|
||||
<ClInclude Include="..\tests\MotionStreakTest\MotionStreakTest.h" />
|
||||
<ClInclude Include="..\tests\DrawPrimitivesTest\DrawPrimitivesTest.h" />
|
||||
<ClInclude Include="..\tests\CocosNodeTest\CocosNodeTest.h" />
|
||||
<ClInclude Include="..\tests\TouchesTest\Ball.h" />
|
||||
<ClInclude Include="..\tests\TouchesTest\Paddle.h" />
|
||||
<ClInclude Include="..\tests\TouchesTest\TouchesTest.h" />
|
||||
<ClInclude Include="..\tests\MenuTest\MenuTest.h" />
|
||||
<ClInclude Include="..\tests\ActionManagerTest\ActionManagerTest.h" />
|
||||
<ClInclude Include="..\tests\LayerTest\LayerTest.h" />
|
||||
<ClInclude Include="..\tests\SceneTest\SceneTest.h" />
|
||||
<ClInclude Include="..\tests\ParallaxTest\ParallaxTest.h" />
|
||||
<ClInclude Include="..\tests\TileMapTest\TileMapTest.h" />
|
||||
<ClInclude Include="..\tests\IntervalTest\IntervalTest.h" />
|
||||
<ClInclude Include="..\tests\LabelTest\LabelTest.h" />
|
||||
<ClInclude Include="..\tests\SpriteTest\SpriteTest.h" />
|
||||
<ClInclude Include="..\tests\SchedulerTest\SchedulerTest.h" />
|
||||
<ClInclude Include="..\tests\RenderTextureTest\RenderTextureTest.h" />
|
||||
<ClInclude Include="..\tests\ChipmunkTest\ChipmunkDemo.h" />
|
||||
<ClInclude Include="..\tests\ChipmunkTest\cocos2dChipmunkDemo.h" />
|
||||
<ClInclude Include="..\tests\ChipmunkTest\drawSpace.h" />
|
||||
<ClInclude Include="..\tests\Box2DTest\Box2dTest.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Box2dView.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\GLES-Render.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Test.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\ApplyForce.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\BodyTypes.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Breakable.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Bridge.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Cantilever.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Chain.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\CharacterCollision.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\CollisionFiltering.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\CollisionProcessing.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\CompoundShapes.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Confined.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\ContinuousTest.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\DistanceTest.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Dominos.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\DynamicTreeTest.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\EdgeShapes.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\ElasticBody.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Gears.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\LineJoint.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\OneSidedPlatform.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\PolyCollision.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\PolyShapes.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Prismatic.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Pulleys.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Pyramid.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\RayCast.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Revolute.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\SensorTest.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\ShapeEditing.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\SliderCrank.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\SphereStack.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\TheoJansen.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\TimeOfImpact.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\VaryingFriction.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\VaryingRestitution.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\VerticalStack.h" />
|
||||
<ClInclude Include="..\tests\Box2DTestBed\Tests\Web.h" />
|
||||
<ClInclude Include="..\tests\EffectsAdvancedTest\EffectsAdvancedTest.h" />
|
||||
<ClInclude Include="..\tests\HiResTest\HiResTest.h" />
|
||||
<ClInclude Include="..\tests\KeypadTest\KeypadTest.h" />
|
||||
<ClInclude Include="..\tests\CocosDenshionTest\CocosDenshionTest.h" />
|
||||
<ClInclude Include="..\tests\PerformanceTest\PerformanceNodeChildrenTest.h" />
|
||||
<ClInclude Include="..\tests\PerformanceTest\PerformanceParticleTest.h" />
|
||||
<ClInclude Include="..\tests\PerformanceTest\PerformanceSpriteTest.h" />
|
||||
<ClInclude Include="..\tests\PerformanceTest\PerformanceTest.h" />
|
||||
<ClInclude Include="..\tests\PerformanceTest\PerformanceTextureTest.h" />
|
||||
<ClInclude Include="..\tests\PerformanceTest\PerformanceTouchesTest.h" />
|
||||
<ClInclude Include="..\tests\ZwoptexTest\ZwoptexTest.h" />
|
||||
<ClInclude Include="..\tests\CurlTest\CurlTest.h" />
|
||||
<ClInclude Include="..\tests\TextInputTest\TextInputTest.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
File diff suppressed because it is too large
Load Diff
|
@ -1,2 +1,2 @@
|
|||
mkdir ..\..\..\NEWPLUS\TDA_DATA\Data
|
||||
xcopy /E /Y ..\Res\*.* ..\..\..\NEWPLUS\TDA_DATA\Data
|
||||
mkdir ..\..\..\NEWPLUS\TG3\ConstData
|
||||
xcopy /E /Y ..\Res\*.* ..\..\..\NEWPLUS\TG3\ConstData
|
||||
|
|
|
@ -444,9 +444,9 @@ void ChipmunkTestLayer::onEnter()
|
|||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
// portraint
|
||||
glOrthof(-320/factor, 320/factor, -480/factor, 480/factor, -1.0f, 1.0f);
|
||||
// glOrthof(-320/factor, 320/factor, -480/factor, 480/factor, -1.0f, 1.0f);
|
||||
// landscape
|
||||
// glOrthof(-480/factor, 480/factor, -320/factor, 320/factor, 1.0f, -1.0f);
|
||||
glOrthof(-480/factor, 480/factor, -320/factor, 320/factor, 1.0f, -1.0f);
|
||||
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
glLoadIdentity();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//#define COCOS2D_DEBUG 1
|
||||
// #define COCOS2D_DEBUG 1
|
||||
|
||||
#include "TextInputTest.h"
|
||||
|
||||
|
@ -8,20 +8,24 @@
|
|||
|
||||
enum
|
||||
{
|
||||
kTextFieldTTFTest,
|
||||
kTextFieldTTFDefaultTest = 0,
|
||||
kTextFieldTTFActionTest,
|
||||
kTextInputTestsCount,
|
||||
};
|
||||
|
||||
#define FONT_NAME "Thonburi"
|
||||
#define FONT_SIZE 24
|
||||
|
||||
static int testIdx = -1;
|
||||
|
||||
KeyboardNotificationLayer* createTextInputTest(int nIndex)
|
||||
{
|
||||
switch(nIndex)
|
||||
{
|
||||
case kTextFieldTTFTest: return new TextFieldTTFTest();
|
||||
case kTextFieldTTFDefaultTest: return new TextFieldTTFDefaultTest();
|
||||
case kTextFieldTTFActionTest: return new TextFieldTTFActionTest();
|
||||
default: return 0;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
CCLayer* restartTextInputTest()
|
||||
|
@ -128,7 +132,7 @@ void TextInputTest::onEnter()
|
|||
addChild(l, 1);
|
||||
l->setPosition(ccp(s.width/2, s.height-80));
|
||||
}
|
||||
#if 0
|
||||
|
||||
CCMenuItemImage *item1 = CCMenuItemImage::itemFromNormalImage("Images/b1.png", "Images/b2.png", this, menu_selector(TextInputTest::backCallback));
|
||||
CCMenuItemImage *item2 = CCMenuItemImage::itemFromNormalImage("Images/r1.png","Images/r2.png", this, menu_selector(TextInputTest::restartCallback) );
|
||||
CCMenuItemImage *item3 = CCMenuItemImage::itemFromNormalImage("Images/f1.png", "Images/f2.png", this, menu_selector(TextInputTest::nextCallback) );
|
||||
|
@ -140,15 +144,6 @@ void TextInputTest::onEnter()
|
|||
item3->setPosition(ccp( s.width/2 + 100,30));
|
||||
|
||||
addChild(menu, 1);
|
||||
#endif
|
||||
}
|
||||
|
||||
void TextInputTest::onExit()
|
||||
{
|
||||
if (m_pNotificationLayer)
|
||||
{
|
||||
m_pNotificationLayer->release();
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
@ -161,11 +156,6 @@ KeyboardNotificationLayer::KeyboardNotificationLayer()
|
|||
setIsTouchEnabled(true);
|
||||
}
|
||||
|
||||
std::string KeyboardNotificationLayer::subtitle()
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
void KeyboardNotificationLayer::registerWithTouchDispatcher()
|
||||
{
|
||||
CCTouchDispatcher::sharedDispatcher()->addTargetedDelegate(this, 0, false);
|
||||
|
@ -209,23 +199,121 @@ void KeyboardNotificationLayer::keyboardWillShow(CCIMEKeyboardNotificationInfo&
|
|||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// implement TextFieldTTFTest
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// CCLayer function
|
||||
|
||||
#define FONT_NAME "Thonburi"
|
||||
#define FONT_SIZE 24
|
||||
|
||||
std::string TextFieldTTFTest::subtitle()
|
||||
bool KeyboardNotificationLayer::ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent)
|
||||
{
|
||||
return "CCTextFieldTTF test";
|
||||
CCLOG("++++++++++++++++++++++++++++++++++++++++++++");
|
||||
m_beginPos = pTouch->locationInView(pTouch->view());
|
||||
m_beginPos = CCDirector::sharedDirector()->convertToGL(m_beginPos);
|
||||
return true;
|
||||
}
|
||||
|
||||
void TextFieldTTFTest::onEnter()
|
||||
void KeyboardNotificationLayer::ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent)
|
||||
{
|
||||
if (! m_pTrackNode)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
CCPoint endPos = pTouch->locationInView(pTouch->view());
|
||||
endPos = CCDirector::sharedDirector()->convertToGL(endPos);
|
||||
|
||||
float delta = 5.0f;
|
||||
if (::abs(endPos.x - m_beginPos.x) > delta
|
||||
|| ::abs(endPos.y - m_beginPos.y) > delta)
|
||||
{
|
||||
// not click
|
||||
m_beginPos.x = m_beginPos.y = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
// decide the trackNode is clicked.
|
||||
CCRect rect;
|
||||
CCPoint point = convertTouchToNodeSpaceAR(pTouch);
|
||||
CCLOG("KeyboardNotificationLayer:clickedAt(%f,%f)", point.x, point.y);
|
||||
|
||||
rect = getRect(m_pTrackNode);
|
||||
CCLOG("KeyboardNotificationLayer:TrackNode at(origin:%f,%f, size:%f,%f)",
|
||||
rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
|
||||
|
||||
this->onClickTrackNode(CCRect::CCRectContainsPoint(rect, point));
|
||||
CCLOG("----------------------------------");
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// implement TextFieldTTFDefaultTest
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
std::string TextFieldTTFDefaultTest::subtitle()
|
||||
{
|
||||
return "TextFieldTTF with default behavior test";
|
||||
}
|
||||
|
||||
void TextFieldTTFDefaultTest::onClickTrackNode(bool bClicked)
|
||||
{
|
||||
CCTextFieldTTF * pTextField = (CCTextFieldTTF*)m_pTrackNode;
|
||||
if (bClicked)
|
||||
{
|
||||
// TextFieldTTFTest be clicked
|
||||
CCLOG("TextFieldTTFDefaultTest:CCTextFieldTTF attachWithIME");
|
||||
pTextField->attachWithIME();
|
||||
}
|
||||
else
|
||||
{
|
||||
// TextFieldTTFTest not be clicked
|
||||
CCLOG("TextFieldTTFDefaultTest:CCTextFieldTTF detachWithIME");
|
||||
pTextField->detachWithIME();
|
||||
}
|
||||
}
|
||||
|
||||
void TextFieldTTFDefaultTest::onEnter()
|
||||
{
|
||||
KeyboardNotificationLayer::onEnter();
|
||||
|
||||
// add CCTextFieldTTF
|
||||
CCSize s = CCDirector::sharedDirector()->getWinSize();
|
||||
|
||||
CCTextFieldTTF * pTextField = CCTextFieldTTF::textFieldWithPlaceHolder("<click here for input>",
|
||||
FONT_NAME,
|
||||
FONT_SIZE);
|
||||
addChild(pTextField);
|
||||
|
||||
pTextField->setPosition(ccp(s.width/2, s.height/2));
|
||||
|
||||
m_pTrackNode = pTextField;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// implement TextFieldTTFActionTest
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
std::string TextFieldTTFActionTest::subtitle()
|
||||
{
|
||||
return "CCTextFieldTTF with action and char limit test";
|
||||
}
|
||||
|
||||
void TextFieldTTFActionTest::onClickTrackNode(bool bClicked)
|
||||
{
|
||||
CCTextFieldTTF * pTextField = (CCTextFieldTTF*)m_pTrackNode;
|
||||
if (bClicked)
|
||||
{
|
||||
// TextFieldTTFTest be clicked
|
||||
CCLOG("TextFieldTTFActionTest:CCTextFieldTTF attachWithIME");
|
||||
pTextField->attachWithIME();
|
||||
}
|
||||
else
|
||||
{
|
||||
// TextFieldTTFTest not be clicked
|
||||
CCLOG("TextFieldTTFActionTest:CCTextFieldTTF detachWithIME");
|
||||
pTextField->detachWithIME();
|
||||
}
|
||||
}
|
||||
|
||||
void TextFieldTTFActionTest::onEnter()
|
||||
{
|
||||
KeyboardNotificationLayer::onEnter();
|
||||
|
||||
m_nSelected = -1;
|
||||
m_nCharLimit = 10;
|
||||
|
||||
m_pTextFieldAction = CCRepeatForever::actionWithAction(
|
||||
|
@ -240,106 +328,45 @@ void TextFieldTTFTest::onEnter()
|
|||
// add CCTextFieldTTF
|
||||
CCSize s = CCDirector::sharedDirector()->getWinSize();
|
||||
|
||||
m_pTextField[0] = CCTextFieldTTF::textFieldWithPlaceHolder("<CCTextFieldTTF with action>",
|
||||
m_pTextField = CCTextFieldTTF::textFieldWithPlaceHolder("<click here for input>",
|
||||
FONT_NAME,
|
||||
FONT_SIZE);
|
||||
addChild(m_pTextField[0]);
|
||||
addChild(m_pTextField);
|
||||
|
||||
m_pTextField[0]->setDelegate(this);
|
||||
m_pTextField[0]->setPosition(ccp(s.width/2, s.height/2 + 20));
|
||||
m_pTextField->setDelegate(this);
|
||||
m_pTextField->setPosition(ccp(s.width/2, s.height/2 + 20));
|
||||
|
||||
m_pTextField[1] = CCTextFieldTTF::textFieldWithPlaceHolder("<CCTextFieldTTF as default>",
|
||||
FONT_NAME,
|
||||
FONT_SIZE);
|
||||
addChild(m_pTextField[1]);
|
||||
m_pTextField[1]->setPosition(ccp(s.width/2, s.height/2 - 20));
|
||||
m_pTrackNode = m_pTextField;
|
||||
}
|
||||
|
||||
void TextFieldTTFTest::onExit()
|
||||
void TextFieldTTFActionTest::onExit()
|
||||
{
|
||||
m_pTextFieldAction->release();
|
||||
}
|
||||
|
||||
bool TextFieldTTFTest::ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent)
|
||||
{
|
||||
m_beginPos = pTouch->locationInView(pTouch->view());
|
||||
m_beginPos = CCDirector::sharedDirector()->convertToGL(m_beginPos);
|
||||
return true;
|
||||
}
|
||||
|
||||
void TextFieldTTFTest::ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent)
|
||||
{
|
||||
CCPoint endPos = pTouch->locationInView(pTouch->view());
|
||||
endPos = CCDirector::sharedDirector()->convertToGL(endPos);
|
||||
|
||||
float delta = 5.0f;
|
||||
if (::abs(endPos.x - m_beginPos.x) > delta
|
||||
|| ::abs(endPos.y - m_beginPos.y) > delta)
|
||||
{
|
||||
// not click
|
||||
m_beginPos.x = m_beginPos.y = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
// decide the index of CCTextFieldTTF which is clicked.
|
||||
int index = 0;
|
||||
CCRect rect;
|
||||
CCPoint point = convertTouchToNodeSpaceAR(pTouch);
|
||||
CCLOG("TextFieldTTFTest:clickedAt(%f,%f)", point.x, point.y);
|
||||
|
||||
for (; index < sizeof(m_pTextField) / sizeof(CCTextFieldTTF *); ++index)
|
||||
{
|
||||
rect = getRect(m_pTextField[index]);
|
||||
CCLOG("TextFieldTTFTest:CCTextFieldTTF[%d]at(origin:%f,%f, size:%f,%f)",
|
||||
index, rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
|
||||
|
||||
if (CCRect::CCRectContainsPoint(rect, point))
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_nSelected >= 0)
|
||||
{
|
||||
// hide the keyboard
|
||||
CCLOG("TextFieldTTFTest:CCTextFieldTTF[%d]detachWithIME", m_nSelected);
|
||||
m_pTextField[m_nSelected]->detachWithIME();
|
||||
m_nSelected = -1;
|
||||
m_pTrackNode = 0;
|
||||
}
|
||||
|
||||
if (index < sizeof(m_pTextField) / sizeof(CCTextFieldTTF *))
|
||||
{
|
||||
CCLOG("TextFieldTTFTest:CCTextFieldTTF[%d]attachWithIME", index);
|
||||
m_nSelected = index;
|
||||
m_pTrackNode = m_pTextField[index];
|
||||
m_pTextField[index]->attachWithIME();
|
||||
}
|
||||
}
|
||||
|
||||
// CCTextFieldDelegate protocol
|
||||
bool TextFieldTTFTest::onTextFieldAttachWithIME(CCTextFieldTTF * pSender)
|
||||
bool TextFieldTTFActionTest::onTextFieldAttachWithIME(CCTextFieldTTF * pSender)
|
||||
{
|
||||
if (! m_bAction)
|
||||
{
|
||||
m_pTextField[0]->runAction(m_pTextFieldAction);
|
||||
m_pTextField->runAction(m_pTextFieldAction);
|
||||
m_bAction = true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool TextFieldTTFTest::onTextFieldDetachWithIME(CCTextFieldTTF * pSender)
|
||||
bool TextFieldTTFActionTest::onTextFieldDetachWithIME(CCTextFieldTTF * pSender)
|
||||
{
|
||||
if (m_bAction)
|
||||
{
|
||||
m_pTextField[0]->stopAction(m_pTextFieldAction);
|
||||
m_pTextField[0]->setOpacity(255);
|
||||
m_pTextField->stopAction(m_pTextFieldAction);
|
||||
m_pTextField->setOpacity(255);
|
||||
m_bAction = false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool TextFieldTTFTest::onTextFieldInsertText(CCTextFieldTTF * pSender, const char * text, int nLen)
|
||||
bool TextFieldTTFActionTest::onTextFieldInsertText(CCTextFieldTTF * pSender, const char * text, int nLen)
|
||||
{
|
||||
// if the textfield's char count more than m_nCharLimit, doesn't insert text anymore.
|
||||
if (pSender->getCharCount() >= m_nCharLimit)
|
||||
|
@ -378,13 +405,13 @@ bool TextFieldTTFTest::onTextFieldInsertText(CCTextFieldTTF * pSender, const cha
|
|||
CCScaleTo::actionWithDuration(duration, 1),
|
||||
CCFadeOut::actionWithDuration(duration),
|
||||
0),
|
||||
CCCallFuncN::actionWithTarget(this, callfuncN_selector(TextFieldTTFTest::callbackRemoveNodeWhenDidAction)),
|
||||
CCCallFuncN::actionWithTarget(this, callfuncN_selector(TextFieldTTFActionTest::callbackRemoveNodeWhenDidAction)),
|
||||
0);
|
||||
label->runAction(seq);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool TextFieldTTFTest::onTextFieldDeleteBackward(CCTextFieldTTF * pSender, const char * delText, int nLen)
|
||||
bool TextFieldTTFActionTest::onTextFieldDeleteBackward(CCTextFieldTTF * pSender, const char * delText, int nLen)
|
||||
{
|
||||
// create a delete text sprite and do some action
|
||||
CCLabelTTF * label = CCLabelTTF::labelWithString(delText, FONT_NAME, FONT_SIZE);
|
||||
|
@ -412,18 +439,18 @@ bool TextFieldTTFTest::onTextFieldDeleteBackward(CCTextFieldTTF * pSender, const
|
|||
repeatTime),
|
||||
CCFadeOut::actionWithDuration(duration),
|
||||
0),
|
||||
CCCallFuncN::actionWithTarget(this, callfuncN_selector(TextFieldTTFTest::callbackRemoveNodeWhenDidAction)),
|
||||
CCCallFuncN::actionWithTarget(this, callfuncN_selector(TextFieldTTFActionTest::callbackRemoveNodeWhenDidAction)),
|
||||
0);
|
||||
label->runAction(seq);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool TextFieldTTFTest::onDraw(CCTextFieldTTF * pSender)
|
||||
bool TextFieldTTFActionTest::onDraw(CCTextFieldTTF * pSender)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void TextFieldTTFTest::callbackRemoveNodeWhenDidAction(CCNode * pNode)
|
||||
void TextFieldTTFActionTest::callbackRemoveNodeWhenDidAction(CCNode * pNode)
|
||||
{
|
||||
this->removeChild(pNode, true);
|
||||
}
|
||||
|
|
|
@ -5,7 +5,10 @@
|
|||
|
||||
class KeyboardNotificationLayer;
|
||||
|
||||
class TextInputTest : public CCLayer, public CCIMEDelegate
|
||||
/**
|
||||
@brief TextInputTest for retain prev, reset, next, main menu buttons.
|
||||
*/
|
||||
class TextInputTest : public CCLayer
|
||||
{
|
||||
KeyboardNotificationLayer * m_pNotificationLayer;
|
||||
public:
|
||||
|
@ -19,39 +22,68 @@ public:
|
|||
void addKeyboardNotificationLayer(KeyboardNotificationLayer * pLayer);
|
||||
|
||||
virtual void onEnter();
|
||||
virtual void onExit();
|
||||
};
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// KeyboardNotificationLayer for test IME keyboard notification.
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class KeyboardNotificationLayer : public CCLayer, public CCIMEDelegate
|
||||
{
|
||||
public:
|
||||
KeyboardNotificationLayer();
|
||||
|
||||
virtual std::string subtitle();
|
||||
virtual std::string subtitle() = 0;
|
||||
virtual void onClickTrackNode(bool bClicked) = 0;
|
||||
|
||||
virtual void registerWithTouchDispatcher();
|
||||
virtual void keyboardWillShow(CCIMEKeyboardNotificationInfo& info);
|
||||
|
||||
// CCLayer
|
||||
virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);
|
||||
virtual void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent);
|
||||
|
||||
protected:
|
||||
CCNode * m_pTrackNode;
|
||||
CCPoint m_beginPos;
|
||||
};
|
||||
|
||||
class TextFieldTTFTest : public KeyboardNotificationLayer, public CCTextFieldDelegate
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// TextFieldTTFDefaultTest for test TextFieldTTF default behavior.
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class TextFieldTTFDefaultTest : public KeyboardNotificationLayer
|
||||
{
|
||||
CCPoint m_beginPos;
|
||||
CCTextFieldTTF * m_pTextField[2];
|
||||
public:
|
||||
// KeyboardNotificationLayer
|
||||
virtual std::string subtitle();
|
||||
virtual void onClickTrackNode(bool bClicked);
|
||||
|
||||
// CCLayer
|
||||
virtual void onEnter();
|
||||
};
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// TextFieldTTFActionTest
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class TextFieldTTFActionTest : public KeyboardNotificationLayer, public CCTextFieldDelegate
|
||||
{
|
||||
CCTextFieldTTF * m_pTextField;
|
||||
CCAction * m_pTextFieldAction;
|
||||
bool m_bAction;
|
||||
int m_nSelected;
|
||||
int m_nCharLimit; // the textfield max char limit
|
||||
|
||||
public:
|
||||
void callbackRemoveNodeWhenDidAction(CCNode * pNode);
|
||||
|
||||
// KeyboardNotificationLayer
|
||||
virtual std::string subtitle();
|
||||
virtual void onClickTrackNode(bool bClicked);
|
||||
|
||||
// CCLayer
|
||||
virtual void onEnter();
|
||||
virtual void onExit();
|
||||
virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);
|
||||
virtual void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent);
|
||||
|
||||
// CCTextFieldDelegate
|
||||
virtual bool onTextFieldAttachWithIME(CCTextFieldTTF * pSender);
|
||||
|
@ -59,8 +91,6 @@ public:
|
|||
virtual bool onTextFieldInsertText(CCTextFieldTTF * pSender, const char * text, int nLen);
|
||||
virtual bool onTextFieldDeleteBackward(CCTextFieldTTF * pSender, const char * delText, int nLen);
|
||||
virtual bool onDraw(CCTextFieldTTF * pSender);
|
||||
|
||||
void callbackRemoveNodeWhenDidAction(CCNode * pNode);
|
||||
};
|
||||
|
||||
class TextInputTestScene : public TestScene
|
||||
|
@ -69,4 +99,4 @@ public:
|
|||
virtual void runThisTest();
|
||||
};
|
||||
|
||||
#endif // __TEXT_INPUT_TEST_H__
|
||||
#endif // __TEXT_INPUT_TEST_H__
|
||||
|
|
|
@ -17,6 +17,8 @@ static void ChangeOrientation(ccDeviceOrientation eOrientation)
|
|||
|
||||
static TestScene* CreateTestScene(int nIdx)
|
||||
{
|
||||
CCDirector::sharedDirector()->purgeCachedData();
|
||||
|
||||
// change to default orientation
|
||||
ChangeOrientation(CCDeviceOrientationPortrait);
|
||||
|
||||
|
@ -65,12 +67,10 @@ static TestScene* CreateTestScene(int nIdx)
|
|||
pScene = new IntervalTestScene(); break;
|
||||
case TEST_CHIPMUNK:
|
||||
#if (CC_TARGET_PLATFORM != CC_PLATFORM_AIRPLAY)
|
||||
ChangeOrientation(CCDeviceOrientationLandscapeLeft);
|
||||
pScene = new ChipmunkTestScene(); break;
|
||||
#else
|
||||
#ifdef AIRPLAYUSECHIPMUNK
|
||||
#if (AIRPLAYUSECHIPMUNK == 1)
|
||||
ChangeOrientation(CCDeviceOrientationLandscapeLeft);
|
||||
pScene = new ChipmunkTestScene(); break;
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue