コード例 #1
0
        public static CCSpriteBatchNode batchNodeWithTexture(CCTexture2D tex, int capacity)
        {
            CCSpriteBatchNode node = new CCSpriteBatchNode();

            node.initWithTexture(tex, capacity);
            return(node);
        }
コード例 #2
0
        public static CCSpriteBatchNode batchNodeWithTexture(CCTexture2D tex)
        {
            CCSpriteBatchNode node = new CCSpriteBatchNode();

            node.initWithTexture(tex, 0x1d);
            return(node);
        }
コード例 #3
0
        /// <summary>
        /// creates a CCSpriteBatchNode with a texture2d and a default capacity of 29 children.
        /// The capacity will be increased in 33% in runtime if it run out of space.
        /// </summary>
        public static CCSpriteBatchNode batchNodeWithTexture(Texture tex)
        {
            CCSpriteBatchNode batchNode = new CCSpriteBatchNode();

            batchNode.initWithTexture(tex, defaultCapacity);

            return(batchNode);
        }
コード例 #4
0
ファイル: CCSpriteBatchNode.cs プロジェクト: liwq-net/liwq718
        /// <summary>
        /// creates a CCSpriteBatchNode with a texture2d and capacity of children.
        /// The capacity will be increased in 33% in runtime if it run out of space.
        /// </summary>
        public static CCSpriteBatchNode batchNodeWithTexture(Texture tex, int capacity)
        {
            CCSpriteBatchNode batchNode = new CCSpriteBatchNode();
            batchNode.initWithTexture(tex, capacity);

            return batchNode;
        }
コード例 #5
0
        /// <summary>
        /// creates a CCSpriteBatchNode with a texture2d and a default capacity of 29 children.
        /// The capacity will be increased in 33% in runtime if it run out of space.
        /// </summary>
        public static CCSpriteBatchNode batchNodeWithTexture(CCTexture2D tex)
        {
            CCSpriteBatchNode batchNode = new CCSpriteBatchNode();
            batchNode.initWithTexture(tex, defaultCapacity);

            return batchNode;
        }