Hein-Pieter van Braam
0e29f7974b
Reduce unnecessary COW on Vector by make writing explicit
...
This commit makes operator[] on Vector const and adds a write proxy to it. From
now on writes to Vectors need to happen through the .write proxy. So for
instance:
Vector<int> vec;
vec.push_back(10);
std::cout << vec[0] << std::endl;
vec.write[0] = 20;
Failing to use the .write proxy will cause a compilation error.
In addition COWable datatypes can now embed a CowData pointer to their data.
This means that String, CharString, and VMap no longer use or derive from
Vector.
_ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug
builds. This is a lot faster for Vector in the editor and while running tests.
The reason why this difference used to exist is because force-inlined methods
used to give a bad debugging experience. After extensive testing with modern
compilers this is no longer the case.
2018-07-26 00:54:16 +02:00
Poommetee Ketson
72aa87758a
Update classref and docs, fix missing parameters' name
2018-04-11 10:20:22 +07:00
Bastiaan Olij
5356423377
A few fixes on the ARVR Server
2018-03-15 23:31:02 +11:00
Hugo Locurcio
84267915f5
Remove a few debugging prints
2018-02-05 11:30:50 +01:00
Rémi Verschelde
9f479f096c
Fix typos in code and docs with codespell
...
Using v1.11.0 from https://github.com/lucasdemarchi/codespell
2018-01-18 22:01:42 +01:00
Unknown
5876457410
modify default param names in couple of signals
...
'name' default param should not be used since there is problem with name shadowing
2018-01-12 15:45:29 +01:00
Rémi Verschelde
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
Bastiaan Olij
6fd51b6a1b
Reserved controller ids 1 and 2 for left and right hand controllers and added new center on hmd option
2017-12-22 01:21:23 +11:00
BastiaanOlij
9d3f8418ca
Removed add/remove interface bindings and added get_interfaces
2017-11-13 22:08:43 +11:00
Rémi Verschelde
c9894669a9
Merge pull request #12290 from Noshyaar/enum
...
Bind unbound enums, rearrange some by value
[ci skip]
2017-10-21 23:08:36 +02:00
Poommetee Ketson
9cadb9e5f3
Bind unbound enums, rearrange some by value
2017-10-22 01:58:02 +07:00
Rémi Verschelde
6361e24f29
Cleanup unnecessary debug prints
2017-10-21 20:41:07 +02:00
Andreas Haas
d7b9847864
Fix argument names in method bindings.
...
Adds a couple of missing argument names.
2017-10-11 20:00:25 +02:00
BastiaanOlij
ce74efacbb
Made a few tweaks to the interface
2017-10-06 20:35:55 +11:00
Rémi Verschelde
aabbd00284
Merge pull request #10908 from hpvb/fix-unused-variables
...
Fix unused variable warnings
2017-09-12 12:55:53 +02:00
Bastiaan Olij
de309c426d
Added ID to tracker signals and property for storing hand
2017-09-10 16:25:12 +10:00
Hein-Pieter van Braam
b2a38854fd
Fix unused variable warnings
...
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-08 15:03:53 +02:00
Rémi Verschelde
bd282ff43f
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:16:55 +02:00
Ignacio Etcheverry
32dd9a9f66
ClassDB: Provide the enum name of integer constants
2017-08-20 22:07:43 +02:00
Ignacio Etcheverry
2f290038d6
Removes type information from method binds
2017-08-10 07:17:50 +02:00
BastiaanOlij
d2ba2d0873
Adding base classes and structures for ARVR support
...
Added ArVrScriptInterface
Added ARVRCamera, ARVRController and ARVROrigin helper objects
2017-07-28 10:39:15 +10:00