openframeworks / apothecary

This is the OpenFrameworks library apothecary. It mixes formulas and potions to build and update the C/C++ lib dependencies.
Other
56 stars 51 forks source link

[feature idea] ANGLE libraries (overload OpenGL / OpenGLES libraries with local Native Powered Metal/Vulkan/DX9/DX11) #321

Open danoli3 opened 9 months ago

danoli3 commented 9 months ago

This feature built system would enable automatic OpenGL / OpenGL ES to Metal / Vulkan and is now feature complete.

ANGLE - Almost Native Graphics Layer Engine The goal of ANGLE is to allow users of multiple operating systems to seamlessly run WebGL and other OpenGL ES content by translating OpenGL ES API calls to one of the hardware-supported APIs available for that platform. ANGLE currently provides translation from OpenGL ES 2.0, 3.0 and 3.1 to Vulkan, desktop OpenGL, OpenGL ES, Direct3D 9, and Direct3D 11. Future plans include ES 3.2, translation to Metal and MacOS, Chrome OS, and Fuchsia support.

image

https://github.com/google/angle

I have built the library before for Android in tests and did work on Metal iOS GLKit usage PR here:

https://github.com/openframeworks/openFrameworks/pull/6981

Using https://github.com/kakashidinho/metalangle wrapper which might be problematic to maintain

Adding potions in Cmake here will make this much easier to complete if packaged correctly anyways,

danoli3 commented 7 months ago

I'm going to first add this as an addon and get the Apothecary Addon compiling and then we can look at adding here