Hello,
Since macOS does not support OpenGL, does it mean that wxWidgets OpenGL applications do not work on macOS?
Thank you.
Question regarding OpenGL and macOS
Re: Question regarding OpenGL and macOS
Hi,
Which OSX do you have installed?
OSX does support OpenGL just like any other *nix.
Thank you.
Which OSX do you have installed?
OSX does support OpenGL just like any other *nix.
Thank you.
Re: Question regarding OpenGL and macOS
As oneeyeman told, OSX does support OpenGL.
The thing is that they have deprecated OpenGL in favor of their own Metal API. "deprecated" is not the same as "removed". I doubt OSX would remobe OGL in the next years. But with macOS you never know.
The last OGL version they supported (but still available) is 4.1. Currently using wxWidgets for OSX, with no effort on your own, you can ask for OGL 3.2. If you need 4.1 yes or yes, then I can guide you on how to set proper attributes in wxGLContext.
The thing is that they have deprecated OpenGL in favor of their own Metal API. "deprecated" is not the same as "removed". I doubt OSX would remobe OGL in the next years. But with macOS you never know.
The last OGL version they supported (but still available) is 4.1. Currently using wxWidgets for OSX, with no effort on your own, you can ask for OGL 3.2. If you need 4.1 yes or yes, then I can guide you on how to set proper attributes in wxGLContext.
Re: Question regarding OpenGL and macOS
Thank you for your replies.
So it means OpenGL applications will work, but I cannot utilize features added after OpenGL 4.1?
So it means OpenGL applications will work, but I cannot utilize features added after OpenGL 4.1?
Re: Question regarding OpenGL and macOS
Correct.I cannot utilize features added after OpenGL 4.1?
To use features for, say, OGL 4.5 you need to ask for this 4.5 version when you set parameters of wxGLContext.
But these parameters have no effect in OSX, and you will get just OGL 3.2 version (or, as I told before, you can ask up to 4.1)
If your OGL code (shaders, etc) uses 4.5 features, you will get OGL errors. Not a crash, but nothing drawn.
Re: Question regarding OpenGL and macOS
Manolo,
Are you familiar with OSX? Maybe it makes sense to use Metal API in OSX port?
Thank you.
Are you familiar with OSX? Maybe it makes sense to use Metal API in OSX port?
Thank you.
Re: Question regarding OpenGL and macOS
Igor, no I don't develop for OSX. But I've read a lot
Metal is an OSX-only API. People using it are likely not using wx.
The future-standard for all OS's, by now, is called "Vulcan". Much more complex that OpenGL, more high-power, more control. So it's mainly used for extreme-necessities. And yes, perhaps some day a wx-vulcan support may be good.
Metal is an OSX-only API. People using it are likely not using wx.
The future-standard for all OS's, by now, is called "Vulcan". Much more complex that OpenGL, more high-power, more control. So it's mainly used for extreme-necessities. And yes, perhaps some day a wx-vulcan support may be good.