2022-06-24 14:01:26 +02:00
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.Xna.Framework;
|
|
|
|
|
using Microsoft.Xna.Framework.Input;
|
2020-02-24 14:03:53 +01:00
|
|
|
|
using MLEM.Misc;
|
2019-09-01 11:56:12 +02:00
|
|
|
|
|
|
|
|
|
namespace Demos.DesktopGL {
|
|
|
|
|
public static class Program {
|
|
|
|
|
|
|
|
|
|
public static void Main() {
|
2022-06-24 14:01:26 +02:00
|
|
|
|
#if FNA
|
|
|
|
|
MlemPlatform.Current = new MlemPlatform.DesktopFna(a => TextInputEXT.TextInput += a);
|
|
|
|
|
#else
|
2021-04-23 00:17:46 +02:00
|
|
|
|
MlemPlatform.Current = new MlemPlatform.DesktopGl<TextInputEventArgs>((w, c) => w.TextInput += c);
|
2022-06-24 14:01:26 +02:00
|
|
|
|
#endif
|
2021-03-08 15:12:13 +01:00
|
|
|
|
using var game = new GameImpl();
|
|
|
|
|
game.Run();
|
2019-09-01 11:56:12 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
2022-06-17 18:23:47 +02:00
|
|
|
|
}
|