2012-04-19 14:35:52 +08:00
|
|
|
#ifndef _SPRITE_TEST_H_
|
|
|
|
#define _SPRITE_TEST_H_
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "../testBasic.h"
|
2013-06-07 08:12:28 +08:00
|
|
|
#include "../BaseTest.h"
|
2012-04-19 14:35:52 +08:00
|
|
|
#include <string>
|
|
|
|
|
2013-06-07 08:12:28 +08:00
|
|
|
class SpriteTestDemo : public BaseTest
|
2012-04-19 14:35:52 +08:00
|
|
|
{
|
|
|
|
protected:
|
2013-06-15 14:03:30 +08:00
|
|
|
std::string _title;
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
SpriteTestDemo(void);
|
|
|
|
~SpriteTestDemo(void);
|
|
|
|
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
virtual void onEnter();
|
|
|
|
|
|
|
|
void restartCallback(CCObject* pSender);
|
|
|
|
void nextCallback(CCObject* pSender);
|
|
|
|
void backCallback(CCObject* pSender);
|
|
|
|
};
|
|
|
|
|
|
|
|
class Sprite1 : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Sprite1();
|
|
|
|
virtual std::string title();
|
|
|
|
|
|
|
|
void addNewSpriteWithCoords(CCPoint p);
|
|
|
|
void ccTouchesEnded(CCSet* touches, CCEvent* event);
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNode1: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNode1();
|
|
|
|
void addNewSpriteWithCoords(CCPoint p);
|
|
|
|
virtual void ccTouchesEnded(CCSet* touches, CCEvent* event);
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteColorOpacity : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteColorOpacity();
|
2012-06-08 13:55:28 +08:00
|
|
|
void removeAndAddSprite(float dt);
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeColorOpacity : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeColorOpacity();
|
2012-06-08 13:55:28 +08:00
|
|
|
void removeAndAddSprite(float dt);
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteZOrder : public SpriteTestDemo
|
|
|
|
{
|
2013-06-15 14:03:30 +08:00
|
|
|
int _dir;
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
SpriteZOrder();
|
2012-06-08 13:55:28 +08:00
|
|
|
void reorderSprite(float dt);
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeZOrder: public SpriteTestDemo
|
|
|
|
{
|
2013-06-15 14:03:30 +08:00
|
|
|
int _dir;
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
SpriteBatchNodeZOrder();
|
2012-06-08 13:55:28 +08:00
|
|
|
void reorderSprite(float dt);
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeReorder : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeReorder();
|
|
|
|
virtual std::string title();
|
|
|
|
std::string subtitle();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeReorderIssue744: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeReorderIssue744();
|
|
|
|
virtual std::string title();
|
|
|
|
std::string subtitle();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeReorderIssue766 : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeReorderIssue766();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
2012-06-08 13:55:28 +08:00
|
|
|
void reorderSprite(float dt);
|
2012-04-19 14:35:52 +08:00
|
|
|
CCSprite* makeSpriteZ(int aZ);
|
|
|
|
|
|
|
|
private:
|
|
|
|
CCSpriteBatchNode *batchNode;
|
|
|
|
CCSprite *sprite1;
|
|
|
|
CCSprite *sprite2;
|
|
|
|
CCSprite *sprite3;
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeReorderIssue767 : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeReorderIssue767();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
2012-06-08 13:55:28 +08:00
|
|
|
void reorderSprites(float dt);
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteZVertex: public SpriteTestDemo
|
|
|
|
{
|
2013-06-15 14:03:30 +08:00
|
|
|
int _dir;
|
|
|
|
float _time;
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
SpriteZVertex();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeZVertex: public SpriteTestDemo
|
|
|
|
{
|
2013-06-15 14:03:30 +08:00
|
|
|
int _dir;
|
|
|
|
float _time;
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
SpriteBatchNodeZVertex();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteAnchorPoint : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteAnchorPoint();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeAnchorPoint : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeAnchorPoint();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class Sprite6 : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Sprite6();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteFlip : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteFlip();
|
2012-06-08 13:55:28 +08:00
|
|
|
void flipSprites(float dt);
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeFlip : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeFlip();
|
2012-06-08 13:55:28 +08:00
|
|
|
void flipSprites(float dt);
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteAliased : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteAliased();
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeAliased : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeAliased();
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteNewTexture : public SpriteTestDemo
|
|
|
|
{
|
2013-06-15 14:03:30 +08:00
|
|
|
bool _usingTexture1;
|
|
|
|
CCTexture2D* _texture1;
|
|
|
|
CCTexture2D* _texture2;
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
SpriteNewTexture();
|
|
|
|
virtual ~SpriteNewTexture();
|
|
|
|
void addNewSprite();
|
|
|
|
void ccTouchesEnded(CCSet* touches, CCEvent* event);
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeNewTexture : public SpriteTestDemo
|
|
|
|
{
|
2013-06-15 14:03:30 +08:00
|
|
|
CCTexture2D* _texture1;
|
|
|
|
CCTexture2D* _texture2;
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeNewTexture();
|
|
|
|
virtual ~SpriteBatchNodeNewTexture();
|
|
|
|
void addNewSprite();
|
|
|
|
void ccTouchesEnded(CCSet* touches, CCEvent* event);
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteFrameTest: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
|
2012-06-08 13:55:28 +08:00
|
|
|
void startIn05Secs(float dt);
|
|
|
|
void flipSprites(float dt);
|
2012-04-19 14:35:52 +08:00
|
|
|
private:
|
2013-06-15 14:03:30 +08:00
|
|
|
CCSprite *_sprite1;
|
|
|
|
CCSprite *_sprite2;
|
|
|
|
int _counter;
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteFrameAliasNameTest : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteOffsetAnchorRotation: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteOffsetAnchorRotation();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeOffsetAnchorRotation: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeOffsetAnchorRotation();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteOffsetAnchorScale: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteOffsetAnchorScale();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeOffsetAnchorScale: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeOffsetAnchorScale();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteOffsetAnchorSkew : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteOffsetAnchorSkew();
|
|
|
|
~SpriteOffsetAnchorSkew();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
2012-11-20 15:19:57 +08:00
|
|
|
class SpriteOffsetAnchorRotationalSkew : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteOffsetAnchorRotationalSkew();
|
|
|
|
~SpriteOffsetAnchorRotationalSkew();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
class SpriteBatchNodeOffsetAnchorSkew : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeOffsetAnchorSkew();
|
|
|
|
~SpriteBatchNodeOffsetAnchorSkew();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
2012-11-20 15:19:57 +08:00
|
|
|
class SpriteOffsetAnchorRotationalSkewScale : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteOffsetAnchorRotationalSkewScale();
|
|
|
|
~SpriteOffsetAnchorRotationalSkewScale();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeOffsetAnchorRotationalSkew : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeOffsetAnchorRotationalSkew();
|
|
|
|
~SpriteBatchNodeOffsetAnchorRotationalSkew();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
class SpriteOffsetAnchorSkewScale : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteOffsetAnchorSkewScale();
|
|
|
|
~SpriteOffsetAnchorSkewScale();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeOffsetAnchorSkewScale : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeOffsetAnchorSkewScale();
|
|
|
|
~SpriteBatchNodeOffsetAnchorSkewScale();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
2012-11-20 15:19:57 +08:00
|
|
|
class SpriteBatchNodeOffsetAnchorRotationalSkewScale : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeOffsetAnchorRotationalSkewScale();
|
|
|
|
~SpriteBatchNodeOffsetAnchorRotationalSkewScale();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
class SpriteOffsetAnchorFlip : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteOffsetAnchorFlip();
|
|
|
|
~SpriteOffsetAnchorFlip();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeOffsetAnchorFlip : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeOffsetAnchorFlip();
|
|
|
|
~SpriteBatchNodeOffsetAnchorFlip();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteAnimationSplit : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteAnimationSplit();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteHybrid: public SpriteTestDemo
|
|
|
|
{
|
2013-06-15 14:03:30 +08:00
|
|
|
bool _usingSpriteBatchNode;
|
2012-04-19 14:35:52 +08:00
|
|
|
public:
|
|
|
|
SpriteHybrid();
|
2012-06-08 13:55:28 +08:00
|
|
|
void reparentSprite(float dt);
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual std::string title();
|
|
|
|
virtual void onExit();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeChildren: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeChildren();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeChildrenZ : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeChildrenZ();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteChildrenVisibility: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteChildrenVisibility();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteChildrenVisibilityIssue665 : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteChildrenVisibilityIssue665();
|
|
|
|
~SpriteChildrenVisibilityIssue665();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteChildrenAnchorPoint: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteChildrenAnchorPoint();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeChildrenAnchorPoint: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeChildrenAnchorPoint();
|
|
|
|
virtual void onExit();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeChildrenScale: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeChildrenScale();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteChildrenChildren: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteChildrenChildren();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class SpriteBatchNodeChildrenChildren: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeChildrenChildren();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteNilTexture: public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteNilTexture();
|
|
|
|
virtual std::string title();
|
|
|
|
std::string subtitle();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteSubclass : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteSubclass();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
};
|
|
|
|
|
2013-06-20 14:04:44 +08:00
|
|
|
class AnimationCacheTest : public SpriteTestDemo
|
2012-04-19 14:35:52 +08:00
|
|
|
{
|
|
|
|
public:
|
2013-06-20 14:04:44 +08:00
|
|
|
AnimationCacheTest();
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
};
|
|
|
|
|
|
|
|
class NodeSort : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
NodeSort();
|
|
|
|
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
2012-06-08 13:55:28 +08:00
|
|
|
void reorderSprite(float dt);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
private:
|
2013-06-15 14:03:30 +08:00
|
|
|
CCNode *_node;
|
|
|
|
CCSprite *_sprite1;
|
|
|
|
CCSprite *_sprite2;
|
|
|
|
CCSprite *_sprite3;
|
|
|
|
CCSprite *_sprite4;
|
|
|
|
CCSprite *_sprite5;
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeReorderSameIndex : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeReorderSameIndex();
|
|
|
|
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
2012-06-08 13:55:28 +08:00
|
|
|
void reorderSprite(float dt);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
|
|
|
private:
|
2013-06-15 14:03:30 +08:00
|
|
|
CCSpriteBatchNode *_batchNode;
|
|
|
|
CCSprite *_sprite1;
|
|
|
|
CCSprite *_sprite2;
|
|
|
|
CCSprite *_sprite3;
|
|
|
|
CCSprite *_sprite4;
|
|
|
|
CCSprite *_sprite5;
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeReorderOneChild : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeReorderOneChild();
|
2012-06-08 13:55:28 +08:00
|
|
|
void reorderSprite(float dt);
|
2012-04-19 14:35:52 +08:00
|
|
|
virtual std::string title();
|
|
|
|
private:
|
2013-06-15 14:03:30 +08:00
|
|
|
CCSpriteBatchNode *_batchNode;
|
|
|
|
CCSprite *_reorderSprite;
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchNodeSkewNegativeScaleChildren : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeSkewNegativeScaleChildren();
|
|
|
|
~SpriteBatchNodeSkewNegativeScaleChildren();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
};
|
|
|
|
|
2012-11-20 15:19:57 +08:00
|
|
|
class SpriteBatchNodeRotationalSkewNegativeScaleChildren : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchNodeRotationalSkewNegativeScaleChildren();
|
|
|
|
~SpriteBatchNodeRotationalSkewNegativeScaleChildren();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
class SpriteSkewNegativeScaleChildren : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteSkewNegativeScaleChildren();
|
|
|
|
~SpriteSkewNegativeScaleChildren();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
};
|
|
|
|
|
2012-11-20 15:19:57 +08:00
|
|
|
class SpriteRotationalSkewNegativeScaleChildren : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteRotationalSkewNegativeScaleChildren();
|
|
|
|
~SpriteRotationalSkewNegativeScaleChildren();
|
|
|
|
virtual std::string title();
|
|
|
|
};
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
class SpriteDoubleResolution : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteDoubleResolution();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
};
|
|
|
|
|
|
|
|
class AnimationCacheFile : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AnimationCacheFile();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteBatchBug1217 : public SpriteTestDemo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SpriteBatchBug1217();
|
|
|
|
virtual std::string title();
|
|
|
|
virtual std::string subtitle();
|
|
|
|
};
|
|
|
|
|
|
|
|
class SpriteTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|