-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How I can install this? #58
Comments
This is a bit complicated. Even though MetalANGLE implements the same OpenGL ES APIs as Apple's. There are differences in the way OpenGL contexts are created (OpenGL context creation API is not part of OpenGL standards, so it's understandable that MetalANGLE and Apple's GL are different in this area). There are some efforts to port MetalANGLE to SDL libsdl-org/SDL#4333 or you can use his SDL fork here. |
Can MetalAngle be used with a Metal context created in GLFW? |
After some research I noticed that SDL can be used with MetalANGLE. However, you need to compile SDL with these flags:
Note: you can only use OpenGL ES API (not full Desktop OpenGL APIs) in this case. |
@MikeHart66 MetalANGLE can interoperate with Metal context created in GLFW. i.e. MetalANGLE and Metal can both draw to a shared metal texture. This requires some knowledge about Metal though. I can create an example some time later if you need. |
I've been prototyping a (potentially worse) way to do this in one of my apps. The approach is to take an SDL window and add an MGLLayer into it: https://github.com/TrajansRow/alephone/blob/angle/Source_Files/RenderOther/MacOSHelper.mm |
Of course it would help tremendously. But we don't need to draw from Metal and MetalAngle. Currently we use Glfw for setting up the context for OpenGl and use OpenGl ES2 to draw stuff. |
Hi, I have and OpenGL app using SDL and I will like to try metalangle
I downloaded the MetalANGLE.dylib.mac.zip file but I'm not sure how I'm supposed to use it.
The headers is easy, I just include them, but, what I do with this dylib files?
I should include them all?
After including the headers, and linking the dylib files. Should I do something special to start using OpenGL on the app?
The only thing I can get is a black screen
The text was updated successfully, but these errors were encountered: