mirror of https://github.com/axmolengine/axmol.git
remove unused shadertest
This commit is contained in:
parent
f9cb7a6d0f
commit
cb3bd52d9a
|
@ -32,7 +32,6 @@ namespace ShaderTest2
|
|||
{
|
||||
static std::function<Layer*()> createFunctions[] =
|
||||
{
|
||||
CL(AttribShaderTest),
|
||||
CL(NormalSpriteTest),
|
||||
CL(GreyScaleSpriteTest),
|
||||
CL(BlurSpriteTest),
|
||||
|
@ -42,10 +41,6 @@ namespace ShaderTest2
|
|||
CL(CelShadingSpriteTest),
|
||||
CL(LensFlareSpriteTest),
|
||||
CL(OutlineShadingSpriteTest),
|
||||
CL(UniformShaderTest),
|
||||
|
||||
CL(UniformAttribShaderTest)
|
||||
|
||||
};
|
||||
|
||||
static unsigned int TEST_CASE_COUNT = sizeof(ShaderTest2::createFunctions) / sizeof(ShaderTest2::createFunctions[0]);
|
||||
|
@ -698,21 +693,6 @@ void UniformSprite::onDraw(const Matrix &transform, bool transformUpdated)
|
|||
CHECK_GL_ERROR_DEBUG();
|
||||
}
|
||||
|
||||
|
||||
UniformShaderTest::UniformShaderTest()
|
||||
{
|
||||
if (ShaderTestDemo2::init()) {
|
||||
auto s = Director::getInstance()->getWinSize();
|
||||
UniformSprite* sprite = UniformSprite::create();
|
||||
setContentSize(Size(256, 256));
|
||||
setAnchorPoint(Vector2(0.5f, 0.5f));
|
||||
sprite->initShader();
|
||||
sprite->setPosition(64,64);
|
||||
addChild(sprite);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class AttribSprite : public Sprite
|
||||
{
|
||||
public:
|
||||
|
@ -793,22 +773,3 @@ void AttribSprite::onDraw(const Matrix &transform, bool transformUpdated)
|
|||
|
||||
CHECK_GL_ERROR_DEBUG();
|
||||
}
|
||||
|
||||
AttribShaderTest::AttribShaderTest()
|
||||
{
|
||||
if (ShaderTestDemo2::init())
|
||||
{
|
||||
auto s = Director::getInstance()->getWinSize();
|
||||
AttribSprite* sprite = AttribSprite::create();
|
||||
sprite->setTexture("Images/powered.png");
|
||||
sprite->initShader();
|
||||
sprite->setPosition(Vector2(s.width/2, s.height/2));
|
||||
addChild(sprite);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
UniformAttribShaderTest::UniformAttribShaderTest()
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -102,28 +102,5 @@ public:
|
|||
virtual std::string subtitle() const {return "OutlineShadingSpriteTest";}
|
||||
};
|
||||
|
||||
class UniformShaderTest : public ShaderTestDemo2
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UniformShaderTest);
|
||||
UniformShaderTest();
|
||||
virtual std::string subtitle() const {return "UniformShaderTest";}
|
||||
};
|
||||
|
||||
class AttribShaderTest : public ShaderTestDemo2
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(AttribShaderTest);
|
||||
AttribShaderTest();
|
||||
virtual std::string subtitle() const {return "AttribShaderTest";}
|
||||
};
|
||||
|
||||
class UniformAttribShaderTest : public ShaderTestDemo2
|
||||
{
|
||||
public:
|
||||
CREATE_FUNC(UniformAttribShaderTest);
|
||||
UniformAttribShaderTest();
|
||||
virtual std::string subtitle() const {return "UniformAndShaderTest";}
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue