markaren / threepp

C++17 port of three.js (r129)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider using SDL2

markaren opened this issue · comments

Will investigate whether or not SDL2 is a better fit for threepp

Closing for now. Might re-visit in the future.

SDL2 seems like a viable option:

image

SDL2 is a larger dependency, but should make it easier to support proper fonts and audio.

Still not sure if I should replace GLFW or support both.

note: SDL2 is relatively well supported with emscripten (as well as opengles2 -> webgl) so we could use threepp to generate a wasm library i.e. threeppjs 🤡

ps: I' m currently looking for a threejs like library but in C++ to target native build and browser (emscripten) so threepp seems really promising !

Interesting @Mizux . As you can see in #158, I have a solution where either SDL2 or GLFW3 can be used. I have been questioning whether the solution is worth the attention/extra complexity.

Closing as the current solution works with emscripten and it is possible for users to supply their own window (with some effort, however, but without changing the library)