daily update on 20240328 by nitload youmu, building thread blueprint
This commit is contained in:
@@ -27,12 +27,16 @@ namespace StgSharp
|
||||
}
|
||||
}
|
||||
|
||||
public override void Deinit(object[] args)
|
||||
public override void Deinit()
|
||||
{
|
||||
/**/
|
||||
Console.WriteLine(1);
|
||||
vao.Dispose();
|
||||
Console.WriteLine(2);
|
||||
vbo.Dispose();
|
||||
Console.WriteLine(3);
|
||||
ebo.Dispose();
|
||||
Console.WriteLine(4);
|
||||
/**/
|
||||
|
||||
}
|
||||
@@ -42,15 +46,13 @@ namespace StgSharp
|
||||
gl.Viewport(0, 0, width, height);
|
||||
}
|
||||
|
||||
public override void Init(object[] args)
|
||||
public override void Init()
|
||||
{
|
||||
InternalIO.InternalWriteLog("\n\n\n", "Program start", LogType.Info);
|
||||
|
||||
SetRenderThreads(2);
|
||||
|
||||
SetMetadata(800, 600, "Hello, STG#!", IntPtr.Zero, null);
|
||||
SetMetadata(800, 800, "Hello, STG#!", IntPtr.Zero, null);
|
||||
MakeAsCurrentContext();
|
||||
SetSizeLimit(800, 600, 800, 600);
|
||||
SetSizeLimit(800, 800, 800, 800);
|
||||
this.LoadGLapi(null);
|
||||
FrameBufferSizeCallback =
|
||||
(IntPtr id, uint width, uint height) =>
|
||||
@@ -167,7 +169,17 @@ namespace StgSharp
|
||||
|
||||
vao.BindNull();
|
||||
/**/
|
||||
Console.WriteLine(1);
|
||||
Console.Clear();
|
||||
Console.WriteLine(FrameSpeed);
|
||||
}
|
||||
|
||||
//[RenderActivity(RenderPriority.Default,false)]
|
||||
public void Beep()
|
||||
{
|
||||
if (CurrentFrameCount%60==0)
|
||||
{
|
||||
Console.Beep();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user