/// <summary>
        /// creates a TextureAtlas with an filename and with an initial capacity for Quads.
        /// The TextureAtlas capacity can be increased in runtime.
        /// </summary>
        public static CCTextureAtlas textureAtlasWithFile(string file, int capacity)
        {
            CCTextureAtlas pTextureAtlas = new CCTextureAtlas();
            if (pTextureAtlas.initWithFile(file, capacity))
            {
                return pTextureAtlas;
            }

            return null;
        }
Example #2
0
        public static CCTextureAtlas textureAtlasWithFile(string file, int capacity)
        {
            CCTextureAtlas cCTextureAtla = new CCTextureAtlas();

            if (cCTextureAtla.initWithFile(file, capacity))
            {
                return(cCTextureAtla);
            }
            return(null);
        }