#ifndef __MY_SPRITE_H__
#define __MY_SPRITE_H__
#include "cocos2d.h"
typedef struct
{
cocos2d::CCPoint bl;
cocos2d::CCPoint br;
cocos2d::CCPoint tl;
cocos2d::CCPoint tr;
}My4V;
class MySprite : public cocos2d::CCSprite
{
public:
void render4V(My4V my4v)
{
// if (this->getTexture())
// {
// this->getTexture()->setAliasTexParameters();
// }
m_sQuad.bl.vertices = cocos2d::vertex3(my4v.bl.x, my4v.bl.y, 0);
m_sQuad.br.vertices = cocos2d::vertex3(my4v.br.x, my4v.br.y, 0);
m_sQuad.tl.vertices = cocos2d::vertex3(my4v.tl.x, my4v.tl.y, 0);
m_sQuad.tr.vertices = cocos2d::vertex3(my4v.tr.x, my4v.tr.y, 0);
}
};
#endif