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
@@ -2,73 +2,27 @@
Info @ 2024-01-03T11:51:40.4340523+08:00
Info @ 2024-02-12T22:23:25.9065242+08:00
Program start
Info @ 2024-01-03T11:51:40.6745399+08:00
Successfully load GLFW APIs. StgSharp is now working on p/invoke mode
Info @ 2024-01-03T11:51:42.9888934+08:00
Successfully create a context binded to current form. Its ID is 1443106161584
Info @ 2024-01-03T11:51:43.3177952+08:00
Find core OpenGL version.
Successfully load all OpenGL 1.0 APIs
Successfully load all OpenGL 1.1 APIs
Successfully load all OpenGL 1.2 APIs
Successfully load all OpenGL 1.3 APIs
Successfully load all OpenGL 1.4 APIs
Successfully load all OpenGL 1.5 APIs
Successfully load all OpenGL 2.0 APIs
Successfully load all OpenGL 2.1 APIs
Successfully load all OpenGL 3.0 APIs
Successfully load all OpenGL 3.1 APIs
Successfully load all OpenGL 3.2 APIs
Successfully load all OpenGL 3.3 APIs
Successfully load all OpenGL 4.0 APIs
Successfully load all OpenGL 4.1 APIs
Successfully load all OpenGL 4.2 APIs
Successfully load all OpenGL 4.3 APIs
Successfully load all OpenGL 4.4 APIs
Cannot load OpenGL api called glGetnTexImage, this api may not exist or supported.
Cannot load OpenGL api called glGetnUniformdv, this api may not exist or supported.
Successfully load all OpenGL 4.5 APIs
Cannot load OpenGL api called glMultiDrawArraysIndirectCount, this api may not exist or supported.
Cannot load OpenGL api called glMultiDrawElementsIndirectCount, this api may not exist or supported.
Successfully load all OpenGL 4.6 APIs
Info @ 2024-01-03T11:51:43.3362791+08:00
No supported OpenGL extensions are found.
Info @ 2024-02-12T22:23:25.9411194+08:00
Successfully create a context binded to current form. Its ID is 1863060439520
Cannot load OpenGL api called glGetString, this api may not exist or supported.
Error @ 2024-02-12T22:23:26.0974980+08:00
Cannot load gl
at StgSharp.Graphics.glManager.LoadGLapi(Form form, GLfuncLoader loader) in D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpDebug\Graphics\GL\glApiManager.cs:line 52
at StgSharp.StgSharpDemoForm.Init(Object[] args) in D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpDebug\Program.cs:line 69
at StgSharp.Program.Main(String[] args) in D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpDebug\Program.cs:line 204
Info @ 2024-01-03T20:22:16.2158195+08:00
Info @ 2024-02-12T22:25:17.1308881+08:00
Program start
Info @ 2024-01-03T20:22:16.2555343+08:00
Successfully load GLFW APIs. StgSharp is now working on p/invoke mode
Info @ 2024-01-03T20:22:16.2633088+08:00
Successfully create a context binded to current form. Its ID is 2975850861888
Info @ 2024-01-03T20:22:16.4447679+08:00
Find core OpenGL version.
Successfully load all OpenGL 1.0 APIs
Successfully load all OpenGL 1.1 APIs
Successfully load all OpenGL 1.2 APIs
Successfully load all OpenGL 1.3 APIs
Successfully load all OpenGL 1.4 APIs
Successfully load all OpenGL 1.5 APIs
Successfully load all OpenGL 2.0 APIs
Successfully load all OpenGL 2.1 APIs
Successfully load all OpenGL 3.0 APIs
Successfully load all OpenGL 3.1 APIs
Successfully load all OpenGL 3.2 APIs
Successfully load all OpenGL 3.3 APIs
Successfully load all OpenGL 4.0 APIs
Successfully load all OpenGL 4.1 APIs
Successfully load all OpenGL 4.2 APIs
Successfully load all OpenGL 4.3 APIs
Successfully load all OpenGL 4.4 APIs
Cannot load OpenGL api called glGetnTexImage, this api may not exist or supported.
Cannot load OpenGL api called glGetnUniformdv, this api may not exist or supported.
Successfully load all OpenGL 4.5 APIs
Cannot load OpenGL api called glMultiDrawArraysIndirectCount, this api may not exist or supported.
Cannot load OpenGL api called glMultiDrawElementsIndirectCount, this api may not exist or supported.
Successfully load all OpenGL 4.6 APIs
Info @ 2024-01-03T20:22:16.4632028+08:00
No supported OpenGL extensions are found.
Info @ 2024-02-12T22:25:17.1649973+08:00
Successfully create a context binded to current form. Its ID is 2430545600432
Cannot load OpenGL api called glGetString, this api may not exist or supported.
Error @ 2024-02-12T22:25:17.3222564+08:00
Cannot load gl
at StgSharp.Graphics.glManager.LoadGLapi(Form form, GLfuncLoader loader) in D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpDebug\Graphics\GL\glApiManager.cs:line 52
at StgSharp.StgSharpDemoForm.Init(Object[] args) in D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpDebug\Program.cs:line 69
at StgSharp.Program.Main(String[] args) in D:\NitloadIndustry\研究项目\1-Flagship\TH2020\ProjectFile\源代码\StgSharpDebug\Program.cs:line 204
Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

@@ -0,0 +1,17 @@
#version 330 core
in vec3 TexColor;
in vec2 TexCoord;
out vec4 FragColor;
uniform sampler2D ourTexture;
uniform sampler2D ourTexture2;
void main()
{
vec4 tex1 = texture(ourTexture, TexCoord);
vec4 tex2 = texture(ourTexture2,TexCoord);
FragColor = mix(tex1,tex2,0.2) /**/ *vec4( TexColor,1.0) /**/;
}
@@ -0,0 +1,20 @@
#version 330 core
layout(location = 0) in vec3 aPos;
layout(location = 1) in vec3 aColor;
layout(location = 2) in vec2 aTextCoord;
out vec3 TexColor;
out vec2 TexCoord;
uniform vec3 color;
void main()
{
gl_Position = vec4(aPos.xyz,1.0);
TexColor = color;
TexCoord = aTextCoord;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,86 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"StgSharpDebug/1.0.0": {
"dependencies": {
"Microsoft.Windows.CsWin32": "0.3.49-beta"
},
"runtime": {
"StgSharpDebug.dll": {}
}
},
"Microsoft.Windows.CsWin32/0.3.49-beta": {
"dependencies": {
"Microsoft.Windows.SDK.Win32Docs": "0.1.42-alpha",
"Microsoft.Windows.SDK.Win32Metadata": "55.0.45-preview",
"Microsoft.Windows.WDK.Win32Metadata": "0.9.9-experimental",
"System.Memory": "4.5.5",
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
},
"Microsoft.Windows.SDK.Win32Docs/0.1.42-alpha": {},
"Microsoft.Windows.SDK.Win32Metadata/55.0.45-preview": {},
"Microsoft.Windows.WDK.Win32Metadata/0.9.9-experimental": {
"dependencies": {
"Microsoft.Windows.SDK.Win32Metadata": "55.0.45-preview"
}
},
"System.Memory/4.5.5": {},
"System.Runtime.CompilerServices.Unsafe/6.0.0": {}
}
},
"libraries": {
"StgSharpDebug/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Microsoft.Windows.CsWin32/0.3.49-beta": {
"type": "package",
"serviceable": true,
"sha512": "sha512-/iAXplVDKESFyLz/MShuVYVx62YFvFePpq3qrzREl8KScQqG6Z2kV7r9UJTjQS1g+hfy3V+e4m1x9lsu24YNSg==",
"path": "microsoft.windows.cswin32/0.3.49-beta",
"hashPath": "microsoft.windows.cswin32.0.3.49-beta.nupkg.sha512"
},
"Microsoft.Windows.SDK.Win32Docs/0.1.42-alpha": {
"type": "package",
"serviceable": true,
"sha512": "sha512-Z/9po23gUA9aoukirh2ItMU2ZS9++Js9Gdds9fu5yuMojDrmArvY2y+tq9985tR3cxFxpZO1O35Wjfo0khj5HA==",
"path": "microsoft.windows.sdk.win32docs/0.1.42-alpha",
"hashPath": "microsoft.windows.sdk.win32docs.0.1.42-alpha.nupkg.sha512"
},
"Microsoft.Windows.SDK.Win32Metadata/55.0.45-preview": {
"type": "package",
"serviceable": true,
"sha512": "sha512-2i1kVIk8rMuMCYtoeYeWbmCRLqNgb63Berac3Gv+J/pjp0oucopasKgLQNslryhsgBl4xex9ENhJX2MXEW5vdA==",
"path": "microsoft.windows.sdk.win32metadata/55.0.45-preview",
"hashPath": "microsoft.windows.sdk.win32metadata.55.0.45-preview.nupkg.sha512"
},
"Microsoft.Windows.WDK.Win32Metadata/0.9.9-experimental": {
"type": "package",
"serviceable": true,
"sha512": "sha512-cncPlxLqR25mFOuvpxZPgXgJqRmXyV5eTULj/9w8AQvO/c1xJDEapohRsWkYaia7hCR/EwEzBHr7RU9u93T03w==",
"path": "microsoft.windows.wdk.win32metadata/0.9.9-experimental",
"hashPath": "microsoft.windows.wdk.win32metadata.0.9.9-experimental.nupkg.sha512"
},
"System.Memory/4.5.5": {
"type": "package",
"serviceable": true,
"sha512": "sha512-XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==",
"path": "system.memory/4.5.5",
"hashPath": "system.memory.4.5.5.nupkg.sha512"
},
"System.Runtime.CompilerServices.Unsafe/6.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==",
"path": "system.runtime.compilerservices.unsafe/6.0.0",
"hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512"
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
}
}
}
File diff suppressed because it is too large Load Diff