use shared texture.

This commit is contained in:
hecomi
2019-09-21 02:21:53 +09:00
parent 20589c23b9
commit cfdfb1f50e
12 changed files with 60 additions and 16 deletions
@@ -163,6 +163,8 @@ public static class Lib
[DllImport("uDesktopDuplication")]
public static extern int SetTexturePtr(int id, IntPtr ptr);
[DllImport("uDesktopDuplication")]
public static extern IntPtr GetSharedTextureHandle(int id);
[DllImport("uDesktopDuplication")]
public static extern int GetMoveRectCount(int id);
[DllImport("uDesktopDuplication", EntryPoint = "GetMoveRects")]
private static extern IntPtr GetMoveRects_Internal(int id);