-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Webassembly support and fixed GLES2 (somewhat) #169
Conversation
(For some reason, make exits with an error after building emscripten-release. Don't know how to fix it, please don't ask)
…tch your viewport.
…rom sys_wasm.c as it causes a compile error)
Change DP_LINK_JPEG back to dlopen Remove duplicate parameters
Create index.html as an example of how to use the Emscripten build. Make game resize on SDL resize events. Create autoexec.cfg to set some game settings. Update gitignore.
Update readme with instructions on how to server the wasm/index.html Revert the change that broke rendering in regular SDL builds Clean up makefiles Revert shader change which seems to do nothing Update path in index.html
Change WASM HTML page title
Fixes frame abort (it did an immediate unclean shutdown on all platforms). Fixes vid_vsync 0, cl_maxfps, etc. Fixes clean shutdown (config saving on `quit` works again). Removes code duplication and platform-specific ifdefs in host.c Signed-off-by: bones_was_here <[email protected]>
This is going to be merged one way or another eventually but we're moving at below glacial pace due to the nature of volunteer work (irl things taking precedence) and the complexity of implementing support for a new platform. General reminder not to feel discouraged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you fix all the compiler warnings in sys_wasm.c please? New code shouldn't have any warns.
Don't worry about the warns in other files, they're not caused by your code and are harmless (mostly unused variables due to compiling GLES, we can clean up GLES in another PR).
Signed-off-by: bones_was_here <[email protected]>
Signed-off-by: bones_was_here <[email protected]>
stringToNewUTF8() mallocs memory which must be free'd, and which doesn't need to be const (more convenient here). Signed-off-by: bones_was_here <[email protected]>
Signed-off-by: bones_was_here <[email protected]>
…terparts Signed-off-by: bones_was_here <[email protected]>
Most of these don't need to be declared for all compilation units. They're all FS commands. Signed-off-by: bones_was_here <[email protected]>
I have a bit more tidying and testing todo but then I think it'll be good to merge, planning to do that Sunday (unless someone finds an issue) |
Signed-off-by: bones_was_here <[email protected]>
Signed-off-by: bones_was_here <[email protected]>
Great work guys. |
Webassembly version doesn’t work online and screen flashes on GLES2 are opaque.