fra*_*rbe 2 xna borderless monogame
我正在尝试将XNA游戏移植到MonoGame.我只想针对Windows平台.我想在无边框窗口中显示游戏.我这样做,在我的XNA游戏中:
private void SetForm()
    {
        Form myForm = (Form)Form.FromHandle(this.Window.Handle);
        myForm.Name = "WIPForm";            
        int width = 1024;
        int height = 768;           
        IntPtr auxptr = (this.Window.Handle);
        SafeNativeMethods.MoveWindow(
            (int)auxptr,
            0,
            0,
            Properties.Settings.Default.width,
            Properties.Settings.Default.height,
            1);
        myForm.FormBorderStyle = FormBorderStyle.None;
        myForm.SetBounds(0, 0, width, height);
    }
当我在monogame版本myForm = null中测试此代码时.有没有办法在monogame版本中绘制无边框窗口?
在MonoGame游戏类的构造函数中:
组:
Window.IsBorderless = true;
根据:https: //monogame.codeplex.com/discussions/432292
| 归档时间: | 
 | 
| 查看次数: | 2512 次 | 
| 最近记录: |