I am trying to get an OpenGL pipeline working on MacOS since I have some GL code that we use on our Raspberry pi but I also want to develop on the Mac. However I haven’t been successful . Has anyone gotten an OpenGL path to work?
@AndreCostaaa do you have any idea about this?
macOS has dropped support for OpenGL in favor of using their own graphics API… That being said… The video cards are still OpenGL compliant so you would need to installed the OpenGL SDK probably using Homebrew and then compile as you would for OpenGL on any other platform…
There is also SDL that you can use and I can confirm that SDL does work without issue. You simply need to install the proper version of SDL using HomeBrew.
The only downfall of compiling on MacOS is the need to use apple’s version of CLANG. With apples version of the compiler you will not be able to statically link to external packages like SDK or even OpenGL. So you cannot compile as a self contained binary. So whatever machine you want to use the compiled binary on you will need to make sure that the shared libraries for OpenGL or for SDL are available on the machine that will be running the binary.