2013-11-05 01:14:22 +08:00
|
|
|
//
|
|
|
|
// CCNewSprite.h
|
|
|
|
// cocos2d_libs
|
|
|
|
//
|
|
|
|
// Created by NiTe Luo on 10/31/13.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef __CCNEWSPRITE_H_
|
|
|
|
#define __CCNEWSPRITE_H_
|
|
|
|
|
|
|
|
#include "CCSprite.h"
|
|
|
|
#include "CCPlatformMacros.h"
|
|
|
|
|
|
|
|
NS_CC_BEGIN
|
|
|
|
|
|
|
|
class NewSprite : public Sprite
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
static NewSprite* create();
|
|
|
|
static NewSprite* create(const char *filename);
|
|
|
|
|
|
|
|
NewSprite(void);
|
2013-11-13 03:14:34 +08:00
|
|
|
~NewSprite();
|
2013-11-07 08:39:20 +08:00
|
|
|
|
2013-11-23 08:09:11 +08:00
|
|
|
virtual bool initWithTexture(Texture2D *texture, const Rect& rect, bool rotated);
|
2013-11-27 10:35:12 +08:00
|
|
|
|
2013-11-27 09:01:32 +08:00
|
|
|
virtual void updateQuadVertices();
|
2013-11-05 01:14:22 +08:00
|
|
|
virtual void draw(void) override;
|
|
|
|
|
2013-11-27 10:35:12 +08:00
|
|
|
bool culling() const;
|
|
|
|
|
2013-11-05 01:14:22 +08:00
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
NS_CC_END
|
|
|
|
|
|
|
|
#endif /* defined(__CCNEWSPRITE_H_) */
|