-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample shell for macOS needs an upgrade #193
Comments
Hi and welcome. Thanks for testing. The sample shell for macOS is quite out of date. It needs some rework to bring it up to speed with new APIs, and probably a Metal rendering backend. I don't have a mac to test it on, so hopefully somebody out there in the community could help and implement the necessary changes. |
I ran into this today on macOS Big Sur 11.5.2 They removed Carbon 32bit API a bit ago and no direct replacement. However, I was able to use the AGL Framework, which is also deprecated. Including Framworks OpenGL, AGL, and building GLEW for MacOs has me pretty close. Only missing functions now are GetWindowPort and GetWindowBounds from the old Carbon. I think we can replace GetWindowBounds with CoreGraphics CGDisplayBounds. But that would only be a temporary fix because Apple has labeled OpenGL deprecated in favor of their Metal API. I'm looking this direction now. Migrating OpenGL Code to Metal |
I'm closing this now that the legacy macOS shell has been removed in RmlUi 5.0. Instead, it should be possible now to build the samples using one of the cross-platform windowing libraries like SDL or GLFW. There is still a reliance on OpenGL (deprecated) for the most common use cases, although there is also the SDLrenderer which can replace it but does not have all the same features. While this issue specifically is considered done, there are still improvements to be made for macOS, in particular:
I'd be happy to see contributions for these features. |
Hi,
Im trying build for macOS but get this error:
Error log
Steps:
Can you help me?
The text was updated successfully, but these errors were encountered: