Exemplo n.º 1
0
        private void InitializeComponent()
        {
            this.SuspendLayout();

            this.Name               = "MainRenderForm";
            this.viewportControl    = new GameViewportControl();
            viewportControl.Visible = true;
            this.Controls.Add(viewportControl);

            this.Load    += new EventHandler(MainRenderForm_Load);
            this.Closing += new CancelEventHandler(MainRenderForm_Closing);

            this.ResumeLayout(false);
        }
Exemplo n.º 2
0
        private void InitializeComponent()
        {
            this.SuspendLayout();

            MinimumSize = new Size(200, 200);
            Icon        = GetDefaultIcon();
            Text        = GetDefaultTitle();
            Screen      = ScreenFromHandle(Handle);

            this.KeyPreview   = true;
            this.ResizeRedraw = true;
            this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);

            this.viewportControl    = new GameViewportControl();
            viewportControl.Visible = true;
            this.Controls.Add(viewportControl);

            this.ResumeLayout(false);
        }
Exemplo n.º 3
0
 public void RemoveRenderControl(GameViewportControl control)
 {
     renderControls.Remove(control);
 }
Exemplo n.º 4
0
 public void AddRenderControl(GameViewportControl control)
 {
     renderControls.Add(control);
 }