daily update on 20240828 by nitload youmu, autotexture added
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user