MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / main

Function main

test/browser/test_gl_subdata.c:157–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157int main(int argc, char *argv[]) {
158 glutInit(&argc, argv);
159 glutInitWindowSize(640, 480);
160 glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
161 int w = glutCreateWindow("Simple FLOAT Texture Test");
162 /* Set up glut callback functions */
163 glutDisplayFunc(glut_draw_callback);
164 gl_init();
165#ifdef __EMSCRIPTEN__
166 // This test kicks off an asynchronous glutMainLoop(), so do not perform a synchronous
167 // reftest immediately after falling out from main.
168 EM_ASM({reftestBlock()});
169#endif
170 glutMainLoop();
171 return 0;
172}
173
174

Callers

nothing calls this directly

Calls 3

reftestBlockFunction · 0.85
gl_initFunction · 0.70
EM_ASMFunction · 0.70

Tested by

no test coverage detected