summaryrefslogtreecommitdiffstats
path: root/platform
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Use OpenGL 3.3 core profile instead of compatibility profileClay John2021-10-3132-5848/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename OpenGL to GLES3 in the source code per community feedback. - The renderer is still exposed as "OpenGL 3" to the user. - Hide renderer selection dropdown until OpenGL support is more mature. - The renderer can still be changed in the Project Settings or using the `--rendering-driver opengl` command line argument. - Remove commented out exporter code. - Remove some OpenGL/DisplayServer-related debugging prints.
* | | Rename GLES2 driver to OpenGL to prepare for the upgrade to GLES3Hugo Locurcio2021-10-3025-126/+128
| | | | | | | | | | | | | | | - Use lowercase driver names for the `--rendering-driver` command line argument.
* | | Add GLES2 2D renderer + Linux display managerlawnjelly2021-10-3022-153/+6360
| | | | | | | | | | | | | | | | | | | | | | | | | | | First implementation with Linux display manager. - Add single-threaded mode for EditorResourcePreview (needed for OpenGL). Co-authored-by: clayjohn <claynjohn@gmail.com> Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com>
* | | Merge pull request #54340 from aaronfranke/time-docMax Hilbrunner2021-10-294-14/+17
|\ \ \ | | | | | | | | Update and fix Time documentation
| * | | Update Time documentationAaron Franke2021-10-284-14/+17
| | | |
* | | | Adds support for 'use_coverage' flag in OSX.Sean Kim2021-10-281-0/+5
| |/ / |/| | | | | | | | Based on #36572 which added support for Linux
* | | Merge pull request #42117 from nekomatata/x11-get-window-screenRémi Verschelde2021-10-282-26/+51
|\ \ \ | |/ / |/| | Fix window_get_current_screen for X11 display server
| * | Fix window_get_current_screen for X11 display serverPouleyKetchoupp2021-10-282-26/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This method used to check which screen contains the top-left corner of the window (and default to the first screen in case none is found), which is not accurate in some cases. Now the area of overlap with each screen is calculated, so we can get the best candidate based on the window's position. This makes window_get_current_screen consistent with Windows platform, and fixes an issue where popups appear on the main screen when the main window is slightly moved outside of the desktop on the top or left.
* | | clang-format: Enable `BreakBeforeTernaryOperators`Rémi Verschelde2021-10-281-8/+8
| | | | | | | | | | | | | | | clang-format keeps breaking the way it handles break *after* ternary operators, so I give up and go with the only style they seem to actually test.
* | | clang-format: Various fixes to comments alignment from `clang-format` 13Rémi Verschelde2021-10-286-79/+54
| | | | | | | | | | | | All reviewed manually and occasionally rewritten to avoid bad auto formatting.
* | | clang-format: Disable alignment of operands, too unreliableRémi Verschelde2021-10-2811-53/+50
|/ / | | | | | | | | | | | | | | | | Sets `AlignOperands` to `DontAlign`. `clang-format` developers seem to mostly care about space-based indentation and every other version of clang-format breaks the bad mismatch of tabs and spaces that it seems to use for operand alignment. So it's better without, so that it respects our two-tabs `ContinuationIndentWidth`.
* | Merge pull request #54326 from nekomatata/x11-fix-input-delayRémi Verschelde2021-10-282-18/+29
|\ \
| * | Fix input events random delay on X11PouleyKetchoupp2021-10-272-18/+29
| |/ | | | | | | | | | | | | | | | | | | | | The new system based on a thread gathering events from the X11 server was causing delays in some scenarios where some events have just been missed at the time of processing and we're waiting for a whole frame to check them again. Solved by flushing again and checking for pending events at the beginning of the process loop, in addition to events already gathered on the event thread.
* / Android: Properly validate `godot_project_name_string` for Android special charsRémi Verschelde2021-10-261-2/+17
|/ | | | Fixes #52659.
* Merge pull request #54045 from ConteZero/primary_clipboard_linux_fix_warningRémi Verschelde2021-10-231-0/+1
|\
| * Fix primary clipboard warningConteZero2021-10-231-0/+1
| |
* | Fix Gradle builds not excluding excluded tasksMarcel Admiraal2021-10-231-7/+7
| |
* | JS: Bump ansi-regex version for linterRémi Verschelde2021-10-221-3/+3
| | | | | | | | Silences warning about a moderate security vulnerability (which doesn't affect us).
* | Add support for the RISC-V architectureAaron Franke2021-10-221-0/+7
| | | | | | | | Supports RV64GC (RISC-V 64-bit with general-purpose and compressed-instruction extensions)
* | Remove unimplemented methodsMarcel Admiraal2021-10-215-13/+0
|/
* Merge pull request #53702 from ConteZero/primary_clipboard_linuxRémi Verschelde2021-10-202-6/+47
|\
| * Added primary clipboard for LinuxConteZero2021-10-182-6/+47
| |
* | Merge pull request #52940 from groud/toast_notificationRémi Verschelde2021-10-191-1/+1
|\ \
| * | Implement toast notifications in the editorGilles Roudière2021-10-141-1/+1
| | |
* | | iOS: Don't embed project static frameworks/libsIgnacio Roldán Etcheverry2021-10-171-1/+1
| | | | | | | | | | | | | | | | | | Previously, files added via `add_ios_project_static_libs` where being added as embedded frameworks. This commit fixes that. Static frameworks/libs should never be embedded into IPAs.
* | | Merge pull request #53833 from akien-mga/remove-webm-supportRémi Verschelde2021-10-152-9/+0
|\ \ \
| * | | Remove WebM support (and deps libvpx and opus)Rémi Verschelde2021-10-152-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We've had many issues with WebM support and specifically the libvpx library over the years, mostly due to its poor integration in Godot's buildsystem, but without anyone really interested in improving this state. With the new GDExtensions in Godot 4.0, we intend to move video decoding to first-party extensions, and this would likely be done using something like libvlc to expose more codecs. Removing the `webm` module means we can remove libsimplewebm, libvpx and opus, which we were only used for that purpose. Both libvpx and opus were fairly complex pieces of the buildsystem, so this is a nice cleanup. This also removes the compile-time dependency on `yasm`. Fixes lots of compilation or non-working WebM issues which will be linked in the PR.
* | | | SCons: Set `DEBUG_ENABLED` and `DEV_ENABLED` in SConstructRémi Verschelde2021-10-157-27/+2
|/ / / | | | | | | | | | | | | They're the same for all platforms so they don't need to be repeated in all platform definitions.
* | | Fix specific warnings issues by ClangK. S. Ernest (iFire) Lee2021-10-143-5/+1
| | | | | | | | | | | | Found by `scons dev=yes` on llvm-mingw.
* | | Upgrade Android Gradle to version 7.2Marcel Admiraal2021-10-145-46/+63
|/ /
* | SCons: Add `DEV_ENABLED` defines for `target=debug` buildsRémi Verschelde2021-10-147-0/+8
| | | | | | | | | | | | | | | | | | | | | | This will allow adding developer checks which will be fully compiled out in user builds, unlike `DEBUG_ENABLED` which is included in debug tempates and the editor builds. This define is not used yet, but we'll soon add code that uses it, and change some existing `DEBUG_ENABLED` checks to be performed only in dev builds. Related to godotengine/godot-proposals#3371.
* | free dbus errors when inhibiting freedesktop screensaver (prevents small ↵Mark Riedesel2021-10-121-0/+4
| | | | | | | | memory leak)
* | Merge pull request #53712 from CakHuri/nullptrRémi Verschelde2021-10-121-2/+2
|\ \ | | | | | | Replace NULL with nullptr
| * | Replaced NULL with nullptrM. Huri2021-10-121-2/+2
| | |
* | | Build for 64-bit ARM by default when compiling or exporting for AndroidHugo Locurcio2021-10-122-20/+11
| |/ |/| | | | | | | | | | | All Android devices that support Vulkan support 64-bit ARM. This also removes NEON opt-out code for ARMv7 as pretty much all ARMv7 devices also support NEON.
* | Fix some LGTM errors of "Multiplication result converted to larger type"Aaron Franke2021-10-121-2/+3
|/
* Pass the correct `export_format` argument to locate the assets directory ↵ne0fhyk2021-10-112-5/+4
| | | | when exporting.
* Merge pull request #53580 from RandomShaper/improve_cache_funcsRémi Verschelde2021-10-097-18/+41
|\
| * Implement get_cache_path() for iOS, and improve it for Android and WindowsPedro J. Estébanez2021-10-097-18/+41
| |
* | Merge pull request #51429 from omar-polo/fix-basenameRémi Verschelde2021-10-091-1/+4
|\ \ | |/ |/|
| * use .get_file() instead of basename(3)Omar Polo2021-10-081-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On OpenBSD the compiler complains that calling basename(3) would lose const qualifier. basename(3) is defined as char *basename(char *); and can, accorgindly to the POSIX.1, modify the passed string. This uses the .get_file() method. The check is necessary because file_name could be a directory, in which case .get_file() would return an empty string. The .get_base_dir().get_file() idiom is already used. The usage of get_file() and the check were suggested by theraot, thanks!
* | Change dragging cursor on Windowskobewi2021-10-061-1/+1
| |
* | Merge pull request #52711 from m4gr3d/provide_getter_for_project_data_dir_masterRémi Verschelde2021-10-051-1/+2
|\ \
| * | Provide a getter for the project data directory.ne0fhyk2021-09-151-1/+2
| | |
* | | [HTML5] Refactor JS library listeners to OS.Fabio Alessandrelli2021-10-054-70/+70
| | |
* | | [HTML5] Refactor display/input JS library code.Fabio Alessandrelli2021-10-054-414/+435
| | |
* | | [HTML5] Implement Pointer Lock API in JS library.Fabio Alessandrelli2021-10-053-8/+37
| | | | | | | | | | | | Removes more emscripten HTML5 library dependencies.
* | | [HTML5] Implement window blur in JS library.Fabio Alessandrelli2021-10-054-22/+12
| | | | | | | | | | | | Removes more emscripten HTML5 library dependencies.
* | | [HTML5] Implement fullscreenchange in JS library.Fabio Alessandrelli2021-10-054-18/+22
| | | | | | | | | | | | Removes more emscripten HTML5 library dependencies.
* | | [HTML5] Implement mouse/touch/key events in JS library.Fabio Alessandrelli2021-10-057-197/+259
| | | | | | | | | | | | | | | This makes us more independent from emscripten libraries, giving us more control on the application lifecycle.