daily update on 20240320 by nitload youmu

This commit is contained in:
YoumuLiu
2024-03-21 02:01:17 +08:00
parent 0c50c6282e
commit 9a10ec201c
91 changed files with 1150 additions and 1815 deletions
+2 -11
View File
@@ -48,14 +48,9 @@ namespace StgSharp.Graphics
private GLcontext* api;
private FrameOperationBuffer frameOpBuffer;
private glSHandle unupdatedFrame = glSHandle.Alloc(0);
internal GLonUpdate(GLcontext* context)
{
if (frameOpBuffer == null)
{
frameOpBuffer = new FrameOperationBuffer();
}
api = context;
}
@@ -263,7 +258,7 @@ namespace StgSharp.Graphics
default:
InternalIO.InternalWriteLog(
$"{($"Parameter error in parameter {type} method DrawElements. ")}{($"Only {TypeCode.Byte}, {TypeCode.UInt16}, {TypeCode.UInt32} types are suporrted.")}",
$"{$"Parameter error in parameter {type} method DrawElements. "}{$"Only {TypeCode.Byte}, {TypeCode.UInt16}, {TypeCode.UInt32} types are suporrted."}",
LogType.Error);
return;
}
@@ -369,9 +364,6 @@ namespace StgSharp.Graphics
frameOpBuffer.MethodEnqueue(SetVertexArrayPtr);
}
void IglFunc.SwitchContext()
{
}
unsafe void IglFunc.TextureImage2d<T>(int target, int level, uint internalformat, uint width, uint height, uint format, uint type, glHandle pixels)
{
@@ -404,8 +396,7 @@ namespace StgSharp.Graphics
frameOpBuffer.MethodEnqueue(ViewPortPtr);
}
GLcontext* IglFunc.Context
=> api;
GLcontext* IglFunc.Context => api;
}
}