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
@@ -42,10 +42,12 @@ namespace StgSharp
public static unsafe partial class StgSharp
{
internal const int ssdSegmentLength = 16;
static byte[] _currentHash;
private static bool _inited;
internal const int ssdSegmentLength = 16;
private static int _mainThreadID = -1;
public static byte[] CurrentAssemblyHash
{
@@ -65,8 +67,15 @@ namespace StgSharp
}
}
public static int MainThreadID
{
get => (_mainThreadID == -1) ?
throw new InvalidOperationException("StgSharp environment is not inited. " +
"Main thread id is not available") : _mainThreadID;
}
/// <summary>
/// Init an instance of OpenGL program,
/// CustomizeInit an instance of OpenGL program,
/// This method should be called before any other StgSharp api.
/// </summary>
public static void InitGL(int majorVersion, int minorVersion)
@@ -99,5 +108,5 @@ namespace StgSharp
}
}//------------------------end of class------------------------//
}//-------------------------------------- End of Class ---------------------------------------//
}