daily update on 20240325 by nitload youmu

This commit is contained in:
YoumuLiu
2024-03-25 09:26:53 +08:00
parent 9a10ec201c
commit 02be081eee
142 changed files with 11277 additions and 572 deletions
+4 -4
View File
@@ -20,10 +20,10 @@ namespace StgSharp
public static unsafe void ProcessInput(IntPtr windowPtr)
{
if (InternalIO.glfwGetKey((GLFWwindow*)windowPtr, (int)Operation.Key.ESCAPE)
if (InternalIO.glfwGetKey(windowPtr, (int)Operation.Key.ESCAPE)
== KeyStatus.PRESS)
{
InternalIO.glfwSetWindowShouldClose((GLFWwindow*)windowPtr, 1);
InternalIO.glfwSetWindowShouldClose(windowPtr, 1);
}
}
@@ -145,7 +145,7 @@ namespace StgSharp
vao.Bind(0);
shader.Use();
/**/
texture.Activate(TextureUnit.Unit0);
texture.Bind2D(0);
@@ -153,7 +153,7 @@ namespace StgSharp
texture.Bind2D(1);
/**/
float time = (float)InternalIO.glfwGetTime();
float time = CurrentFrameCount / 60.0f;
gl.SetValue(color,
0.5f + MathF.Cos(time),