summaryrefslogtreecommitdiff
path: root/servers
AgeCommit message (Collapse)Author
2020-04-01Fix Clang warnings on WindowsRémi Verschelde
Fixes #37490.
2020-04-01Merge pull request #37481 from ThakeeNathees/bind-method-typoRémi Verschelde
some typo in method binds fixed
2020-04-01some typo in method binds fixedThakee Nathees
2020-03-31Fix more -Wmaybe-uninitialized warnings with target=release_debugRémi Verschelde
I have no idea why those don't get triggered in target=debug builds. Fixes #37461.
2020-03-31doc: Sync classref with DisplayServer/Window changesRémi Verschelde
2020-03-30Merge pull request #37436 from akien-mga/doc-node-renamesRémi Verschelde
doc: Update classref with node renames
2020-03-30doc: Update classref with node renamesRémi Verschelde
A few extra renames for classes which were missed in last week's PRs.
2020-03-30Move glow upscale quality to a global setting, for consistencyJuan Linietsky
2020-03-30SCons: Format buildsystem files with psf/blackRémi Verschelde
Configured for a max line length of 120 characters. psf/black is very opinionated and purposely doesn't leave much room for configuration. The output is mostly OK so that should be fine for us, but some things worth noting: - Manually wrapped strings will be reflowed, so by using a line length of 120 for the sake of preserving readability for our long command calls, it also means that some manually wrapped strings are back on the same line and should be manually merged again. - Code generators using string concatenation extensively look awful, since black puts each operand on a single line. We need to refactor these generators to use more pythonic string formatting, for which many options are available (`%`, `format` or f-strings). - CI checks and a pre-commit hook will be added to ensure that future buildsystem changes are well-formatted.
2020-03-28Prevent shader crash if multiple variables has been declared in 'for'Yuri Roubinsky
2020-03-28Merge pull request #37362 from reduz/audioserver-memory-cleanupRémi Verschelde
Remove the audio memory allocator, use regular one instead.
2020-03-28Fix copyright headers for recently added filesRémi Verschelde
2020-03-28More server renames for consistency after #37361Rémi Verschelde
2020-03-27Remove the audio memory allocator, use regular one instead.Juan Linietsky
2020-03-27Renaming of servers for coherency.Juan Linietsky
VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.
2020-03-27Merge pull request #37340 from reduz/rename-3d-nodesJuan Linietsky
Make 2D and 3D node names more explicit
2020-03-27Rename more 2D and 3D nodes to follow conventionRémi Verschelde
Rename editor plugins to match the new node names.
2020-03-27Merge pull request #37347 from akien-mga/displayserver-fix-create-funcRémi Verschelde
DisplayServer: Fix registration of GetRenderingDriversFunction
2020-03-27Renamed 2D and 3D nodes to make their types explicitJuan Linietsky
Fixes #30736.
2020-03-27Fix some -Wmaybe-uninitialized warningsRémi Verschelde
Namely: ``` modules/basis_universal/register_types.cpp: In function 'Ref<Image> basis_universal_unpacker(const Vector<unsigned char>&)': modules/basis_universal/register_types.cpp:266:15: warning: 'imgfmt' may be used uninitialized in this function [-Wmaybe-uninitialized] 266 | image->create(info.m_width, info.m_height, info.m_total_levels > 1, imgfmt, gpudata); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ modules/basis_universal/register_types.cpp:255:39: warning: 'format' may be used uninitialized in this function [-Wmaybe-uninitialized] 255 | bool ret = tr.transcode_image_level(ptr, size, 0, i, dst + ofs, level.m_total_blocks - i, format); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` ``` servers/visual_server.cpp: In member function 'Error VisualServer::_surface_set_data(Array, uint32_t, uint32_t*, uint32_t, Vector<unsigned char>&, int, Vector<unsigned char>&, int, AABB&, Vector<AABB>&)': servers/visual_server.cpp:636:15: warning: 'iw' may be used uninitialized in this function [-Wmaybe-uninitialized] 636 | copymem(&iw[i * 2], &v, 2); | ^ ``` ``` core/image.cpp: In member function 'Error Image::generate_mipmap_roughness(Image::RoughnessChannel, const Ref<Image>&)': core/image.cpp:1683:11: warning: 'roughness' may be used uninitialized in this function [-Wmaybe-uninitialized] 1683 | float roughness; | ^~~~~~~~~ ```
2020-03-27Fix various -Wmaybe-uninitialized (#37352).Martin Liska
2020-03-27DisplayServer: Fix registration of GetRenderingDriversFunctionRémi Verschelde
Also improve `--help` output.
2020-03-26Add macOS DisplayServer implementation.bruvzg
Change global menu to use Callable, add support for check items and submenus.
2020-03-26Fixes to X11, still pretty brokenJuan Linietsky
2020-03-26Implemented drag and drop across windows, both OS and embedded.Juan Linietsky
2020-03-26Reworked tooltips to use the popup system.Juan Linietsky
2020-03-26Popups have also been converted to windowsJuan Linietsky
Controls using the old modal API have been replaced to use popups.
2020-03-26Open sub-windows as embedded if the OS does not support themJuan Linietsky
2020-03-26Separate DisplayServer from OS on WindowsJuan Linietsky
2020-03-26Support for transient windowsJuan Linietsky
2020-03-26Refactored input, goes all via windows now.Juan Linietsky
Also renamed Input to InputFilter because all it does is filter events.
2020-03-26Added a Window node, and made it the scene root.Juan Linietsky
Still a lot of work to do.
2020-03-26Effective DisplayServer separation, rename X11 -> LinuxBSDJuan Linietsky
2020-03-26Refactored Input, create DisplayServer and DisplayServerX11Juan Linietsky
2020-03-26Rename conflicting variable to fix MoltenVK shader compilation.bruvzg
2020-03-24Merge pull request #37268 from clayjohn/VULKAN-sky-colorRémi Verschelde
Replace subpass textures with color in sky shader
2020-03-24Replace subpass textures with color in sky shaderclayjohn
2020-03-24Remove unused classes and stray headersRémi Verschelde
Found by reviewing headers with 1 or less matching includes: ``` find -name thirdparty -prune -o -name "*.h" -exec basename {} \; | sort -u > headers for header in $(cat headers); do echo "$header: "; rg -l "#include \"(.*/)?$header\"" | wc -l; done > list-includes ```
2020-03-22Merge pull request #37179 from clayjohn/VULKAN-sky-shaderRémi Verschelde
Implement Sky Shaders
2020-03-21Working sky shader implementationclayjohn
2020-03-21Make file formatting comply with POSIX and Unix standardsAaron Franke
UTF-8, LF, no BOM, and newlines at the end of files
2020-03-20Fix incorrect shader block parsingYuri Roubinsky
2020-03-20Allow to reassign local variables in shadersYuri Roubinsky
2020-03-19Add shader based background modeBastiaan Olij
2020-03-19Fix shader TIME auto-completionYuri Roubinsky
2020-03-19Removed old TIME references from shader_typesYuri Roubinsky
2020-03-19Makes shader 'TIME' available in custom functions by defaultYuri Roubinsky
2020-03-18Show shader method out/inout qualifier in intellisenseYuri Roubinsky
2020-03-18Fix shader crash if passing const values to modf functionYuri Roubinsky
2020-03-17Style: Set clang-format Standard to Cpp11Rémi Verschelde
For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.