Open ZYF500 opened 9 months ago
Interesting, it looks like we emulate glVertex3f but not glVertex3d: https://github.com/emscripten-core/emscripten/blob/a95c44ee924d02fa1498f846595485d27c31daa8/src/library_glemu.js#L3134-L3146
@juj do you remember if this was a deliberate choice?
In general the OpenGL API surface is very large and we've added things as needed, so probably a lot is still missing.
glVertex3d
seems reasonable to add, a PR would be welcome.
The GL emulation layer predates my time, I think it was developed by Alon and then another Mozilla developer Ehsan Akhgari. Like Alon writes above, the features grew bottom-up as needed to support what was needed to port the Cube3d(?) engine, or what was it called.
So if there is interest, people are more than welcome to contribute whatever they need to emulate more desktop GL features, but it's not being developed with any kind of completeness goal in mind.
Although I wonder if a better route might be to port that teaching program to work against modern OpenGL 3.0? (which has a good overlap with OpenGL ES 3.0 and WebGL 2) After all, the legacy desktop OpenGL is legacy, so it may be of little value to teach to anyone - unless the goal is to specifically teach vintage programming?
Version of emscripten/emsdk:
3.1.37
Version of qt:6.6
Failing command line in full:
There is a teaching program written with qt opengl low version before, want to transplant to the web, but the oepngl library, Mingw environment with the system opengl library can be used, Emscripten environment I should use which.