WGLHelper.cs 419 B

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