daily update on 20231113 by nitload youmu, upgrade gl loader complete

This commit is contained in:
Nitload
2023-11-14 02:51:12 +08:00
parent dac5f2455b
commit ae804553ce
84 changed files with 5492 additions and 98112 deletions
@@ -13,19 +13,19 @@ namespace StgSharp.Graphics
public unsafe Shader()
{
programID = GL.gl->CreateProgram();
programID = GL.gl.CreateProgram();
}
public unsafe void CompileVertexShader(string shaderCode)
{
vertexShaderID = GL.CompileShader(shaderCode, ShaderType.VERTEX);
GL.gl->AttachShader(programID, vertexShaderID);
GL.gl.AttachShader(programID, vertexShaderID);
}
public unsafe void CompileFragmentShader(string shaderCode)
{
fragmentShaderID = GL.CompileShader(shaderCode, ShaderType.FRAGMENT);
GL.gl->AttachShader(programID, fragmentShaderID);
GL.gl.AttachShader(programID, fragmentShaderID);
}
public void Link()
@@ -50,7 +50,7 @@ namespace StgSharp.Graphics
public unsafe void Use()
{
GL.gl->UseProgram(programID);
GL.gl.UseProgram(programID);
}
}