Esempio n. 1
0
 public spriteFont(WebGLRenderingContext webgl, string urlconfig, spriteTexture texture)
 {
     this.webgl = webgl;
     if (urlconfig != null)
     {
         lighttool.loadTool.loadText(urlconfig, (txt, err) =>
         {
             this._parse(txt);
         }
                                     );
     }
     this.texture         = texture;
     this.mat             = new spriteMat();//ness
     this.mat.shader      = "spritefont";
     this.mat.tex0        = this.texture;
     this.mat.transparent = true;
 }