Commit Graph

346 Commits

Author SHA1 Message Date
Karroffel 5e1abaf348 [GDNative] basic OS detection 2017-07-24 22:43:32 +02:00
Karroffel 534d62d2f4 [GDNative] new GDNative API
This adds GDNative as a separate class type.
It can be used to interface with native libraries by
using "native calls", which can be registered by modules
(and in future other GDNative libraries?).

It also reworks the currently called "GDNativeScript" into a
"NativeScript" that just makes use of the new GDNative instead
of it being the component that implements that functionality.
2017-07-24 04:23:37 +02:00
Ramesh Ravone af8a40e554
gdnative bug fix in get (return null check) 2017-07-22 06:39:03 +05:30
Juan Linietsky 25678b1876 -Renamed GlobalConfig to ProjectSettings, makes more sense.
-Added system for feature overrides, it's pretty cool :)
2017-07-19 17:06:03 -03:00
Thomas Herzog 45b498c4e0 Merge pull request #9699 from RameshRavone/master
[gdnative] `Object::_get` return type and dynamic property
2017-07-19 13:07:06 +02:00
Ramesh Ravone 535290d2e7
[GDNative] dynamic properties 2017-07-19 05:41:56 +05:30
Poommetee Ketson 49c7620326 Add object type hint for docs 2017-07-19 02:03:34 +07:00
Ramesh Ravone 826c51c70e
_get return type fix 2017-07-18 21:09:46 +05:30
sheepandshepherd 914a68723f Expose Dictionary::next to GDNative 2017-07-15 23:02:19 +02:00
TwistedTwigleg 44ecfb028d Fixed syntax inconsistency in Vector3.snap and Vector3.snapped 2017-07-03 16:29:03 -04:00
Rémi Verschelde 72bf46649e Merge pull request #9360 from GodotExplorer/pr-external-editor-language-check
Better user experience with external text editors.
2017-06-27 08:15:54 +02:00
geequlim 6687484958 Better user expirence with external text editors.
Implements open_in_external_editor for subclasses of ScriptLanguage.
Add option 'Debug with external editor' to debug menu to control the behavoir of script opened by editor.
2017-06-27 12:55:16 +08:00
Juan Linietsky 3ce046ee0c -Fixed SCREEN_TEXTURE and other related 2D shader parameters.
-Fixded BackBuffercopy object
2017-06-26 22:58:46 -03:00
Karroffel de18b8ee96 [GDNative] added GDN_EXPORT macro for libraries
Up until now there only was GDAPI which was used
for the procedures Godot exposes.
2017-06-18 01:16:10 +02:00
Karroffel f0cf946063 [GDNative] corrected typo for Mac library ext.
Seems like the extension is .dylib and not .dynlib.
This should make it easier to select files from the editor.
2017-06-16 15:48:05 +02:00
alexholly 935f730170 renamed all Rect3.pos to Rect3.position 2017-06-09 15:54:02 +02:00
Emmanuel Leblond 8ecdbfc417
[GDnative] API consistency + missing properties 2017-06-08 07:21:53 +02:00
alexholly a3c90b0293 renamed all Rect2.pos to Rect2.position 2017-06-04 02:09:17 +02:00
sheepandshepherd 4844013827 Fix GDNative PoolVector typos 2017-05-31 23:44:20 +02:00
sheepandshepherd 9f34bb4ebe Wrap copy constructor for some GDNative types 2017-05-31 00:03:50 +02:00
Karroffel f23b56e3ec [GDNative] fixed some functions that returned references
Those errors were introduced with #8821 (6fd217d). These functions need to return reference types, otherwise setting values on those containers does not work.
2017-05-23 22:57:02 +02:00
Emmanuel Leblond abcb044bf3
Finish implementation of GDnative builtins bindings 2017-05-19 23:28:15 +02:00
Rémi Verschelde c3baf5eb3c Fix two typos from previous commit
Also cleanup comments on variant types.
2017-05-17 18:45:56 +02:00
Juan Linietsky 98a3296702 Removal of Image from Variant, converted to a Resource. 2017-05-17 07:37:45 -03:00
Karroffel 11e496d99a [GDNative] fixed a reload bug
When there was no terminate function defined in the library the exported variables would not update.
This fixes that.
2017-05-13 14:37:57 +02:00
Karroffel d137e83c60 [GDNative] added varcall and print 2017-05-11 23:06:11 +02:00
sheepandshepherd 99e07448d1 Add error printing functions to GDNative 2017-05-10 00:19:38 +02:00
Rémi Verschelde 32afcbc482 Put brave old bb10 platform to a well-deserved rest
Add some 🔥 to appease @reduz. Fixes #8692.
2017-05-08 22:22:20 +02:00
Karroffel a6e75c9437 [GDNative] fixed msvc build 2017-04-20 13:15:45 +02:00
Karroffel d4f4f14c68 [GDNative] explicit calling convention 2017-04-19 15:51:33 +02:00
Thomas Herzog 68d79b21c3 Merge pull request #8440 from karroffel/gdnative-new-method
[GDNative] added "new" method and fixed headers
2017-04-17 20:41:32 +02:00
Thomas Herzog a88c20f0ca Merge pull request #8439 from touilleMan/correct_gdnative_signatures
Correct gdnative signatures
2017-04-17 19:55:42 +02:00
Karroffel f4261c8868 [GDNative] added "new" method and fixed headers 2017-04-17 19:52:18 +02:00
Emmanuel Leblond e7134ce283
gdnative: Implement missing function for godot_basis. 2017-04-17 19:05:00 +02:00
Emmanuel Leblond 707eedfa85
gdnative: modify vector2&vector3 functions signature to use value passing instead of ptr. 2017-04-17 16:43:43 +02:00
Emmanuel Leblond 8400de76a7
Add godot_string_unicode_str to GDnative 2017-04-17 15:48:26 +02:00
Emmanuel Leblond 7013cd984b
Correct indentation in gdnative vector2/3 2017-04-15 01:06:42 +02:00
Emmanuel Leblond e5f7f656d6
Implement missing functions in gdnative vector2 and vector3 bindings 2017-04-15 00:29:43 +02:00
Karroffel be2ad4f155 [GDNative] made string functions more C-friendly 2017-04-11 14:58:59 +02:00
Karroffel 544940c175 [GDNative] C API and generator fixes 2017-04-11 01:45:58 +02:00
Karroffel 7919ec6d89 [GDNative] re-enabled some init options 2017-04-11 01:45:58 +02:00
Thomas Herzog 2ac0cf568d Merge pull request #8350 from karroffel/gdnative-api-reference-field
[GDNative] added is_reference filed to api.json
2017-04-10 22:30:57 +02:00
Karroffel c562cc9ea0 [GDNative] added is_reference filed to api.json 2017-04-10 21:32:20 +02:00
Karroffel cf45f3ab4b [GDNative] function to get class constructor 2017-04-10 19:56:12 +02:00
Karroffel 0486645c39 [GDNative] Didn't iterate over all scripts 2017-04-10 04:30:08 +02:00
Karroffel c7f8b22ba0 renamed dlscript module to gdnative 2017-04-09 21:07:53 +02:00