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