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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -90,9 +90,9 @@ namespace StgSharp
|
||||
{
|
||||
//Console.WriteLine("Render Button Itself");
|
||||
|
||||
GL.BindFrameBuffer( FrameBufferTarget.All, GlHandle.Zero ); //GL.Assert(true);
|
||||
GL.ClearColor( 0.4f, TimePassed % 1.0f, 0f, 1.0f ); //GL.Assert(true);
|
||||
GL.Clear( MaskBufferBit.COLOR /**/ | MaskBufferBit.DEPTH/**/ ); //GL.Assert(true);
|
||||
GL.BindFrameBuffer( FrameBufferTarget.All, GlHandle.Zero ); /*GL.Assert(true);/**/
|
||||
GL.ClearColor( 0.4f, TimePassed % 1.0f, 0f, 1.0f ); /*GL.Assert(true);/**/
|
||||
GL.Clear( MaskBufferBit.COLOR /**/ | MaskBufferBit.DEPTH/**/ ); /*GL.Assert(true);/**/
|
||||
|
||||
f_vao.Bind( 0 ); //GL.Assert(true);
|
||||
|
||||
|
||||
@@ -55,8 +55,7 @@ namespace StgSharp
|
||||
|
||||
public override void CustomizedInitialize()
|
||||
{
|
||||
Binding.Stream = CreateRenderStream<ParticleRenderStream>(
|
||||
(1, 1, 1) );
|
||||
Binding.Stream = CreateRenderStream<ParticleRenderStream>( );
|
||||
Render[ "only".AsLabel() ] = Binding.Stream;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace StgSharp
|
||||
private Dictionary<string, DataBindingEntry> dataBindingEntryIndexmap;
|
||||
|
||||
public ViewModelMain( ViewPort vp )
|
||||
: base( vp, 0.0f )
|
||||
: base( vp, 60 )
|
||||
{
|
||||
dataBindingEntryIndexmap = new Dictionary<string, DataBindingEntry>(
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user