daily update on 20240320 by nitload youmu
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
//using StgSharp.Envitronment.Win32;
|
||||
using StgSharp.Geometries;
|
||||
using StgSharp.Graphics;
|
||||
using StgSharp.Math;
|
||||
|
||||
using System;
|
||||
|
||||
@@ -46,7 +47,7 @@ namespace StgSharp
|
||||
{
|
||||
InternalIO.InternalWriteLog("\n\n\n", "Program start", LogType.Info);
|
||||
|
||||
SetRenderThreads(1);
|
||||
SetRenderThreads(2);
|
||||
|
||||
SetMetadata(800, 600, "Hello, STG#!", IntPtr.Zero, null);
|
||||
MakeAsCurrentContext();
|
||||
@@ -134,7 +135,7 @@ namespace StgSharp
|
||||
/**/
|
||||
}
|
||||
|
||||
public override void Main(params object[] args)
|
||||
public override void Main()
|
||||
{
|
||||
ProcessInput(WindowID);
|
||||
|
||||
@@ -155,8 +156,8 @@ namespace StgSharp
|
||||
float time = (float)InternalIO.glfwGetTime();
|
||||
|
||||
gl.SetValue(color,
|
||||
0.5f + MathF.Sin(time),
|
||||
0.5f + MathF.Sin(time * 0.1f),
|
||||
0.5f + MathF.Cos(time),
|
||||
0.5f + MathF.Sin(time * 0.8f + 2 * Scaler.Pi / 3),
|
||||
0.5f + MathF.Sin(time/* - 0.667f * 3.14f/**/)
|
||||
);
|
||||
|
||||
@@ -178,12 +179,13 @@ namespace StgSharp
|
||||
//StgSharp.TryCreatWindow();
|
||||
|
||||
/**/
|
||||
|
||||
StgSharp.Init();
|
||||
StgSharp.InitGL(4, 6);
|
||||
StgSharp.GlobalSetting.VSyncActivated = false;
|
||||
StgSharpDemoForm demoForm = new StgSharpDemoForm();
|
||||
demoForm.Init();
|
||||
demoForm.Show();
|
||||
StgSharp.Terminate();
|
||||
/**/
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user