Example #1
0
        void agateRenderTarget1_Paint(object sender, PaintEventArgs e)
        {
            if (wind == null)
            {
                wind = AgateLib.DisplayLib.DisplayWindow.CreateFromControl(panel1);
            }


            Display.RenderTarget = wind.FrameBuffer;
            Display.BeginFrame();

            Display.Clear(Color.DarkRed);

            AgateFont.Color = Color.White;
            AgateFont.DrawText(text);

            Display.EndFrame();
        }
Example #2
0
 /// <summary>
 /// Creates a DisplayWindow object which generates a desktop window to render into.
 /// This overload creates a window which has the default icon and is not resizeable.
 /// </summary>
 /// <param name="title"></param>
 /// <param name="width"></param>
 /// <param name="height"></param>
 /// <param name="allowResize"></param>
 /// <returns></returns>
 public static DisplayWindow CreateWindowed(string title, int width, int height, bool allowResize)
 {
     return(DisplayWindow.CreateWindowed(title, width, height, allowResize, null));
 }
Example #3
0
 /// <summary>
 /// Creates a DisplayWindow object which generates a desktop window to render into.
 /// This overload creates a window which has the default icon and is not resizeable.
 /// </summary>
 /// <param name="title"></param>
 /// <param name="width"></param>
 /// <param name="height"></param>
 /// <returns></returns>
 public static DisplayWindow CreateWindowed(string title, int width, int height)
 {
     return(DisplayWindow.CreateWindowed(title, width, height, false, null));
 }