MVVM rebuild complete

This commit is contained in:
Nitload
2024-07-30 09:37:25 +08:00
parent da75200347
commit d082071f2d
68 changed files with 2690 additions and 762 deletions
+5 -5
View File
@@ -52,7 +52,7 @@ namespace StgSharp
[DllImport(SSC_libName, EntryPoint = "linkShaderProgram",
CallingConvention = CallingConvention.Cdecl)]
internal static extern unsafe uint InternalLinkShaderProgram(GLcontext* context, uint shaderProgram);
internal static extern unsafe uint InternalLinkShaderProgram(OpenglContext* context, uint shaderProgram);
[DllImport(SSC_libName, EntryPoint = "readLog",
CallingConvention = CallingConvention.Cdecl)]
@@ -76,7 +76,7 @@ namespace StgSharp.Graphics
public delegate IntPtr ImageLoader(string name, ref int width, ref int height, ref int definedChannel, int desiredChannel);
[StructLayout(LayoutKind.Sequential)]
public struct GLcontext
public struct OpenglContext
{
#region glapi
@@ -2622,18 +2622,18 @@ namespace StgSharp.Graphics
public unsafe override int GetHashCode()
{
fixed (GLcontext* sptr = &this)
fixed (OpenglContext* sptr = &this)
{
return sptr->GetHashCode();
}
}
public static bool operator ==(GLcontext left, GLcontext right)
public static bool operator ==(OpenglContext left, OpenglContext right)
{
return left.Equals(right);
}
public static bool operator !=(GLcontext left, GLcontext right)
public static bool operator !=(OpenglContext left, OpenglContext right)
{
return !(left == right);
}