daily update on 20240325 by nitload youmu
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user