sonoro1234 / LuaJIT-ImGui

LuaJIT ffi binding for imgui, backends and extension widgets
MIT License
213 stars 29 forks source link

Support OpenGL ESv2, add example #36

Closed Simon-L closed 2 months ago

Simon-L commented 8 months ago

Title says all, I forgot to open PR for this. I need this for the embedded devices I use LuaJITImGui on :)

Let me know if you'd like to support that and I'll fix the conflicts!

sonoro1234 commented 8 months ago

Yes, it seems interesting. If I understand correctly defining IMPL_OPENGL3_ES2 (should be added to options with a default of no) changes the target from opengl3 to opengl3_es. As for the example, only the version is changed to 2.0 and setattributes for GL_ES?