WGLHelper.cs
1 using System; 2 using System.Runtime.InteropServices; 3 using System.Runtime.Versioning; 4 5 namespace Ryujinx.Graphics.OpenGL.Helper 6 { 7 [SupportedOSPlatform("windows")] 8 internal static partial class WGLHelper 9 { 10 private const string LibraryName = "OPENGL32.DLL"; 11 12 [LibraryImport(LibraryName, EntryPoint = "wglGetCurrentContext")] 13 public static partial IntPtr GetCurrentContext(); 14 } 15 }