daily update on 20240209 by nitload youmu

This commit is contained in:
Nitload
2024-02-09 23:31:33 +08:00
parent 6fe6b3b3cf
commit 8391569482
159 changed files with 948 additions and 2431 deletions
@@ -15,7 +15,7 @@ namespace StgSharp.Graphics
/// <param name="count">Amount of EBO to be created.</param>
/// <returns></returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected ElementBuffer CreateElementBuffer(uint count)
protected ElementBuffer CreateElementBuffer(int count)
{
return new ElementBuffer(count, this.gl);
}
@@ -27,7 +27,7 @@ namespace StgSharp.Graphics
/// <param name="count">Amount of VAO to be crated.</param>
/// <returns></returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected VertexArray CreateVertexArray(uint count)
protected VertexArray CreateVertexArray(int count)
{
return new VertexArray(count, gl);
}
@@ -35,22 +35,21 @@ namespace StgSharp.Graphics
/// <summary>
/// Create a sets of <see cref="Texture"/>
/// </summary>
/// <param name="n">Amount of textures to be crated.</param>
/// <param name="count">Amount of textures to be crated.</param>
/// <returns></returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected Texture CreateTexture(uint n)
protected Texture CreateTexture(int count)
{
return new Texture(n, this.GL);
return new Texture(count, this.GL);
}
/// <summary>
/// Create aset of <see cref="VertexBuffer"/>.
/// </summary>
/// <param name="count">Amount of Object to be created.</param>
/// <returns></returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected VertexBuffer CreateVertexBuffer(uint count)
protected VertexBuffer CreateVertexBuffer(int count)
{
return new VertexBuffer(count, gl);
}