1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-01 05:10:50 +01:00
MLEM/Demos.DesktopGL/Program.cs

23 lines
494 B
C#
Raw Permalink Normal View History

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