diff options
| author | Juan Linietsky <reduzio@gmail.com> | 2020-05-01 09:34:23 -0300 |
|---|---|---|
| committer | Juan Linietsky <reduzio@gmail.com> | 2020-05-10 15:59:09 -0300 |
| commit | 1bea8e1eacc68bcedbd3f207395bccf11011dae2 (patch) | |
| tree | b75303a69491978c1e13360a3e6f355c5234dfe0 /core/image.cpp | |
| parent | 6a0473bcc23c096ef9ee929632a209761c2668f6 (diff) | |
| download | redot-engine-1bea8e1eacc68bcedbd3f207395bccf11011dae2.tar.gz | |
New lightmapper
-Added LocalVector (needed it)
-Added stb_rect_pack (It's pretty cool, we could probably use it for other stuff too)
-Fixes and changes all around the place
-Added library for 128 bits fixed point (required for Delaunay3D)
Diffstat (limited to 'core/image.cpp')
| -rw-r--r-- | core/image.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/image.cpp b/core/image.cpp index 6f18516ae1..ff8acc54af 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -3668,6 +3668,10 @@ Ref<Resource> Image::duplicate(bool p_subresources) const { return copy; } +void Image::set_as_black() { + zeromem(data.ptrw(), data.size()); +} + Image::Image() { width = 0; |
