summaryrefslogtreecommitdiff
path: root/modules/gdnative
AgeCommit message (Collapse)Author
2019-05-28Added move_toward functions for float, Vector2 and Vector3Giacom
2019-05-23Merge pull request #28738 from 2shady4u/masterRémi Verschelde
Added native binding for dictionary duplication
2019-05-23Added native binding for dictionary duplicationshaderbeast
Added entry in gdnative_api.json Added function to header as well Fixed versioning
2019-05-22[GDNative] fix godot_variant_evaluate functionthomas.herzog
Fixes #28984
2019-05-21Merge pull request #28964 from Faless/webrtc/channels_prRémi Verschelde
WebRTC refactor. data channels, STUN/TURN support.
2019-05-20Merge pull request #27886 from LeonardMeagher2/obj_to_stringRémi Verschelde
Allow overriding how scripted objects are converted to strings
2019-05-20Merge pull request #28975 from RameshRavone/type_tagRémi Verschelde
NULL global_tag for non exposed classes
2019-05-19Fix typos with codespellRémi Verschelde
Using codespell 1.15.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear doubleclick leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
2019-05-18NULL global_tag for non exposed classesRameshRavone
2019-05-16WebRTC refactor. Data channels, STUN/TURN support.Fabio Alessandrelli
A big refactor to the WebRTC module. API is now considered quite stable. Highlights: - Renamed `WebRTCPeer` to `WebRTCPeerConnection`. - `WebRTCPeerConnection` no longer act as `PacketPeer`, it only handle the connection itself (a bit like `TCP_Server`) - Added new `WebRTCDataChannel` class which inherits from `PacketPeer` to handle data transfer. - Add `WebRTCPeerConnection.initialize` method to create a new connection with the desired configuration provided as dictionary ([see MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection#RTCConfiguration_dictionary)). - Add `WebRTCPeerConnection.create_data_channel` method to create a data channel for the given connection. The connection must be in `STATE_NEW` as specified by the standard ([see MDN docs for options](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createDataChannel#RTCDataChannelInit_dictionary)). - Add a `data_channel_received` signal to `WebRTCPeerConnection` for in-band (not negotiated) channels. - Renamed `WebRTCPeerConnection` `offer_created` signal to `session_description_created`. - Renamed `WebRTCPeerConnection` `new_ice_candidate` signal to `ice_candidate_created`
2019-05-16Merge pull request #28917 from Faless/gdnative/singleton_editor_fix_prRémi Verschelde
Update GDNativeLibrarySingletonEditor.
2019-05-15Fix indexing failure in NativeScriptLanguage::unregister_binding_functions.Frank Secilia
binding_functions.size() and an instance's binding_data.size() can get out of sync. They sync up when an instance's bindings are requested. When binding functions are registered after creating an instance's bindings, the instance's bindings are out of sync until requested again. If they're never requested, they're never synced. unregister_binding_functions indexes into binding_data, but only checks that its safe to index into binding_functions. When they're out of sync, indexing fails. This revision checks that it's safe to index into binding_data.
2019-05-15Update GDNativeLibrarySingletonEditor.Fabio Alessandrelli
Moved GDNative singletons discoverer from register_types to GDNativeSingletonEditor. Fix enable/disable switch in GDNativeLibrarySingletonEditor. Separate `gdnative/singletons` and `gdnative/singletons_disabled` project settings, keeping "on by default" behavior.
2019-05-12Fix GDNative library resource loading.Fabio Alessandrelli
Store general properties in ConfigFile too when modifying them. Additionally set config_file property as internal as it's not editable from inspector. It also does not appear to get saved in a meaningful way (saved as Object(ConfigFile, ...))
2019-05-03Allow overriding how scripted objects are converted to stringsLeonard Meagher
solves #26796 - ADD `String to_string()` method to Object which can be overriden by `String _to_string()` in scripts - ADD `String to_string(r_valid)` method to ScriptInstance to allow langauges to control how scripted objects are converted to strings - IMPLEMENT to_string for GDScriptInstance, VisualScriptInstance, and NativeScriptInstance - ADD Documentation about `Object.to_string` and `Object._to_string` - Changed `Variant::operator String` to use `obj->to_string()`
2019-05-04Fixes VideostreamGDNative crash on audio_channel=0.Anish
Added an if case to check if the mix_callback exists before running any of the audio code. Fixes: #28644
2019-04-30Merge pull request #28530 from akien-mga/scons-prepend-cpppathRémi Verschelde
SCons: Always use env.Prepend for CPPPATH
2019-04-30Forgot a parameter in the ARVR gdnative bindings for notificationsBastiaan Olij
2019-04-30SCons: Always use env.Prepend for CPPPATHRémi Verschelde
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).
2019-04-30Merge pull request #27007 from BastiaanOlij/arvr_notificationsRémi Verschelde
Send notifications to ARVRInterfaces
2019-04-30Merge pull request #27759 from BastiaanOlij/sort_api_jsonRémi Verschelde
Sort GDNative api.json
2019-04-27Send notifications to ARVRInterfacesBastiaan Olij
2019-04-22Merge pull request #27673 from qarmin/small_fixesRémi Verschelde
Small fixes, mostly duplicated code
2019-04-19Sort data exported to the api.json file for GDNativeBastiaan Olij
2019-04-19doc: Sync classref with current sourceRémi Verschelde
2019-04-19doc: Drop unused <demos> tagRémi Verschelde
2019-04-12Add WebRTC GDNative interfaceFabio Alessandrelli
2019-04-08Merge pull request #27711 from neikeq/ifdef-clang-tidyRémi Verschelde
Replace a few #if/#elif with #ifdef and "#elif defined"
2019-04-08Small fixes, mostly dupicated codeqarmin
2019-04-07Fix where json exported empty typesBastiaan Olij
(cherry picked from commit 6226be9595caec7f741cdf570ca99e742a611388)
2019-04-05Replace a few #if/#elif with #ifdef and "#elif defined"Ignacio Etcheverry
2019-04-06Add option to have viewport render into supplied textureBastiaan Olij
2019-04-01doc: Bump version to 3.2Rémi Verschelde
2019-03-27Merge pull request #27184 from karroffel/gdnative-api-gen-fixesRémi Verschelde
fix GDNative binding generation for object types
2019-03-22[GDNative] fix NativeScript leak in editorthomas.herzog
2019-03-22[GDNative] remove spam at editor unfocus when using NativeScriptthomas.herzog
2019-03-17fix GDNative binding generation for object typeskarroffel
2019-03-11Fixes segfault on opening incompatible files.Anish
If a file cannot be opened by the plugin connected, the engine would crash. This has been fixed by quitting the open_file() method early.
2019-03-09[GDNative] fix crash at shutdown when using singleton libraries and NativeScriptkarroffel
When a singleton library was exposing NativeScript functionality, the NativeScriptLanguage would attempt to terminate the library at shutdown. Since the GDNative module itself handles singleton libraries, it closes all singleton libraries at shutdown as well. This double free could cause a crash, since the library referenced would no longer be alive.
2019-03-06Fixed crash on loading GDNative videos.Anish
Fixed issue with loading a resource supported by the gdnative videodecoders that does not exist.
2019-02-27Merge pull request #26134 from marxin/fix-Wsign-compareRémi Verschelde
Fix -Wsign-compare warnings.
2019-02-27Fix -Wsign-compare warnings.marxin
I decided to modify code in a defensive way. Ideally functions like size() or length() should return an unsigned type.
2019-02-26Fix "No loader found for resource: res://" spam when NativeScript ↵Eric Rybicki
script_class_name is not empty. fixes #26275
2019-02-24Fixing C compatiblity for GDNative NET moduleFabio Alessandrelli
Also add net interfaces to gdnative_api.json
2019-02-22Merge pull request #26132 from marxin/fix-Wignored-qualifiersRémi Verschelde
Fix warnings seen with -Wignored-qualifiers.
2019-02-21Fix warnings seen with -Wignored-qualifiers.marxin
2019-02-21added godot_dictionary_get_with_default to GDNativekarroffel
Recently, Dictionary::get() was introduced, which acts like a index operator but allows the caller to specify a default value to return instead of issuing an error. This commit adds a new GDNative function that includes the default value.
2019-02-20Add -Wshadow=local to warnings and fix reported issues.marxin
Fixes #25316.
2019-02-18Make direct casting among Error and godot_error enums (#23015).marxin
2019-02-13Merge pull request #25821 from akien-mga/sync-class-and-filenamesRémi Verschelde
Ensure classes match their header filename