Beispiel #1
0
        public static spriteAtlas fromRaw(WebGLRenderingContext webgl, string txt, spriteTexture texture = null)
        {
            var sa = new spriteAtlas(webgl, null, texture);

            sa._parse(txt);

            return(sa);
        }
Beispiel #2
0
        public void regDirect(string name, spriteAtlas atlas)
        {
            if (this.mapInfo.ContainsKey(name))
            //    var item = this.mapInfo[name];
            //if (item != Script.Undefined)
            {
                throw new Exception("you can't reg the same name"); //ness
            }
            var item = new atlasMgrItem();                          //ness

            this.mapInfo[name] = item;
            item.atals         = atlas;
        }