godot/servers/visual
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
..
default_mouse_cursor.xpm GODOT IS OPEN SOURCE 2014-02-09 22:10:30 -03:00
rasterizer.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
rasterizer.h Merge pull request #18368 from Gamblify/RasterizerEngineSync 2018-07-25 20:33:37 +02:00
SCsub style: Fix PEP8 whitespace issues in Python files 2016-11-01 00:35:16 +01:00
shader_language.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
shader_language.h Visual Shaders are back. 2018-07-14 18:16:18 -03:00
shader_types.cpp Add disable ambient light flag to shaders and materials 2018-07-17 21:30:43 +02:00
shader_types.h Visual Shaders are back. 2018-07-14 18:16:18 -03:00
visual_server_canvas.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
visual_server_canvas.h Skeleton for 2D WIP 2018-05-03 17:29:56 -03:00
visual_server_global.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
visual_server_global.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
visual_server_light_baker.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
visual_server_light_baker.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
visual_server_raster.cpp Merge pull request #18368 from Gamblify/RasterizerEngineSync 2018-07-25 20:33:37 +02:00
visual_server_raster.h Merge pull request #18368 from Gamblify/RasterizerEngineSync 2018-07-25 20:33:37 +02:00
visual_server_scene.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
visual_server_scene.h Moved culling, updated lights and shadows into a prepare function so it is only called once for stereo rendering 2018-06-11 21:51:30 +10:00
visual_server_viewport.cpp Changed minimum visible viewport size 2018-07-07 17:10:32 -05:00
visual_server_viewport.h Added option to viewport to keep linear color 2018-05-06 19:28:09 +10:00
visual_server_wrap_mt.cpp Rasterizers are now in sync with engine 2018-06-05 16:33:02 +02:00
visual_server_wrap_mt.h Merge pull request #18368 from Gamblify/RasterizerEngineSync 2018-07-25 20:33:37 +02:00