Examples: Apple + Metal4: add example (#9466, #9451)

+ Amend edit to EXAMPLES.md, comment build.xml
This commit is contained in:
Jonathan Hoffstadt
2026-07-08 10:14:55 -05:00
committed by ocornut
parent 68fce9f3bd
commit 62399b5bfe
11 changed files with 1141 additions and 3 deletions

View File

@@ -160,6 +160,7 @@ Other Changes:
to spawn multiple-thread to manage OpenGL. (#9403)
- Examples:
- Android: update to AGP 9.2.0 to support Gradle 9.6.0.
- Apple+Metal4: added new example. (#9465, #9451) [@hoffstadt]
- OpenGL3+GLFW/SDL2/SDL3: allow Wine compatibility by passing empty GLSL version
string to ImGui_ImplOpenGL3_Init() to let backend decide of a GLSL version based
on actual GL version obtained. (#9427, #6577) [@perminovVS]

View File

@@ -60,10 +60,12 @@ Android + OpenGL3 (ES) example. <BR>
[example_apple_metal/](https://github.com/ocornut/imgui/tree/master/examples/example_apple_metal/) <BR>
OSX & iOS + Metal example. <BR>
= main.m + imgui_impl_osx.mm + imgui_impl_metal.mm <BR>
= main.mm + imgui_impl_osx.mm + imgui_impl_metal.mm <BR>
It is based on the "cross-platform" game template provided with Xcode as of Xcode 9.
(NB: imgui_impl_osx.mm is currently not as feature complete as other platforms backends.
You may prefer to use the GLFW Or SDL backends, which will also support Windows and Linux.)
[example_apple_metal4/](https://github.com/ocornut/imgui/blob/master/examples/example_apple_metal4/) <BR>
OSX & iOS + Metal4 example, Mac only. <BR>
= main.mm + imgui_impl_osx.mm + imgui_impl_metal4.mm <BR>
[example_apple_opengl2/](https://github.com/ocornut/imgui/blob/master/examples/example_apple_opengl2/) <BR>
OSX + OpenGL2 example. <BR>