rubuild file struct 2
This commit is contained in:
@@ -9,7 +9,7 @@ using System.Runtime.CompilerServices;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
public class StgSharpDemoForm : Form
|
||||
public class StgSharpDemoForm : ViewModel
|
||||
{
|
||||
|
||||
public void Beep()
|
||||
@@ -20,8 +20,6 @@ namespace StgSharp
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//[RenderActivity(RenderPriority.Pre_1)]
|
||||
public void NoOp()
|
||||
{
|
||||
@@ -45,20 +43,30 @@ namespace StgSharp
|
||||
demoForm.Size = (800, 800);
|
||||
demoForm.name = "Hello, Stg#!";
|
||||
|
||||
var stream = glRenderStream.AsMainStreamOf
|
||||
//<MainRenderStream>
|
||||
<ParticleStream>
|
||||
(demoForm,(1,1,1));
|
||||
|
||||
|
||||
var stream = demoForm.BuildMainRenderStream
|
||||
//<MainRenderStream>
|
||||
//<ParticleStream>
|
||||
<fboFrame>
|
||||
((1,1,1));
|
||||
|
||||
var rstream = RenderStream.ShareContextWith
|
||||
<fboFrame,ParticleStream>(stream);
|
||||
|
||||
Blueprint blueprint = new Blueprint();
|
||||
|
||||
BlueprintNode node = new BlueprintNode("MainRenderStream",stream);
|
||||
node.AddAfter(blueprint.BeginLayer,
|
||||
BlueprintNode node0 = new BlueprintNode("BufferGenerateStream", rstream);
|
||||
BlueprintNode node1 = new BlueprintNode("MainRenderStream",stream);
|
||||
node0.AddAfter(blueprint.BeginLayer,
|
||||
"input_1", "input_1");
|
||||
node.AddBefore(blueprint.EndLayer,
|
||||
"output_1", "output_1");
|
||||
node0.AddBefore(node1,
|
||||
"output_1", "TextureInput");
|
||||
node1.AddBefore(blueprint.EndLayer,
|
||||
"Output", "output_1");
|
||||
|
||||
blueprint.AddNativeNode(node);
|
||||
blueprint.AddNativeNode(node0);
|
||||
blueprint.AddNativeNode(node1);
|
||||
blueprint.Init(0);
|
||||
|
||||
//Console.WriteLine(2);
|
||||
|
||||
Reference in New Issue
Block a user