I have a c++ code that uses opengl to output a 3d object onto a cmd window. 
The object takes its vertices and edges from a .txt file. When I type "emcc 
temp/main.cpp -I torus.txt -o ex.html" into emscripten cmd box, its gives 
me 

warning: unresolved symbol: glVertex3fv
warning: unresolved symbol: glShadeModel
warning: unresolved symbol: glutIgnoreKeyRepeat
warning: unresolved symbol: glEnd
warning: unresolved symbol: glColor3f
warning: unresolved symbol: glVertex3f

Since it is a warning, I ignore it and try out the ex.html link.
Here is where the problem occurs, I get a black screen box, and the text 
box at the bottom outputs -1.

Trying to go about this another way, I include --emrun so that the code is 
now:
"emcc temp/main.cpp -I torus.txt --emrun -o ex.html"
and then I put "emrun ex.html"
this gives me the same result as before but in the cmd box, it states
preload time:27ms
missing function: glutIgnoreKeyRepeat
-1
-1

And yes, I do indeed have that function included in the code. 
My main purpose is to create a link to where the code has been executed and 
anyone can interact with the 3d object. 

Help would be greatly appreciated in answering this conundrum. 

-- 
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