MoonWorksMultiWindowTest/src/Program.cs

35 lines
729 B
C#

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