cocos2dx教程之CCTexture2D

class CC_DLL CCTexture2D : public CCObject

{

public:

bool initWithData(const void* data, CCTexture2DPixelFormat pixelFormat, unsigned int pixelsWide, unsigned int pixelsHigh, const CCSize& contentSize);

   voiddrawAtPoint(const CCPoint&point);

  void drawInRect(const CCRect&rect);

   bool initWithImage(CCImage * uiImage);

   bool initWithString(const char *text, const CCSize&dimensions, CCTextAlignment hAlignment,

   bool initWithString(const char *text, const char *fontName,float fontSize);

……………………

你可能感兴趣的:(cocos2d-x,CCTexture2D)