wjakob / nanogui

Minimalistic GUI library for OpenGL
Other
4.66k stars 608 forks source link

work on iOS or Android? #276

Open mnorst opened 7 years ago

mnorst commented 7 years ago

thanks

paulocoutinhox commented 6 years ago

I think no, because it was made for OpenGL 3.

svenevs commented 6 years ago

@prsolucoes is correct, OpenGL 3.x or 4.x are required. There was some work for GLES put forward a while ago, but that is now stale. Supporting OpenGL 2.x is technically possible, but would require significant effort to implement.

cesss commented 6 years ago

Does nanogui call OpenGL 3.x directly? Doesn't it make the calls indirectly through nanovg? If that's the case, I read that nanovg has several backends, and not only OpenGL 3.x... it seems 2.x is also supported, and even some ES versions...

svenevs commented 6 years ago

Does nanogui call OpenGL 3.x directly?

Yes, see glutil.cpp (specifically e.g., renderbuffer stuff).

I know that the future version of NanoGUI (which is not fully released yet) has GLES support, but that will not be back-ported here. In the interim, I suggest you make a fork of NanoGUI and change / remove things as needed. If you are successful, I'm sure others would be grateful to you for sharing (e.g., share a link here).

As far as I understand it, this repository will never have GLES support at this point (since it is already solved in the future version).