axmol/samples/Cpp/TestCpp/Classes/ShaderTest/ShaderTest2.h

86 lines
1.8 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() { return "Shader Sprite!";}
2013-09-09 17:49:13 +08:00
void restartCallback(Object* sender);
void nextCallback(Object* sender);
void backCallback(Object* sender);
CREATE_FUNC(ShaderTestDemo2);
};
class ShaderTestScene2 : public TestScene
{
public:
virtual void runThisTest();
};
class NormalSpriteTest : public ShaderTestDemo2
{
public:
NormalSpriteTest();
virtual std::string subtitle() {return "NormalSpriteTest";}
};
class GreyScaleSpriteTest : public ShaderTestDemo2
{
public:
GreyScaleSpriteTest();
virtual std::string subtitle() {return "GreyScaleSpriteTest";}
};
class BlurSpriteTest : public ShaderTestDemo2
{
public:
BlurSpriteTest();
virtual std::string subtitle() {return "BlurSpriteTest";}
};
class NoiseSpriteTest : public ShaderTestDemo2
{
public:
NoiseSpriteTest();
virtual std::string subtitle() {return "NoiseSpriteTest";}
};
class EdgeDetectionSpriteTest : public ShaderTestDemo2
{
public:
EdgeDetectionSpriteTest();
virtual std::string subtitle() {return "EdgeDetectionSpriteTest";}
};
class BloomSpriteTest : public ShaderTestDemo2
{
public:
BloomSpriteTest();
virtual std::string subtitle() {return "BloomSpriteTest";}
};
class LensFlareSpriteTest : public ShaderTestDemo2
{
public:
LensFlareSpriteTest();
virtual std::string subtitle() {return "LensFlareSpriteTest";}
};
2013-09-09 17:49:13 +08:00
class CelShadingSpriteTest : public ShaderTestDemo2
{
public:
CelShadingSpriteTest();
virtual std::string subtitle() {return "CelShadingSpriteTest";}
};
#endif