summaryrefslogtreecommitdiff
path: root/platform/osx
AgeCommit message (Collapse)Author
2021-12-18Fix initialising of gl_manager and checking gl_manager and context_vulkan ↵Bastiaan Olij
preventing crash issues.
2021-12-10Misc build system fixesAaron Franke
2021-12-09Replace String comparisons with "", String() to is_empty()Nathan Franke
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
2021-11-30Don't return reference on copy assignment operatorsRémi Verschelde
We prefer to prevent using chained assignment (`T a = b = c = T();`) as this can lead to confusing code and subtle bugs. According to https://en.wikipedia.org/wiki/Assignment_operator_(C%2B%2B), C++ allows any arbitrary return type, so this is standard compliant. This could be re-assessed if/when we have an actual need for a behavior more akin to that of the C++ STL, for now this PR simply changes a handful of cases which were inconsistent with the rest of the codebase (`void` return type was already the most common case prior to this commit).
2021-11-26Fix console colors on WindowsYuri Roubinsky
2021-11-23Rename `remove()` to `remove_at()` when removing by indexLightning_A
2021-11-17Fix crash on macOS (AS) when dualshock4 is removedWill Jordan
2021-11-16[macOS] Fix crash handler not printing function names on M1 Macs.bruvzg
2021-11-12Fix typo in architecture name for x86_64 macOSAaron Franke
2021-11-12Use "enum class" for input enumsAaron Franke
2021-11-11Merge pull request #54876 from bruvzg/no_captured_moveRémi Verschelde
2021-11-11Make window unmovable by dragging title bar, when mouse in captured or ↵bruvzg
confined mode.
2021-11-11String: Remove `erase` method, bindings can't mutate StringRémi Verschelde
2021-11-08[macOS] Use pre-wait observer to keep main run loop running and redraw ↵bruvzg
window during the window resize and displaying modal popups.
2021-11-06[Export] Read and ZIP project files in 16K chunks instead of reading the ↵bruvzg
whole file at once.
2021-11-02[macOS] Add support for OpenGLES3 video driver.bruvzg
2021-11-01[macOS] Add `create_instance` function to spawn editor copies.bruvzg
[macOS] Modify `create_project` function to detect and run app bundles using NSWorkspace to ensure app window is registered and activated correctly.
2021-10-31Use OpenGL 3.3 core profile instead of compatibility profileClay John
- 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.
2021-10-30Rename GLES2 driver to OpenGL to prepare for the upgrade to GLES3Hugo Locurcio
- Use lowercase driver names for the `--rendering-driver` command line argument.
2021-10-30Add GLES2 2D renderer + Linux display managerlawnjelly
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>
2021-10-28Adds support for 'use_coverage' flag in OSX.Sean Kim
Based on #36572 which added support for Linux
2021-10-28clang-format: Various fixes to comments alignment from `clang-format` 13Rémi Verschelde
All reviewed manually and occasionally rewritten to avoid bad auto formatting.
2021-10-28clang-format: Disable alignment of operands, too unreliableRémi Verschelde
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`.
2021-10-21Remove unimplemented methodsMarcel Admiraal
2021-10-19Merge pull request #52940 from groud/toast_notificationRémi Verschelde
2021-10-15Merge pull request #53833 from akien-mga/remove-webm-supportRémi Verschelde
2021-10-15Remove WebM support (and deps libvpx and opus)Rémi Verschelde
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.
2021-10-15SCons: Set `DEBUG_ENABLED` and `DEV_ENABLED` in SConstructRémi Verschelde
They're the same for all platforms so they don't need to be repeated in all platform definitions.
2021-10-14Fix specific warnings issues by ClangK. S. Ernest (iFire) Lee
Found by `scons dev=yes` on llvm-mingw.
2021-10-14Implement toast notifications in the editorGilles Roudière
2021-10-14SCons: Add `DEV_ENABLED` defines for `target=debug` buildsRémi Verschelde
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.
2021-10-12Replaced NULL with nullptrM. Huri
2021-10-01Implement TextServer GDExtension interface, remove TextServer GDNative ↵bruvzg
interface.
2021-10-01Merge pull request #52684 from Frixuu/masterRémi Verschelde
2021-09-30Merge pull request #48685 from bruvzg/bundle_icon_4Rémi Verschelde
2021-09-27[macOS, sandbox] Add export option to embed and sign helper executables.bruvzg
2021-09-21Allow for mapping keycodes to current layoutFrixuu
2021-09-07Merge pull request #47391 from Calinou/platform-feature-tags-lowercaseJuan Linietsky
Make platform feature tag names lowercase
2021-09-03fix fullscreen issue on macOSDaniel Kariv
adds a call for resize event.
2021-08-31Make platform feature tag names lowercaseHugo Locurcio
Feature tag names are still case-sensitive, but this makes built-in feature tags more consistent. - `Windows` -> `windows` - `OSX` -> `osx` - `LinuxBSD` -> `linuxbsd` - `Android` -> `android` - `iOS` -> `ios` - `HTML5` -> `html5` - `JavaScript` -> `javascript` - `UWP` -> `uwp`
2021-08-25Merge pull request #47829 from Calinou/improve-crash-handler-displayHugo Locurcio
Improve crash handler message display
2021-08-22Replace HTTP links with HTTPS for sites with HTTPS versionsAaron Franke
2021-08-16Add partial support for Android scoped storage.ne0fhyk
This is done by providing API access to app specific directories which don't have any limitations and allows us to bump the target sdk version to 30. In addition, we're also bumping the min sdk version to 19 as version 18 is no longer supported by Google Play Services and only account of 0.3% of Android devices.
2021-08-16Merge pull request #51116 from Calinou/macos-fix-xbox-bluetooth-controllersRémi Verschelde
Fix Xbox controllers in Bluetooth mode on macOS
2021-08-16Fix Xbox controllers in Bluetooth mode on macOSHugo Locurcio
This prevents the D-pad up arrow from being registered as pressed when it isn't, and pressing any direction from activating the next arrow clockwise of it. Co-authored-by: Scott Wadden <scott.wadden@gmail.com>
2021-08-13Merge pull request #51587 from Calinou/use-unicode-multiplication-symbolRémi Verschelde
Use the Unicode multiplication symbol where relevant
2021-08-13Add input buffering frameworkPedro J. Estébanez
Input buffering is implicitly used by event accumulation, but this commit makes it more generic so it can be enabled for other uses. For desktop OSs it's currently not feasible given main and UI threads are the same).
2021-08-13Improve input event accumulationPedro J. Estébanez
- API has been simplified: all events now go through `parse_input_event()`. Whether they are accumulated or not depends on the `use_accumulated_input` flag. - Event accumulation is now thread-safe (it was not needed so far, but it prepares the ground for the following changes). - Touch drag events now support accumulation.
2021-08-13Upgrade Vulkan memory allocatorPedro J. Estébanez
2021-08-12Use the Unicode multiplication symbol where relevantHugo Locurcio