public Glyph Add(Glyph.Name name, int key, Texture.Name textName, float x, float y, float width, float height) { Glyph pNode = (Glyph)this.PullFromReserved(); Debug.Assert(pNode != null); pNode.Set(name, key, textName, x, y, width, height); this.Add(pNode); return(pNode); }
public static Glyph Add(Glyph.Name name, int key, Texture.Name textName, float x, float y, float width, float height) { GlyphManager pInstance = GlyphManager.PrivGetInstance(); Glyph pNode = (Glyph)pInstance.BaseAdd(); Debug.Assert(pNode != null); pNode.Set(name, key, textName, x, y, width, height); return(pNode); }