daily update on 20240501 by nitload youmu, tracking blueprint coruptr

This commit is contained in:
YoumuLiu
2024-05-02 05:47:27 +08:00
parent 0cd01ed9dd
commit 6324e578ab
60 changed files with 2564 additions and 307 deletions
+24 -4
View File
@@ -1,6 +1,7 @@
//using StgSharp.Environment.Win32;
using StgSharp.Geometries;
using StgSharp.Graphics;
using StgSharp.Logic;
using StgSharp.Math;
using System;
@@ -11,10 +12,6 @@ namespace StgSharp
public class StgSharpDemoForm : Form
{
[MultiFrameActivity()]
public void Beep()
{
if (CurrentFrameCount%60==0)
@@ -38,6 +35,8 @@ namespace StgSharp
{
try
{
InternalIO.InternalWriteLog($"\n\n\nProgram Started",LogType.Info);
//StgSharp.TryCreatWindow();
/**/
@@ -45,6 +44,26 @@ namespace StgSharp
StgSharp.InitGL(4, 6);
StgSharp.GlobalSetting.VSyncActivated = false;
StgSharpDemoForm demoForm = new StgSharpDemoForm();
demoForm.Size = (800, 800);
demoForm.name = "Hello, Stg#!";
MainRenderStream stream = glRenderStream.AsMainStreamOf
<MainRenderStream>(demoForm,(1,1,1));
Blueprint blueprint = new Blueprint();
BlueprintNode node = new BlueprintNode("MainRenderStream",stream);
node.AddAfter(blueprint.BeginLayer,
"input_1", "input_1");
node.AddBefore(blueprint.EndLayer,
"output_1", "output_1");
blueprint.AddNativeNode(node);
blueprint.Init(0);
//Console.WriteLine(2);
demoForm.RenderLogic = blueprint;
demoForm.Show();
StgSharp.Terminate();
/**/
@@ -52,6 +71,7 @@ namespace StgSharp
}
catch (Exception ex)
{
Console.WriteLine(ex.Message + "\n" + ex.StackTrace);
InternalIO.InternalWriteLog(
ex.Message + "\n" + ex.StackTrace,
LogType.Error);