Advertisement
Guest User

Imgui.net DX11

a guest
Sep 14th, 2019
920
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.21 KB | None | 0 0
  1.     class ImplDx11
  2.     {
  3.         [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, EntryPoint = "ImGui_ImplDX11_Init")]
  4.         public static extern bool Init(IntPtr device);
  5.  
  6.         [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, EntryPoint = "ImGui_ImplDX11_Shutdown")]
  7.         public static extern void Shutdown();
  8.  
  9.         [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, EntryPoint = "ImGui_ImplDX11_NewFrame")]
  10.         public static extern void NewFrame();
  11.  
  12.         [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, EntryPoint = "ImGui_ImplDX11_RenderDrawData")]
  13.         public static extern void RenderDrawData(ImDrawDataPtr drawData);
  14.  
  15.         [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, EntryPoint = "ImGui_ImplDX11_CreateDeviceObjects")]
  16.         public static extern bool CreateDeviceObjects();
  17.  
  18.         [DllImport("cimgui", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, EntryPoint = "ImGui_ImplDX11_InvalidateDeviceObjects")]
  19.         public static extern void InvalidateDeviceObjects();
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement