Ejemplo n.º 1
0
        public static void Remove(Glyph pNode)
        {
            Debug.Assert(pNode != null);
            GlyphMan pMan = GlyphMan.PrivGetInstance();

            pMan.BaseRemove(pNode);
        }
Ejemplo n.º 2
0
        public static void Dump()
        {
            GlyphMan pMan = GlyphMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            Debug.WriteLine("------ Glyph Manager ------");
            pMan.BaseDump();
        }
Ejemplo n.º 3
0
        public static Glyph Add(Glyph.Name name, int key, Texture.Name textName, float x, float y, float width, float height)
        {
            GlyphMan pMan = GlyphMan.PrivGetInstance();

            Glyph pNode = (Glyph)pMan.BaseAdd();

            Debug.Assert(pNode != null);

            pNode.Set(name, key, textName, x, y, width, height);
            return(pNode);
        }
Ejemplo n.º 4
0
        public static void Destroy()
        {
            // Get the instance
            GlyphMan pMan = GlyphMan.PrivGetInstance();

#if (TRACK_DESTRUCTOR)
            Debug.WriteLine("--->GlyphMan.Destroy()");
#endif
            pMan.BaseDestroy();
            GlyphMan.pInstance = null;
        }
Ejemplo n.º 5
0
        public static Glyph Find(Glyph.Name name, int key)
        {
            GlyphMan pMan = GlyphMan.PrivGetInstance();

            // Compare functions only compares two Nodes
            pMan.pRefNode.name = name;
            pMan.pRefNode.key  = key;

            Glyph pData = (Glyph)pMan.BaseFind(pMan.pRefNode);

            return(pData);
        }
Ejemplo n.º 6
0
        public static Glyph Find(Glyph.Name name, int key)
        {
            GlyphMan pGMan = GlyphMan.PrivGetInstance();

            Debug.Assert(pGMan != null);

            pGMan.pRefNode.name = name;
            pGMan.pRefNode.key  = key;

            Glyph pGlyphData = (Glyph)pGMan.BaseFind(pGMan.pRefNode);

            return(pGlyphData);
        }
Ejemplo n.º 7
0
        public static void Destroy()
        {
            GlyphMan pGMan = GlyphMan.PrivGetInstance();

#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("GlyphMan.Destroy()");
#endif
            pGMan.BaseDestroy();

#if (TRACK_DESTRUCTOR_MAN)
            Debug.WriteLine("{0} ({1})", pGMan.pRefNode, pGMan.pRefNode.GetHashCode());
            Debug.WriteLine("{0} ({1})", GlyphMan.pInstance, GlyphMan.pInstance.GetHashCode());
#endif

            pGMan.pRefNode     = null;
            GlyphMan.pInstance = null;
        }