MoonWorksImGuiExample/src/Program.cs

35 lines
736 B
C#
Raw Normal View History

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