Example #1
0
        /// <summary>
        /// 提供字符的绘制功能
        /// </summary>
        /// <param name="engine">渲染组件</param>
        /// <param name="contentMgr">素材管理者</param>
        public FontMgr(RenderEngine engine, ContentManager contentMgr)
        {
            this.engine   = engine;
            chineseWriter = new ChineseWriter(engine);
            fonts         = new Dictionary <string, SpriteFont>();

            LoadFonts(contentMgr);
        }
Example #2
0
        /// <summary>
        /// 提供字符的绘制功能
        /// </summary>
        /// <param name="engine">渲染组件</param>
        /// <param name="contentMgr">素材管理者</param>
        public FontMgr ( RenderEngine engine, ContentManager contentMgr )
        {
            this.engine = engine;
            chineseWriter = new ChineseWriter( engine );
            fonts = new Dictionary<string, SpriteFont>();

            LoadFonts( contentMgr );
        }