-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnityNativeWrapper.cs
More file actions
23 lines (16 loc) · 863 Bytes
/
UnityNativeWrapper.cs
File metadata and controls
23 lines (16 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System.Runtime.InteropServices;
using UnityEngine;
using System;
public class UnityNativeWrapper
{
[DllImport("UnityNativeWrapper", CallingConvention =CallingConvention.Cdecl)]
public static extern IntPtr CreateUnityNative();
[DllImport("UnityNativeWrapper", CallingConvention =CallingConvention.Cdecl)]
public static extern int GetPointCount(IntPtr unityNative);
[DllImport("UnityNativeWrapper", CallingConvention =CallingConvention.Cdecl)]
public static extern void FillPoints(IntPtr unityNative, int count);
[DllImport("UnityNativeWrapper", CallingConvention =CallingConvention.Cdecl)]
public static extern void DestroyUnityNative(IntPtr unityNative);
[DllImport("UnityNativeWrapper", CallingConvention =CallingConvention.Cdecl)]
public static extern void GetPoints(IntPtr unityNative, IntPtr pointData);
}