Esempio n. 1
0
        /// <summary>
        /// 渲染
        /// </summary>
        public static void Render()
        {
            device.Clear(ClearFlags.Target, Color.Blue, 0, 0);
            device.BeginScene();
            sprite.Begin(SpriteFlags.AlphaBlend);

            BackgroundSrv.Render();
            ActorSrv.Render();
            if (flag == true)
            {
                TextFrameSrv.Render();
            }

            sprite.End();
            device.EndScene();
            device.Present();
        }
Esempio n. 2
0
 /// <summary>
 /// 切换显示内容
 /// </summary>
 public static void FrameMove()
 {
     BackgroundSrv.LoadResX();
     ActorSrv.LoadResX();
     TextFrameSrv.InitializeFont();
 }