mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-28 14:45:32 +00:00
19 lines
658 B
C#
19 lines
658 B
C#
|
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);
|
||
|
}
|
||
|
}
|