daily update on 20240213 by nitload youmu. 逐步弃用GLFW,正在使用wgl重写glfw底层,相关实现转移到C#实现,SSC彻底变成线性代数计算器。

This commit is contained in:
Nitload
2024-02-13 23:42:22 +08:00
parent 8391569482
commit a2241a5a58
307 changed files with 16701 additions and 10296 deletions
+7 -9
View File
@@ -17,25 +17,24 @@ namespace StgSharp
[DllImport(SSC_libname, EntryPoint = "linkShaderProgram",
CallingConvention = CallingConvention.Cdecl)]
internal static extern uint InternalLinkShaderProgram(uint shaderProgram);
internal static extern unsafe uint InternalLinkShaderProgram(GLcontext* context, uint shaderProgram);
[DllImport(SSC_libname, EntryPoint = "loadShaderCode",
CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
internal static extern unsafe uint InternalLoadShaderCode(byte* shaderCode, int shaderType);
[DllImport(SSC_libname, EntryPoint = "setCurrentGLContext",
CallingConvention = CallingConvention.Cdecl)]
internal static extern unsafe void InternalSetCurrentGLContext(IntPtr windowID, GLcontext* context);
internal static extern unsafe uint InternalLoadShaderCode(GLcontext* context, byte* shaderCode, int shaderType);
[DllImport(SSC_libname, EntryPoint = "readLog",
CallingConvention = CallingConvention.Cdecl)]
internal static extern unsafe IntPtr InternalReadLog();
internal static extern unsafe IntPtr InternalReadSSCLog();
[DllImport(SSC_libname, EntryPoint = "loadImageData",
CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
internal static extern unsafe void InternalLoadImage(string fileName, Image.ImageInfo* output, ImageLoader loader);
[DllImport(SSC_libname, EntryPoint = "unloadImageData",
CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
internal static extern unsafe void InternalUnloadImage(Image.ImageInfo* output);
#endregion
}
@@ -53,7 +52,6 @@ namespace StgSharp.Graphics
#region glapi
internal unsafe delegate*<uint, GLfixed, void> glAccumxOES;
internal unsafe delegate*<uint, ulong, uint, bool> glAcquireKeyedMutexWin32EXT;
internal unsafe delegate*<uint, void> glActiveProgramEXT;