daily update on 20231104 by nitload youmu
This commit is contained in:
@@ -15,11 +15,12 @@ namespace StgSharp
|
||||
internal static class Program
|
||||
{
|
||||
|
||||
|
||||
internal unsafe static void DebugMain(string[] args)
|
||||
{
|
||||
|
||||
InternalIO.InternalWriteLog("\n\n\n", "Program start", LogType.Info);
|
||||
InternalIO.InternalWriteLog($"{typeof(vec3d).Name}", LogType.Info);
|
||||
|
||||
Graphic.InitGL(4, 6);
|
||||
|
||||
//GL.glfw->WindowHint(GLFW.GLFW_DECORATED, GLFW.GL_FALSE);
|
||||
@@ -87,7 +88,7 @@ namespace StgSharp
|
||||
|
||||
|
||||
|
||||
while (InternalIO.glfw_WindowShouldClose(f.windowID) == 0)
|
||||
while (InternalIO.glfw.WindowShouldClose(f.windowID) == 0)
|
||||
{
|
||||
ProcessInput(f.windowID);
|
||||
|
||||
@@ -102,9 +103,9 @@ namespace StgSharp
|
||||
|
||||
GL.glBindVertexArray(0);
|
||||
|
||||
InternalIO.glfw_SwapBuffers(f.windowID);
|
||||
InternalIO.glfw_PollEvents();
|
||||
InternalIO.glfw_PollEvents();
|
||||
InternalIO.glfw.SwapBuffers(f.windowID);
|
||||
InternalIO.glfw.PollEvents();
|
||||
InternalIO.glfw.PollEvents();
|
||||
}
|
||||
|
||||
/**/
|
||||
@@ -119,7 +120,7 @@ namespace StgSharp
|
||||
Graphic.glDeleteBuffers(1, &vao);
|
||||
/**/
|
||||
|
||||
InternalIO.glfw_Terminate();
|
||||
InternalIO.glfw.Terminate();
|
||||
}
|
||||
|
||||
internal unsafe static void Main(string[] args)
|
||||
@@ -143,14 +144,14 @@ namespace StgSharp
|
||||
|
||||
public static unsafe void ProcessInput(IntPtr windowPtr)
|
||||
{
|
||||
if (InternalIO.glfw_GetKey(windowPtr, (int)Control.Key.ESCAPE)
|
||||
if (InternalIO.glfw.GetKey(windowPtr, (int)Control.Key.ESCAPE)
|
||||
== KeyStatus.PRESS)
|
||||
{
|
||||
InternalIO.glfw_SetWindowShouldClose(windowPtr, 1);
|
||||
InternalIO.glfw.SetWindowShouldClose(windowPtr, 1);
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport(InternalIO.SSGC_libname, EntryPoint = "printShaderCode",
|
||||
[DllImport(InternalIO.SSC_libname, EntryPoint = "printShaderCode",
|
||||
CallingConvention = CallingConvention.Cdecl)]
|
||||
internal extern unsafe static void PrintShader(byte** shadercode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user