aboutsummaryrefslogtreecommitdiff
path: root/src/library_browser.js
AgeCommit message (Collapse)Author
2013-08-29Formatting.Jukka Jylänki
2013-08-29emscripten_get_now enabled for SpiderMonkey, optimization and test for shell ↵Jukka Jylänki
and browser.
2013-08-25implement emscripten_get_canvas_sizeToadKing
2013-08-19Merge remote-tracking branch 'origin/incoming' into touch_handlingJames Gregory
2013-08-15expose setCanvasSizeAnthony Pesch
2013-08-08Merge pull request #1470 from inolen/preload_path_fixesAlon Zakai
file preload path fixes
2013-08-08Basic touch event support in GLUT for mobile browsers.James Gregory
2013-08-08Do not attempt browser image decoding if the browser does not have the ↵Jukka Jylänki
window.URL or window.webkitURL objects. Fix the warning print to appear in that case on Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.16.
2013-08-06store preloaded images by their absolute pathAnthony Pesch
2013-07-22Made getMimetype() a public method of the Browser module and used itMichael J. Bishop
inside the SDL module.
2013-07-12Add bug number to comment.Jez Ng
2013-07-12Simplify ArrayBuffer copy.Jez Ng
2013-07-12Work around Safari image loading bug. Closes #1130.Jez Ng
2013-07-09Bunch of changes to support Syobon Action.Jez Ng
2013-06-30Fixed emscripten_get_now in a shellJoseph Gentle
2013-06-24Merge pull request #1302 from Manny-MADE/glut_fixesAlon Zakai
Several GLUT library improvements
2013-06-22IMPROVED: fixed codestyle to match java/jsmanny/MADE
IMPROVED: handling mouse position when pointer is locked
2013-06-19CHANGED: removed "MADE"-tag from commentsmanny/MADE
2013-06-19BUGFIX: several SDL related bugfixesmanny/MADE
2013-06-18do not do full Browser.init() in workers, just the minimum we needAlon Zakai
2013-06-07add missing return values in ↵Alon Zakai
safeRequestAnimationFrame,safeSetTimeout,safeSetInterval
2013-06-04Merge branch 'incoming-merge' of github.com:modeswitch/emscripten into incomingAlon Zakai
2013-05-27emscripten_exit_with_live_runtimeAlon Zakai
2013-05-23Fix missing methods.Alan Kligman
2013-05-23Add support for webrtc-based sockets. Moved both backends behind a settings ↵Alan Kligman
flag, SOCKET_WEBRTC.
2013-05-22Browser.safeCallbackAlon Zakai
2013-05-22do not call code-running callbacks if ABORTing; fixes #1191Alon Zakai
2013-05-21fix crash when no exitPointerLock, see #1074Alon Zakai
2013-05-17make fullscreen handling closure friendlyAlon Zakai
2013-05-13use Browser mouse calculations in glutAlon Zakai
2013-05-13refactor mouse movement handling from SDL into BrowserAlon Zakai
2013-04-18Make all paths of emscripten_get_now() return msecs.Jukka Jylänki
2013-04-18Implement high-resolution timing in emscripten_get_now() when run in node. ↵Jukka Jylänki
Return timing ticks consistently as seconds in all methods.
2013-04-05fix xhrs for file URLsAlon Zakai
2013-04-04detect file suffixes of all lengthsAlon Zakai
2013-03-20do not show the simulate-infinite-loop exceptionAlon Zakai
2013-03-20refactor Browser initializationAlon Zakai
2013-03-19teach library_browser about non-fullscreen pointerlock if ↵Vladimir Vukicevic
Module.elementPointerLock is true
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