public static CCSpriteBatchNode batchNodeWithFile(string fileImage) { CCSpriteBatchNode node = new CCSpriteBatchNode(); node.initWithFile(fileImage, 0x1d); return(node); }
public static CCSpriteBatchNode batchNodeWithFile(string fileImage, int capacity) { CCSpriteBatchNode node = new CCSpriteBatchNode(); node.initWithFile(fileImage, capacity); return(node); }
/// <summary> /// creates a CCSpriteBatchNode with a file image (.png, .jpeg, .pvr, etc) with a default capacity of 29 children. /// The capacity will be increased in 33% in runtime if it run out of space. /// The file will be loaded using the TextureMgr. /// </summary> public static CCSpriteBatchNode batchNodeWithFile(string fileImage) { CCSpriteBatchNode batchNode = new CCSpriteBatchNode(); batchNode.initWithFile(fileImage, defaultCapacity); return(batchNode); }
/// <summary> /// creates a CCSpriteBatchNode with a file image (.png, .jpeg, .pvr, etc) with a default capacity of 29 children. /// The capacity will be increased in 33% in runtime if it run out of space. /// The file will be loaded using the TextureMgr. /// </summary> public static CCSpriteBatchNode batchNodeWithFile(string fileImage) { CCSpriteBatchNode batchNode = new CCSpriteBatchNode(); batchNode.initWithFile(fileImage, defaultCapacity); return batchNode; }