MoonWorksImGuiExample/src/Program.cs

35 lines
916 B
C#

using System;
using System.IO;
using System.Runtime.InteropServices;
using MoonWorks;
namespace MoonWorksImguiExample
{
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 = "MoonWorksImguiExample",
ScreenMode = ScreenMode.Windowed
};
MoonWorksImguiExampleGame game = new MoonWorksImguiExampleGame(
windowCreateInfo,
MoonWorks.Graphics.PresentMode.FIFORelaxed,
true
);
game.Run();
}
}
}