36 lines
936 B
C#
36 lines
936 B
C#
|
using System;
|
||
|
using System.IO;
|
||
|
using System.Runtime.InteropServices;
|
||
|
using MoonWorks;
|
||
|
using MoonWorks.Window;
|
||
|
|
||
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|