-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathSofaGraphicAPI.cs
More file actions
34 lines (25 loc) · 1.18 KB
/
SofaGraphicAPI.cs
File metadata and controls
34 lines (25 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using UnityEngine;
using System.Runtime.InteropServices;
using System.Collections.Generic;
namespace SofaUnityAPI
{
public class SofaGraphicAPI : IDisposable
{
public void Dispose()
{
}
[DllImport("SofaVerseAPI")]
public static extern int AddRenderEvent_SetTexture(System.IntPtr simuContext, System.IntPtr texture, int w, int h);
[DllImport("SofaVerseAPI")]
public static extern int AddRenderEvent_SetPluginTexture(System.IntPtr simuContext, System.IntPtr texture, int w, int h, string objectName);
[DllImport("VirtualXRay")]
public static extern int AddRenderEvent_SetVirtualXRayTexture(System.IntPtr simuContext, System.IntPtr texture, int w, int h, string objectName, int graphicsType);
[DllImport("ImagingUS")]
public static extern int AddRenderEvent_SetImagingUSTexture(System.IntPtr simuContext, System.IntPtr texture, int w, int h, string objectName, int graphicsType);
[DllImport("SofaVerseAPI")]
public static extern void clearUp(System.IntPtr simuContext);
[DllImport("SofaVerseAPI")]
public static extern IntPtr getRenderEventFunc();
}
}