summaryrefslogtreecommitdiffstats
path: root/platform/uwp/os_uwp.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Disable driver fallback to GLES2 by defaultRémi Verschelde2019-03-051-2/+2
| | | | | | | | | | | | | | | | | | | GLES2 is not designed to be a drop-in replacement for the GLES3 backend, so the fallback mode has to be used knowingly. It *can* make sense for simple projects which make sure to handle the differences between both rendering backends, but most users should stick to one supported backend. By making it opt-in, we can now use this parameter to define whether to export ETC textures to Android and iOS when using GLES3 + Fallback. When using GLES3 without Fallback on Android, set the proper min GLES version in the AndroidManifest. Also made the option boolean and renamed it for clarity and to avoid conflict with the previous String option (which would always evaluate as "true" otherwise). Fixes #26569.
* -Remove harcoded opengl extension testing from OS, ask rasterizer instead.Juan Linietsky2019-02-261-1/+1
| | | | -Fixed a bug where etc textures were imported broken
* Merge pull request #25842 from marcelofg55/windows_timezoneRémi Verschelde2019-02-131-1/+3
|\ | | | | Fix get_time_zone_info returning inverted bias on Windows/UWP
| * Fix get_time_zone_info returning inverted bias on Windows/UWPMarcelo Fernandez2019-02-131-1/+3
| |
* | Platform: Ensure classes match their header filenameRémi Verschelde2019-02-121-85/+85
|/ | | | | | | | | | | | | | | | | | | | Also drop some unused files. Renamed: - `platform/iphone/sem_iphone.h` -> `semaphore_iphone.h` (same for `osx`) - `platform/uwp/gl_context_egl.h` -> `context_egl_uwp.h` - in `platform/windows`: `context_gl_win.h`, `crash_handler_win.h`, `godot_win.cpp`, `joypad.h` and `key_mapping_win.h` all renamed to use `windows`. Some classes renamed accordingly too. - `EditorExportAndroid` and `EditorExportUWP` renamed to `EditorExportPlatformAndroid` and `EditorExportPlatformUWP` - `power_android` and `power_osx` renamed to `PowerAndroid` and `PowerOSX` - `OSUWP` renamed to `OS_UWP` Dropped: - `platform/windows/ctxgl_procaddr.h`
* Added set_environment to OS classIgnacio Etcheverry2019-02-031-0/+5
|
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix UWP build.Fabio Alessandrelli2018-11-031-0/+1
| | | | | Add missing os_uwp.cpp include for VisualServerWrapMT. Add global env forced include to fix freetype in UWP.
* Fix init of VisualServerRasterRémi Verschelde2018-11-011-4/+2
| | | | | | | | Contrarily to what #23434 assumed, this is not a memory leak, the VisualServerRaster instance is passed as a parameter to VisualServerWrapMT's constructor. Fixes #23437.
* Fix initialization of visual server in all platformsGeorge Marques2018-11-011-4/+3
| | | | | Avoid leaking an extra instance when using threads. Also fix threaded loading issues on Android and iOS.
* Remove redundant "== true" codeAaron Franke2018-10-061-1/+1
| | | If it can be compared to a boolean, it can be evaluated as one in-place.
* Properly initialize Winsock on startupFabio Alessandrelli2018-09-131-0/+2
| | | | Also fix typo in _get_last_error which caused Winsock connect to fail.
* Unify StreamPeerTCP/TCP_Server with NetSocket APIFabio Alessandrelli2018-09-121-4/+0
|
* Unify PacketPeerUDP using NetSocketFabio Alessandrelli2018-09-121-2/+4
|
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-2/+2
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Fix typo in os_uwp causing a build failureHein-Pieter van Braam2018-08-281-1/+1
|
* Fall back to GLES2 if GLES3 is not workingHein-Pieter van Braam2018-08-261-18/+70
| | | | | | | | | | | | | | | | | | This adds a static is_viable() method to all rasterizers which has to be called before initializing the rasterizer. This allows us to check what rasterizer to use in OS::initialize together with the GL context initialization. This commit also adds a new project setting "rendering/quality/driver/driver_fallback" which allows the creator of a project to specify whether or not fallback to GLES2 is allowed. This setting is ignored for the editor so the editor will always open even if the project itself cannot run. This will hopefully reduce confusion for users downloading projects from the internet. We also no longer crash when GLES3 is not functioning on a platform. This fixes #15324
* Fix some more build issues after c69de2ba4Rémi Verschelde2018-07-201-0/+6
| | | | Fixes #20301.
* Style: Format code with clang-format 6.0.1Rémi Verschelde2018-07-181-1/+0
|
* Fix keep screen on property path for Android/iOS/UWPvolzhs2018-07-171-1/+1
|
* UWP: Add support for GLES2 driverGeorge Marques2018-07-121-24/+17
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | 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.
* Change OS::initialize signature to return Error (fix segfault on x11)Emmanuel Leblond2018-01-041-1/+3
|
* Merge pull request #12814 from guilhermefelipecgs/add_hardware_custom_cursorRémi Verschelde2018-01-031-0/+4
|\ | | | | Custom hardware-accelerated mouse cursor
| * Add implementation for custom hardware cursorGuilherme Silva2017-12-171-0/+4
| |
* | Merge pull request #15246 from vnen/uwp-gdnativeGeorge Marques2018-01-011-0/+45
|\ \ | | | | | | Make GDNative DLLs work on UWP
| * | Make GDNative DLLs work on UWPGeorge Marques2018-01-011-0/+45
| |/
* / Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Move windows networking class to drivers/windows/Fabio Alessandrelli2017-12-151-4/+4
| | | | | Also rename stream_peer_winsock.* to stream_peer_tcp_winsock.* and StreamPeerWinsock to StreamPeerTCPWinsock.
* Fixes vsync setting ignored when using a separate thread for renderingStefano Bonicatti2017-12-091-0/+1
| | | | | | | | | Setting the vsync in the main thread, after the rendering thread starts and takes the OpenGL context fails, so we need to do that before. Also, for some reason, the main thread cannot make current the context anymore. Fixes #13447
* Return and repair file loggingRuslan Mustakov2017-11-211-10/+3
| | | | And make it configurable, too.
* Merge pull request #12988 from akien-mga/xdg-home-pathsRémi Verschelde2017-11-201-2/+3
|\ | | | | Add support for XDG Base Directory spec
| * Rename OS::get_data_dir to OS::get_user_data_dirRémi Verschelde2017-11-171-2/+3
| | | | | | | | | | Will be needed to avoid confusion with system data path (XDG_DATA_HOME) and editor data dir in upcoming refactoring.
* | Cleanup old references to GLES2 rendererRémi Verschelde2017-11-191-1/+1
|/ | | | | | | | | There are still some left in the Android Java code, even stuff to swap between GLES1 and GLES2 support from early Godot days... would be good to see some cleanup there too one day. The "graphics/api" option for Android exports is removed, as only GLES 3.0 is supported. It can be readded when GLES 2.0 support comes back. Fixes #13004.
* Make video mode initialization more intuitive, fixes #12022Juan Linietsky2017-11-091-5/+0
|
* Merge pull request #12262 from AndreaCatania/pplugJuan Linietsky2017-11-031-13/+0
|\ | | | | Physics server plug
| * Implemented physics plugAndreaCatania2017-11-041-13/+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
* | Disable logging until the logs location is sorted outRémi Verschelde2017-10-291-1/+3
|/ | | | Temporary workaround for #12277.
* OS::execute can now read from stderr too when executing with a pipeMarcelo Fernandez2017-10-031-1/+1
|
* Extract logging logicRuslan Mustakov2017-09-251-50/+10
| | | | | | | | | | | | | | | | | | | 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.
* Merge pull request #11252 from marcelofg55/fix_noaudio_crashRémi Verschelde2017-09-171-6/+1
|\ | | | | Fix crash when no audio driver is available
| * Fix crash when no audio driver is availableMarcelo Fernandez2017-09-131-6/+1
| |
* | Fix enums bindingsMaxim Sheronov2017-09-131-1/+1
|/ | | | | Add missed bindings for enums Move some enums to class to have correct output of api.json
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* -Renamed GlobalConfig to ProjectSettings, makes more sense.Juan Linietsky2017-07-191-4/+3
| | | | -Added system for feature overrides, it's pretty cool :)
* -Reorganized all properties of project settings (Sorry, Again).Juan Linietsky2017-07-171-1/+1
| | | | | (Lot's of bloat accumulated, so it was time for clean up.) -Made EditorSettings and ProjectSettings search more useful (search in sections too)
* Fix UWP compilation issuesGeorge Marques2017-05-231-17/+12
| | | | Also fix VS2017 compilation problems.
* Removal of InputEvent as built-in Variant type..Juan Linietsky2017-05-201-8/+8
| | | | this might cause bugs I haven't found yet..
* Removal of Image from Variant, converted to a Resource.Juan Linietsky2017-05-171-1/+1
|
* Fix compilation for UWPGeorge Marques2017-04-291-44/+25
|