issue #176 add test code in test_win32, which same with test_uphone .

This commit is contained in:
yangws 2010-10-12 09:15:44 +00:00
parent 6f3d9f0b17
commit 040f68160a
17 changed files with 758 additions and 29 deletions

View File

@ -4,6 +4,7 @@
Version="9.00"
Name="Box2D-win32"
ProjectGUID="{929480E7-23C0-4DF6-8456-096D71547116}"
RootNamespace="Box2D-win32"
Keyword="Win32Proj"
TargetFrameworkVersion="0"
>
@ -61,6 +62,7 @@
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\libBox2D.lib"
/>
<Tool
Name="VCALinkTool"
@ -121,6 +123,7 @@
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\libBox2D.lib"
/>
<Tool
Name="VCALinkTool"

View File

@ -4,7 +4,6 @@
#include "stdafx.h"
#include "Helloworld-win32.h"
#include "cocos2d.h"
using namespace cocos2d;
#define IMG_PATH "HelloWorld.png"

View File

@ -1,7 +1,6 @@
#pragma once
#include "CCXApplication.h"
#include "CCXEGLView.h"
#include "cocos2d.h"
class HelloWorldApplication : public cocos2d::CCXApplication
{

View File

@ -61,6 +61,7 @@
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\HelloWorld.exe"
LinkIncremental="2"
AdditionalLibraryDirectories=""
GenerateDebugInformation="true"
@ -136,6 +137,7 @@
/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)\HelloWorld.exe"
LinkIncremental="1"
AdditionalLibraryDirectories=""
GenerateDebugInformation="true"

View File

@ -64,6 +64,7 @@
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\libchipmunk.lib"
/>
<Tool
Name="VCALinkTool"
@ -127,6 +128,7 @@
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)\libchipmunk.lib"
/>
<Tool
Name="VCALinkTool"

View File

@ -13,6 +13,11 @@ 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
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -30,7 +30,8 @@ using namespace std;
namespace cocos2d {
// singleton stuff
static CCConfiguration *g_pSharedConfiguration;
static bool g_bInited;
static CCConfiguration g_SharedConfiguration;
static char *g_pGlExtensions;
CCConfiguration::CCConfiguration(void)
@ -79,13 +80,12 @@ bool CCConfiguration::init(void)
CCConfiguration* CCConfiguration::sharedConfiguration(void)
{
if (! g_pSharedConfiguration)
if (! g_bInited)
{
g_pSharedConfiguration = new CCConfiguration();
g_pSharedConfiguration->init();
g_SharedConfiguration.init();
}
return g_pSharedConfiguration;
return &g_SharedConfiguration;
}
bool CCConfiguration::checkForGLExtension(const string &searchName)

View File

@ -159,10 +159,6 @@ CCDirector::~CCDirector(void)
CCX_SAFE_RELEASE(m_pRunningScene);
CCX_SAFE_RELEASE(m_pobScenesStack);
// delete configuration pointer
CCConfiguration *conf = CCConfiguration::sharedConfiguration();
CCX_SAFE_RELEASE(conf);
// pop the autorelease pool
NSPoolManager::getInstance()->pop();

View File

@ -64,12 +64,14 @@
<Tool
Name="VCLinkerTool"
AdditionalDependencies="libEGL.lib libgles_cm.lib libxml2.lib zlib.lib libpng14-imp.lib libjpeg.lib"
OutputFile="$(OutDir)\libcocos2d.dll"
LinkIncremental="2"
AdditionalLibraryDirectories=".\platform\win32\third_party\OGLES\WindowsPC\Lib;d:/Work7/PRJ_TG3/LIB/Win32Lib;D:\Work7\PRJ_TG3\Common\SoftSupport"
IgnoreAllDefaultLibraries="false"
IgnoreDefaultLibraryNames="MSVCRT.lib;LIBCMTD.lib"
GenerateDebugInformation="true"
SubSystem="2"
ImportLibrary="$(TargetDir)libcocos2d.lib"
TargetMachine="1"
/>
<Tool
@ -140,12 +142,14 @@
<Tool
Name="VCLinkerTool"
AdditionalDependencies="libEGL.lib libgles_cm.lib libxml2.lib zlib.lib libpng14-imp.lib libjpeg.lib"
OutputFile="$(OutDir)\libcocos2d.dll"
LinkIncremental="2"
AdditionalLibraryDirectories=".\platform\win32\third_party\OGLES\WindowsPC\Lib;d:/Work7/PRJ_TG3/LIB/Win32Lib;D:\Work7\PRJ_TG3\Common\SoftSupport"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(TargetDir)libcocos2d.lib"
TargetMachine="1"
/>
<Tool

13
output.bat Normal file
View File

@ -0,0 +1,13 @@
@echo off
REM export source code from dir %1 to dir %2
IF NOT DEFINED OUTPUT_BY_SVN GOTO AFTER_OUTPUT_BY_SVN
svn export -r BASE --force %1 %2
GOTO FILE_RETURN
:AFTER_OUTPUT_BY_SVN
IF NOT EXIST %2 MD %2
COPY /Y %1\*.* %2
:FILE_RETURN

View File

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

View File

@ -0,0 +1,19 @@
#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__

4
test_win32/copy_res.bat Normal file
View File

@ -0,0 +1,4 @@
echo off
set OUTPUT_BY_SVN=1
set TOOLSDIR=..
call %TOOLSDIR%\output.bat %CD%\Res %1

View File

@ -41,13 +41,15 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
AdditionalIncludeDirectories="..\cocos2dx;..\cocos2dx\include;..\;..\chipmunk\include\chipmunk;.\tests;..\cocos2dx\platform\win32\third_party\OGLES\Include"
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"
@ -60,7 +62,10 @@
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="libcocos2d.lib libEGL.lib libgles_cm.lib libBox2d.lib"
OutputFile="$(OutDir)\test.exe"
LinkIncremental="2"
AdditionalLibraryDirectories="$(OutDir)"
GenerateDebugInformation="true"
SubSystem="2"
TargetMachine="1"
@ -85,6 +90,7 @@
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="copy_res.bat $(OutDir)"
/>
</Configuration>
<Configuration
@ -114,12 +120,14 @@
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
AdditionalIncludeDirectories="..\cocos2dx;..\cocos2dx\include;..\;..\chipmunk\include\chipmunk;.\tests;..\cocos2dx\platform\win32\third_party\OGLES\Include"
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"
@ -132,7 +140,10 @@
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="libcocos2d.lib libEGL.lib libgles_cm.lib libBox2d.lib"
OutputFile="$(OutDir)\test.exe"
LinkIncremental="1"
AdditionalLibraryDirectories="$(OutDir)"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
@ -159,6 +170,7 @@
/>
<Tool
Name="VCPostBuildEventTool"
CommandLine="copy_res.bat $(OutDir)"
/>
</Configuration>
</Configurations>
@ -169,11 +181,7 @@
Name="include"
>
<File
RelativePath=".\application.h"
>
</File>
<File
RelativePath=".\mainform.h"
RelativePath=".\TestApplication.h"
>
</File>
<File
@ -185,11 +193,7 @@
Name="src"
>
<File
RelativePath=".\application.cpp"
>
</File>
<File
RelativePath=".\mainform.cpp"
RelativePath=".\TestApplication.cpp"
>
</File>
<File
@ -197,6 +201,642 @@
>
</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>

View File

@ -1,4 +1,5 @@
#include "winmain.h"
#include "TestApplication.h"
HINSTANCE g_hInstance;
@ -13,10 +14,10 @@ int APIENTRY _tWinMain(HINSTANCE hInstance,
g_hInstance = hInstance;
int nRet = 0;
// HelloWorldApplication app;
// if (app.InitInstance() && app.initCocos2d())
// {
// nRet = app.Run();
// }
TestApplication app;
if (app.InitInstance() && app.initCocos2d())
{
nRet = app.Run();
}
return nRet;
}