Commit Graph

1170 Commits (e897dbe58a96f3180c86ca0defe05d2c014ef0f7)

Author SHA1 Message Date
Gary Oberbrunner a6689b2132 Make all Pool*Array::operator[] as const
This is needed since that operator returns a local copy, not
an lvalue. Attempting to write to the return value of these operators
wouldn't change the array element. PoolVectors need locking when
writing, so this operator can't return a writable reference.

To update a Pool*Array, use the `set()` method which locks and unlocks
the array. For multiple writes, use the `write()` method which returns
a locked writable view, and unlocks when it goes out of scope.
2018-03-13 11:00:25 -04:00
Thomas Herzog 4a9e305776
Merge pull request #105 from marcelofg55/windows_compile_fixes
Fix compile issues on Windows
2018-03-09 18:36:37 +01:00
Thomas Herzog ba1fbfa4d1
Merge pull request #109 from danielytics/easier-printing-and-formatting
adds variadic printing function, makes String.format custom placehold…
2018-03-07 16:15:49 +01:00
danielytics e74b8f593e adds variadic printing function, makes String.format custom placeholder work 2018-03-07 12:21:33 +00:00
Thomas Herzog 779568c67c
Merge pull request #108 from danielytics/variadic-functions
Adds variadic template functions for register_signal and emit_signal
2018-03-07 11:43:12 +01:00
danielytics 85e73de2e0 adds an example of registering signal with arguments to README 2018-03-07 10:34:25 +00:00
danielytics 01db553c49 adds Array::make and Dictionary::make static methods and has variadic template functions use those 2018-03-07 10:27:34 +00:00
danielytics c7b03c4132 make register_signal and auto-generated variadic funcitons use variadic templates to streamline their use 2018-03-06 21:36:20 +00:00
Marcelo Fernandez 98e5f78fa0 Fix compile issues on Windows 2018-03-05 13:28:49 -03:00
karroffel 2343a8a54c fix #101 2018-03-02 19:04:57 +01:00
karroffel a212746a3d add clang option to makefile 2018-03-02 19:03:57 +01:00
Thomas Herzog 0d8a605596
Merge pull request #102 from marcelofg55/master
Fix compile problem on OS X
2018-03-02 08:17:36 +01:00
Marcelo Fernandez 5162132236 Fix compile problem on OS X 2018-03-01 20:30:55 -03:00
Thomas Herzog 3820c0537b
Merge pull request #99 from QuentinCaffeino/crosscompiling
Added crosscompiling for linux-windows; Added makefile
2018-02-25 18:09:31 +01:00
QuentinCaffeino af2861faf7 use_llvm fix 2018-02-25 17:03:55 +01:00
QuentinCaffeino 43f57c7f80 Bindings are generated by default; Replaced generate with regenerate flag; Updated readme 2018-02-25 16:25:42 +01:00
Nickolai Korshunov a049a34f28 fixed forward decl 2018-02-24 11:13:22 +03:00
Nickolai Korshunov f1c35f24f6 NULL -> nullptr 2018-02-23 16:08:36 +03:00
Nickolai Korshunov 3f8456135f local deps included with quotes 2018-02-23 15:57:37 +03:00
Nickolai Korshunov e123650d76 Strict enums 2018-02-23 15:50:41 +03:00
Nickolai Korshunov 73a67b16b1 fixed some includes. replace cycle include with forward declaration 2018-02-23 14:56:36 +03:00
Nickolai Korshunov 7adae4673c fixed forward declarations 2018-02-23 14:39:35 +03:00
QuentinCaffeino 38cfd627f3 Fixed godo bin path in makefile 2018-02-22 23:20:25 +01:00
QuentinCaffeino 55ce1da2dc Added crosscompiling for linux-windows; Added makefile 2018-02-22 23:16:25 +01:00
Thomas Herzog 47989cb5ca
Merge pull request #97 from Redwan13/master
Small fixes for build process
2018-02-18 13:23:28 +01:00
Nickolai Korshunov 0fbfe5dd12 Json bindings are generated in cwd 2018-02-18 15:14:56 +03:00
Nickolai Korshunov 00e1b47c6f Updated readme 2018-02-18 15:11:22 +03:00
Thomas Herzog 1394439286
Merge pull request #94 from lupoDharkael/const
Add const qualifier to PoolArray's size()
2018-02-12 23:49:05 +01:00
lupoDharkael 756510563b Add const qualifier to PoolArray's size() 2018-02-12 22:38:25 +01:00
Thomas Herzog 83bf20980c
Merge pull request #90 from lupoDharkael/cpp-syntax
README: Enable cpp syntax highlighting
2018-01-30 13:29:39 +01:00
Dharkael 67a9edba33
README: Enable cpp syntax highlighting 2018-01-29 23:05:42 +01:00
Thomas Herzog d7d814f861
Merge pull request #88 from Zylann/fix_ref_return_leak
Fix Ref leak when using Godot getters
2018-01-26 10:36:58 +01:00
Marc Gilleron ac0679eb1a Fix Ref leak when using Godot getters 2018-01-25 20:55:56 +01:00
Thomas Herzog 8601a4678e
Merge pull request #89 from Zylann/fix_rid_valid
Fix RID::is_valid()
2018-01-25 04:39:43 +01:00
Marc Gilleron 8a89a447b2 Fix RID::is_valid() 2018-01-25 01:10:55 +01:00
Thomas Herzog 9ed6edaae1
Merge pull request #87 from RameshRavone/patch-24
Do not include Ref.hpp file in Reference.hpp
2018-01-24 12:14:53 +01:00
RameshRavone 4aec7cbf42
Do not include Ref.hpp file in Reference.hpp 2018-01-24 15:18:30 +05:30
Thomas Herzog af760b9f37
Merge pull request #86 from RameshRavone/patch-22
Update README.md
2018-01-24 10:36:46 +01:00
RameshRavone b8946ae829
Update README.md 2018-01-24 14:45:12 +05:30
Thomas Herzog f8477b4195
Merge pull request #84 from Zylann/string_and_math_fixes
String and math fixes
2018-01-23 11:34:13 +01:00
Marc Gilleron 4f4bb8deff String and math fixes
- Added missing static String constructors
- Implemented String operator for math types
- Added XYZ and YXZ euler angles methods
- Fixed wrong det checks in Basis
- Fixed operator Quat in Basis
2018-01-23 00:24:23 +01:00
Thomas Herzog 411d2f6d1f
Merge pull request #83 from Zylann/gitignore_update
Ignore Windows binaries
2018-01-22 22:51:10 +01:00
Thomas Herzog 2da785f6d1
Merge pull request #82 from Zylann/rewrite_ref
Rewrite Ref<T> to behave like Godot again
2018-01-22 22:35:16 +01:00
Marc Gilleron 936a9dd3d5 Ignore Windows binaries 2018-01-22 22:34:19 +01:00
Marc Gilleron 3197c3dce3 Rewrite Ref<T> to behave like Godot again 2018-01-22 22:27:10 +01:00
Thomas Herzog e71ce19068
Merge pull request #75 from Zylann/add_rid_valid_and_operators
Added RID::is_valid() and comparison operators
2018-01-21 22:52:05 +01:00
Marc Gilleron 06c61b6535 Added RID::is_valid() and comparison operators
- is_valid() is worked around by comparing a default RID()
2018-01-20 19:37:23 +01:00
karroffel 51f1d3ce5d allow ~ in godotbinpath 2018-01-19 11:53:09 +01:00
karroffel 8c053fc35f allow const getter functions 2018-01-19 11:49:28 +01:00
karroffel 2e4de7b67d Don't leak memory from Ref<>() 2018-01-19 11:40:50 +01:00