axmol/tests/Classes/ShaderTest/ShaderTest2.h

97 lines
2.1 KiB
C
Raw Normal View History

2013-09-09 17:49:13 +08:00
#ifndef _SHADER_TEST2_H_
#define _SHADER_TEST2_H_
#include "../testBasic.h"
#include "extensions/cocos-ext.h"
2013-09-09 17:49:13 +08:00
#include "../BaseTest.h"
USING_NS_CC_EXT;
class ShaderTestDemo2 : public BaseTest
{
public:
ShaderTestDemo2(void);
virtual std::string title() const { return "Shader Sprite!";}
void restartCallback(Ref* sender);
void nextCallback(Ref* sender);
void backCallback(Ref* sender);
2013-09-09 17:49:13 +08:00
};
class ShaderTestScene2 : public TestScene
{
public:
2013-11-14 09:36:33 +08:00
CREATE_FUNC(ShaderTestScene2);
2013-09-09 17:49:13 +08:00
virtual void runThisTest();
};
class NormalSpriteTest : public ShaderTestDemo2
{
public:
2013-11-14 09:36:33 +08:00
CREATE_FUNC(NormalSpriteTest);
2013-09-09 17:49:13 +08:00
NormalSpriteTest();
virtual std::string subtitle() const {return "NormalSpriteTest";}
2013-09-09 17:49:13 +08:00
};
class GreyScaleSpriteTest : public ShaderTestDemo2
{
public:
2013-11-14 09:36:33 +08:00
CREATE_FUNC(GreyScaleSpriteTest);
2013-09-09 17:49:13 +08:00
GreyScaleSpriteTest();
virtual std::string subtitle() const {return "GreyScaleSpriteTest";}
2013-09-09 17:49:13 +08:00
};
class BlurSpriteTest : public ShaderTestDemo2
{
public:
2013-11-14 09:36:33 +08:00
CREATE_FUNC(BlurSpriteTest);
2013-09-09 17:49:13 +08:00
BlurSpriteTest();
virtual std::string subtitle() const {return "BlurSpriteTest";}
2013-09-09 17:49:13 +08:00
};
class NoiseSpriteTest : public ShaderTestDemo2
{
public:
2013-11-14 09:36:33 +08:00
CREATE_FUNC(NoiseSpriteTest);
2013-09-09 17:49:13 +08:00
NoiseSpriteTest();
virtual std::string subtitle() const {return "NoiseSpriteTest";}
2013-09-09 17:49:13 +08:00
};
class EdgeDetectionSpriteTest : public ShaderTestDemo2
{
public:
2013-11-14 09:36:33 +08:00
CREATE_FUNC(EdgeDetectionSpriteTest);
2013-09-09 17:49:13 +08:00
EdgeDetectionSpriteTest();
virtual std::string subtitle() const {return "EdgeDetectionSpriteTest";}
2013-09-09 17:49:13 +08:00
};
class BloomSpriteTest : public ShaderTestDemo2
{
public:
2013-11-14 09:36:33 +08:00
CREATE_FUNC(BloomSpriteTest);
2013-09-09 17:49:13 +08:00
BloomSpriteTest();
virtual std::string subtitle() const {return "BloomSpriteTest";}
2013-09-09 17:49:13 +08:00
};
class LensFlareSpriteTest : public ShaderTestDemo2
{
public:
2013-11-14 09:36:33 +08:00
CREATE_FUNC(LensFlareSpriteTest);
LensFlareSpriteTest();
virtual std::string subtitle() const {return "LensFlareSpriteTest";}
};
2013-09-09 17:49:13 +08:00
class CelShadingSpriteTest : public ShaderTestDemo2
{
public:
2013-11-14 09:36:33 +08:00
CREATE_FUNC(CelShadingSpriteTest);
2013-09-09 17:49:13 +08:00
CelShadingSpriteTest();
virtual std::string subtitle() const {return "CelShadingSpriteTest";}
2013-09-09 17:49:13 +08:00
};
#endif