daily update on 20240828 by nitload youmu, autotexture added

This commit is contained in:
Nitload
2024-08-28 10:58:31 +08:00
parent d082071f2d
commit 1ee4e4a42f
586 changed files with 60910 additions and 123106 deletions
@@ -28,7 +28,7 @@
//
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
using StgSharp.Logic;
using StgSharp.Math;
using System;
@@ -45,9 +45,10 @@ namespace StgSharp.Graphics.OpenGL
public abstract partial class glRenderStream : RenderStream
{
private GlFunction _context;
internal protected GlFunction GL
private OpenGLFunction _context;
protected internal OpenGLFunction GL
{
get { return _context; }
}
@@ -69,11 +70,11 @@ namespace StgSharp.Graphics.OpenGL
}
if (GL == null)
{
_context = GlFunction.BuildGlFunctionPackage(ContextHandle);
_context = OpenGLFunction.BuildGlFunctionPackage(ContextHandle);
}
if (GlFunction.CurrentGL != GL)
if (OpenGLFunction.CurrentGL != GL)
{
GlFunction.CurrentGL = GL;
OpenGLFunction.CurrentGL = GL;
InternalIO.glfwMakeContextCurrent(CanvasHandle);
}
}