daily update on 20240901 by nitload youmu

This commit is contained in:
Nitload
2024-09-02 05:57:07 +08:00
parent 1ee4e4a42f
commit 0979123ac0
47 changed files with 869 additions and 707 deletions
@@ -41,6 +41,12 @@ using StgSharp.Collections;
namespace StgSharp.Graphics.OpenGL
{
/// <summary>
/// A collection of a sets of OpenGL textures. The collection can automatically select one of the
/// texture with minimum costs to upgrade pixels to buffer. Usually <see cref="AutoTextureGL"/> is used for
/// <see cref="IImageProvider"/> loading, but not for target of
/// <see cref="OpenGLFunction.FrameBufferTexture2d(FrameBufferTarget, uint, Texture2DTarget, GlHandle, int)"/>.
/// </summary>
public sealed class AutoTextureGL
{
private BidirectionalDictionary<Image, int> imageIndexMap = new BidirectionalDictionary<Image, int>();
@@ -70,7 +76,7 @@ namespace StgSharp.Graphics.OpenGL
propertyCache = new TextureProperty[_size];
}
public AutoTextureGL(int textureObjectSize, [NotNull]glRenderStream binding)
public AutoTextureGL(int textureObjectSize, [NotNull]glRender binding)
{
this._size = textureObjectSize;
imageIndexMap = new BidirectionalDictionary<Image, int>();