コード例 #1
0
        public static void Remove(Glyph pNode)
        {
            Debug.Assert(pNode != null);
            GlyphManager pMan = GlyphManager.getSingleton();

            pMan.genericRemove(pNode);
        }
コード例 #2
0
        public static Glyph Add(Glyph.Name name, int key, Texture.TextureName textName, float x, float y, float width, float height)
        {
            GlyphManager pMan = GlyphManager.getSingleton();

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

            Debug.Assert(pNode != null);

            pNode.setAll(name, key, textName, x, y, width, height);
            return(pNode);
        }
コード例 #3
0
        public static Glyph Find(Glyph.Name name, int key)
        {
            GlyphManager texManInst = GlyphManager.getSingleton();

            Debug.Assert(texManInst != null);
            Glyph pseudoTex = texManInst.refGlyph;

            Debug.Assert(pseudoTex != null);

            pseudoTex.glyphName = name;
            pseudoTex.key       = key;

            Glyph targetTex = (Glyph)texManInst.genericFind(pseudoTex);

            return(targetTex);
        }