summaryrefslogtreecommitdiffstats
path: root/platform/uwp
Commit message (Collapse)AuthorAgeFilesLines
* added a const keyword for a methods that return constant literal...hbina0852019-05-212-2/+2
|
* Allow project export to be canceledGeorge Marques2019-05-181-14/+32
|
* Fix OS_UWP::execute's signature after cd4449eRémi Verschelde2019-05-162-2/+2
| | | | Same as #28919.
* SCons: Always use env.Prepend for CPPPATHRémi Verschelde2019-04-301-2/+2
| | | | | | Include paths are processed from left to right, so we use Prepend to ensure that paths to bundled thirdparty files will have precedence over system paths (e.g. `/usr/include` should have lowest priority).
* SCons: Review uses of CCFLAGS, CXXFLAGS and CPPFLAGSRémi Verschelde2019-04-241-12/+15
| | | | | | | | | | | | | | | | | | | | | | | Many contributors (me included) did not fully understand what CCFLAGS, CXXFLAGS and CPPFLAGS refer to exactly, and were thus not using them in the way they are intended to be. As per the SCons manual: https://www.scons.org/doc/HTML/scons-user/apa.html - CCFLAGS: General options that are passed to the C and C++ compilers. - CFLAGS: General options that are passed to the C compiler (C only; not C++). - CXXFLAGS: General options that are passed to the C++ compiler. By default, this includes the value of $CCFLAGS, so that setting $CCFLAGS affects both C and C++ compilation. - CPPFLAGS: User-specified C preprocessor options. These will be included in any command that uses the C preprocessor, including not just compilation of C and C++ source files [...], but also [...] Fortran [...] and [...] assembly language source file[s]. TL;DR: Compiler options go to CCFLAGS, unless they must be restricted to either C (CFLAGS) or C++ (CXXFLAGS). Preprocessor defines go to CPPFLAGS.
* Add Input::get_current_cursor_shapeGuilherme Felipe2019-04-152-0/+6
| | | | [Clean up] Removed unused/unnecessary methods.
* Merge pull request #27067 from shartte/remove-context-glRémi Verschelde2019-04-071-11/+10
|\ | | | | Remove ContextGL
| * Remove ContextGL since as an abstraction it's unused.Sebastian Hartte2019-04-061-11/+10
| |
* | Remove unused importsHendrikto2019-04-061-3/+0
|/
* Enable warnings=extra on clang and GCC testers.marxin2019-04-021-1/+1
| | | | And remove 2 warnings from warnings=extra.
* Fix directory check when exporting projectvolzhs2019-03-061-1/+1
| | | | Fix #26702
* Merge pull request #26633 from akien-mga/driver-fallback-etcRémi Verschelde2019-03-061-2/+2
|\ | | | | Disable driver fallback to GLES2 by default
| * 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.
* | Fixes misleading error message when trying to exportRicardo Lüders2019-03-051-0/+4
|/ | | | | | | This patch fixes the misleading error message when users try to "export all" into an invalid destination path. Closes #26539
* -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
* Fix compiling with use_mingw flag on WindowsMarcelo Fernandez2019-02-191-1/+0
|
* 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-129-134/+135
|/ | | | | | | | | | | | | | | | | | | | 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-032-0/+6
|
* ExportDialog: Make error messages translatableRémi Verschelde2019-01-211-13/+13
| | | | Also fix missing newlines that caused #24202.
* Fixed a typo in 'uwp_device_capabilites'M. Huri2019-01-191-3/+3
|
* Update copyright statements to 2019Rémi Verschelde2019-01-0115-30/+30
| | | | Happy new year to the wonderful Godot community!
* uwp export: fix existing template checkAndrea Beconcini2018-11-271-1/+1
|
* 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.
* Merge pull request #23389 from marcelofg55/multiple_extRémi Verschelde2018-11-021-2/+4
|\ | | | | Export for OS X on OS X now lets you select .dmg or .zip
| * Export for OS X on OS X now lets you select .dmg or .zipMarcelo Fernandez2018-11-011-2/+4
| |
* | 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.
* Dont use equality operators with None singleton in python fileslupoDharkael2018-10-271-1/+1
|
* 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.
* Fix warnings on virtual methods [-Woverloaded-virtual] ↵Rémi Verschelde2018-10-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | [-Wdelete-non-virtual-dtor] Fixes the following Clang 7 warnings: ``` editor/editor_help.h:123:7: warning: 'EditorHelpIndex::popup' hides overloaded virtual function [-Woverloaded-virtual] editor/editor_help.h:95:7: warning: 'EditorHelpSearch::popup' hides overloaded virtual function [-Woverloaded-virtual] editor/editor_help.h:96:7: warning: 'EditorHelpSearch::popup' hides overloaded virtual function [-Woverloaded-virtual] editor/plugins/curve_editor_plugin.h:141:15: warning: 'CurvePreviewGenerator::generate' hides overloaded virtual function [-Woverloaded-virtual] editor/plugins/script_editor_plugin.h:70:7: warning: 'ScriptEditorQuickOpen::popup' hides overloaded virtual function [-Woverloaded-virtual] editor/quick_open.h:69:7: warning: 'EditorQuickOpen::popup' hides overloaded virtual function [-Woverloaded-virtual] main/tests/test_io.cpp:53:15: warning: 'TestIO::TestMainLoop::input_event' hides overloaded virtual function [-Woverloaded-virtual] servers/audio/effects/audio_effect_record.h:69:15: warning: 'AudioEffectRecordInstance::process_silence' hides overloaded virtual function [-Woverloaded-virtual] core/os/memory.h:119:2: warning: destructor called on non-final 'ContextGL_X11' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'EditorScriptCodeCompletionCache' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'Engine' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'PhysicalBone::JointData' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'VisualServerScene' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'VisualServerViewport' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] ```
* Properly initialize Winsock on startupFabio Alessandrelli2018-09-131-0/+2
| | | | Also fix typo in _get_last_error which caused Winsock connect to fail.
* Merge pull request #21982 from luzpaz/misc-typosRémi Verschelde2018-09-131-1/+1
|\ | | | | Misc. typos
| * Misc. typosluz.paz2018-09-121-1/+1
| | | | | | Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
* | 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-127-18/+18
|/ | | | | | 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 file hintsMarcin Zawiejski2018-08-231-2/+2
| | | | Fixes file hints so the file dialog actually displays the files with given extension (e.g. *.apk).
* BPTC supportelasota2018-08-211-0/+3
|
* Add PROPERTY_HINT_PLACEHOLDER_TEXT for String propertiesRémi Verschelde2018-08-201-9/+9
| | | | | | Use it to provide a better example for application identifiers on Android, iOS and macOS, where users thought they *had* to use this as a magic token.
* [Core] Completely kill math_2d.h, change includesAaron Franke2018-08-111-1/+1
|
* Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam2018-07-261-50/+50
| | | | | | | | | | | | | | | | | | | | | | | This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
* Fix some more build issues after c69de2ba4Rémi Verschelde2018-07-202-0/+8
| | | | 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-125-46/+58
|
* Tweak some help texts in the build systemHugo Locurcio2018-06-071-3/+3
| | | | | This also removes `unix_global_settings_path` from SConstruct since it is no longer used.