aboutsummaryrefslogtreecommitdiff
path: root/src/library_browser.js
AgeCommit message (Collapse)Author
2013-03-06fix IE comma issueAlon Zakai
2013-03-06enable pointer lock checkbox by defaultAlon Zakai
2013-03-06Fixes for the full screen implementation:Michael Riss
- formatting fixes - added comments (for the SDL_FULLSCREEN flag) - add event handlers only once and communicate through object variables (Browser.lockPointer and Browser.resizeCanvas) Signed-off-by: Michael Riss <Michael.Riss@gmx.de>
2013-03-06- fixed formatting issuesMichael Riss
- bugfix: an existing pointerLockChange handler now gets properly removed before it is installed anew - completed the implementation of the SDL_ShowCursor() function: - can now query the current state of the cursor/pointer - properly delivers adequate return values - added safeguard: when not in fullscreen mode, attempts to lock the pointer are ignored as they would fail due to the security model of the browser and a return value indicating the error is returned Signed-off-by: Michael Riss <Michael.Riss@gmx.de>
2013-03-06Improved fullscreen functionality.Michael Riss
- the requestFullScreen function now has two boolean arguments: "doLockPointer" and "doResizeCanvas" - when using "doResizeCanvas", the SDL application gets notified via the "SDL_VIDEORESIZE" event of the new resolution, the old resolution setting is saved and gets restored when the canvas returns to windowed mode - when setting "doLockPointer" to false the mouse pointer remains visible in fullscreen mode and allows e.g. RTS (Real Time Strategy) type games - the SDL application can check via the "SDL_FULLSCREEN" flag in the flags field of the SDL_Surface struct whether the canvas is currently in fullscreen mode or not. - depending on the browser the SDL application can switch out of the fullscreen mode with the "SDL_WM_ToggleFullScreen(SDL_Surface*);" call (currently chrome supports it, firefox does not) - Also, the requestFullScreen has been fixed to avoid repeated adding of the event listeners every time requestFullScreen is called. - src/shell.html got changed to demonstrate all variants to switch to fullscreen mode Note: Due to the security model of web browsers, the SDL model cannot be fully supported. What is not possible? - Initiating the switch to fullscreen from the SDL application. - Initiating the pointer lock from the SDL application when *not* in fullscreen mode How to work around the limitations? All the actions that cannot be initiated by the SDL application have to be initiated by the web browser instead. A good practice should be to start the application in windowed mode and have a button situated close to the canvas which switches the canvas into fullscreen mode and also changes the canvas size to fullscreen resolution. This way, the SDL application receives a SDL_VIDEORESIZE event and can check in the even handler whether it is now in fullscreen mode and take further actions. When leaving fullscreen mode the old windowed canvas resolution gets restored and triggers another SDL_VIDEORESIZE event which - again - can be used to adapt the application to windowed mode. Signed-off-by: Michael Riss <Michael.Riss@gmx.de>
2013-02-25use preserveDrawingBuffer in gl tests to make them work on latest firefoxAlon Zakai
2013-02-19Added some symbol compatibility for OpenGL1.1.Michael Bishop
Added implementations for - eglTerminate - eglDestroySurface - eglDestroyContext Stubbed out glTextEnvi
2013-02-14set alpha to false in WebGL rendering - it represents the screen, so no ↵Alon Zakai
alpha is needed
2013-02-13prepare jpeg as well as jpgAlon Zakai
2013-02-07Module.* options to disable image and audio autodecodingAlon Zakai
2013-01-26move some assertions behind ASSERTAlon Zakai
2013-01-20update async_wget2 to dynCallAlon Zakai
2013-01-19update emscripten_async_wget_data to dynCallAlon Zakai
2013-01-13workarounds for chrome bug 169705Alon Zakai
2013-01-07Merge remote-tracking branch 'wolfviking/incoming' into incomingAlon Zakai
Conflicts: AUTHORS src/library_browser.js system/include/emscripten/emscripten.h
2012-12-31Merge branch 'incoming' into asm_jsAlon Zakai
Conflicts: src/library_browser.js
2012-12-30emscripten_async_wget_dataAlon Zakai
2012-12-28Add comment,test,authors. Change indentation and comma spaceAnthony Liot
Modify the indentation Add Author Add comment Add test inside runner.py
2012-12-14fix breakage in async_prepare_dataAlon Zakai
2012-12-14add some browser/sdl function signaturesAlon Zakai
2012-12-14fix emscripten_async_callAlon Zakai
2012-12-13Add emscripten_async_wget2 with progress callbackAnthony Liot
Send request Post & Get with progress callback Add sample HTTP using emscripten_async_wget2
2012-12-07dynCallAlon Zakai
2012-12-07only use typed function tables in asm_js modeAlon Zakai
2012-10-31clear error message when browser createObjectURL does not return a string as ↵Alon Zakai
the spec says it should
2012-10-26emscripten_get_worker_queue_sizeAlon Zakai
2012-10-22handle no-data worker api calls, and more testsAlon Zakai
2012-10-22worker api closure fixes + additional testingAlon Zakai
2012-10-22initial work on worker apiAlon Zakai
2012-10-19add argument to emscripten_async_prepare_dataAlon Zakai
2012-10-19emscripten_async_prepare_dataAlon Zakai
2012-10-17support for SDL resize eventAlon Zakai
2012-10-13add parameter to emscripten_set_main_loop to optionally simulate an infinite ↵Alon Zakai
loop by throwing an exception (like glutMainLoop)
2012-10-04emscripten_async_prepareAlon Zakai
2012-09-26Implemented Browser.setCanvasSize to have a central point for resizing <canvas>LCID Fire
2012-09-17add void* argument to emscripten_async_call and ↵Alon Zakai
emscripten_push_main_loop_blocker
2012-09-10add hooks for main loop instead of hackish PROFILE_MAIN_LOOPAlon Zakai
2012-09-07improve PROFILE_MAIN_LOOPAlon Zakai
2012-08-30support for SDL_QUIT eventAlon Zakai
2012-08-29fix Module.canvas usageAlon Zakai
2012-08-29handle a runtime failure in blob constructor in audioAlon Zakai
2012-08-28further workaround for chrome bug 124926Alon Zakai
2012-08-22fix bug with blobbuilder fallbackAlon Zakai
2012-08-20PROFILE_MAIN_LOOP optionAlon Zakai
2012-08-11if blob constructor fails, use blob builderAlon Zakai
2012-08-09allow customizing the status message in updateStatus (shown when blockers ↵Alon Zakai
are run)
2012-08-01send param to onFullScreen callbackAlon Zakai
2012-07-24finally found a working workaround for chromium bug 124926Alon Zakai
2012-07-24further attempts to get sound working in chrome; even if oncanplaythrough ↵Alon Zakai
did not fire, continue and hope for the best
2012-07-24refactor workaround for chromium bug 124926Alon Zakai