mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 09:27:00 +00:00
042a3b01d2
# Conflicts: # backends/imgui_impl_dx10.cpp # backends/imgui_impl_dx10.h # backends/imgui_impl_vulkan.h # backends/imgui_impl_win32.cpp # docs/CHANGELOG.txt # examples/README.txt # examples/example_glfw_opengl2/main.cpp # examples/example_glfw_opengl3/main.cpp # examples/example_glfw_vulkan/main.cpp # examples/example_sdl_directx11/main.cpp # examples/example_sdl_opengl2/main.cpp # examples/example_sdl_opengl3/main.cpp # examples/example_sdl_vulkan/main.cpp # examples/example_win32_directx10/main.cpp # examples/example_win32_directx11/main.cpp # examples/example_win32_directx12/main.cpp # examples/example_win32_directx9/main.cpp # imgui.cpp # imgui.h # imgui_demo.cpp # imgui_internal.h
31 lines
1.6 KiB
Objective-C
31 lines
1.6 KiB
Objective-C
// dear imgui: Renderer Backend for Metal
|
|
// This needs to be used along with a Platform Backend (e.g. OSX)
|
|
|
|
// Implemented features:
|
|
// [X] Renderer: User texture binding. Use 'MTLTexture' as ImTextureID. Read the FAQ about ImTextureID!
|
|
// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices.
|
|
// Missing features:
|
|
// [ ] Renderer: Multi-viewport / platform windows.
|
|
|
|
// You can copy and use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this.
|
|
// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
|
|
// Read online: https://github.com/ocornut/imgui/tree/master/docs
|
|
|
|
#include "imgui.h" // IMGUI_IMPL_API
|
|
|
|
@class MTLRenderPassDescriptor;
|
|
@protocol MTLDevice, MTLCommandBuffer, MTLRenderCommandEncoder;
|
|
|
|
IMGUI_IMPL_API bool ImGui_ImplMetal_Init(id<MTLDevice> device);
|
|
IMGUI_IMPL_API void ImGui_ImplMetal_Shutdown();
|
|
IMGUI_IMPL_API void ImGui_ImplMetal_NewFrame(MTLRenderPassDescriptor* renderPassDescriptor);
|
|
IMGUI_IMPL_API void ImGui_ImplMetal_RenderDrawData(ImDrawData* draw_data,
|
|
id<MTLCommandBuffer> commandBuffer,
|
|
id<MTLRenderCommandEncoder> commandEncoder);
|
|
|
|
// Called by Init/NewFrame/Shutdown
|
|
IMGUI_IMPL_API bool ImGui_ImplMetal_CreateFontsTexture(id<MTLDevice> device);
|
|
IMGUI_IMPL_API void ImGui_ImplMetal_DestroyFontsTexture();
|
|
IMGUI_IMPL_API bool ImGui_ImplMetal_CreateDeviceObjects(id<MTLDevice> device);
|
|
IMGUI_IMPL_API void ImGui_ImplMetal_DestroyDeviceObjects();
|