mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
WebGL 2 export per WebAssembly or asm.js
This commit is contained in:
parent
efaeebab4d
commit
7df7e9cc8b
11 changed files with 282 additions and 448 deletions
|
@ -145,15 +145,10 @@ int main(int argc, char *argv[]) {
|
|||
/* Initialize the window */
|
||||
printf("let it go dude!\n");
|
||||
glutInit(&argc, argv);
|
||||
os = new OS_JavaScript(_gfx_init, NULL, NULL);
|
||||
#if 0
|
||||
char *args[]={"-test","gui","-v",NULL};
|
||||
Error err = Main::setup("apk",3,args);
|
||||
#else
|
||||
char *args[] = { "-main_pack", "data.pck", NULL }; //pass location of main pack manually, because it wont get an executable name
|
||||
Error err = Main::setup("", 2, args);
|
||||
os = new OS_JavaScript(argv[0], _gfx_init, NULL, NULL);
|
||||
|
||||
Error err = Main::setup(argv[0], argc - 1, &argv[1]);
|
||||
|
||||
#endif
|
||||
ResourceLoader::set_abort_on_missing_resources(false); //ease up compatibility
|
||||
|
||||
glutMouseFunc(_glut_mouse_button);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue