daily update on 20241226 by nitload youmu
This commit is contained in:
@@ -38,6 +38,7 @@ using StgSharp.MVVM;
|
||||
using StgSharp.MVVM.ViewModel;
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.Intrinsics;
|
||||
using System.Runtime.Intrinsics.X86;
|
||||
@@ -52,14 +53,23 @@ namespace StgSharp
|
||||
{
|
||||
try {
|
||||
/**/
|
||||
|
||||
StgSharp.Init();
|
||||
StgSharp.InitGL( 4, 6 );
|
||||
StgSharp.GlobalSetting.VSyncActivated = false;
|
||||
|
||||
Exception ex = new Exception("I just want to call an exception");
|
||||
StgSharp.CallErrorConsoleAsDialogue(ex);
|
||||
|
||||
ViewPort vp = new ViewPort();
|
||||
Matrix44 m1 = new Matrix44(
|
||||
1, 0, 0, 1,
|
||||
0, 2, 0, 0,
|
||||
0, 0, 3, 0,
|
||||
0, 0, 0, 4
|
||||
);
|
||||
Matrix44 m2 = m1.Transpose;
|
||||
var ans = m1 + m2;
|
||||
|
||||
ViewPort vp = new ViewPort(800,600,"Hello StgSharp!",IntPtr.Zero);
|
||||
throw new NotImplementedException();
|
||||
|
||||
ViewModelBase mainModel = new ViewModelMain( vp );
|
||||
mainModel.CreateAndBindView<ViewMain>( "MainView", (1, 1, 1) );
|
||||
@@ -72,9 +82,9 @@ namespace StgSharp
|
||||
catch( Exception ex ) {
|
||||
InternalIO.InternalWriteLog( $"{ex}", LogType.Error );
|
||||
if( true ) { }
|
||||
Environment.FailFast( $"{ex.Message}\n{ex.StackTrace}" );
|
||||
Dialogue.PostError( ex );
|
||||
Environment.Exit(-1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user