Ok, I found where problem is. Regal should be compiled to emscripten with 
special options, I use this command:

emmake make -f Makefile SYSTEM=emscripten

After that, in lib folder of Regal you can find static libs for emscripten. 
This libs contains rgl* methods that replace original opengl api. So, I add 
GL/Regal.h and compile my project again. Project was builded without any 
error. But when I run it in browser I does not see anything, just black 
screen and no errors. This project renders graphics correctly without regal 
on LEGACY_GL_EMULATION=1, so I think that project code is fine and problem 
is in integration of regal into emscripten.

I try to use all flags LEGACY_GL_EMULATION=1 | FULL_ES2=1 | FULL_ES3 = 1 
results are same - black screen. Funny thing that Regal use 
 LEGACY_GL_EMULATION=1 to build itself. I can`t understand how I can found 
where problem is. Any ideas?

Also I try to build project without linking Regal libs, only with headers, 
and when I run program then I have this errors:

xception thrown: ReferenceError: GL is not defined,ReferenceError: GL is 
not defined
    at Object.createContext
    at _glutCreateWindow
    at Object._main
    at Object.callMain
    at doRun

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to