2022-02-09 01:38:20 +00:00
|
|
|
using System;
|
|
|
|
using System.IO;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
using MoonWorks;
|
|
|
|
|
|
|
|
namespace MoonWorksMultiWindow
|
|
|
|
{
|
2022-02-25 21:27:27 +00:00
|
|
|
class Program
|
|
|
|
{
|
|
|
|
[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
|
|
|
|
[return: MarshalAs(UnmanagedType.Bool)]
|
|
|
|
static extern bool SetDllDirectory(string lpPathName);
|
2022-02-09 01:38:20 +00:00
|
|
|
|
|
|
|
|
2022-02-25 21:27:27 +00:00
|
|
|
static void Main(string[] args)
|
|
|
|
{
|
|
|
|
WindowCreateInfo windowCreateInfo = new WindowCreateInfo
|
|
|
|
{
|
|
|
|
WindowWidth = 1280,
|
|
|
|
WindowHeight = 720,
|
|
|
|
WindowTitle = "MoonWorksMultiWindow",
|
|
|
|
ScreenMode = ScreenMode.Windowed
|
|
|
|
};
|
2022-02-09 01:38:20 +00:00
|
|
|
|
2022-02-25 21:27:27 +00:00
|
|
|
MoonWorksMultiWindowGame game = new MoonWorksMultiWindowGame(
|
|
|
|
windowCreateInfo,
|
|
|
|
MoonWorks.Graphics.PresentMode.FIFORelaxed,
|
|
|
|
true
|
|
|
|
);
|
2022-02-09 01:38:20 +00:00
|
|
|
|
2022-02-25 21:27:27 +00:00
|
|
|
game.Run();
|
|
|
|
}
|
|
|
|
}
|
2022-02-09 01:38:20 +00:00
|
|
|
}
|