daily update on 20240206 by nitload youmu

This commit is contained in:
Nitload
2024-02-06 13:54:30 +08:00
parent 5d778e0f2f
commit 8548757bbf
114 changed files with 86620 additions and 752 deletions
+16 -21
View File
@@ -91,7 +91,7 @@ namespace StgSharp.Graphics
/// <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>
glHandle CompileShader(string shaderCode, ShaderType shaderType);
glHandleSet CompileShader(ShaderType shaderType, params string[] shaderCode);
/// <summary>
/// Same function as OpenGL api, glCreateProgram
@@ -104,7 +104,7 @@ namespace StgSharp.Graphics
/// Used for creating multiple shader program.
/// </summary>
/// <returns>A handle representing all shader programs</returns>
glHandle CreateProgram(int count);
glHandleSet CreateProgram(int count);
/// <summary>
/// Creates a form and its associated
@@ -128,14 +128,14 @@ namespace StgSharp.Graphics
/// <summary>
/// Same function as OpenGL api, glDeleteBuffer. This method can delete a sets of buffers in one call.
/// </summary>
/// <param name="handle">Array of buffers to be deleted</param>
unsafe void DeleteBuffers(glHandle handle);
/// <param name="handleSet">Array of buffers to be deleted</param>
unsafe void DeleteBuffers(glHandleSet handleSet);
/// <summary>
/// Same function as OpenGL api, glDeleteVertexArrays
/// </summary>
/// <param name="handle">Handle of vertex objects.</param>
unsafe void DeleteVertexArrays(glHandle handle);
/// <param name="handleSet">Handle of vertex objects.</param>
unsafe void DeleteVertexArrays(glHandleSet handleSet);
/// <summary>
///
@@ -150,22 +150,22 @@ namespace StgSharp.Graphics
/// Same fucntion as the OpenGL api glGenBuffers
/// </summary>
/// <param name="count"></param>
/// <param name="ptr"></param>
unsafe void GenBuffers(uint count, glHandle ptr);
/// <param name="handleSet"></param>
unsafe void GenBuffers(uint count, glHandleSet handleSet);
/// <summary>
/// Same fucnction as OpenGL api glGenTextures.
/// </summary>
/// <param name="count">amount of textures to generate</param>
/// <param name="handle">Handle of texture</param>
unsafe void GenTextures(uint count, glHandle handle);
/// <param name="handleSet">Handle of texture</param>
unsafe void GenTextures(uint count, glHandleSet handleSet);
/// <summary>
/// Same fucntion as OpenGL api, glGenVertexArray
/// </summary>
/// <param name="count">Amount of vao to be generated</param>
/// <param name="handle">Handle of vao sign array</param>
unsafe void GenVertexArrays(uint count, glHandle handle);
/// <param name="handleSet">Handle of vao sign array</param>
unsafe void GenVertexArrays(uint count, glHandleSet handleSet);
void GetGraphicError();
@@ -189,13 +189,7 @@ namespace StgSharp.Graphics
void SetBufferData<T>(BufferType bufferType, T[] bufferArray, BufferUsage usage) where T : struct, IConvertible;
/// <summary>
/// sets the framebuffer resize callback of the specified <see cref="Form"/>,
///which is called when the framebuffer of the specified <see cref="Form"/> is resized.
/// </summary>
/// <param name="id">The only signiture stands for the <see cref="Form"/> to be controlled</param>
/// <param name="handler">Method hadler </param>
void SetFrameBufferSizeCallback(IntPtr id, FrameBufferSizeHandler handler);
internal void SetFrameBufferSizeCallback(IntPtr id, FrameBufferSizeHandler handler);
/// <summary>
/// Set data value to a float <see cref="Uniform{T,U,V,W}"/>,
@@ -270,6 +264,8 @@ namespace StgSharp.Graphics
/// <param name="pointer"></param>
void SetVertexAttribute(uint index, int size, Type t, bool normalized, uint stride, int pointer);
void SetWindowShouldClose(Form form, bool mark);
void SwapBuffers(Form form);
/// <summary>
@@ -308,7 +304,6 @@ namespace StgSharp.Graphics
/// <param name="height"></param>
void Viewport(int x, int y, uint width, uint height);
void SetWindowShouldClose(Form form, bool mark);
internal void SwitchContext();
}
}