summaryrefslogtreecommitdiffstats
path: root/platform/javascript
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix internal Emscripten JS API callsLeon Krause2018-01-062-4/+4
|/ | | | Emscripten 1.37.24 no longer exports these by default
* Add missing method for javascriptGuilherme Silva2018-01-052-0/+4
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-0515-2/+17
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Fix macOS and other builds after #15299Duy-Nguyen TA2018-01-041-1/+1
| | | | Commit ammended by @akien-mga to fix more platforms.
* Fixed missing parenthesisArtem Varaksa2018-01-041-1/+1
|
* Add missing translation in Javascript export dialogRémi Verschelde2018-01-041-9/+9
| | | | Also remove newlines from translated strings.
* Change OS::initialize signature to return Error (fix segfault on x11)Emmanuel Leblond2018-01-042-3/+5
|
* Update copyright statements to 2018Rémi Verschelde2018-01-0119-37/+37
| | | | Happy new year to the wonderful Godot community!
* Merge pull request #14597 from NathanWarden/linux_extensionsRémi Verschelde2017-12-161-2/+2
|\ | | | | Updated Linux template extensions to match architecture.
| * Updated Linux template extensions to match architecture.Nathan Warden2017-12-121-2/+2
| |
* | Fix javascript build error and improve #14604Fabio Alessandrelli2017-12-151-3/+3
| |
* | HTTP cleanup & better defaultsmhilbrunner2017-12-141-15/+20
|/
* Style: Apply new clang-format 5.0 style to all filesRémi Verschelde2017-12-072-8/+10
|
* Merge pull request #13387 from rraallvv/refactorRémi Verschelde2017-11-291-1/+1
|\ | | | | Add target helper functions and refactor (master)
| * disable caching for targets using helper functionsRhody Lugo2017-11-281-1/+1
| |
* | Fix inverted relative mouse motion in HTML5 exportLeon Krause2017-11-291-2/+2
|/
* Merge pull request #13278 from eska014/jseval-returntypesRémi Verschelde2017-11-251-40/+8
|\ | | | | Remove contrived JavaScript.eval() return types
| * Remove contrived JavaScript.eval return typesLeon Krause2017-11-251-40/+8
| |
* | 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.