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>(
|
||||
);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<LangVersion>Preview</LangVersion>
|
||||
@@ -134,7 +134,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||
<Exec Command="copy $(SolutionDir)StgSharpC.dll $(OutDir)StgSharpC.dll
copy " />
|
||||
<Exec Command="xcopy /E /I /Y $(SolutionDir)build $(OutDir)" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6e2f93b053825680d03e27c9acae8ded6bd00dc4")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+7c8d462ca5da46abdfb0e7278f81d25abe890887")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"documents":{"D:\\NitloadIndustry\\研究项目\\1-Flagship\\TH2020\\ProjectFile\\*":"https://raw.githubusercontent.com/Nitload-NSI/CCD_Github/6e2f93b053825680d03e27c9acae8ded6bd00dc4/*"}}
|
||||
{"documents":{"D:\\NitloadIndustry\\研究项目\\1-Flagship\\TH2020\\ProjectFile\\*":"https://raw.githubusercontent.com/Nitload-NSI/CCD_Github/7c8d462ca5da46abdfb0e7278f81d25abe890887/*"}}
|
||||
@@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("RealDebug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6e2f93b053825680d03e27c9acae8ded6bd00dc4")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+7c8d462ca5da46abdfb0e7278f81d25abe890887")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6e2f93b053825680d03e27c9acae8ded6bd00dc4")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+7c8d462ca5da46abdfb0e7278f81d25abe890887")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("StgSharpDebug")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
Reference in New Issue
Block a user