diff options
author | Juan Linietsky <reduzio@gmail.com> | 2019-06-10 12:38:51 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-02-11 11:53:26 +0100 |
commit | 4f163972bbd9c7379b01a1f9aa5310646ca7865e (patch) | |
tree | 3bbf4693663d8fc071912c114af782736ea17168 /servers/visual/rasterizer.h | |
parent | 1522d8c3ee6ddf43267f124940f4e43612058407 (diff) | |
download | redot-engine-4f163972bbd9c7379b01a1f9aa5310646ca7865e.tar.gz |
Refactored RID/RID_Owner to always use O(1) allocation.
* Implements a growing chunked allocator
* Removed redudant methods get and getptr, only getornull is supported now.
Diffstat (limited to 'servers/visual/rasterizer.h')
-rw-r--r-- | servers/visual/rasterizer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h index 0008b809b7..4d281f27a0 100644 --- a/servers/visual/rasterizer.h +++ b/servers/visual/rasterizer.h @@ -82,7 +82,7 @@ public: virtual VS::EnvironmentBG environment_get_background(RID p_env) = 0; virtual int environment_get_canvas_max_layer(RID p_env) = 0; - struct InstanceBase : RID_Data { + struct InstanceBase { VS::InstanceType base_type; RID base; @@ -608,7 +608,7 @@ public: CANVAS_RECT_CLIP_UV = 32 }; - struct Light : public RID_Data { + struct Light { bool enabled; Color color; @@ -678,7 +678,7 @@ public: virtual void light_internal_update(RID p_rid, Light *p_light) = 0; virtual void light_internal_free(RID p_rid) = 0; - struct Item : public RID_Data { + struct Item { struct Command { @@ -1065,7 +1065,7 @@ public: virtual void canvas_render_items(Item *p_item_list, int p_z, const Color &p_modulate, Light *p_light, const Transform2D &p_base_transform) = 0; virtual void canvas_debug_viewport_shadows(Light *p_lights_with_shadow) = 0; - struct LightOccluderInstance : public RID_Data { + struct LightOccluderInstance { bool enabled; RID canvas; |