Пример #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
        /// <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;
        }
        /// <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;
        }