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
@@ -31,7 +31,7 @@
using System;
using System.Drawing;
namespace StgSharp.Graphics.GL
namespace StgSharp.Graphics.OpenGL
{
//rename types in style of GLconst
@@ -4849,13 +4849,18 @@ namespace StgSharp.Graphics.GL
public static class glAttachment
{
public const uint Depth = GLconst.DEPTH_ATTACHMENT;
public const uint DepthAndStencil = GLconst.DEPTH_STENCIL_ATTACHMENT;
public const uint Stencil = GLconst.STENCIL_ATTACHMENT;
private static int colorRange =
glFunc.GetMaskInteger((uint)GLconst.MAX_COLOR_ATTACHMENTS);
OpenGLFunction.CurrentGL.GetMaskInteger((uint)GLconst.MAX_COLOR_ATTACHMENTS);
public static uint Color(int i)
{
#if DEBUG
if (i>colorRange||i<0)
if ((i > colorRange) || (i < 0))
{
throw new ArgumentOutOfRangeException();
}
@@ -4863,8 +4868,5 @@ namespace StgSharp.Graphics.GL
return (uint)(GLconst.COLOR_ATTACHMENT0 + i);
}
public const uint Depth = GLconst.DEPTH_ATTACHMENT;
public const uint Stencil = GLconst.STENCIL_ATTACHMENT;
public const uint DepthAndStencil = GLconst.DEPTH_STENCIL_ATTACHMENT;
}
}