issue #198, merge test_uphone & test_win32

This commit is contained in:
Walzer 2010-11-12 08:25:14 +00:00
parent 916b620259
commit 6acbc6dc05
39 changed files with 1377 additions and 600 deletions

View File

@ -37,7 +37,6 @@ public:
// AppDelegate
HelloWorldAppDelegate::HelloWorldAppDelegate()
: m_rcWnd(0, 0, GetScreenWidth(), GetScreenHeight())
, m_pMainWnd(NULL)
{
@ -46,8 +45,8 @@ HelloWorldAppDelegate::HelloWorldAppDelegate()
bool HelloWorldAppDelegate::applicationDidFinishLaunching()
{
// init the window
if ( ! (m_pMainWnd = new CCXEGLView(this)) ||
!m_pMainWnd->Create(&m_rcWnd))
if (!(m_pMainWnd = new CCXEGLView(this)) ||
! m_pMainWnd->Create(&TRectangle(0,0,GetScreenWidth(),GetScreenHeight())))
{
delete m_pMainWnd;
return false;

View File

@ -19,7 +19,6 @@ public:
virtual void applicationWillEnterForeground();
protected:
TRectangle m_rcWnd;
cocos2d::CCXEGLView * m_pMainWnd;
};

View File

@ -39,8 +39,15 @@ public:
// implement HelloWorldApplication
//////////////////////////////////////////////////////////////////////////
bool HelloWorldApplication::initCocos2d()
bool HelloWorldApplication::applicationDidFinishLaunching()
{
// init the window
if (!m_MainForm.Create(L"HelloWorld", 480, 320) )
{
return false;
}
// init director
CCDirector::sharedDirector()->setOpenGLView(&m_MainForm);
@ -66,12 +73,8 @@ bool HelloWorldApplication::initCocos2d()
pSprite->release();
pLayer->release();
return true;
}
bool HelloWorldApplication::InitInstance()
{
return m_MainForm.Create(L"HelloWorld", 480, 320);
return true;
}
int APIENTRY _tWinMain(HINSTANCE hInstance,
@ -86,9 +89,6 @@ int APIENTRY _tWinMain(HINSTANCE hInstance,
int nRet = 0;
HelloWorldApplication app;
if (app.InitInstance() && app.initCocos2d())
{
nRet = app.Run();
}
nRet = app.Run();
return nRet;
}

View File

@ -5,8 +5,7 @@
class HelloWorldApplication : public cocos2d::CCXApplication
{
public:
virtual bool initCocos2d();
virtual bool InitInstance();
virtual bool applicationDidFinishLaunching();
protected:
cocos2d::CCXEGLView m_MainForm;

View File

@ -1,47 +0,0 @@
#ifndef __TESTAUDIOENGINEUNICODESCRIPT_STR_H__
#define __TESTAUDIOENGINEUNICODESCRIPT_STR_H__
#define AppName_TestAudioEngine__N \
"T\x00\x65\x00s\x00t\x00\x41\x00u\x00\x64\x00i\x00o\x00\x45\x00n\x00g\x00i\x00n\x00\x65\x00"
#define AppName_TestAudioEngine__C \
AppName_TestAudioEngine__N"\x00\x00"
#define AppName_TestAudioEngine \
((const unsigned short *)(AppName_TestAudioEngine__C))
#define AppName_TestAudioEngine__N16 \
0x0054,0x0065,0x0073,0x0074,0x0041,0x0075,0x0064,0x0069,0x006f,0x0045,0x006e,0x0067,0x0069,0x006e,0x0065
#define AppName_TestAudioEngine_16 \
{AppName_TestAudioEngine__N16,0x0000}
// 原始串信息:
// TestAudioEngine
#define UnloadedTip__N \
"\xf3\x97\x91\x98\x87\x65\xf6\x4e\x1a\x5c\x2a\x67\x7d\x8f\x65\x51!\x00"
#define UnloadedTip__C \
UnloadedTip__N"\x00\x00"
#define UnloadedTip \
((const unsigned short *)(UnloadedTip__C))
#define UnloadedTip__N16 \
0x97f3,0x9891,0x6587,0x4ef6,0x5c1a,0x672a,0x8f7d,0x5165,0x0021
#define UnloadedTip_16 \
{UnloadedTip__N16,0x0000}
// 原始串信息:
// 音频文件尚未载入!
#define FailedTitle__N \
"\x31\x59\x25\x8d"
#define FailedTitle__C \
FailedTitle__N"\x00\x00"
#define FailedTitle \
((const unsigned short *)(FailedTitle__C))
#define FailedTitle__N16 \
0x5931,0x8d25
#define FailedTitle_16 \
{FailedTitle__N16,0x0000}
// 原始串信息:
// 失败
#endif //__TESTAUDIOENGINEUNICODESCRIPT_STR_H__

View File

@ -3,13 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cocos2dx-uphone", "cocos2dx\cocos2dx-uphone.vcproj", "{6AC43F51-A036-4653-B910-BDDC346D15E7}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_uphone", "test_uphone\test_uphone.vcproj", "{33819ACD-9774-4E68-AFBE-7A88BBA7B19D}"
ProjectSection(ProjectDependencies) = postProject
{6AC43F51-A036-4653-B910-BDDC346D15E7} = {6AC43F51-A036-4653-B910-BDDC346D15E7}
{83C75293-906B-432E-80B9-A0041043E380} = {83C75293-906B-432E-80B9-A0041043E380}
{BA00DDF7-0F25-4C1E-B012-FA230C1F6463} = {BA00DDF7-0F25-4C1E-B012-FA230C1F6463}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloWorld", "HelloWorld\HelloWorld.vcproj", "{90D08657-A80A-41CD-8AAC-3A3DC8C33041}"
ProjectSection(ProjectDependencies) = postProject
{6AC43F51-A036-4653-B910-BDDC346D15E7} = {6AC43F51-A036-4653-B910-BDDC346D15E7}
@ -24,11 +17,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestAudioEngine", "TestAudi
{AB17438B-7848-4FD6-AF6E-A6A91F82C6F0} = {AB17438B-7848-4FD6-AF6E-A6A91F82C6F0}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cocosTemplate", "template\cocosTemplate.vcproj", "{A2338E7B-155B-4A3B-AB4B-518ECDD26564}"
ProjectSection(ProjectDependencies) = postProject
{6AC43F51-A036-4653-B910-BDDC346D15E7} = {6AC43F51-A036-4653-B910-BDDC346D15E7}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Cocos2dSimpleGame", "Cocos2dSimpleGame\Cocos2dSimpleGame.vcproj", "{ADD7B173-FF61-45DA-BDE0-3E41600D21B0}"
ProjectSection(ProjectDependencies) = postProject
{6AC43F51-A036-4653-B910-BDDC346D15E7} = {6AC43F51-A036-4653-B910-BDDC346D15E7}
@ -37,6 +25,15 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Cocos2dSimpleGame", "Cocos2
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CocosDenshion_uphone", "CocosDenshion\CocosDenshion-uphone.vcproj", "{AB17438B-7848-4FD6-AF6E-A6A91F82C6F0}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cocosTemplate", "template\cocosTemplate.vcproj", "{A2338E7B-155B-4A3B-AB4B-518ECDD26564}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_uphone", "test_uphone\proj.uphone\test_uphone.vcproj", "{33819ACD-9774-4E68-AFBE-7A88BBA7B19D}"
ProjectSection(ProjectDependencies) = postProject
{6AC43F51-A036-4653-B910-BDDC346D15E7} = {6AC43F51-A036-4653-B910-BDDC346D15E7}
{83C75293-906B-432E-80B9-A0041043E380} = {83C75293-906B-432E-80B9-A0041043E380}
{BA00DDF7-0F25-4C1E-B012-FA230C1F6463} = {BA00DDF7-0F25-4C1E-B012-FA230C1F6463}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
@ -47,10 +44,6 @@ Global
{6AC43F51-A036-4653-B910-BDDC346D15E7}.Debug|Win32.Build.0 = Debug|Win32
{6AC43F51-A036-4653-B910-BDDC346D15E7}.Release|Win32.ActiveCfg = Release|Win32
{6AC43F51-A036-4653-B910-BDDC346D15E7}.Release|Win32.Build.0 = Release|Win32
{33819ACD-9774-4E68-AFBE-7A88BBA7B19D}.Debug|Win32.ActiveCfg = Debug|Win32
{33819ACD-9774-4E68-AFBE-7A88BBA7B19D}.Debug|Win32.Build.0 = Debug|Win32
{33819ACD-9774-4E68-AFBE-7A88BBA7B19D}.Release|Win32.ActiveCfg = Release|Win32
{33819ACD-9774-4E68-AFBE-7A88BBA7B19D}.Release|Win32.Build.0 = Release|Win32
{90D08657-A80A-41CD-8AAC-3A3DC8C33041}.Debug|Win32.ActiveCfg = Debug|Win32
{90D08657-A80A-41CD-8AAC-3A3DC8C33041}.Debug|Win32.Build.0 = Debug|Win32
{90D08657-A80A-41CD-8AAC-3A3DC8C33041}.Release|Win32.ActiveCfg = Release|Win32
@ -67,10 +60,6 @@ Global
{93D51450-73EC-48FA-9CFB-2095757678B1}.Debug|Win32.Build.0 = Debug|Win32
{93D51450-73EC-48FA-9CFB-2095757678B1}.Release|Win32.ActiveCfg = Release|Win32
{93D51450-73EC-48FA-9CFB-2095757678B1}.Release|Win32.Build.0 = Release|Win32
{A2338E7B-155B-4A3B-AB4B-518ECDD26564}.Debug|Win32.ActiveCfg = Debug|Win32
{A2338E7B-155B-4A3B-AB4B-518ECDD26564}.Debug|Win32.Build.0 = Debug|Win32
{A2338E7B-155B-4A3B-AB4B-518ECDD26564}.Release|Win32.ActiveCfg = Release|Win32
{A2338E7B-155B-4A3B-AB4B-518ECDD26564}.Release|Win32.Build.0 = Release|Win32
{ADD7B173-FF61-45DA-BDE0-3E41600D21B0}.Debug|Win32.ActiveCfg = Debug|Win32
{ADD7B173-FF61-45DA-BDE0-3E41600D21B0}.Debug|Win32.Build.0 = Debug|Win32
{ADD7B173-FF61-45DA-BDE0-3E41600D21B0}.Release|Win32.ActiveCfg = Release|Win32
@ -79,6 +68,14 @@ Global
{AB17438B-7848-4FD6-AF6E-A6A91F82C6F0}.Debug|Win32.Build.0 = Debug|Win32
{AB17438B-7848-4FD6-AF6E-A6A91F82C6F0}.Release|Win32.ActiveCfg = Release|Win32
{AB17438B-7848-4FD6-AF6E-A6A91F82C6F0}.Release|Win32.Build.0 = Release|Win32
{A2338E7B-155B-4A3B-AB4B-518ECDD26564}.Debug|Win32.ActiveCfg = Debug|Win32
{A2338E7B-155B-4A3B-AB4B-518ECDD26564}.Debug|Win32.Build.0 = Debug|Win32
{A2338E7B-155B-4A3B-AB4B-518ECDD26564}.Release|Win32.ActiveCfg = Release|Win32
{A2338E7B-155B-4A3B-AB4B-518ECDD26564}.Release|Win32.Build.0 = Release|Win32
{33819ACD-9774-4E68-AFBE-7A88BBA7B19D}.Debug|Win32.ActiveCfg = Debug|Win32
{33819ACD-9774-4E68-AFBE-7A88BBA7B19D}.Debug|Win32.Build.0 = Debug|Win32
{33819ACD-9774-4E68-AFBE-7A88BBA7B19D}.Release|Win32.ActiveCfg = Release|Win32
{33819ACD-9774-4E68-AFBE-7A88BBA7B19D}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -12,13 +12,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "chipmunk-win32", "chipmunk\
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Box2D-win32", "Box2D\Box2D-win32.vcproj", "{929480E7-23C0-4DF6-8456-096D71547116}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test-win32", "test_win32\test-win32.vcproj", "{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}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CocosDenshion-win32", "CocosDenshion\CocosDenshion-win32.vcproj", "{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestAudioEngine-win32", "TestAudioEngine-win32\TestAudioEngine-win32.vcproj", "{3A08EAB1-1042-4085-BACA-03A5BDD0F214}"
@ -26,6 +19,13 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestAudioEngine-win32", "Te
{F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6} = {F8EDD7FA-9A51-4E80-BAEB-860825D2EAC6}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test-win32", "test_uphone\proj.win32\test-win32.vcproj", "{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}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
@ -48,10 +48,6 @@ Global
{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
{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
{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
@ -60,6 +56,10 @@ Global
{3A08EAB1-1042-4085-BACA-03A5BDD0F214}.Debug|Win32.Build.0 = Debug|Win32
{3A08EAB1-1042-4085-BACA-03A5BDD0F214}.Release|Win32.ActiveCfg = Release|Win32
{3A08EAB1-1042-4085-BACA-03A5BDD0F214}.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

View File

@ -17,8 +17,8 @@ extern const AppResourceEntry cocosTemplateResourceEntry;
bool AppDelegate::applicationDidFinishLaunching()
{
// init the window
if ( ! (m_pMainWnd = new CCXEGLView(this)) ||
!m_pMainWnd->Create(&m_rcWnd))
if (!(m_pMainWnd = new CCXEGLView(this)) ||
! m_pMainWnd->Create(&TRectangle(0,0,GetScreenWidth(),GetScreenHeight())))
{
delete m_pMainWnd;
return false;
@ -51,8 +51,7 @@ bool AppDelegate::applicationDidFinishLaunching()
AppDelegate::AppDelegate()
:m_rcWnd(0, 0, GetScreenWidth(), GetScreenHeight())
,m_pMainWnd(NULL)
:m_pMainWnd(NULL)
{
}

View File

@ -20,7 +20,6 @@ public:
virtual void applicationWillEnterForeground();
protected:
TRectangle m_rcWnd;
cocos2d::CCXEGLView * m_pMainWnd;
};

106
test_uphone/AppDelegate.cpp Normal file
View File

@ -0,0 +1,106 @@
#include "AppDelegate.h"
#include "cocos2d.h"
#include "tests/controller.h"
using namespace cocos2d;
// static void TimerCallback1(Int32 nTimerId, UInt32 uUserData);
AppDelegate::AppDelegate()
:m_pMainWnd(NULL)
// ,m_nTimer(0)
{
}
AppDelegate::~AppDelegate()
{
}
bool AppDelegate::applicationDidFinishLaunching()
{
// init the window
#if defined(CCX_PLATFORM_UPHONE)
if (!(m_pMainWnd = new CCXEGLView(this)) ||
! m_pMainWnd->Create(&TRectangle(0,0,GetScreenWidth(),GetScreenHeight())))
#elif defined(CCX_PLATFORM_WIN32)
if (!(m_pMainWnd = new CCXEGLView()) ||
! m_pMainWnd->Create(L"cocos2d-win32", 320, 480) )
#else
#error
#endif
{
CCX_SAFE_DELETE(m_pMainWnd);
return false;
}
// init director
CCDirector * pDirector = CCDirector::sharedDirector();
pDirector->setOpenGLView(m_pMainWnd);
pDirector->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft);
// pDirector->setDeviceOrientation(kCCDeviceOrientationPortrait);
pDirector->setDisplayFPS(true);
#if defined(CCX_PLPATFORM_UPHONE)
// set the resource path
CCFileUtils::setResourcePath("/NEWPLUS/TDA_DATA/Data/cocos2d_tests/");
#endif
#if 0
// SHOW SPLASH SCREEN
// load background image texture and get window size
CCTexture2D * pSplashTexture = CCTextureCache::sharedTextureCache()->addImage("Images/HelloWorld.png");
CGSize size = CCDirector::sharedDirector()->getWinSize();
// splash sprite
CCSprite * pSplashSprite = CCSprite::spriteWithTexture(pSplashTexture);
pSplashSprite->setPosition(CGPoint(size.width / 2, size.height / 2));
// splash layer
CCLayer * pSplashLayer = new CCLayer();
pSplashLayer->addChild(pSplashSprite);
pSplashLayer->autorelease();
// add layer to scene
CCScene * pSplashScene = CCScene::node();
pSplashScene->addChild(pSplashLayer);
// add scene to director
CCDirector::sharedDirector()->runWithScene(pSplashScene);
// CCSequence::actions(this, callfunc_selector(AppDelegate::replaceSplashScreen))
m_nTimer = TIMER_Create(3000, TIMER_MODE_NORMAL, TimerCallback1, 0, 0);
TIMER_Start(m_nTimer, 0);
#endif
CCScene * pScene = CCScene::node();
CCLayer * pLayer = new TestController();
pLayer->autorelease();
pScene->addChild(pLayer);
pDirector->runWithScene(pScene);
return true;
}
void AppDelegate::applicationDidEnterBackground()
{
CCDirector::sharedDirector()->stopAnimation();
}
void AppDelegate::applicationWillEnterForeground()
{
CCDirector::sharedDirector()->startAnimation();
}
/*
static void TimerCallback1(Int32 nTimerId, UInt32 uUserData)
{
CCScene * pScene = CCScene::node();
CCLayer * pLayer = new TestController();
pLayer->autorelease();
pScene->addChild(pLayer);
CCDirector::sharedDirector()->replaceScene(pScene);
}
*/

25
test_uphone/AppDelegate.h Normal file
View File

@ -0,0 +1,25 @@
#ifndef __APP_DELEGATE_H__
#define __APP_DELEGATE_H__
#include "cocos2d.h"
class AppDelegate : public cocos2d::CCXApplication
{
public:
AppDelegate();
~AppDelegate();
virtual bool applicationDidFinishLaunching();
virtual void applicationDidEnterBackground();
virtual void applicationWillEnterForeground();
protected:
cocos2d::CCXEGLView *m_pMainWnd;
// private:
// Int32 m_nTimer;
};
#endif // __APP_DELEGATE_H__

View File

@ -0,0 +1,18 @@
#include "TG3.h"
#include "../AppDelegate.h"
Int32 TG3AppMain(const TUChar * pAppID, UInt32 nCmd, void * pCmdParam)
{
switch(nCmd)
{
case 0: // main entry
{
// run app
AppDelegate app;
app.Run();
}
}
return 1;
}

View File

@ -0,0 +1,21 @@
#include "main.h"
#include "../AppDelegate.h"
HINSTANCE g_hInstance;
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
g_hInstance = hInstance;
int nRet = 0;
AppDelegate app;
nRet = app.Run();
return nRet;
}

View File

@ -0,0 +1,16 @@
#ifndef __MAIN_H__
#define __MAIN_H__
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>
// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
extern HINSTANCE g_hInstance;
#endif // __WINMAIN_H__

View File

@ -0,0 +1,10 @@
mkdir D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\Images
mkdir D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\TileMaps
mkdir D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\fonts
mkdir D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\animations
mkdir D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\Images\bugs
copy ..\Res\Images\*.* D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\Images
copy ..\Res\Images\bugs\*.* D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\Images\bugs
copy ..\Res\TileMaps\*.* D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\TileMaps
copy ..\Res\fonts\*.* D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\fonts
copy ..\Res\animations\*.* D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\animations

View File

@ -41,7 +41,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=".\Res;..\..\PRJ_TG3\Include;..\..\PRJ_TG3\Include\MTAPI;..\..\PRJ_TG3\Include\OpenGL;..\..\PRJ_TG3\Include\TCOM;..\..\PRJ_TG3\TG3\Include;..\..\PRJ_TG3\TG3\TG3_Implement;..\..\PRJ_TG3\EOS_SYS;..\..\PRJ_TG3\Common\SoftSupport;..\..\PRJ_TG3\Common\ICU\Include;..\cocos2dx\include;..\cocos2dx;..\chipmunk\include\chipmunk;..\;..\chipmunk\Demo;.\tests"
AdditionalIncludeDirectories="..\Res;..\..\..\PRJ_TG3\Include;..\..\..\PRJ_TG3\Include\MTAPI;..\..\..\PRJ_TG3\Include\OpenGL;..\..\..\PRJ_TG3\Include\TCOM;..\..\..\PRJ_TG3\TG3\Include;..\..\..\PRJ_TG3\TG3\TG3_Implement;..\..\..\PRJ_TG3\EOS_SYS;..\..\..\PRJ_TG3\Common\SoftSupport;..\..\..\PRJ_TG3\Common\ICU\Include;..\..\cocos2dx\include;..\..\cocos2dx;..\..\chipmunk\include\chipmunk;..\..\;..\..\chipmunk\Demo;..\tests"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_TRANZDA_VM_;SS_MAKEDLL;_USE_MATH_DEFINES"
MinimalRebuild="true"
BasicRuntimeChecks="3"
@ -66,10 +66,10 @@
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="WS2_32.Lib ..\..\PRJ_TG3\Common\SoftSupport\EosConfig.lib ..\..\PRJ_TG3\Common\SoftSupport\SoftSupport.lib ..\..\PRJ_TG3\Common\SoftSupport\TG3_DLL.lib libcocos2d.lib libEGL.lib libgles_cm.lib libBox2d.lib"
AdditionalDependencies="WS2_32.Lib EosConfig.lib SoftSupport.lib TG3_DLL.lib libcocos2d.lib libEGL.lib libgles_cm.lib libBox2d.lib"
OutputFile="$(OutDir)/test_uphone.dll"
LinkIncremental="2"
AdditionalLibraryDirectories="../../PRJ_TG3/Common/ICU/lib;../../PRJ_TG3/Mtapi/Win32/lib;../../PRJ_TG3/LIB/Win32Lib;../../PRJ_TG3/Common/SoftSupport;&quot;$(OutDir)&quot;"
AdditionalLibraryDirectories="../../../PRJ_TG3/Common/ICU/lib;../../../PRJ_TG3/Mtapi/Win32/lib;../../../PRJ_TG3/LIB/Win32Lib;../../../PRJ_TG3/Common/SoftSupport;&quot;$(OutDir)&quot;"
GenerateDebugInformation="true"
GenerateMapFile="true"
MapExports="true"
@ -99,7 +99,7 @@
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="tests\tests_post_commond.bat"
CommandLine="copy_res.bat"
/>
</Configuration>
<Configuration
@ -188,33 +188,13 @@
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".\test_uphoneEntry.cpp"
RelativePath="..\AppDelegate.cpp"
>
</File>
<Filter
Name="app"
<File
RelativePath="..\AppDelegate.h"
>
<File
RelativePath=".\test_uphoneApp.cpp"
>
</File>
<File
RelativePath=".\test_uphoneApp.h"
>
</File>
</Filter>
<Filter
Name="form"
>
<File
RelativePath=".\test_uphoneMainForm.cpp"
>
</File>
<File
RelativePath=".\test_uphoneMainForm.h"
>
</File>
</Filter>
</File>
</Filter>
<Filter
Name="Makefiles"
@ -232,15 +212,19 @@
Name="Framework"
>
<File
RelativePath=".\NewDeleteOp.cpp"
RelativePath="..\framework.uphone\main.cpp"
>
</File>
<File
RelativePath=".\TG3AppDllEntry.cpp"
RelativePath="..\framework.uphone\NewDeleteOp.cpp"
>
</File>
<File
RelativePath=".\TG3AppDllEntry.h"
RelativePath="..\framework.uphone\TG3AppDllEntry.cpp"
>
</File>
<File
RelativePath="..\framework.uphone\TG3AppDllEntry.h"
>
</File>
</Filter>
@ -248,38 +232,38 @@
Name="tests"
>
<File
RelativePath=".\tests\controller.cpp"
RelativePath="..\tests\controller.cpp"
>
</File>
<File
RelativePath=".\tests\controller.h"
RelativePath="..\tests\controller.h"
>
</File>
<File
RelativePath=".\tests\testBasic.cpp"
RelativePath="..\tests\testBasic.cpp"
>
</File>
<File
RelativePath=".\tests\testBasic.h"
RelativePath="..\tests\testBasic.h"
>
</File>
<File
RelativePath=".\tests\testResource.h"
RelativePath="..\tests\testResource.h"
>
</File>
<File
RelativePath=".\tests\tests.h"
RelativePath="..\tests\tests.h"
>
</File>
<Filter
Name="ActionsTest"
>
<File
RelativePath=".\tests\ActionsTest\ActionsTest.cpp"
RelativePath="..\tests\ActionsTest\ActionsTest.cpp"
>
</File>
<File
RelativePath=".\tests\ActionsTest\ActionsTest.h"
RelativePath="..\tests\ActionsTest\ActionsTest.h"
>
</File>
</Filter>
@ -287,11 +271,11 @@
Name="TransitionsTest"
>
<File
RelativePath=".\tests\TransitionsTest\TransitionsTest.cpp"
RelativePath="..\tests\TransitionsTest\TransitionsTest.cpp"
>
</File>
<File
RelativePath=".\tests\TransitionsTest\TransitionsTest.h"
RelativePath="..\tests\TransitionsTest\TransitionsTest.h"
>
</File>
</Filter>
@ -299,11 +283,11 @@
Name="ProgressActionsTest"
>
<File
RelativePath=".\tests\ProgressActionsTest\ProgressActionsTest.cpp"
RelativePath="..\tests\ProgressActionsTest\ProgressActionsTest.cpp"
>
</File>
<File
RelativePath=".\tests\ProgressActionsTest\ProgressActionsTest.h"
RelativePath="..\tests\ProgressActionsTest\ProgressActionsTest.h"
>
</File>
</Filter>
@ -311,11 +295,11 @@
Name="EffectsTest"
>
<File
RelativePath=".\tests\EffectsTest\EffectsTest.cpp"
RelativePath="..\tests\EffectsTest\EffectsTest.cpp"
>
</File>
<File
RelativePath=".\tests\EffectsTest\EffectsTest.h"
RelativePath="..\tests\EffectsTest\EffectsTest.h"
>
</File>
</Filter>
@ -323,11 +307,11 @@
Name="ClickAndMoveTest"
>
<File
RelativePath=".\tests\ClickAndMoveTest\ClickAndMoveTest.cpp"
RelativePath="..\tests\ClickAndMoveTest\ClickAndMoveTest.cpp"
>
</File>
<File
RelativePath=".\tests\ClickAndMoveTest\ClickAndMoveTest.h"
RelativePath="..\tests\ClickAndMoveTest\ClickAndMoveTest.h"
>
</File>
</Filter>
@ -335,11 +319,11 @@
Name="RotateWorldTest"
>
<File
RelativePath=".\tests\RotateWorldTest\RotateWorldTest.cpp"
RelativePath="..\tests\RotateWorldTest\RotateWorldTest.cpp"
>
</File>
<File
RelativePath=".\tests\RotateWorldTest\RotateWorldTest.h"
RelativePath="..\tests\RotateWorldTest\RotateWorldTest.h"
>
</File>
</Filter>
@ -347,11 +331,11 @@
Name="ParticleTest"
>
<File
RelativePath=".\tests\ParticleTest\ParticleTest.cpp"
RelativePath="..\tests\ParticleTest\ParticleTest.cpp"
>
</File>
<File
RelativePath=".\tests\ParticleTest\ParticleTest.h"
RelativePath="..\tests\ParticleTest\ParticleTest.h"
>
</File>
</Filter>
@ -359,11 +343,11 @@
Name="EaseActionsTest"
>
<File
RelativePath=".\tests\EaseActionsTest\EaseActionsTest.cpp"
RelativePath="..\tests\EaseActionsTest\EaseActionsTest.cpp"
>
</File>
<File
RelativePath=".\tests\EaseActionsTest\EaseActionsTest.h"
RelativePath="..\tests\EaseActionsTest\EaseActionsTest.h"
>
</File>
</Filter>
@ -371,11 +355,11 @@
Name="MotionStreakTest"
>
<File
RelativePath=".\tests\MotionStreakTest\MotionStreakTest.cpp"
RelativePath="..\tests\MotionStreakTest\MotionStreakTest.cpp"
>
</File>
<File
RelativePath=".\tests\MotionStreakTest\MotionStreakTest.h"
RelativePath="..\tests\MotionStreakTest\MotionStreakTest.h"
>
</File>
</Filter>
@ -383,11 +367,11 @@
Name="DrawPrimitivesTest"
>
<File
RelativePath=".\tests\DrawPrimitivesTest\DrawPrimitivesTest.cpp"
RelativePath="..\tests\DrawPrimitivesTest\DrawPrimitivesTest.cpp"
>
</File>
<File
RelativePath=".\tests\DrawPrimitivesTest\DrawPrimitivesTest.h"
RelativePath="..\tests\DrawPrimitivesTest\DrawPrimitivesTest.h"
>
</File>
</Filter>
@ -395,11 +379,11 @@
Name="CocosNodeTest"
>
<File
RelativePath=".\tests\CocosNodeTest\CocosNodeTest.cpp"
RelativePath="..\tests\CocosNodeTest\CocosNodeTest.cpp"
>
</File>
<File
RelativePath=".\tests\CocosNodeTest\CocosNodeTest.h"
RelativePath="..\tests\CocosNodeTest\CocosNodeTest.h"
>
</File>
</Filter>
@ -407,27 +391,27 @@
Name="TouchesTest"
>
<File
RelativePath=".\tests\TouchesTest\Ball.cpp"
RelativePath="..\tests\TouchesTest\Ball.cpp"
>
</File>
<File
RelativePath=".\tests\TouchesTest\Ball.h"
RelativePath="..\tests\TouchesTest\Ball.h"
>
</File>
<File
RelativePath=".\tests\TouchesTest\Paddle.cpp"
RelativePath="..\tests\TouchesTest\Paddle.cpp"
>
</File>
<File
RelativePath=".\tests\TouchesTest\Paddle.h"
RelativePath="..\tests\TouchesTest\Paddle.h"
>
</File>
<File
RelativePath=".\tests\TouchesTest\TouchesTest.cpp"
RelativePath="..\tests\TouchesTest\TouchesTest.cpp"
>
</File>
<File
RelativePath=".\tests\TouchesTest\TouchesTest.h"
RelativePath="..\tests\TouchesTest\TouchesTest.h"
>
</File>
</Filter>
@ -435,11 +419,11 @@
Name="MenuTest"
>
<File
RelativePath=".\tests\MenuTest\MenuTest.cpp"
RelativePath="..\tests\MenuTest\MenuTest.cpp"
>
</File>
<File
RelativePath=".\tests\MenuTest\MenuTest.h"
RelativePath="..\tests\MenuTest\MenuTest.h"
>
</File>
</Filter>
@ -447,11 +431,11 @@
Name="ActionManagerTest"
>
<File
RelativePath=".\tests\ActionManagerTest\ActionManagerTest.cpp"
RelativePath="..\tests\ActionManagerTest\ActionManagerTest.cpp"
>
</File>
<File
RelativePath=".\tests\ActionManagerTest\ActionManagerTest.h"
RelativePath="..\tests\ActionManagerTest\ActionManagerTest.h"
>
</File>
</Filter>
@ -459,11 +443,11 @@
Name="LayerTest"
>
<File
RelativePath=".\tests\LayerTest\LayerTest.cpp"
RelativePath="..\tests\LayerTest\LayerTest.cpp"
>
</File>
<File
RelativePath=".\tests\LayerTest\LayerTest.h"
RelativePath="..\tests\LayerTest\LayerTest.h"
>
</File>
</Filter>
@ -471,11 +455,11 @@
Name="SceneTest"
>
<File
RelativePath=".\tests\SceneTest\SceneTest.cpp"
RelativePath="..\tests\SceneTest\SceneTest.cpp"
>
</File>
<File
RelativePath=".\tests\SceneTest\SceneTest.h"
RelativePath="..\tests\SceneTest\SceneTest.h"
>
</File>
</Filter>
@ -483,11 +467,11 @@
Name="ParallaxTest"
>
<File
RelativePath=".\tests\ParallaxTest\ParallaxTest.cpp"
RelativePath="..\tests\ParallaxTest\ParallaxTest.cpp"
>
</File>
<File
RelativePath=".\tests\ParallaxTest\ParallaxTest.h"
RelativePath="..\tests\ParallaxTest\ParallaxTest.h"
>
</File>
</Filter>
@ -495,11 +479,11 @@
Name="TileMapTest"
>
<File
RelativePath=".\tests\TileMapTest\TileMapTest.cpp"
RelativePath="..\tests\TileMapTest\TileMapTest.cpp"
>
</File>
<File
RelativePath=".\tests\TileMapTest\TileMapTest.h"
RelativePath="..\tests\TileMapTest\TileMapTest.h"
>
</File>
</Filter>
@ -507,11 +491,11 @@
Name="IntervalTest"
>
<File
RelativePath=".\tests\IntervalTest\IntervalTest.cpp"
RelativePath="..\tests\IntervalTest\IntervalTest.cpp"
>
</File>
<File
RelativePath=".\tests\IntervalTest\IntervalTest.h"
RelativePath="..\tests\IntervalTest\IntervalTest.h"
>
</File>
</Filter>
@ -519,11 +503,11 @@
Name="AtlasTest"
>
<File
RelativePath=".\tests\AtlasTest\AtlasTest.cpp"
RelativePath="..\tests\AtlasTest\AtlasTest.cpp"
>
</File>
<File
RelativePath=".\tests\AtlasTest\AtlasTest.h"
RelativePath="..\tests\AtlasTest\AtlasTest.h"
>
</File>
</Filter>
@ -531,11 +515,11 @@
Name="SpriteTest"
>
<File
RelativePath=".\tests\SpriteTest\SpriteTest.cpp"
RelativePath="..\tests\SpriteTest\SpriteTest.cpp"
>
</File>
<File
RelativePath=".\tests\SpriteTest\SpriteTest.h"
RelativePath="..\tests\SpriteTest\SpriteTest.h"
>
</File>
</Filter>
@ -543,11 +527,11 @@
Name="SchedulerTest"
>
<File
RelativePath=".\tests\SchedulerTest\SchedulerTest.cpp"
RelativePath="..\tests\SchedulerTest\SchedulerTest.cpp"
>
</File>
<File
RelativePath=".\tests\SchedulerTest\SchedulerTest.h"
RelativePath="..\tests\SchedulerTest\SchedulerTest.h"
>
</File>
</Filter>
@ -555,11 +539,11 @@
Name="RenderTextureTest"
>
<File
RelativePath=".\tests\RenderTextureTest\RenderTextureTest.cpp"
RelativePath="..\tests\RenderTextureTest\RenderTextureTest.cpp"
>
</File>
<File
RelativePath=".\tests\RenderTextureTest\RenderTextureTest.h"
RelativePath="..\tests\RenderTextureTest\RenderTextureTest.h"
>
</File>
</Filter>
@ -567,95 +551,95 @@
Name="ChipmunkTest"
>
<File
RelativePath=".\tests\ChipmunkTest\Bounce.cpp"
RelativePath="..\tests\ChipmunkTest\Bounce.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\ChipmunkDemo.h"
RelativePath="..\tests\ChipmunkTest\ChipmunkDemo.h"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\cocos2dChipmunkDemo.cpp"
RelativePath="..\tests\ChipmunkTest\cocos2dChipmunkDemo.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\cocos2dChipmunkDemo.h"
RelativePath="..\tests\ChipmunkTest\cocos2dChipmunkDemo.h"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\drawSpace.cpp"
RelativePath="..\tests\ChipmunkTest\drawSpace.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\drawSpace.h"
RelativePath="..\tests\ChipmunkTest\drawSpace.h"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\Joints.cpp"
RelativePath="..\tests\ChipmunkTest\Joints.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\LogoSmash.cpp"
RelativePath="..\tests\ChipmunkTest\LogoSmash.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\MagnetsElectric.cpp"
RelativePath="..\tests\ChipmunkTest\MagnetsElectric.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\OneWay.cpp"
RelativePath="..\tests\ChipmunkTest\OneWay.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\Planet.cpp"
RelativePath="..\tests\ChipmunkTest\Planet.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\Player.cpp"
RelativePath="..\tests\ChipmunkTest\Player.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\Plink.cpp"
RelativePath="..\tests\ChipmunkTest\Plink.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\Pump.cpp"
RelativePath="..\tests\ChipmunkTest\Pump.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\PyramidStack.cpp"
RelativePath="..\tests\ChipmunkTest\PyramidStack.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\PyramidTopple.cpp"
RelativePath="..\tests\ChipmunkTest\PyramidTopple.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\Query.cpp"
RelativePath="..\tests\ChipmunkTest\Query.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\Sensors.cpp"
RelativePath="..\tests\ChipmunkTest\Sensors.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\Simple.cpp"
RelativePath="..\tests\ChipmunkTest\Simple.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\Springies.cpp"
RelativePath="..\tests\ChipmunkTest\Springies.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\TheoJansen.cpp"
RelativePath="..\tests\ChipmunkTest\TheoJansen.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\Tumble.cpp"
RelativePath="..\tests\ChipmunkTest\Tumble.cpp"
>
</File>
<File
RelativePath=".\tests\ChipmunkTest\UnsafeOps.cpp"
RelativePath="..\tests\ChipmunkTest\UnsafeOps.cpp"
>
</File>
</Filter>
@ -663,11 +647,11 @@
Name="Box2dTest"
>
<File
RelativePath=".\tests\Box2DTest\Box2dTest.cpp"
RelativePath="..\tests\Box2DTest\Box2dTest.cpp"
>
</File>
<File
RelativePath=".\tests\Box2DTest\Box2dTest.h"
RelativePath="..\tests\Box2DTest\Box2dTest.h"
>
</File>
</Filter>
@ -675,182 +659,182 @@
Name="Box2DTestBed"
>
<File
RelativePath=".\tests\Box2DTestBed\Box2dView.cpp"
RelativePath="..\tests\Box2DTestBed\Box2dView.cpp"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Box2dView.h"
RelativePath="..\tests\Box2DTestBed\Box2dView.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\GLES-Render.cpp"
RelativePath="..\tests\Box2DTestBed\GLES-Render.cpp"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\GLES-Render.h"
RelativePath="..\tests\Box2DTestBed\GLES-Render.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Test.cpp"
RelativePath="..\tests\Box2DTestBed\Test.cpp"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Test.h"
RelativePath="..\tests\Box2DTestBed\Test.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\TestEntries.cpp"
RelativePath="..\tests\Box2DTestBed\TestEntries.cpp"
>
</File>
<Filter
Name="Tests"
>
<File
RelativePath=".\tests\Box2DTestBed\Tests\ApplyForce.h"
RelativePath="..\tests\Box2DTestBed\Tests\ApplyForce.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\BodyTypes.h"
RelativePath="..\tests\Box2DTestBed\Tests\BodyTypes.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\Breakable.h"
RelativePath="..\tests\Box2DTestBed\Tests\Breakable.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\Bridge.h"
RelativePath="..\tests\Box2DTestBed\Tests\Bridge.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\Cantilever.h"
RelativePath="..\tests\Box2DTestBed\Tests\Cantilever.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\Chain.h"
RelativePath="..\tests\Box2DTestBed\Tests\Chain.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\CharacterCollision.h"
RelativePath="..\tests\Box2DTestBed\Tests\CharacterCollision.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\CollisionFiltering.h"
RelativePath="..\tests\Box2DTestBed\Tests\CollisionFiltering.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\CollisionProcessing.h"
RelativePath="..\tests\Box2DTestBed\Tests\CollisionProcessing.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\CompoundShapes.h"
RelativePath="..\tests\Box2DTestBed\Tests\CompoundShapes.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\Confined.h"
RelativePath="..\tests\Box2DTestBed\Tests\Confined.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\ContinuousTest.h"
RelativePath="..\tests\Box2DTestBed\Tests\ContinuousTest.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\DistanceTest.h"
RelativePath="..\tests\Box2DTestBed\Tests\DistanceTest.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\Dominos.h"
RelativePath="..\tests\Box2DTestBed\Tests\Dominos.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\DynamicTreeTest.h"
RelativePath="..\tests\Box2DTestBed\Tests\DynamicTreeTest.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\EdgeShapes.h"
RelativePath="..\tests\Box2DTestBed\Tests\EdgeShapes.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\ElasticBody.h"
RelativePath="..\tests\Box2DTestBed\Tests\ElasticBody.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\Gears.h"
RelativePath="..\tests\Box2DTestBed\Tests\Gears.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\LineJoint.h"
RelativePath="..\tests\Box2DTestBed\Tests\LineJoint.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\OneSidedPlatform.h"
RelativePath="..\tests\Box2DTestBed\Tests\OneSidedPlatform.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\PolyCollision.h"
RelativePath="..\tests\Box2DTestBed\Tests\PolyCollision.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\PolyShapes.h"
RelativePath="..\tests\Box2DTestBed\Tests\PolyShapes.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\Prismatic.h"
RelativePath="..\tests\Box2DTestBed\Tests\Prismatic.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\Pulleys.h"
RelativePath="..\tests\Box2DTestBed\Tests\Pulleys.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\Pyramid.h"
RelativePath="..\tests\Box2DTestBed\Tests\Pyramid.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\RayCast.h"
RelativePath="..\tests\Box2DTestBed\Tests\RayCast.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\Revolute.h"
RelativePath="..\tests\Box2DTestBed\Tests\Revolute.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\SensorTest.h"
RelativePath="..\tests\Box2DTestBed\Tests\SensorTest.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\ShapeEditing.h"
RelativePath="..\tests\Box2DTestBed\Tests\ShapeEditing.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\SliderCrank.h"
RelativePath="..\tests\Box2DTestBed\Tests\SliderCrank.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\SphereStack.h"
RelativePath="..\tests\Box2DTestBed\Tests\SphereStack.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\TheoJansen.h"
RelativePath="..\tests\Box2DTestBed\Tests\TheoJansen.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\TimeOfImpact.h"
RelativePath="..\tests\Box2DTestBed\Tests\TimeOfImpact.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\VaryingFriction.h"
RelativePath="..\tests\Box2DTestBed\Tests\VaryingFriction.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\VaryingRestitution.h"
RelativePath="..\tests\Box2DTestBed\Tests\VaryingRestitution.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\VerticalStack.h"
RelativePath="..\tests\Box2DTestBed\Tests\VerticalStack.h"
>
</File>
<File
RelativePath=".\tests\Box2DTestBed\Tests\Web.h"
RelativePath="..\tests\Box2DTestBed\Tests\Web.h"
>
</File>
</Filter>
@ -859,11 +843,11 @@
Name="EffectsAdvancedTest"
>
<File
RelativePath=".\tests\EffectsAdvancedTest\EffectsAdvancedTest.cpp"
RelativePath="..\tests\EffectsAdvancedTest\EffectsAdvancedTest.cpp"
>
</File>
<File
RelativePath=".\tests\EffectsAdvancedTest\EffectsAdvancedTest.h"
RelativePath="..\tests\EffectsAdvancedTest\EffectsAdvancedTest.h"
>
</File>
</Filter>
@ -871,11 +855,11 @@
Name="HiResTest"
>
<File
RelativePath=".\tests\HiResTest\HiResTest.cpp"
RelativePath="..\tests\HiResTest\HiResTest.cpp"
>
</File>
<File
RelativePath=".\tests\HiResTest\HiResTest.h"
RelativePath="..\tests\HiResTest\HiResTest.h"
>
</File>
</Filter>
@ -883,11 +867,11 @@
Name="AccelerometerTest"
>
<File
RelativePath=".\tests\AccelerometerTest\AccelerometerTest.cpp"
RelativePath="..\tests\AccelerometerTest\AccelerometerTest.cpp"
>
</File>
<File
RelativePath=".\tests\AccelerometerTest\AccelerometerTest.h"
RelativePath="..\tests\AccelerometerTest\AccelerometerTest.h"
>
</File>
</Filter>

View File

@ -15,6 +15,7 @@
Attach="false"
DebuggerType="3"
Remote="1"
RemoteMachine="WALZER-NOTEBOOK"
RemoteCommand=""
HttpUrl=""
PDBPath=""
@ -42,6 +43,7 @@
Attach="false"
DebuggerType="3"
Remote="1"
RemoteMachine="WALZER-NOTEBOOK"
RemoteCommand=""
HttpUrl=""
PDBPath=""

View File

@ -0,0 +1,2 @@
echo off
xcopy /E /Y ..\Res\*.* %1

View File

@ -0,0 +1,843 @@
<?xml version="1.0" encoding="gb2312"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="test-win32"
ProjectGUID="{76A39BB2-9B84-4C65-98A5-654D86B86F2A}"
RootNamespace="test_win32"
Keyword="Win32Proj"
TargetFrameworkVersion="196613"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\..\cocos2dx;..\..\cocos2dx\include;..\..\;..\..\chipmunk\include\chipmunk;...\tests;..\..\cocos2dx\platform\win32\third_party\OGLES\"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="4"
DisableSpecificWarnings="4244;4996"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="libcocos2d.lib libgles_cm.lib libBox2d.lib"
OutputFile="$(OutDir)\test.exe"
LinkIncremental="2"
AdditionalLibraryDirectories="&quot;$(OutDir)&quot;"
GenerateDebugInformation="true"
SubSystem="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="copy_res.bat $(OutDir)"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="..\..\cocos2dx;..\..\cocos2dx\include;..\..\;..\..\chipmunk\include\chipmunk;...\tests;..\..\cocos2dx\platform\win32\third_party\OGLES\"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USE_MATH_DEFINES;GL_GLEXT_PROTOTYPES"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
DisableSpecificWarnings="4244;4996"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="libcocos2d.lib libgles_cm.lib libBox2d.lib"
OutputFile="$(OutDir)\test.exe"
LinkIncremental="1"
AdditionalLibraryDirectories="&quot;$(OutDir)&quot;"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="copy_res.bat $(OutDir)"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="framework"
>
<File
RelativePath="..\framework.win32\main.cpp"
>
</File>
<File
RelativePath="..\framework.win32\main.h"
>
</File>
</Filter>
<Filter
Name="source"
>
<File
RelativePath="..\AppDelegate.cpp"
>
</File>
<File
RelativePath="..\AppDelegate.h"
>
</File>
</Filter>
<Filter
Name="tests"
>
<File
RelativePath="..\tests\controller.cpp"
>
</File>
<File
RelativePath="..\tests\controller.h"
>
</File>
<File
RelativePath="..\tests\testBasic.cpp"
>
</File>
<File
RelativePath="..\tests\testBasic.h"
>
</File>
<File
RelativePath="..\tests\testResource.h"
>
</File>
<File
RelativePath="..\tests\tests.h"
>
</File>
<Filter
Name="ActionsTest"
>
<File
RelativePath="..\tests\ActionsTest\ActionsTest.cpp"
>
</File>
<File
RelativePath="..\tests\ActionsTest\ActionsTest.h"
>
</File>
</Filter>
<Filter
Name="TransitionsTest"
>
<File
RelativePath="..\tests\TransitionsTest\TransitionsTest.cpp"
>
</File>
<File
RelativePath="..\tests\TransitionsTest\TransitionsTest.h"
>
</File>
</Filter>
<Filter
Name="ProgressActionsTest"
>
<File
RelativePath="..\tests\ProgressActionsTest\ProgressActionsTest.cpp"
>
</File>
<File
RelativePath="..\tests\ProgressActionsTest\ProgressActionsTest.h"
>
</File>
</Filter>
<Filter
Name="EffectsTest"
>
<File
RelativePath="..\tests\EffectsTest\EffectsTest.cpp"
>
</File>
<File
RelativePath="..\tests\EffectsTest\EffectsTest.h"
>
</File>
</Filter>
<Filter
Name="ClickAndMoveTest"
>
<File
RelativePath="..\tests\ClickAndMoveTest\ClickAndMoveTest.cpp"
>
</File>
<File
RelativePath="..\tests\ClickAndMoveTest\ClickAndMoveTest.h"
>
</File>
</Filter>
<Filter
Name="RotateWorldTest"
>
<File
RelativePath="..\tests\RotateWorldTest\RotateWorldTest.cpp"
>
</File>
<File
RelativePath="..\tests\RotateWorldTest\RotateWorldTest.h"
>
</File>
</Filter>
<Filter
Name="ParticleTest"
>
<File
RelativePath="..\tests\ParticleTest\ParticleTest.cpp"
>
</File>
<File
RelativePath="..\tests\ParticleTest\ParticleTest.h"
>
</File>
</Filter>
<Filter
Name="EaseActionsTest"
>
<File
RelativePath="..\tests\EaseActionsTest\EaseActionsTest.cpp"
>
</File>
<File
RelativePath="..\tests\EaseActionsTest\EaseActionsTest.h"
>
</File>
</Filter>
<Filter
Name="MotionStreakTest"
>
<File
RelativePath="..\tests\MotionStreakTest\MotionStreakTest.cpp"
>
</File>
<File
RelativePath="..\tests\MotionStreakTest\MotionStreakTest.h"
>
</File>
</Filter>
<Filter
Name="DrawPrimitivesTest"
>
<File
RelativePath="..\tests\DrawPrimitivesTest\DrawPrimitivesTest.cpp"
>
</File>
<File
RelativePath="..\tests\DrawPrimitivesTest\DrawPrimitivesTest.h"
>
</File>
</Filter>
<Filter
Name="CocosNodeTest"
>
<File
RelativePath="..\tests\CocosNodeTest\CocosNodeTest.cpp"
>
</File>
<File
RelativePath="..\tests\CocosNodeTest\CocosNodeTest.h"
>
</File>
</Filter>
<Filter
Name="TouchesTest"
>
<File
RelativePath="..\tests\TouchesTest\Ball.cpp"
>
</File>
<File
RelativePath="..\tests\TouchesTest\Ball.h"
>
</File>
<File
RelativePath="..\tests\TouchesTest\Paddle.cpp"
>
</File>
<File
RelativePath="..\tests\TouchesTest\Paddle.h"
>
</File>
<File
RelativePath="..\tests\TouchesTest\TouchesTest.cpp"
>
</File>
<File
RelativePath="..\tests\TouchesTest\TouchesTest.h"
>
</File>
</Filter>
<Filter
Name="MenuTest"
>
<File
RelativePath="..\tests\MenuTest\MenuTest.cpp"
>
</File>
<File
RelativePath="..\tests\MenuTest\MenuTest.h"
>
</File>
</Filter>
<Filter
Name="ActionManagerTest"
>
<File
RelativePath="..\tests\ActionManagerTest\ActionManagerTest.cpp"
>
</File>
<File
RelativePath="..\tests\ActionManagerTest\ActionManagerTest.h"
>
</File>
</Filter>
<Filter
Name="LayerTest"
>
<File
RelativePath="..\tests\LayerTest\LayerTest.cpp"
>
</File>
<File
RelativePath="..\tests\LayerTest\LayerTest.h"
>
</File>
</Filter>
<Filter
Name="SceneTest"
>
<File
RelativePath="..\tests\SceneTest\SceneTest.cpp"
>
</File>
<File
RelativePath="..\tests\SceneTest\SceneTest.h"
>
</File>
</Filter>
<Filter
Name="ParallaxTest"
>
<File
RelativePath="..\tests\ParallaxTest\ParallaxTest.cpp"
>
</File>
<File
RelativePath="..\tests\ParallaxTest\ParallaxTest.h"
>
</File>
</Filter>
<Filter
Name="TileMapTest"
>
<File
RelativePath="..\tests\TileMapTest\TileMapTest.cpp"
>
</File>
<File
RelativePath="..\tests\TileMapTest\TileMapTest.h"
>
</File>
</Filter>
<Filter
Name="IntervalTest"
>
<File
RelativePath="..\tests\IntervalTest\IntervalTest.cpp"
>
</File>
<File
RelativePath="..\tests\IntervalTest\IntervalTest.h"
>
</File>
</Filter>
<Filter
Name="AtlasTest"
>
<File
RelativePath="..\tests\AtlasTest\AtlasTest.cpp"
>
</File>
<File
RelativePath="..\tests\AtlasTest\AtlasTest.h"
>
</File>
</Filter>
<Filter
Name="SpriteTest"
>
<File
RelativePath="..\tests\SpriteTest\SpriteTest.cpp"
>
</File>
<File
RelativePath="..\tests\SpriteTest\SpriteTest.h"
>
</File>
</Filter>
<Filter
Name="SchedulerTest"
>
<File
RelativePath="..\tests\SchedulerTest\SchedulerTest.cpp"
>
</File>
<File
RelativePath="..\tests\SchedulerTest\SchedulerTest.h"
>
</File>
</Filter>
<Filter
Name="RenderTextureTest"
>
<File
RelativePath="..\tests\RenderTextureTest\RenderTextureTest.cpp"
>
</File>
<File
RelativePath="..\tests\RenderTextureTest\RenderTextureTest.h"
>
</File>
</Filter>
<Filter
Name="ChipmunkTest"
>
<File
RelativePath="..\tests\ChipmunkTest\Bounce.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\ChipmunkDemo.h"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\cocos2dChipmunkDemo.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\cocos2dChipmunkDemo.h"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\drawSpace.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\drawSpace.h"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\Joints.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\LogoSmash.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\MagnetsElectric.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\OneWay.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\Planet.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\Player.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\Plink.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\Pump.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\PyramidStack.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\PyramidTopple.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\Query.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\Sensors.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\Simple.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\Springies.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\TheoJansen.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\Tumble.cpp"
>
</File>
<File
RelativePath="..\tests\ChipmunkTest\UnsafeOps.cpp"
>
</File>
</Filter>
<Filter
Name="Box2dTest"
>
<File
RelativePath="..\tests\Box2DTest\Box2dTest.cpp"
>
</File>
<File
RelativePath="..\tests\Box2DTest\Box2dTest.h"
>
</File>
</Filter>
<Filter
Name="Box2DTestBed"
>
<File
RelativePath="..\tests\Box2DTestBed\Box2dView.cpp"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Box2dView.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\GLES-Render.cpp"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\GLES-Render.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Test.cpp"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Test.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\TestEntries.cpp"
>
</File>
<Filter
Name="Tests"
>
<File
RelativePath="..\tests\Box2DTestBed\Tests\ApplyForce.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\BodyTypes.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\Breakable.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\Bridge.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\Cantilever.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\Chain.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\CharacterCollision.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\CollisionFiltering.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\CollisionProcessing.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\CompoundShapes.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\Confined.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\ContinuousTest.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\DistanceTest.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\Dominos.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\DynamicTreeTest.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\EdgeShapes.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\ElasticBody.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\Gears.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\LineJoint.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\OneSidedPlatform.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\PolyCollision.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\PolyShapes.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\Prismatic.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\Pulleys.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\Pyramid.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\RayCast.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\Revolute.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\SensorTest.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\ShapeEditing.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\SliderCrank.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\SphereStack.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\TheoJansen.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\TimeOfImpact.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\VaryingFriction.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\VaryingRestitution.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\VerticalStack.h"
>
</File>
<File
RelativePath="..\tests\Box2DTestBed\Tests\Web.h"
>
</File>
</Filter>
</Filter>
<Filter
Name="EffectsAdvancedTest"
>
<File
RelativePath="..\tests\EffectsAdvancedTest\EffectsAdvancedTest.cpp"
>
</File>
<File
RelativePath="..\tests\EffectsAdvancedTest\EffectsAdvancedTest.h"
>
</File>
</Filter>
<Filter
Name="HiResTest"
>
<File
RelativePath="..\tests\HiResTest\HiResTest.cpp"
>
</File>
<File
RelativePath="..\tests\HiResTest\HiResTest.h"
>
</File>
</Filter>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View File

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="gb2312"?>
<VisualStudioUserFile
ProjectType="Visual C++"
Version="9.00"
ShowAllFiles="false"
>
<Configurations>
<Configuration
Name="Debug|Win32"
>
<DebugSettings
Command="$(TargetPath)"
WorkingDirectory=""
CommandArguments=""
Attach="false"
DebuggerType="3"
Remote="1"
RemoteMachine="WALZER-NOTEBOOK"
RemoteCommand=""
HttpUrl=""
PDBPath=""
SQLDebugging=""
Environment=""
EnvironmentMerge="true"
DebuggerFlavor=""
MPIRunCommand=""
MPIRunArguments=""
MPIRunWorkingDirectory=""
ApplicationCommand=""
ApplicationArguments=""
ShimCommand=""
MPIAcceptMode=""
MPIAcceptFilter=""
/>
</Configuration>
<Configuration
Name="Release|Win32"
>
<DebugSettings
Command="$(TargetPath)"
WorkingDirectory=""
CommandArguments=""
Attach="false"
DebuggerType="3"
Remote="1"
RemoteMachine="WALZER-NOTEBOOK"
RemoteCommand=""
HttpUrl=""
PDBPath=""
SQLDebugging=""
Environment=""
EnvironmentMerge="true"
DebuggerFlavor=""
MPIRunCommand=""
MPIRunArguments=""
MPIRunWorkingDirectory=""
ApplicationCommand=""
ApplicationArguments=""
ShimCommand=""
MPIAcceptMode=""
MPIAcceptFilter=""
/>
</Configuration>
</Configurations>
</VisualStudioUserFile>

View File

@ -1,97 +0,0 @@
// Application application cpp file.
// Original file name: test_uphoneApp.cpp
// Generated by TOPS Builder:Project wizard,Date:2010-7-26
#include "test_uphoneApp.h"
#include "test_uphoneMainForm.h"
#include "tests/controller.h"
// #include "CCDirector.h"
// #include "CCScene.h"
// #include "CCSprite.h"
// #include "tests/controller.h"
// #include "CCTextureCache.h"
using namespace cocos2d;
static void TimerCallback1(Int32 nTimerId, UInt32 uUserData);
Ttest_uphoneApp::Ttest_uphoneApp()
: m_pMainWnd(NULL)
, m_nTimer(0)
{
}
Ttest_uphoneApp::~Ttest_uphoneApp()
{
}
bool Ttest_uphoneApp::applicationDidFinishLaunching()
{
// init the window
if (! (m_pMainWnd = new TMainForm(this)) )
{
return false;
}
// init director
CCDirector * pDirector = CCDirector::sharedDirector();
pDirector->setOpenGLView(m_pMainWnd);
pDirector->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft);
/*pDirector->setDeviceOrientation(kCCDeviceOrientationPortrait);*/
pDirector->setDisplayFPS(true);
// set the resource path
CCFileUtils::setResourcePath("/NEWPLUS/TDA_DATA/Data/cocos2d_tests/");
// load background image texture and get window size
CCTexture2D * pTexture = CCTextureCache::sharedTextureCache()->addImage("Images/HelloWorld.png");
CGSize size = CCDirector::sharedDirector()->getWinSize();
// create sprite instance
CCSprite * pSprite = new CCSprite();
pSprite->initWithTexture(pTexture);
pSprite->setPosition(CGPoint(size.width / 2, size.height / 2));
pSprite->autorelease();
// create layer instance
CCLayer * pLayer = new CCLayer();
pLayer->addChild(pSprite);
pLayer->autorelease();
// add layer to scene
CCScene * pScene = CCScene::node();
pScene->addChild(pLayer);
// add scene to director
CCDirector::sharedDirector()->runWithScene(pScene);
m_nTimer = TIMER_Create(3000, TIMER_MODE_NORMAL, TimerCallback1, 0, 0);
TIMER_Start(m_nTimer, 0);
return true;
}
void Ttest_uphoneApp::applicationDidEnterBackground()
{
CCDirector::sharedDirector()->stopAnimation();
}
void Ttest_uphoneApp::applicationWillEnterForeground()
{
CCDirector::sharedDirector()->startAnimation();
}
static void TimerCallback1(Int32 nTimerId, UInt32 uUserData)
{
CCScene * pScene = CCScene::node();
CCLayer * pLayer = new TestController();
pLayer->autorelease();
pScene->addChild(pLayer);
CCDirector::sharedDirector()->replaceScene(pScene);
}

View File

@ -1,31 +0,0 @@
// Application application header file.
// Original file name: test_uphoneApp.h
// Generated by TOPS Builder:Project wizard,Date:2010-7-26
#ifndef __test_uphone_App_H__
#define __test_uphone_App_H__
#include "cocos2d.h"
class Ttest_uphoneApp : public cocos2d::CCXApplication
{
public:
Ttest_uphoneApp();
~Ttest_uphoneApp();
virtual bool applicationDidFinishLaunching();
virtual void applicationDidEnterBackground();
virtual void applicationWillEnterForeground();
protected:
cocos2d::CCXEGLView * m_pMainWnd;
private:
Int32 m_nTimer;
};
#endif

View File

@ -1,28 +0,0 @@
// Application main file.
// Original file name: test_uphoneEntry.cpp
// Generated by TOPS Builder:Project wizard,Date:2010-7-26
#include "TG3.h"
#include "test_uphoneApp.h"
Int32 TG3AppMain(const TUChar * pAppID, UInt32 nCmd, void * pCmdParam)
{
switch(nCmd)
{
case 0: // 主入口
{
// UI应用程序例子
Ttest_uphoneApp * pApp= new Ttest_uphoneApp();
pApp->Run();
delete pApp;
break;
}
}
return 1;
}

View File

@ -1,65 +0,0 @@
// Application main form file.
// Original file name: test_uphoneMainForm.cpp
// Generated by TOPS Builder:Project wizard,Date:2010-7-26
#include "test_uphoneMainForm.h"
#include "TG3.h"
#include "ssMsgQueue.h"
#include "CCTouchDelegateProtocol.h"
using namespace cocos2d;
TMainForm::TMainForm(TApplication * pApp)
: CCXEGLView(pApp)
{
TRectangle rcWnd(0, 0, pApp->GetScreenWidth(), pApp->GetScreenHeight());
Create(&rcWnd);
}
TMainForm::~TMainForm()
{
}
Boolean TMainForm::EventHandler(TApplication * pApp, EventType * pEvent)
{
Boolean bHandled = FALSE;
switch(pEvent->eType)
{
case EVENT_WinInit:
{
// do some thing
bHandled = TRUE;
}
break;
case EVENT_CtrlSelect:
{
//switch(pEvent->sParam1)
//{
//case RES_SYSTEM_WINDOW_TITLE_BUTTON_ID:
// bHandled = TRUE;
// break;
//}
}
break;
case EVENT_WinClose:
{
// Stop the application since the main form has been closed
pApp->SendStopEvent();
bHandled = TRUE;
}
break;
}
if (FALSE == bHandled)
{
return CCXEGLView::EventHandler(pApp,pEvent);
}
return bHandled;
}

View File

@ -1,28 +0,0 @@
// Application main form file.
// Original file name: test_uphoneMainForm.h
// Generated by TOPS Builder:Project wizard,Date:2010-7-26
#ifndef __test_uphone_MainForm_H__
#define __test_uphone_MainForm_H__
#include "CCXEGLView.h"
class TMainForm : public cocos2d::CCXEGLView
{
public:
TMainForm(TApplication * pApp);
~TMainForm(void);
public:
virtual Boolean EventHandler(TApplication * pApp, EventType * pEvent);
protected:
};
#endif

View File

@ -1,10 +0,0 @@
mkdir D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\Images
mkdir D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\TileMaps
mkdir D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\fonts
mkdir D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\animations
mkdir D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\Images\bugs
copy .\Res\Images\*.* D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\Images
copy .\Res\Images\bugs\*.* D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\Images\bugs
copy .\Res\TileMaps\*.* D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\TileMaps
copy .\Res\fonts\*.* D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\fonts
copy .\Res\animations\*.* D:\Work7\NEWPLUS\TDA_DATA\Data\cocos2d_tests\animations

View File

@ -0,0 +1,52 @@
#include "AppDelegate.h"
#include "tests/controller.h"
using namespace cocos2d;
AppDelegate::AppDelegate()
:m_pMainWnd(NULL)
{
}
AppDelegate::~AppDelegate()
{
CCX_SAFE_DELETE(m_pMainWnd);
}
bool AppDelegate::applicationDidFinishLaunching()
{
// create window
if (!(m_pMainWnd = new CCXEGLView() ||
! m_pMainWnd->Create(L"Cocos2dx-win32", 320, 480) )
{
CCX_SAFE_DELETE(m_pMainWnd);
return false;
}
// init director
CCDirector * pDirector = CCDirector::sharedDirector();
pDirector->setOpenGLView(m_pMainWnd);
pDirector->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft);
// pDirector->setDeviceOrientation(kCCDeviceOrientationPortrait);
pDirector->setDisplayFPS(true);
CCScene * pScene = CCScene::node();
CCLayer * pLayer = new TestController();
pLayer->autorelease();
pScene->addChild(pLayer);
pDirector->runWithScene(pScene);
return true;
}
void AppDelegate::applicationDidEnterBackground()
{
CCDirector::sharedDirector()->stopAnimation();
}
void AppDelegate::applicationWillEnterForeground()
{
CCDirector::sharedDirector()->startAnimation();
}

19
test_win32/AppDelegate.h Normal file
View File

@ -0,0 +1,19 @@
#ifndef __APP_DELEGATE_H__
#define __APP_DELEGATE_H__
#include "cocos2d.h"
class AppDelegate : public cocos2d::CCXApplication
{
public:
AppDelegate();
~AppDelegate();
virtual bool applicationDidFinishLaunching();
virtual void applicationDidEnterBackground();
virtual void applicationWillEnterForeground();
protected:
cocos2d::CCXEGLView *m_pMainWnd;
};
#endif // __APP_DELEGATE_H__

View File

@ -1,43 +0,0 @@
#include "TestApplication.h"
#include "main.h"
#include "tests/controller.h"
using namespace cocos2d;
//////////////////////////////////////////////////////////////////////////
// implement TestApplication
//////////////////////////////////////////////////////////////////////////
bool TestApplication::InitInstance()
{
return m_MainForm.Create(L"Cocos2dx-Win32", 320, 480);
}
bool TestApplication::initCocos2d()
{
// init director
CCDirector * pDirector = CCDirector::sharedDirector();
pDirector->setOpenGLView(&m_MainForm);
pDirector->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft);
pDirector->setDisplayFPS(true);
CCScene * pScene = CCScene::node();
CCLayer * pLayer = new TestController();
pLayer->autorelease();
pScene->addChild(pLayer);
pDirector->runWithScene(pScene);
return true;
}
void TestApplication::applicationDidEnterBackground()
{
CCDirector::sharedDirector()->stopAnimation();
}
void TestApplication::applicationWillEnterForeground()
{
CCDirector::sharedDirector()->startAnimation();
}

View File

@ -1,19 +0,0 @@
#ifndef __TEST_APPLICATION_H__
#define __TEST_APPLICATION_H__
#include "cocos2d.h"
class TestApplication : public cocos2d::CCXApplication
{
public:
virtual bool initCocos2d();
virtual bool InitInstance();
virtual void applicationDidEnterBackground();
virtual void applicationWillEnterForeground();
protected:
cocos2d::CCXEGLView m_MainForm;
};
#endif // __TEST_APPLICATION_H__

View File

@ -1,5 +1,5 @@
#include "main.h"
#include "TestApplication.h"
#include "AppDelegate.h"
HINSTANCE g_hInstance;
@ -14,18 +14,8 @@ int APIENTRY _tWinMain(HINSTANCE hInstance,
g_hInstance = hInstance;
int nRet = 0;
TestApplication app;
do
{
if (! app.InitInstance())
{
break;
}
if (! app.initCocos2d())
{
break;
}
nRet = app.Run();
} while (0);
AppDelegate app;
nRet = app.Run();
return nRet;
}

View File

View File

@ -181,11 +181,11 @@
Name="include"
>
<File
RelativePath=".\main.h"
RelativePath=".\AppDelegate.h"
>
</File>
<File
RelativePath=".\TestApplication.h"
RelativePath=".\main.h"
>
</File>
</Filter>
@ -193,11 +193,11 @@
Name="source"
>
<File
RelativePath=".\main.cpp"
RelativePath=".\AppDelegate.cpp"
>
</File>
<File
RelativePath=".\TestApplication.cpp"
RelativePath=".\main.cpp"
>
</File>
</Filter>