Forum > OpenGL

OpenGL is deprecated. How to use Metal?

(1/2) > >>

Igor Kokarev:

--- Quote ---"Apps built using OpenGL and OpenCL will continue to run in macOS 10.14, but these legacy technologies are deprecated in macOS 10.14. Games and graphics-intensive apps that use OpenGL should now adopt Metal."
--- End quote ---

How to use Metal with Lazarus?

Translate the headers...
BTW: OpenGL is by no means deprecated on all platforms.

For corporate solutions there’s MoltenGL library

It's actually for OpenGL ES  (rather than OpenGL), but the company might provide OpenGL wrapper as well, with the news of the OpenGL deprecation.

Metal is only supported on iOS, macOS, tvOS.


--- Quote from: Handoko on June 07, 2018, 09:32:22 pm ---Metal is only supported on iOS, macOS, tvOS.

--- End quote ---
You might want to put it easier - Metal is only supported on Apple platforms.

Metal is pretty much Apple's version of Vulkan API (started by Khronos Group).
Presumably, it has the similar functionality, with some Apple's needs on top (such as using Objective-C on the top).
Apple didn't adopt Vulkan API, because it started its own development either earlier (or in parallel with Vulkan API).
Metal API was initially released in 2014, while Vulkan API followed only 2 years after that in 2016.

That makes Metal quite easy to use in FPC world, since it's supports ObjC out of the box.
The only issue is to have Metal headers handy.


[0] Message Index

[#] Next page

Go to full version