daily update on 20240209 by nitload youmu
This commit is contained in:
@@ -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