コード例 #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);
        }
コード例 #2
0
ファイル: GameWindow.cs プロジェクト: neil3d/My3DEngine2008
        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);
        }
コード例 #3
0
 public void RemoveRenderControl(GameViewportControl control)
 {
     renderControls.Remove(control);
 }
コード例 #4
0
 public void AddRenderControl(GameViewportControl control)
 {
     renderControls.Add(control);
 }