modify enum to static int

This commit is contained in:
yangxiao 2015-03-19 18:10:16 +08:00
parent 0106c1184e
commit 6c6fffc847
1 changed files with 7 additions and 14 deletions

View File

@ -1,20 +1,13 @@
#include "PerformanceParticle3DTest.h" #include "PerformanceParticle3DTest.h"
#include "Particle3D/PU/CCPUParticleSystem3D.h" #include "Particle3D/PU/CCPUParticleSystem3D.h"
static int kTagInfoLayer = 1;
static int kTagMenuLayer = 1000;
static int kTagParticleSystem = 1001;
static int test_Count = 2;
enum { static int kMaxParticles = 14000;
kTagInfoLayer = 1, static int kNodesIncrease = 1;
kTagMainLayer = 2,
kTagLabelAtlas = 3,
kTagMenuLayer = 1000,
kTagParticleSystem = 1001,
TEST_COUNT = 2,
};
enum {
kMaxParticles = 14000,
kNodesIncrease = 1,
};
static int s_parCurIdx = 0; static int s_parCurIdx = 0;
@ -100,7 +93,7 @@ void Particle3DMainScene::initWithSubTest(int asubtest, int particles)
addChild(infoLabel, 1, kTagInfoLayer); addChild(infoLabel, 1, kTagInfoLayer);
// Next Prev Test // Next Prev Test
auto menuLayer = new (std::nothrow) Particle3DMenuLayer(true, TEST_COUNT, s_parCurIdx); auto menuLayer = new (std::nothrow) Particle3DMenuLayer(true, test_Count, s_parCurIdx);
addChild(menuLayer, 1, kTagMenuLayer); addChild(menuLayer, 1, kTagMenuLayer);
menuLayer->release(); menuLayer->release();