imgui-odin/metal/impl_metal.odin

20 lines
745 B
Odin
Raw Normal View History

2025-01-12 18:33:36 -05:00
#+build darwin
package impl_metal
import imgui "../"
import mtl "vendor:darwin/Metal"
foreign import impl_metal "../lib/darwin/libdcimgui_impl_metal_arm64.a"
@(default_calling_convention = "cdecl", link_prefix = "cImGui_ImplMetal_")
foreign impl_metal {
Init :: proc(device: ^mtl.Device) -> b8 ---
Shutdown :: proc() ---
NewFrame :: proc( renderPassDescriptor: ^mtl.RenderPassDescriptor) ---
RenderDrawData :: proc(drawData: ^imgui.ImDrawData, commandBuffer: ^mtl.CommandBuffer, commandEncoder: ^mtl.CommandEncoder) ---
CreateFontsTexture :: proc(device: ^mtl.Device) -> b8 ---
DestroyFontsTexture :: proc () ---
CreateDeviceObjects :: proc(device: ^mtl.Device) -> b8 ---
DestroyDeviceObjects :: proc () ---
}