Microsoft.Xna.Framework.GameWindow.Create C# (CSharp) Method

Create() public static method

public static Create ( Microsoft.Xna.Framework.Game game, int width, int height ) : GameWindow
game Microsoft.Xna.Framework.Game
width int
height int
return GameWindow
        public static GameWindow Create(Game game, int width, int height)
        {
            var window = new MonoGame.Framework.WinFormsGameWindow((MonoGame.Framework.WinFormsGamePlatform)game.Platform);
            window.Initialize(width, height);

            return window;
        }
#endif