daily update on 20240613 by nitload youmu[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[C[4
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
//using StgSharp.Environment.Win32;
|
||||
using StgSharp.Controlling.UsrActivity;
|
||||
using StgSharp.Geometries;
|
||||
using StgSharp.Graphics;
|
||||
using StgSharp.Logic;
|
||||
@@ -18,18 +19,13 @@ namespace StgSharp
|
||||
{
|
||||
}
|
||||
|
||||
public void Beep()
|
||||
protected sealed override void BuildGlobalKeyControl()
|
||||
{
|
||||
if (CurrentFrameCount%60==0)
|
||||
{
|
||||
Console.Beep();
|
||||
}
|
||||
}
|
||||
|
||||
//[RenderActivity(RenderPriority.Pre_1)]
|
||||
public void NoOp()
|
||||
{
|
||||
int a = 1;
|
||||
GlobalKeyAction.Add(
|
||||
new KeyTrigger(KeyboardKey.ESCAPE,KeyStatus.PRESS),
|
||||
new Action(() => {
|
||||
InternalIO.glfwSetWindowShouldClose(this.WindowID, 1);
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,12 +42,12 @@ namespace StgSharp
|
||||
StgSharp.InitGL(4, 6);
|
||||
StgSharp.GlobalSetting.VSyncActivated = false;
|
||||
|
||||
ViewPort vp = new ViewPort(
|
||||
ViewPort viewport = new ViewPort(
|
||||
name: "Hello, Stg#!",
|
||||
size: (800,600),
|
||||
size: (800,800),
|
||||
monitor: IntPtr.Zero
|
||||
);
|
||||
StgSharpDemoForm demoForm = new StgSharpDemoForm(vp,60);
|
||||
StgSharpDemoForm demoForm = new StgSharpDemoForm(vp: viewport,60);
|
||||
|
||||
|
||||
|
||||
@@ -61,15 +57,15 @@ namespace StgSharp
|
||||
//<MainRenderStream>
|
||||
//<ParticleStream>
|
||||
<fboFrame>
|
||||
(v, (1,1,1));
|
||||
(v);
|
||||
|
||||
var rstream = RenderStream.ShareContextWith
|
||||
<fboFrame,ParticleStream>(stream);
|
||||
Console.WriteLine(1);
|
||||
Blueprint blueprint = new Blueprint();
|
||||
|
||||
BlueprintNode node0 = new BlueprintNode("BufferGenerateStream", rstream);
|
||||
BlueprintNode node1 = new BlueprintNode("MainRenderStream",stream);
|
||||
|
||||
node0.AddAfter(blueprint.BeginLayer,
|
||||
"input_1", "input_1");
|
||||
node0.AddBefore(node1,
|
||||
|
||||
Reference in New Issue
Block a user