Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }