daily update on 20240207 by nitload youmu

This commit is contained in:
Nitload
2024-02-07 13:47:12 +08:00
parent 8548757bbf
commit 6fe6b3b3cf
37 changed files with 231 additions and 196 deletions
+7 -6
View File
@@ -45,12 +45,13 @@ namespace StgSharp.Graphics
/// <param name="shader">A shader part to attach</param>
void AttachShader(glHandle program, glHandle shader);
//TODO:BindBuffer注释没写完
/// <summary>
/// Bind the indexed buffer object to certain type of buffer
/// </summary>
/// <param name="bufferType"></param>
/// <param name="index"></param>
void BindBuffer(BufferType bufferType, uint index);
/// <param name="handle"></param>
void BindBuffer(BufferType bufferType, glHandle handle);
/// <summary>
/// Same function as OpenGL api, glBindTexture.
@@ -63,7 +64,7 @@ namespace StgSharp.Graphics
/// Same function as OpenGL api, glBindVertexArray
/// </summary>
/// <param name="index"></param>
void BindVertexArray(uint index);
void BindVertexArray(glHandle index);
/// <summary>
/// Clear buffers to preset values
@@ -87,11 +88,11 @@ namespace StgSharp.Graphics
/// <summary>
/// Conpile the provided shader code in string form.
/// </summary>
/// <param name="shaderCode">A string represent the shader's code</param>
/// <param name="shaderCodeArray">A string array contains all shaders' code</param>
/// <param name="shaderType">An <see cref="ShaderType"/> enum represent the type of the shader to
/// conpile, including vertex shader and fragment shader.</param>
/// <returns>An handle of conpiled shader</returns>
glHandleSet CompileShader(ShaderType shaderType, params string[] shaderCode);
glHandleSet CompileShader(ShaderType shaderType, params string[] shaderCodeArray);
/// <summary>
/// Same function as OpenGL api, glCreateProgram
@@ -123,7 +124,7 @@ namespace StgSharp.Graphics
/// Same function as OpenGL api, glDeleteBuffer. This method can delete one buffer in one call
/// </summary>
/// <param name="handle">a handle representing the buffer to be deleted</param>
unsafe void DeleteBuffer(uint handle);
void DeleteBuffer(glHandle handle);
/// <summary>
/// Same function as OpenGL api, glDeleteBuffer. This method can delete a sets of buffers in one call.