51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
//using StgSharp.Environment.Win32;
|
|
using StgSharp.Controlling.UsrActivity;
|
|
using StgSharp.Geometries;
|
|
using StgSharp.Graphics;
|
|
using StgSharp.Logic;
|
|
using StgSharp.Math;
|
|
using StgSharp.MVVM;
|
|
|
|
using StgSharpDebug.Logic;
|
|
|
|
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Xml.XPath;
|
|
|
|
namespace StgSharp
|
|
{
|
|
|
|
internal static class Program
|
|
{
|
|
internal static unsafe void Main(string[] args)
|
|
{
|
|
try
|
|
{
|
|
//StgSharp.TryCreatWindow();
|
|
|
|
/**/
|
|
StgSharp.Init();
|
|
StgSharp.InitGL(4, 6);
|
|
StgSharp.GlobalSetting.VSyncActivated = false;
|
|
|
|
ViewPort vp = new ViewPort();
|
|
|
|
ViewModelMain mainModel = new ViewModelMain(vp);
|
|
mainModel.CreateAndBindView<ViewMain>("MainView", (1, 1, 1));
|
|
|
|
mainModel.UseViewModel("MainView");
|
|
|
|
StgSharp.Terminate();
|
|
/**/
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
InternalIO.InternalWriteLog(
|
|
ex.Message + "\n" + ex.StackTrace,
|
|
LogType.Error);
|
|
Environment.FailFast(ex.Message + "\n" + ex.StackTrace);
|
|
}
|
|
}
|
|
}
|
|
} |