summaryrefslogtreecommitdiffstats
path: root/modules/gdnative
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused GDNative codeRémi Verschelde2022-03-0993-19759/+0
| | | | | | | | | This has been superseded by GDExtension so this code is no longer useful nor usable. There's still some GDNative-related stuff in platform export code which needs to be adapted for GDExtension (e.g. to include GDExtension libraries in exports).
* Core: Use forward declares for Vector3/Vector3iRémi Verschelde2022-02-193-0/+4
| | | | Add add Vector3 operator in Vector3i.
* Convert _notification methods to switch - Chunk CJakob Bouchard2022-02-163-17/+16
|
* Editor: Cleanup some includes dependenciesRémi Verschelde2022-02-152-2/+5
| | | | | | | | | | | Removes some unnecessary includes from `editor_node.h`, and instead add those where they're used. Removes unnecessary `editor_node.h` includes in various editor classes. Renames `dynamicfont` to `dynamic_font` in a couple files. Misc cleanup while jumping through that rabbit hole.
* Merge pull request #35679 from Calinou/doc-add-xml-schemaRémi Verschelde2022-02-155-5/+5
|\
| * Add an XML schema for documentationHugo Locurcio2022-02-155-5/+5
| | | | | | | | | | | | | | | | This makes it easier to spot syntax errors when editing the class reference. The schema is referenced locally so validation can still work offline. Each class XML's schema conformance is also checked on GitHub Actions.
* | Remove most EditorNode constructor parameters and fieldstrollodel2022-02-143-5/+4
|/
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-123-3/+12
|
* Remove support for ARMv7 (32-bit) on iOSHugo Locurcio2022-02-081-1/+0
| | | | | | | | All iOS devices since the iPhone 5S support ARMv8 (64-bit). The last iOS version supported on ARMv7 devices is 10.x, which is too old to run Godot 4.0 projects since the minimum supported iOS version is 11.0.
* Refactor some object type checking code with `cast_to`Rémi Verschelde2022-02-082-2/+2
| | | | Less stringly typed logic, and less String allocations and comparisons.
* Core: Move Vector2i to its own `vector2i.h` headerRémi Verschelde2022-02-044-1/+5
| | | | Also reduce interdependencies and clean up a bit.
* Core: Move Rect2i to its own `rect2i.h` headerRémi Verschelde2022-02-041-0/+1
| | | | | And take the opportunity to improve interdependencies a bit with forward declares where possible.
* String: Add contains().Anilforextra2022-02-041-4/+4
|
* Improve locale detection.bruvzg2022-01-181-0/+1
| | | | | Use separate language, script and country lists. Add locale selection dialog and property hint.
* Update copyright statements to 2022Rémi Verschelde2022-01-0379-158/+158
| | | | Happy new year to the wonderful Godot community!
* Fix various typosluz paz2022-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Found via ` codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint,varn` Update editor/import/resource_importer_layered_texture.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update doc/classes/TileSetScenesCollectionSource.xml Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/gui/graph_edit.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/gui/rich_text_label.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Revert previously committed change
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-094-9/+8
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke2021-12-091-2/+2
|
* Replace Godot docs URL with `$DOCS_URL` in XML class referenceRémi Verschelde2021-11-151-2/+2
|
* Rename `PROPERTY_USAGE_NOEDITOR` to `PROPERTY_USAGE_NO_EDITOR`Hugo Locurcio2021-11-032-2/+2
| | | | | This is consistent with other constants that include `NO`, such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
* clang-format: Various fixes to comments alignment from `clang-format` 13Rémi Verschelde2021-10-281-7/+0
| | | | All reviewed manually and occasionally rewritten to avoid bad auto formatting.
* Remove unimplemented methodsMarcel Admiraal2021-10-213-8/+0
|
* Implement toast notifications in the editorGilles Roudière2021-10-141-3/+3
|
* doc: Update links to latest documentation after content reorganizationRémi Verschelde2021-10-061-2/+2
|
* doc: Fix style inconsistencies for `[b]Note:[/b]` paragraphsRémi Verschelde2021-10-051-1/+1
| | | | And fix up formatting not supported by makerst.
* Merge pull request #53290 from Faless/mp/4.x_opts_namesFabio Alessandrelli2021-10-011-1/+1
|\ | | | | [Net] Rename RPC constants and annotation arguments.
| * [Net] Rename RPC constants and annotation arguments.Fabio Alessandrelli2021-10-011-1/+1
| | | | | | | | | | | | | | | | | | any -> any_peer sync -> call_local ordered -> unreliable_ordered Multiplayer.RPC_MODE_ANY -> RPC_MODE_ANY_PEER Multiplayer.TRANSFER_MODE_ORDERED -> TRANSFER_MODE_UNRELIABLE_ORDERED
* | Implement TextServer GDExtension interface, remove TextServer GDNative ↵bruvzg2021-10-0110-2193/+0
|/ | | | interface.
* Use range iterators for `Map`Lightning_A2021-09-303-73/+73
|
* [Net/Docs] Update extensions documentation.Fabio Alessandrelli2021-09-245-45/+0
|
* [Net/GDNative] Remove GDNative network bits.Fabio Alessandrelli2021-09-2417-981/+0
|
* Don't generate empty doc sections and reduce code duplicationAaron Franke2021-09-2010-30/+0
|
* [Net] Move multiplayer to core subdir, split RPCManager.Fabio Alessandrelli2021-09-079-24/+24
| | | | | | | | | | | Move multiplayer classes to "core/multiplayer" subdir. Move the RPCConfig and enums (TransferMode, RPCMode) to a separate file (multiplayer.h), and bind them to the global namespace. Move the RPC handling code to its own class (RPCManager). Renames "get_rpc_sender_id" to "get_remote_sender_id".
* Fix missing SConscript warning when building using SConsHugo Locurcio2021-09-021-1/+0
|
* [Net] Rename RPC "puppet" to "auth" (authority). Drop "master".Fabio Alessandrelli2021-08-301-6/+2
| | | | | | | | | | | | | | | | | | | | | | This commit completely removes the RPC_MODE_MASTER ("master" keyword), and renames the RPC_MODE_PUPPET to RPC_MODE_AUTHORITY ("auth" keyword). This commit also renames the "Node.[get|set]_network_master" methods to "Node.[get|set]_network_authority". This commit also renames the RPC_MODE_REMOTE constant to RPC_MODE_ANY. RPC_MODE_MASTER in Godot 3.x meant that a given RPC would be callable by any puppet peer on the master, while RPC_MODE_PUPPET meant that it would be callable by the master on any puppet. Beside proving to be very confusing to the user (referring to where it could be called instead of who can call it) the RPC_MODE_MASTER is quite useless. It is almost the same as RPC_MODE_REMOTE (anyone can call) with the exception that the network master cannot. While this could be useful to check in some case, in such a function you would anyway need to check in code who is the caller via get_rpc_sender_id(), so adding the check there for those rare cases does not warrants a dedicated mode.
* Fix double named size parameterBastiaan Olij2021-08-281-1/+1
|
* Makes FontData importable resource.bruvzg2021-08-274-298/+572
| | | | | | | Adds multi-channel SDF font texture generation and rendering support. Adds per-font oversampling support. Adds FontData import plugins (for dynamic fonts, BMFonts and monospaced image fonts), font texture cache pre-generation and loading. Adds BMFont binary format and outline support.
* Adding GDExtension support to XRInterfaceBastiaan Olij2021-08-2612-910/+1
|
* Remove underscore hacksMax Hilbrunner2021-08-171-6/+2
| | | | | | Way less cruft. :) Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
* Refactors the memnew_placement.AndreaCatania2021-08-132-61/+57
| | | | | | | | | | | | | | | | | | | With this commit the macro `memnew_placement` uses the standard memory placement syntax: `new (mem) TheClass()`, and removes the outdated and not used syntax: ``` _ALWAYS_INLINE_ void *operator new(size_t p_size, void *p_pointer, size_t check, const char *p_description) { ``` Thanks to this change, the function `memnew_placement` call is compatible with any class, and can also initialize classes with non-empty constructor: ``` // This is valid, like before. memnew_placement(mem, Variant); // This works too: memnew_placement(mem, Variant(123)); ```
* Merge pull request #51178 from Geometror/layout-options-textline-textparagraphRémi Verschelde2021-08-112-3/+3
|\ | | | | Various text layout improvements (TextLine, TextParagraph, Label, TextServer)
| * Various text layout improvements (TextLine, TextParagraph, Label, TextServer)Hendrik Brucker2021-08-112-3/+3
| |
* | Merge pull request #51180 from RandomShaper/native_script_inheritsRémi Verschelde2021-08-092-6/+33
|\ \ | | | | | | Implement inherits_script() for NativeScript and PluginScript
| * | Implement inherits_script() for NativeScript and PluginScriptPedro J. Estébanez2021-08-022-6/+33
| |/
* | [Text Server] Improve object (image/table) inline alignment.bruvzg2021-08-082-4/+4
| |
* | [Net] Implement RPC channels in MultiplayerAPI.Fabio Alessandrelli2021-07-303-0/+15
|/
* doc: Use self-closing tags for `return` and `argument`Rémi Verschelde2021-07-305-40/+20
| | | | | | | | For the time being we don't support writing a description for those, preferring having all details in the method's description. Using self-closing tags saves half the lines, and prevents contributors from thinking that they should write the argument or return documentation there.
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-254-9/+9
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-236-45/+31
|
* Update GDNative API version for changes from #50659David Snopek2021-07-211-2/+2
|