Skip to content
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

Google Angle macOS: Black screen issue #8

Open
webfolderio opened this issue Sep 22, 2024 · 5 comments
Open

Google Angle macOS: Black screen issue #8

webfolderio opened this issue Sep 22, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@webfolderio
Copy link

I Compiled latest Angle version on macOS and linked with RSGL. Examples run without an error but display only a black screen.

Has Angle been tested on macOS, and is there official support for Angle?

Thanks

@ColleagueRiley
Copy link
Owner

I've not tested with Angle and I'm not sure how to. I currently run macOS on a VM.

This behavior makes sense because RSGL_gl.h has no Angle-specific code, which I think is required.

@webfolderio
Copy link
Author

I believe I've identified the cause of the problem. When compiled with default settings, RGFW uses system OpenGL. However, to use RGFW with Angle, I need to use EGL instead of system OpenGL. The issue is that on macOS, RGFW only supports system OpenGL.

When I have time, I'll test it on Windows and Linux and report back. I think Angle might work for Windows and Linux because raylib, which also only supports OpenGL, can use Metal or DX11 through Angle. My guess is that RGFW will work with Angle on Windows and Linux.

#ifdef RGFW_EGL
	#if defined(__APPLE__)
		#warning  EGL is not supported for Cocoa, switching back to the native opengl api
		#undef RGFW_EGL
	#endif
#endif

https://medium.com/@grplyler/building-and-linking-googles-angle-with-raylib-on-macos-67b07cd380a3

@ColleagueRiley
Copy link
Owner

I figured that EGL was not supported on macOS after searching for the binaries. I have no idea why but it seems super difficult to find bindings for EGL on every platform but Linux. Could you make a separate issues on RGFW regarding EGL support for macOS so I don't forget to get to it?

@ColleagueRiley
Copy link
Owner

The article says how to get EGL bindings for macOS! :)

@ColleagueRiley ColleagueRiley added the enhancement New feature or request label Oct 21, 2024
@ColleagueRiley
Copy link
Owner

Update: RGFW's EGL support for macOS is now a WIP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants