aboutsummaryrefslogtreecommitdiff
path: root/platform/x11 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-0512-1183/+1089
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Add a bunch of missing Godot headers in own filesRémi Verschelde2017-03-052-4/+4
|
* Refactoring: rename tools/editor/ to editor/Rémi Verschelde2017-03-051-1/+1
| | | | | | The other subfolders of tools/ had already been moved to either editor/, misc/ or thirdparty/, so the hiding the editor code that deep was no longer meaningful.
* Add API to access battery power stateJulian Murgia2017-03-045-0/+663
| | | | | | | | | | | | | | Done: - X11, server (tested) - Windows (developed, would be nice to retest) - OSX (not tested) Prepared (not developed): - Android (code is here, but may not compile) - iphone - winrt - bb10 - haiku - javascript
* Fix failing build on mageia v6 x64 linux.Shlomi Fish2017-02-271-0/+1
| | | | There was an error about undeclared malloc()+free().
* Merge pull request #7862 from Hinsbart/joypad_connectionsRémi Verschelde2017-02-262-11/+1
|\ | | | | Better handling of joypad device IDs.
| * Better handling of joypad device IDs.Andreas Haas2017-02-262-11/+1
| | | | | | | | | | | | | | Now InputDefault is responsible for giving out joypad device IDs to the platform, instead of each platform handling this itself. This makes it possible for c++ modules to add their own "custom" gamepad devices, without the risk of messing up events in case the user also has regular gamepads attached (using the OS code). For now, it's implemented for the main desktop platforms. Possible targets for future work: android, uwp, javascript
* | Merge pull request #7834 from hpvb/x11-return-to-cwd-at-exitRémi Verschelde2017-02-261-0/+9
|\ \ | | | | | | X11 return to cwd at exit
| * | X11 return to cwd at exitHein-Pieter van Braam2017-02-181-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During runtime godot calls chdir() several times. This doesn't really matter normally but when using tools such as gprof the location of the profiling data is kind of hard to intuit. With this PR we simply store the current working directory at start and restore it once we're almost done exiting. This doesn't use the OS abstractions as when we need to get the current workdir we haven't yet initialized it (by necessity). This would break if we tried to build X11 for windows, but since the X11 target is hardcoded to use the UNIX abstractions I don't think it matters.
* | | Fix some compilation warnings.Shlomi Fish2017-02-211-1/+1
| |/ |/| | | | | | | | | Redone the commit based on the input in https://github.com/godotengine/godot/pull/7851 . Not all warnings were fixed but it's a start.
* | Editor Export Settings Dialog is completed!! Now on to make some exporters..Juan Linietsky2017-02-191-3/+20
|/
* X11: Move audio driver finalize to the start of cleanupHein-Pieter van Braam2017-02-171-4/+4
| | | | | | | The audio driver cleanup needs to happen at the start of finish otherwise a race still seems to exist with the destruction of the audioserver. I think that destroying the X resoures before has something to do with it.
* X11: Finalize audiodrivers on exitHein-Pieter van Braam2017-02-171-1/+4
| | | | | | | The audiodrivers loaded by OS_X11 are not destroyed before the audioserver is. This causes a segfault on exit. The code is taken from os_windows.cpp which did have the cleanup code.
* Merge pull request #7578 from baekdahl/masterRémi Verschelde2017-02-021-7/+0
|\ | | | | x11: don't wait for window to be mapped
| * x11: don't wait for window to be mappedJesper Bækdahl2017-01-191-7/+0
| |
* | Merge pull request #7683 from marcelofg55/masterRémi Verschelde2017-02-021-9/+27
|\ \ | | | | | | Fix issues with set_window_resizable on x11
| * | Fix issues with set_window_resizable on x11marcelofg552017-01-301-9/+27
| | |
* | | Merge pull request #7645 from tagcup/x11_optimization_flags_v2Rémi Verschelde2017-02-021-9/+16
|\ \ \ | |/ / |/| | Use -Ofast on x11. Also introduced use_lto option.
| * | Use -Ofast on x11. Also introduced use_lto option.Ferenc Arn2017-01-261-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | debug_release doesn't turn off optimizations for release target now. Ensure that sanitizer options apply to both C and C++ files. Built-in optimization/debug flags are prepended such that user-specified flags can override them. Based on and around the discussion in PR #5194.
* | | Removed import/export system, will start new one from scratch.Juan Linietsky2017-01-251-1/+2
|/ /
* | Added focus tracking in X11 and Windows classes, added new confined mouse ↵Ilija Boshkov2017-01-252-20/+41
| | | | | | | | mode (#7162)
* | WIP new AudioServer, with buses, effects, etc.Juan Linietsky2017-01-211-0/+1
|/
* Style: Various fixes to play nice with clang-formatRémi Verschelde2017-01-161-9/+8
|
* Oops! Audio engine has vanished :DJuan Linietsky2017-01-152-40/+16
|
* Style: Fix whole-line commented codeRémi Verschelde2017-01-144-10/+12
| | | | | They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
* rename Input.get_mouse_speed() to Input.get_last_mouse_speed()Juan Linietsky2017-01-131-2/+2
|
* Rename "joypad_linux" class to "JoypadLinux"Andreas Haas2017-01-084-26/+25
| | | | Named this class in GodotCase, so it fits with the rest of the codebase.
* Finish replacement of joystick by joypadRémi Verschelde2017-01-084-5/+6
| | | | Some parts were forgotten in 547a577.
* renamed joystick to joypad everywhere around source code!Juan Linietsky2017-01-084-78/+78
|
* x11: Improve logic for cross-dependencies between freetype, zlib and libpngRémi Verschelde2017-01-081-2/+13
| | | | Fixes #7373.
* Memory pool vectors (DVector) have been enormously simplified in code, and ↵Juan Linietsky2017-01-071-1/+1
| | | | renamed to PoolVector
* Remove bundled glew, obsoleted by gladRémi Verschelde2017-01-061-3/+0
| | | | | Also make Haiku load the glad header for GLES3 too, though I haven't test it.
* Move glad files to thirdparty dirRémi Verschelde2017-01-061-3/+1
|
* Merge remote-tracking branch 'origin/gles3' into gles3-on-masterRémi Verschelde2017-01-025-16/+40
|\ | | | | | | | | Various merge conflicts have been fixed manually and some mistakes might have been made - time will tell :)
| * Some BRDF fixesJuan Linietsky2016-12-211-1/+1
| |
| * Migrated from GLES to GLAD, fixes many issues.Juan Linietsky2016-11-223-5/+23
| |
| * Begining of GLES3 renderer:Juan Linietsky2016-10-035-13/+18
| | | | | | | | | | | | | | | | -Most 2D drawing is implemented -Missing shaders -Missing all 3D -Editor needs to be set on update always to be used, otherwise it does not refresh -Large parts of editor not working
* | Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-0112-12/+12
| | | | | | | | | | | | | | | | That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
* | fix for crash when no ALSA or Pulse installed on linuxGustav Lund2016-12-122-0/+7
| |
* | Revert "X11: Fix maximized boot splash"Rémi Verschelde2016-11-231-21/+0
| | | | | | | | | | | | This reverts commit 8d3efe2b7de494c0971d4b7f7af6ed0dc2f4613c. It introduced crashes for some users when trying to capture the XConfigureNotify event.
* | Merge pull request #7125 from Hinsbart/x11_maximizeRémi Verschelde2016-11-211-0/+21
|\ \ | | | | | | X11: Fix maximized boot splash
| * | X11: Fix maximized boot splashAndreas Haas2016-11-161-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | When instructing the window manager to (un)maximize a window, the resulting resolution is recieved via an XEvent of type "ConfigureNotify". The problem here was that these events were only handled in the `OS_X11::process_xevents()` method, which is initially called on the first iteration of the main loop. Because of this, the VideoMode still hadn't been updated yet when doing the boot splash setup.
* | | png: Allow building shared freetype with bundled libpngRémi Verschelde2016-11-191-1/+0
| | | | | | | | | | | | | | | | | | This was the behaviour when building Godot 2.1, which allows to build against Ubuntu 12.04 and its freetype that links old libpng12, while still bundling libpng16.
* | | Revert "libpng: Fix erroneously linking against libpng12 on old distros"Rémi Verschelde2016-11-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commits 5fa1bb331ad9be31dbfc752c7d19ccf7caeb8fa and ec4be71fade1ee5c6171e323d09197f3bf528499. Looks like Debian/Ubuntu are not even shipping libpng16 nowadays in their stable releases, we'll have to go back to statically linking our own libpng16 to wait for them to stop being 5 years behind everybody.
* | | libpng: Fix erroneously linking against libpng12 on old distrosRémi Verschelde2016-11-191-1/+1
|/ / | | | | | | | | This bit us for 2.1.1 binaries built on Ubuntu 12.04 LTS where libpng.pc apparently prioritizes libpng12.
* | vsnc --> vsyncISylvox2016-11-082-2/+2
| |
* | scons: Reorder options for clarityRémi Verschelde2016-11-031-20/+21
| | | | | | | | Also prefix all thirdparty-related toggles with `builtin`.
* | style: Fix PEP8 blank lines issues in Python filesRémi Verschelde2016-11-011-7/+3
| | | | | | | | | | | | | | | | | | | | | | Done with `autopep8 --select=E3,W3`, fixes: - E301 - Add missing blank line. - E302 - Add missing 2 blank lines. - E303 - Remove extra blank lines. - E304 - Remove blank line following function decorator. - E309 - Add missing blank line. - W391 - Remove trailing blank lines.
* | style: Fix PEP8 whitespace issues in Python filesRémi Verschelde2016-11-012-57/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Done with `autopep8 --select=E2,W2`, fixes: - E201 - Remove extraneous whitespace. - E202 - Remove extraneous whitespace. - E203 - Remove extraneous whitespace. - E211 - Remove extraneous whitespace. - E221 - Fix extraneous whitespace around keywords. - E222 - Fix extraneous whitespace around keywords. - E223 - Fix extraneous whitespace around keywords. - E224 - Remove extraneous whitespace around operator. - E225 - Fix missing whitespace around operator. - E226 - Fix missing whitespace around operator. - E227 - Fix missing whitespace around operator. - E228 - Fix missing whitespace around operator. - E231 - Add missing whitespace. - E231 - Fix various deprecated code (via lib2to3). - E241 - Fix extraneous whitespace around keywords. - E242 - Remove extraneous whitespace around operator. - E251 - Remove whitespace around parameter '=' sign. - E261 - Fix spacing after comment hash. - E262 - Fix spacing after comment hash. - E265 - Format block comments. - E271 - Fix extraneous whitespace around keywords. - E272 - Fix extraneous whitespace around keywords. - E273 - Fix extraneous whitespace around keywords. - E274 - Fix extraneous whitespace around keywords. - W291 - Remove trailing whitespace. - W293 - Remove trailing whitespace.
* | style: Start applying PEP8 to Python files, indentation issuesRémi Verschelde2016-11-012-167/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Done with `autopep8 --select=E1`, fixes: - E101 - Reindent all lines. - E112 - Fix under-indented comments. - E113 - Fix over-indented comments. - E115 - Fix under-indented comments. - E116 - Fix over-indented comments. - E121 - Fix a badly indented line. - E122 - Fix a badly indented line. - E123 - Fix a badly indented line. - E124 - Fix a badly indented line. - E125 - Fix indentation undistinguish from the next logical line. - E126 - Fix a badly indented line. - E127 - Fix a badly indented line. - E128 - Fix a badly indented line. - E129 - Fix a badly indented line.