aboutsummaryrefslogtreecommitdiff
path: root/platform/javascript (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Made Vector::ptrw explicit for writing, compiler was sometimes using the ↵Juan Linietsky2017-11-251-2/+2
| | | | | | wrong function, leading to unnecesary copy on writes and reduced performance.
* Return and repair file loggingRuslan Mustakov2017-11-212-5/+0
| | | | And make it configurable, too.
* Allow configuring iOS exportRuslan Mustakov2017-11-211-0/+1
| | | | | | | | | | | | | | | | | - EditorExportPlugin's _export_begin accepts all the arguments related to the current export (is_debug, path, flags). - EditorExportPlugin API is extended with methods allowing to configure iOS export: add_ios_framework, add_ios_plist_content, add_ios_linker_flags, add_ios_bundle_file. - iOS export template now contains Godot as a static library so that it can be linked with third-party Frameworks and GDNative static libraries. - Adds method to DirAccess for recursive copying of a directory. - Fixes iOS export to work with Xcode 9 (released recently).
* Merge pull request #13061 from eska014/html5-exportRémi Verschelde2017-11-201-12/+56
|\ | | | | Export boot splash image and add option for custom HTML shell file in HTML5 export
| * Export boot splash and add custom HTML file option in HTML5 exportLeon Krause2017-11-201-12/+56
| |
* | Merge pull request #12988 from akien-mga/xdg-home-pathsRémi Verschelde2017-11-203-10/+10
|\ \ | |/ |/| Add support for XDG Base Directory spec
| * Use new XDG folders to dehardcode pathsRémi Verschelde2017-11-191-1/+1
| |
| * EditorSettings: Rename settings_path to settings_dirRémi Verschelde2017-11-171-1/+1
| | | | | | | | Also to prepare for upcoming refactoring for XDG support.
| * Rename OS::get_data_dir to OS::get_user_data_dirRémi Verschelde2017-11-172-9/+9
| | | | | | | | | | Will be needed to avoid confusion with system data path (XDG_DATA_HOME) and editor data dir in upcoming refactoring.
* | Merge pull request #13044 from eska014/enginejsRémi Verschelde2017-11-194-82/+124
|\ \ | | | | | | Change HTML5 start-up API
| * | Change HTML5 start-up APILeon Krause2017-11-194-82/+124
| | | | | | | | | | | | | | | | | | | | | | | | Rename engine.start() to startGame(), new start() takes string arguments handed directly to main(). Rename Engine.loadEngine() to load(). Add setLocale(), setResizeCanvasOnStart(), setExecutableName() and preloadFile().
* | | Merge pull request #12961 from eska014/platform-docRémi Verschelde2017-11-196-35/+105
|\ \ \ | |/ / |/| | Facilitate documenting platform-exclusive classes
| * | Facilitate exposing platform-exclusive interfaces to all platformsLeon Krause2017-11-186-35/+105
| |/ | | | | | | | | | | | | | | | | | | | | This makes the interfaces available, without implementation, in other platforms and the editor, which facilitates documenting platform-exclusive classes. Platform-exclusive APIs must be set up in platform/<platform>/api/api.cpp. Provide noop method-implementations where necessary. Also setup and document the HTML5 platform's JavaScript singleton.
* / Remove asm.js support from HTML5 platformLeon Krause2017-11-186-146/+25
|/ | | | | Since WebGL 2.0 is required, requiring WebAssembly support as well has little impact on compatibility.
* Fix HTML5 HTTPClient includesLeon Krause2017-11-151-0/+2
|
* Move singleton management from ProjectSettings to EngineLeon Krause2017-11-141-3/+2
|
* Fix HTML5 mouse button release eventsLeon Krause2017-11-131-3/+4
|
* Merge pull request #12867 from eska014/html5-httpRémi Verschelde2017-11-135-0/+554
|\ | | | | Implement HTTPClient in HTML5 platform
| * Implement HTTPClient in HTML5 platformLeon Krause2017-11-135-0/+554
| | | | | | | | | | | | | | | | | | | | | | Limitations: - Subject to same-origin policy - No persistent connection (but simulated for compatibility) - No blocking mode - No StreamPeer access - No chunked responses - Cannot disable host verification
* | Make video mode initialization more intuitive, fixes #12022Juan Linietsky2017-11-092-7/+0
|/
* Merge pull request #12691 from eska014/webaudioRémi Verschelde2017-11-066-1119/+16
|\ | | | | Fix WebAudio and HTML5 build
| * Fix WebAudio and HTML5 buildLeon Krause2017-11-066-1119/+16
| |
* | Merge pull request #12262 from AndreaCatania/pplugJuan Linietsky2017-11-032-9/+0
|\ \ | |/ |/| Physics server plug
| * Implemented physics plugAndreaCatania2017-11-042-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved init_physics Implemented physics 2D plug Fix clang Fix clang Fix static check Fix clang Fix static check Moved physics server initialization Moved physics server settings initialization
* | Detect javascript platform using EMSCRIPTEN env as wellMarcelo Fernandez2017-10-281-2/+5
| |
* | Sound support for Javascript (untested).Juan Linietsky2017-10-262-3/+92
|/
* Merge pull request #12010 from eska014/jsevalRémi Verschelde2017-10-111-29/+53
|\ | | | | Improve JavaScript calls, allow passing byte arrays to GDScript
| * Improve JavaScript callsLeon Krause2017-10-111-29/+53
| | | | | | | | | | | | - Allow returning ArrayBuffer and views as PoolByteArray - Return real_t for integral numbers - Read all color channels as 0.0 - 1.0 floating point numbers
* | Merge pull request #11782 from eska014/persistent-userfs-testHein-Pieter van Braam2017-10-033-14/+28
|\ \ | | | | | | Add OS::is_userfs_persistent, allow starting HTML5 platform in private mode
| * | Add OS::is_userfs_persistent to check user:// persistenceLeon Krause2017-10-023-14/+28
| | | | | | | | | | | | Allows starting HTML5 export when IndexedDB is not available.
* | | Merge pull request #11568 from endragor/loggersAndreas Haas2017-10-022-5/+5
|\ \ \ | |/ / |/| | Extract logging logic
| * | Extract logging logicRuslan Mustakov2017-09-252-5/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously logging logic was scattered over OS class implementations with plenty of duplication. Major changes in this commit: - Extracted logging logic into a separate Logger hierarchy. It allows easy configuration of logging mechanism depending on compile-time or run-time configuration. - Implemented RotatedFileLogger which is usually used with StdLogger, providing persistency of logs. It is often important to be able to obtain logs of the game even in production to be able to understand what happened prior to some problem. On mobile there previously was no way to obtain the logs aside from having the device connected to your machine. - flush() is not performed in release mode for every logged line. It is only performed for errors.
* | Use primary WebAssembly.instantiate overloadLeon Krause2017-10-021-3/+3
| | | | | | | | | | | | Previously WebAssembly.compile was used along with the secondary WebAssembly.instantiate overload. Using only the primary overload is recommended to get best performance.
* | Use BoolVariable in platform-specific options.Elliott Sales de Andrade2017-09-252-6/+6
| |
* | Use BoolVariable for module options.Elliott Sales de Andrade2017-09-251-2/+2
| |
* | Use BoolVariable in target/component/advanced options.Elliott Sales de Andrade2017-09-251-1/+1
|/
* Fix mouse button state in HTML5 platformLeon Krause2017-09-191-8/+8
| | | | Regression from 844c5e12e664e3212feacc9ee3200e116556fbc7
* Merge pull request #11252 from marcelofg55/fix_noaudio_crashRémi Verschelde2017-09-171-5/+1
|\ | | | | Fix crash when no audio driver is available
| * Fix crash when no audio driver is availableMarcelo Fernandez2017-09-131-5/+1
| |
* | Fix enums bindingsMaxim Sheronov2017-09-134-8/+8
|/ | | | | Add missed bindings for enums Move some enums to class to have correct output of api.json
* Merge pull request #11154 from eska014/html5-startup-revampPoommetee Ketson2017-09-127-392/+392
|\ | | | | HTML5 start-up overhaul with download progress display
| * HTML5 start-up overhaulLeon Krause2017-09-117-392/+392
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Implement promise-based JS interface for custom HTML page integration - Add download progress callback - Add progress bar and indeterminate spinner to default HTML page - Try downloading files multiple times when failing - Get rid of godotfs.js - Separate steps for engine initialization, game initialization and game start - Allow multiple games on one HTML page - Substitution placeholders only used in .html file - Placeholders renamed: $GODOT_BASE => $GODOT_BASENAME, $GODOT_TMEM -> $GODOT_TOTAL_MEMORY - Emscripten Module is now Engine.RuntimeEnvironment (no longer a global)
* | Merge pull request #10914 from eska014/html5-main-notifRémi Verschelde2017-09-031-15/+16
|\ \ | | | | | | Prevent sending MainLoop notifications before initialized
| * | HTML5: Prevent sending MainLoop notifications before initializedLeon Krause2017-09-031-15/+16
| |/
* | Make build scripts Python3 compatibleMatthias Hoelzl2017-08-271-1/+1
| | | | | | | | | | | | | | | | - The Windows, UWP, Android (on Windows) and Linux builds are tested with Scons 3.0 alpha using Python 3. - OSX and iOS should hopefully work but are not tested since I don't have a Mac. - Builds using SCons 2.5 and Python 2 should not be impacted.
* | Dead code tells no talesRémi Verschelde2017-08-272-0/+4
| |
* | Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-2715-15/+15
|/
* p_screen param from get_screen_* funcs now default to the current screenMarcelo Fernandez2017-08-212-3/+1
|
* removed calls to cursor_set_visible on all platforms fixes #10167toger52017-08-081-1/+1
|
* Merge pull request #10105 from eska014/html5-touch-hintRémi Verschelde2017-08-071-1/+5
|\ | | | | Implement OS.has_touchscreen_ui_hint() in HTML5 platform