mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-27 22:55:27 +00:00
19 lines
658 B
C#
Executable file
19 lines
658 B
C#
Executable file
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace OpenTK.Platform.MacOS
|
|
{
|
|
static class Selector
|
|
{
|
|
// Frequently used selectors
|
|
public static readonly IntPtr Init = Selector.Get("init");
|
|
public static readonly IntPtr InitWithCoder = Selector.Get("initWithCoder:");
|
|
public static readonly IntPtr Alloc = Selector.Get("alloc");
|
|
public static readonly IntPtr Release = Selector.Get("release");
|
|
public static readonly IntPtr Autorelease = Selector.Get("autorelease");
|
|
|
|
[DllImport ("/usr/lib/libobjc.dylib", EntryPoint="sel_registerName")]
|
|
public extern static IntPtr Get(string name);
|
|
}
|
|
}
|