您好,登錄后才能下訂單哦!
/** creates a fullscreen black layer */ static LayerColor* create(); /** creates a Layer with color, width and height in Points */ static LayerColor * create(const Color4B& color, GLfloat width, GLfloat height); /** creates a Layer with color. Width and height are the window size. */ static LayerColor * create(const Color4B& color); CC_CONSTRUCTOR_ACCESS: LayerColor(); virtual ~LayerColor(); bool init(); bool initWithColor(const Color4B& color, GLfloat width, GLfloat height); bool initWithColor(const Color4B& color);
/** Creates a fullscreen black layer */ static LayerGradient* create(); /** Creates a full-screen Layer with a gradient between start and end. */ static LayerGradient* create(const Color4B& start, const Color4B& end); /** Creates a full-screen Layer with a gradient between start and end in the direction of v. */ static LayerGradient* create(const Color4B& start, const Color4B& end, const Point& v); CC_CONSTRUCTOR_ACCESS: LayerGradient(); virtual ~LayerGradient(); virtual bool init(); /** Initializes the Layer with a gradient between start and end. * @js init * @lua init */ bool initWithColor(const Color4B& start, const Color4B& end); /** Initializes the Layer with a gradient between start and end in the direction of v. * @js init * @lua init */ bool initWithColor(const Color4B& start, const Color4B& end, const Point& v);
/** change width in Points*/ void changeWidth(GLfloat w); /** change height in Points*/ void changeHeight(GLfloat h); /** change width and height in Points @since v0.8 */ void changeWidthAndHeight(GLfloat w ,GLfloat h);
// Create a "close" menu item with close icon, it's an auto release object. MenuItemImage *pCloseItem = MenuItemImage::create( "CloseNormal.png",//普通狀態下的圖片 "CloseSelected.png",//按下狀態下的圖片 CC_CALLBACK_1(HelloWorld::menuCloseCallback, this));//響應函數與對象 CC_BREAK_IF(! pCloseItem);
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。