dependencies
third-party
imgui
src
examples
imgui_impl_metal.h
Go to the documentation of this file.
1
// dear imgui: Renderer for Metal
2
// This needs to be used along with a Platform Binding (e.g. OSX)
3
4
// Implemented features:
5
// [X] Renderer: User texture binding. Use 'MTLTexture' as ImTextureID. Read the FAQ about ImTextureID!
6
// [X] Renderer: Support for large meshes (64k+ vertices) with 16-bit indices.
7
8
// You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this.
9
// If you are new to dear imgui, read examples/README.txt and read the documentation at the top of imgui.cpp.
10
// https://github.com/ocornut/imgui
11
12
@class
MTLRenderPassDescriptor;
13
@protocol
MTLDevice, MTLCommandBuffer, MTLRenderCommandEncoder;
14
15
IMGUI_IMPL_API
bool
ImGui_ImplMetal_Init
(
id<MTLDevice>
device);
16
IMGUI_IMPL_API
void
ImGui_ImplMetal_Shutdown
();
17
IMGUI_IMPL_API
void
ImGui_ImplMetal_NewFrame
(MTLRenderPassDescriptor *renderPassDescriptor);
18
IMGUI_IMPL_API
void
ImGui_ImplMetal_RenderDrawData
(
ImDrawData
* draw_data,
19
id<MTLCommandBuffer>
commandBuffer,
20
id<MTLRenderCommandEncoder>
commandEncoder);
21
22
// Called by Init/NewFrame/Shutdown
23
IMGUI_IMPL_API
bool
ImGui_ImplMetal_CreateFontsTexture
(
id<MTLDevice>
device);
24
IMGUI_IMPL_API
void
ImGui_ImplMetal_DestroyFontsTexture
();
25
IMGUI_IMPL_API
bool
ImGui_ImplMetal_CreateDeviceObjects
(
id<MTLDevice>
device);
26
IMGUI_IMPL_API
void
ImGui_ImplMetal_DestroyDeviceObjects
();
ImGui_ImplMetal_CreateDeviceObjects
IMGUI_IMPL_API bool ImGui_ImplMetal_CreateDeviceObjects(id< MTLDevice > device)
ImGui_ImplMetal_DestroyFontsTexture
IMGUI_IMPL_API void ImGui_ImplMetal_DestroyFontsTexture()
id
GLenum GLuint id
Definition:
glcorearb.h:2695
ImDrawData
Definition:
imgui.h:2068
ImGui_ImplMetal_Shutdown
IMGUI_IMPL_API void ImGui_ImplMetal_Shutdown()
ImGui_ImplMetal_NewFrame
IMGUI_IMPL_API void ImGui_ImplMetal_NewFrame(MTLRenderPassDescriptor *renderPassDescriptor)
IMGUI_IMPL_API
#define IMGUI_IMPL_API
Definition:
imgui.h:73
ImGui_ImplMetal_DestroyDeviceObjects
IMGUI_IMPL_API void ImGui_ImplMetal_DestroyDeviceObjects()
ImGui_ImplMetal_CreateFontsTexture
IMGUI_IMPL_API bool ImGui_ImplMetal_CreateFontsTexture(id< MTLDevice > device)
ImGui_ImplMetal_Init
IMGUI_IMPL_API bool ImGui_ImplMetal_Init(id< MTLDevice > device)
ImGui_ImplMetal_RenderDrawData
IMGUI_IMPL_API void ImGui_ImplMetal_RenderDrawData(ImDrawData *draw_data, id< MTLCommandBuffer > commandBuffer, id< MTLRenderCommandEncoder > commandEncoder)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:54