Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGL deprecated in IOS 12, how to safely continue to use openGL on ios 12+ device?

Apple says that apps built using OpenGL ES will continue to run in iOS 12, but Open GL ES is deprecated in iOS 12. Games and graphics-intensive apps that previously used OpenGL ES should now adopt Metal.

But I don't want to migrate my app from OpenGL to Metal because it's the same code for Android and I don't want to create two separate branches, so what can I do to continue to use OpenGL in future iOS releases?

like image 429
zeus Avatar asked Sep 19 '18 12:09

zeus


People also ask

Can you still use OpenGL on iOS?

Apple says that apps built using OpenGL ES will continue to run in iOS 12, but Open GL ES is deprecated in iOS 12. Games and graphics-intensive apps that previously used OpenGL ES should now adopt Metal.

What does Apple use instead of OpenGL?

OpenGL is deprecated for new development, and Apple's docs no longer even acknowledge the existence of OpenCL. However, many legacy MacOS apps contain modules written in those languages, and they have been building with Xcode and running on Intel Macs just fine.

Is OpenGL being deprecated?

The GLU specification was last updated in 1998 and depends on OpenGL features which are now deprecated.

Can I run OpenGL on Mac?

OpenGL is available to all Macintosh applications. OpenGL for OS X is implemented as a set of frameworks that contain the OpenGL runtime engine and its drawing software. These frameworks use platform-neutral virtual resources to free your programming as much as possible from the underlying graphics hardware.


1 Answers

You more or less do not.

Apple has made it abundantly clear that they are not interested in supporting OpenGL ES further on any platform they control. In the future, you will use Metal or you will not have accelerated 3D graphics. Those will be your options.

There are projects that expose OpenGL ES on such platforms by implementing an ES layer on top of Metal. MoltenGL, for example, but that one isn't free apparently.

like image 180
Nicol Bolas Avatar answered Sep 19 '22 00:09

Nicol Bolas