The documentation is not complete, so I cannot build anything #8989
Replies: 1 comment
-
OpenGL and Metal are different graphics APIs. (And Metal is just one of many frameworks that makes up macOS.) You should be using the "OpenGL on Metal" is technically possible through things like ANGLE, but it's very unlikely that's what you're actually doing. (Even so, you would ignore the Metal aspect in that scenario.) Generally it's best to reference an example that most closely matches your app. Recommending a specific example would require knowing the platform backend that's relevant to your situation, the three most likely candidates for an OpenGL macOS app would be:
If you aren't married to a platform backend already, I'd recommend GLFW for simplicity or SDL if you think you'll eventually want the other stuff it provides. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I wanted to add imgui to my OpenGL project running on Metal (M1 MacBook Air). I have added the code, but I don't know what some placeholders mean. This documentation states that I only have to add some lines of code, but does not even explain what this line
ImGui_ImplMetal_Init(YOUR_METAL_DEVICE);with "YOUR_METAL_DEVICE" means. What should I put here? A small comment would be really great. Like this I will now have to search for clues like a Sherlock..Beta Was this translation helpful? Give feedback.
All reactions