DeXP / nuklear_cross

Nuklear+ (read as "Nuklear cross") is a front-end overlay for Nuklear GUI library
https://nuklear-cross.dexp.in
163 stars 24 forks source link

What driver works without problems with emscripten? #3

Open paulocoutinhox opened 5 years ago

paulocoutinhox commented 5 years ago

Hi,

What driver works without problems with emscripten?

I see the source of "nuklear_sdl_gles2.h" and see the comments about emscripten, but i want confirm it.

I see that you have another implementation in other project: https://github.com/DeXP/nuklear-webdemo/blob/master/nuklear_glfw_gl3.h

So, what to use?

The second thing is the font, all fonts are strange, not perfect on rendering, but with something like blur. See:

image

Thanks.

DeXP commented 5 years ago

As I remember, both SDL2 and GLFW could be used with emscripten. Visuals will be the same. GLFW do not have a sound, so SDL implementation will be better tested.

Fonts are rendered by WebGL, not your browser directly. That's why it could look bad. Try to change some scale parameters in the code. I do not really believe it will work good anyway...

paulocoutinhox commented 5 years ago

Ok. The same problem happen on imgui? It is a general problem?

DeXP commented 5 years ago

Should be. I can't answer you correctly, I didn't investigated the question a lot.