Beispiel #1
0
        public void Render(bool drawText, int height, double fps, IGLCanvas canvas)
        {
            this.actionList.Act(new ActionParams(Viewport.GetCurrent()));

            FontBitmaps.DrawText(10,
                                 10, Color.White, "Courier New",// "Courier New",
                                 25.0f, this.fullname);
            if (drawText)
            {
                FontBitmaps.DrawText(10,
                                     height - 20 - 1, Color.Red, "Courier New",// "Courier New",
                                     20.0f, string.Format("FPS: {0}", fps.ToShortString()));
            }
        }
        public void Render(bool drawText, int height, double fps)
        {
            this.scene.Render();

            FontBitmaps.DrawText(10,
                                 10, Color.White, "Courier New",// "Courier New",
                                 25.0f, this.fullname);
            if (drawText)
            {
                FontBitmaps.DrawText(10,
                                     height - 20 - 1, Color.Red, "Courier New",// "Courier New",
                                     20.0f, string.Format("FPS: {0}", fps.ToShortString()));
            }
        }
 /// <summary>
 ///
 /// </summary>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <param name="color"></param>
 /// <param name="faceName"></param>
 /// <param name="fontSize"></param>
 /// <param name="text"></param>
 public override void DrawText(int x, int y, System.Drawing.Color color, string faceName, float fontSize, string text)
 {
     FontBitmaps.DrawText(x, y, color, faceName, fontSize, text);
 }