aboutsummaryrefslogtreecommitdiff
path: root/platform/windows/os_windows.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add epic hack so vsync can be toggled in run-time from script. Fixes #14458.Juan Linietsky2017-12-161-3/+3
| | | | Call needs to be routed via visual server to reach the proper thread.
* Move windows networking class to drivers/windows/Fabio Alessandrelli2017-12-151-5/+5
| | | | | Also rename stream_peer_winsock.* to stream_peer_tcp_winsock.* and StreamPeerWinsock to StreamPeerTCPWinsock.
* Fix type mismatch in OS::set_borderless_windowRémi Verschelde2017-12-141-1/+1
| | | | Closes #14663.
* -Add lightmapperJuan Linietsky2017-12-141-0/+4
| | | | | | -Fixes to unwrapper (remove degenerates), makes Thekla not crash -Added optional cancel button in EditorProgress -Added function to force processing of events (needed for cancel button)
* Fixes vsync setting ignored when using a separate thread for renderingStefano Bonicatti2017-12-091-0/+2
| | | | | | | | | 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
* Use run-time dynamic linking for AddDllDirectory and RemoveDllDirectory to ↵bruvzg2017-12-071-5/+12
| | | | support mingw-w64 build and Windows 7 with KB2533623.
* Remove guards for the now targeted Windows 7+Pedro J. Estébanez2017-12-061-13/+3
|
* Improve/fix multitouch on WindowsPedro J. Estébanez2017-12-061-13/+43
| | | | | | | - Fix logic error. - Track touches to enable defensive handling and releasing on focus out. - Change comment-out by preprocessor `#if`. - Track/report coordinates as float.
* Properly take into consideration that VERTEX must be written to in opaque ↵Juan Linietsky2017-12-011-1/+19
| | | | pre pass, does some speed up to scenes using triplanar.
* Needed a broader search path flagBastiaan Olij2017-12-011-1/+1
|
* Changed the dynamic library open function to allow setting the path of the ↵Juan Linietsky2017-11-301-3/+16
| | | | library to open extra libraries.
* Fixed white screen on editor/game startup by moving window displaying to a ↵Dmitry Koteroff2017-11-291-6/+6
| | | | bit later phase
* Allow customizing user:// path (folder in OS::get_data_path())Rémi Verschelde2017-11-261-6/+9
| | | | | | | | This allows to specify any valid folder name (including with subfolders) to use as user:// on all platforms. The folder is constrained to the platform-specific OS::get_data_path() (typically what `XDG_DATA_HOME` resolves to). Fixes #13236.
* Completed bc2e8d99e5ae0dbd69e712cc71da3033f5f30139 so that windows can be builtIndah Sylvia2017-11-251-1/+1
|
* Return and repair file loggingRuslan Mustakov2017-11-211-10/+3
| | | | And make it configurable, too.
* Pass engine name and version parts as proper stringsRémi Verschelde2017-11-201-1/+1
| | | | | | Removes the need for _MKSTR all over the place which has the drawback of converting _MKSTR(UNKNOWN_DEFINE) to "UKNOWN_DEFINE" instead of throwing a compilation error.
* Merge pull request #12988 from akien-mga/xdg-home-pathsRémi Verschelde2017-11-201-10/+47
|\ | | | | Add support for XDG Base Directory spec
| * Add initial support for the XDG Base Directory specRémi Verschelde2017-11-191-9/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Spec version 0.7 from https://standards.freedesktop.org/basedir-spec/basedir-spec-0.7.html (latest as of this commit). Three virtual methods are added to OS for the various XDG paths we will use: - OS::get_data_path gives XDG_DATA_HOME, or if missing: ~/.local/share on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows - OS::get_config_path gives XDG_CONFIG_HOME, or if missing: ~/.config on X11, ~/Library/Application Support/ on macOS and %APPDATA% on Windows - OS::get_cache_path gives XDG_CACHE_HOME, or if missing: ~/.cache on X11, ~/Library/Caches on macOS and %APPDATA% on Windows So for Windows there are no changes, for Linux we follow the full split spec and for macOS stuff will move from ~/.godot to ~/Library/Application Support/Godot. Support for system-wide installation of templates on Unix was removed for now, as it's a bit hackish and I don't think anyone uses it. user:// will still be OS::get_data_path() + "/godot/app_userdata/$name" by default, but when using the application/config/use_shared_user_dir option it will now use XDG_DATA_HOME/$name, e.g. ~/.local/share/MyGame. For now everything still goes in EditorSettings::get_settings_dir(), but this will be changed in a later commit to make use of the new splitting where relevant. Part of #3513.
| * Rename OS::get_data_dir to OS::get_user_data_dirRémi Verschelde2017-11-171-2/+2
| | | | | | | | | | 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
|
* Merge pull request #11568 from endragor/loggersAndreas Haas2017-10-021-133/+10
|\ | | | | Extract logging logic
| * Extract logging logicRuslan Mustakov2017-09-251-133/+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.
* | FileSystemDock will now remove files/dirs to trashcan using OS::move_to_trashMarcelo Fernandez2017-09-251-0/+27
|/
* Rename pos to position in user facing methods and variablesletheed2017-09-201-1/+1
| | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* 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
| |
* | Merge pull request #11230 from maxim-sheronov/fix_enum_bindingsThomas Herzog2017-09-151-1/+1
|\ \ | |/ |/| Fix enums bindings
| * 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
* | Added a crash handler to dump the backtrace on Windows, Linux and OS XMarcelo Fernandez2017-09-131-0/+10
| |
* | Style: Apply clang-format to @reduz's changesRémi Verschelde2017-09-131-8/+6
| | | | | | | | [ci skip]
* | HiDPI support on Windows.. yes this is all it took.Juan Linietsky2017-09-121-0/+22
|/
* Remove assignment and declarations in if statementsHein-Pieter van Braam2017-09-081-1/+10
| | | | | | After discussing with @reduz and @akien-mga it was decided that we do not allow assignments or declarations in if statements. This PR removes the instances of this I could find by automated means.
* Added new WASAPI driver for WindowsMarcelo Fernandez2017-08-271-0/+3
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Merge pull request #10487 from marcelofg55/curscr_as_defaultRémi Verschelde2017-08-221-3/+3
|\ | | | | p_screen param from get_screen_* funcs now default to the current screen
| * p_screen param from get_screen_* funcs now default to the current screenMarcelo Fernandez2017-08-211-3/+3
| |
* | Removed unnecessary assignmentsWilson E. Alvarez2017-08-211-2/+1
|/
* Workaround missing WM_TOUCH on mingw-w64 < 4.0Rémi Verschelde2017-08-181-4/+3
| | | | Upstream bug report: https://sourceforge.net/p/mingw-w64/bugs/460/
* Removed unused variableWilson E. Alvarez2017-08-171-1/+0
|
* Fix get_screen_* funcs returning old values after resolution changes on WindowsMarcelo Fernandez2017-08-141-38/+96
|
* Merge pull request #10141 from ISylvox/lower_case_godot_apiRémi Verschelde2017-08-071-1/+1
|\ | | | | Makes all Godot API's Methods lower_case
| * Makes all Godot API's methods Lower CaseIndah Sylvia2017-08-071-1/+1
| |
* | Merge pull request #10045 from marcelofg55/audioserver_finishRémi Verschelde2017-08-071-4/+0
|\ \ | |/ |/| Fix double finalisation of audio drivers
| * Fix double finalisation of audio driversMarcelo Fernandez2017-08-021-4/+0
| |
* | Rename KEY_RETURN to KEY_ENTER and KEY_ENTER to KEY_KP_ENTERBojidar Marinov2017-08-061-1/+1
|/ | | | Closes #7695