mirror of https://github.com/axmolengine/axmol.git
64 lines
1.3 KiB
C++
64 lines
1.3 KiB
C++
#ifndef __PERFORMANCE_PARTICLE_TEST_H__
|
|
#define __PERFORMANCE_PARTICLE_TEST_H__
|
|
|
|
#include "PerformanceTest.h"
|
|
|
|
class ParticleMenuLayer : public PerformBasicLayer
|
|
{
|
|
public:
|
|
ParticleMenuLayer(bool bControlMenuVisible, int nMaxCases = 0, int nCurCase = 0);
|
|
virtual void showCurrentTest();
|
|
};
|
|
|
|
class ParticleMainScene : public Scene
|
|
{
|
|
public:
|
|
virtual void initWithSubTest(int subtest, int particles);
|
|
virtual std::string title();
|
|
|
|
void step(float dt);
|
|
void createParticleSystem();
|
|
void testNCallback(Object* pSender);
|
|
void updateQuantityLabel();
|
|
int getSubTestNum() { return subtestNumber; }
|
|
int getParticlesNum() { return quantityParticles; }
|
|
virtual void doTest() = 0;
|
|
|
|
protected:
|
|
int lastRenderedCount;
|
|
int quantityParticles;
|
|
int subtestNumber;
|
|
};
|
|
|
|
class ParticlePerformTest1 : public ParticleMainScene
|
|
{
|
|
public:
|
|
virtual std::string title();
|
|
virtual void doTest();
|
|
};
|
|
|
|
class ParticlePerformTest2 : public ParticleMainScene
|
|
{
|
|
public:
|
|
virtual std::string title();
|
|
virtual void doTest();
|
|
};
|
|
|
|
class ParticlePerformTest3 : public ParticleMainScene
|
|
{
|
|
public:
|
|
virtual std::string title();
|
|
virtual void doTest();
|
|
};
|
|
|
|
class ParticlePerformTest4 : public ParticleMainScene
|
|
{
|
|
public:
|
|
virtual std::string title();
|
|
virtual void doTest();
|
|
};
|
|
|
|
void runParticleTest();
|
|
|
|
#endif
|