Closed hajimehoshi closed 1 year ago
If purego supports Linux, this would change the situation.
Resolve #2451 first.
My draft PR to support Linux in purego is almost done. The only outstanding issue is requiring the internal linker. #66
Thank you for notifying it!
Apparently GLES requires EGL (https://github.com/libsdl-org/SDL/blob/120c76c84bbce4c1bfed4e9eb74e10678bd83120/src/video/x11/SDL_x11opengles.h#L40) so the situation is more complicated than I thought 🤔
This is not directly related, but I'd like to remove go-gl/glfw to reduce external dependencies. Currently, go-gl/glfw links libraries: https://github.com/go-gl/glfw/blob/93cebf72946bdd130bbda47817ad53315d776ca7/v3.3/glfw/build.go
Why don't you want to link to them and instead dlopen the correct one? Is it because initialization of all of them takes time?
Why don't you want to link to them and instead dlopen the correct one? Is it because initialization of all of them takes time?
I don't want to do that since this would make it a little difficult to cross-compile Ebitengine.
Now GLES functions are called directly via Cgo.
This was already resolved for Linux and FreeBSD. Android has this issue, but I'm not sure I can resolve this.
What feature would you like to be added?
Now GLES functions are called directly via Cgo. Load the function pointers like what
internal/graphicsdriver/opengl/gl
does.Related: #2449
Why is this needed?
n/a