CCSprite and UV texture animation

Made a simple CCSprite extension where you can set a texture offset, which helps to do UV animation.
Only works with POT textures (power of two sizes, like 128x128 and so on)

Usage:

SpriteUV* bg=new SpriteUV; bg->initWithFile("grid.png"); //U=0 V=0.5 bg->setTextureOffset(ccp(0,0.5));


SpriteUV.zip (1.8 KB)