mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-27 06:45:48 +00:00
17 lines
383 B
C#
17 lines
383 B
C#
|
using System;
|
||
|
using System.Runtime.InteropServices;
|
||
|
|
||
|
namespace OpenTK.Platform.MacOS
|
||
|
{
|
||
|
using CGLContextObj = IntPtr;
|
||
|
|
||
|
static class Cgl
|
||
|
{
|
||
|
const string lib = "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL";
|
||
|
|
||
|
[DllImport(lib, EntryPoint = "CGLGetCurrentContext")]
|
||
|
public static extern CGLContextObj GetCurrentContext();
|
||
|
}
|
||
|
}
|
||
|
|