Esempio n. 1
0
        public static void Destroy()
        {
            // Get the instance
            FontMan pMan = FontMan.GetInstance();

            pMan.baseDestory();
        }
Esempio n. 2
0
        public static void Remove(Glyph pNode)
        {
            Debug.Assert(pNode != null);
            FontMan pMan = FontMan.GetInstance();

            pMan.baseRemove(pNode);
        }
Esempio n. 3
0
        public static Font Find(Font.Name name)
        {
            FontMan pMan = FontMan.GetInstance();

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

            Font pData = (Font)pMan.baseFind(pMan.pRefNode);

            return(pData);
        }
Esempio n. 4
0
        public static Font Add(Font.Name name, SpriteBatch.Name SB_Name, String pMessage, Glyph.Name glyphName, float xStart, float yStart)
        {
            FontMan pMan = FontMan.GetInstance();

            Font pNode = (Font)pMan.baseAdd();

            Debug.Assert(pNode != null);

            pNode.set(name, pMessage, glyphName, xStart, yStart);

            // Add to sprite batch
            SpriteBatch pSB = SpriteBatchMan.Find(SB_Name);

            Debug.Assert(pSB != null);
            Debug.Assert(pNode.pFontSprite != null);
            pSB.attach(pNode.pFontSprite);

            return(pNode);
        }