daily update on 20240209 by nitload youmu
This commit is contained in:
@@ -37,8 +37,6 @@ namespace StgSharp
|
||||
internal static extern unsafe void InternalLoadImage(string fileName, Image.ImageInfo* output, ImageLoader loader);
|
||||
|
||||
#endregion
|
||||
|
||||
internal static IglFramework glfw = null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -48,8 +46,6 @@ namespace StgSharp.Graphics
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
||||
public delegate IntPtr ImageLoader(string name, ref int width, ref int height, ref int definedChannel, int desiredChannel);
|
||||
|
||||
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct GLcontext
|
||||
{
|
||||
@@ -192,8 +188,8 @@ namespace StgSharp.Graphics
|
||||
internal unsafe delegate*<uint, uint, int, int, int, int, int, int, int, int, uint, uint, void> glBlitNamedFramebuffer;
|
||||
internal unsafe delegate*<uint, uint, ulong, UIntPtr, void> glBufferAddressRangeNV;
|
||||
internal unsafe delegate*<uint, uint, ulong, void> glBufferAttachMemoryNV;
|
||||
internal unsafe delegate*<uint, UIntPtr, void*, uint, void> glBufferData;
|
||||
internal unsafe delegate*<uint, UIntPtr, void*, uint, void> glBufferDataARB;
|
||||
internal unsafe delegate*<uint, IntPtr, void*, uint, void> glBufferData;
|
||||
internal unsafe delegate*<uint, IntPtr, void*, uint, void> glBufferDataARB;
|
||||
internal unsafe delegate*<uint, IntPtr, UIntPtr, bool, void> glBufferPageCommitmentARB;
|
||||
internal unsafe delegate*<uint, IntPtr, UIntPtr, uint, ulong, bool, void> glBufferPageCommitmentMemNV;
|
||||
internal unsafe delegate*<uint, uint, int, void> glBufferParameteriAPPLE;
|
||||
@@ -2459,8 +2455,8 @@ namespace StgSharp.Graphics
|
||||
internal unsafe delegate*<uint, uint, bool, uint, void> glVertexAttribP4ui;
|
||||
internal unsafe delegate*<uint, uint, bool, uint*, void> glVertexAttribP4uiv;
|
||||
internal unsafe delegate*<uint, uint, int, void> glVertexAttribParameteriAMD;
|
||||
internal unsafe delegate*<uint, int, uint, bool, uint, void*, void> glVertexAttribPointer;
|
||||
internal unsafe delegate*<uint, int, uint, bool, uint, void*, void> glVertexAttribPointerARB;
|
||||
internal unsafe delegate*<uint, int, uint, int, uint, void*, void> glVertexAttribPointer;
|
||||
internal unsafe delegate*<uint, int, uint, int, uint, void*, void> glVertexAttribPointerARB;
|
||||
internal unsafe delegate*<uint, int, uint, uint, void*, void> glVertexAttribPointerNV;
|
||||
internal unsafe delegate*<uint, uint, double*, void> glVertexAttribs1dvNV;
|
||||
internal unsafe delegate*<uint, uint, float*, void> glVertexAttribs1fvNV;
|
||||
|
||||
@@ -20,6 +20,9 @@ namespace StgSharp
|
||||
|
||||
internal static unsafe partial class InternalIO
|
||||
{
|
||||
internal static Dictionary<TypeCode, uint> GLtype =
|
||||
new Dictionary<TypeCode, uint>();
|
||||
|
||||
internal static IntPtr SSClibPtr = IntPtr.Zero;
|
||||
|
||||
internal const string SS_errorlog =
|
||||
@@ -30,14 +33,13 @@ namespace StgSharp
|
||||
|
||||
static InternalIO()
|
||||
{
|
||||
GLtype.Add(typeof(float), GLconst.FLOAT);
|
||||
GLtype.Add(typeof(int), GLconst.INT);
|
||||
GLtype.Add(typeof(uint), GLconst.UNSIGNED_INT);
|
||||
GLtype.Add(typeof(short), GLconst.SHORT);
|
||||
GLtype.Add(typeof(ushort), GLconst.UNSIGNED_SHORT);
|
||||
GLtype.Add(typeof(sbyte), GLconst.BYTE);
|
||||
GLtype.Add(typeof(byte), GLconst.UNSIGNED_BYTE);
|
||||
|
||||
GLtype.Add(TypeCode.Single, GLconst.FLOAT);
|
||||
GLtype.Add(TypeCode.Int32, GLconst.INT);
|
||||
GLtype.Add(TypeCode.UInt32, GLconst.UNSIGNED_INT);
|
||||
GLtype.Add(TypeCode.Int16, GLconst.SHORT);
|
||||
GLtype.Add(TypeCode.UInt16, GLconst.UNSIGNED_SHORT);
|
||||
GLtype.Add(TypeCode.SByte, GLconst.BYTE);
|
||||
GLtype.Add(TypeCode.Byte, GLconst.UNSIGNED_BYTE);
|
||||
}
|
||||
|
||||
internal static T InternalLoadProc<T>(IntPtr libPtr, string name) where T : Delegate
|
||||
@@ -48,7 +50,7 @@ namespace StgSharp
|
||||
T ret = Marshal.GetDelegateForFunctionPointer<T>(procPtr);
|
||||
return ret;
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user