daily update on 20231113 by nitload youmu, upgrade gl loader complete
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user