Cocos2d-x中CCSprite的Create流程--h

前端之家收集整理的这篇文章主要介绍了Cocos2d-x中CCSprite的Create流程--h前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

插入代码内容

class CC_DLL Sprite : public Node,public TextureProtocol  
{  
public:  
  
    static const int INDEX_NOT_INITIALIZED = -1; /// Sprite invalid index on the SpriteBatchNode  
  
    /// @{  
    /// @name Creators  
  
    /** 
     * Creates an empty sprite without texture. You can call setTexture method subsequently. 
     * 
     * @return An autoreleased sprite object. 
     */  
    static Sprite* create();  


引用代码



嵌入代码

原文链接:https://www.f2er.com/cocos2dx/339551.html

猜你在找的Cocos2d-x相关文章