diff options
author | Juan Linietsky <reduzio@gmail.com> | 2019-09-14 00:37:42 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-02-11 12:01:22 +0100 |
commit | 6deffa62fbd1e91873afa663630b788b9ffabee3 (patch) | |
tree | e77c1a67c8b8ddb64429280131502f64c8cd8e8c /servers/visual/rasterizer.h | |
parent | 9d7b7f931b6924399903e4954a0c32d59c15d4c3 (diff) |
Several fixes to 3D rendering, and multimesh implementation.
Diffstat (limited to 'servers/visual/rasterizer.h')
-rw-r--r-- | servers/visual/rasterizer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h index fe682618a4..f5ce604b04 100644 --- a/servers/visual/rasterizer.h +++ b/servers/visual/rasterizer.h @@ -358,7 +358,8 @@ public: virtual RID multimesh_create() = 0; - virtual void multimesh_allocate(RID p_multimesh, int p_instances, VS::MultimeshTransformFormat p_transform_format, VS::MultimeshColorFormat p_color_format, VS::MultimeshCustomDataFormat p_data = VS::MULTIMESH_CUSTOM_DATA_NONE) = 0; + virtual void multimesh_allocate(RID p_multimesh, int p_instances, VS::MultimeshTransformFormat p_transform_format, bool p_use_colors = false, bool p_use_custom_data = false) = 0; + virtual int multimesh_get_instance_count(RID p_multimesh) const = 0; virtual void multimesh_set_mesh(RID p_multimesh, RID p_mesh) = 0; @@ -374,7 +375,8 @@ public: virtual Color multimesh_instance_get_color(RID p_multimesh, int p_index) const = 0; virtual Color multimesh_instance_get_custom_data(RID p_multimesh, int p_index) const = 0; - virtual void multimesh_set_as_bulk_array(RID p_multimesh, const PoolVector<float> &p_array) = 0; + virtual void multimesh_set_buffer(RID p_multimesh, const PoolVector<float> &p_buffer) = 0; + virtual PoolVector<float> multimesh_get_buffer(RID p_multimesh) const = 0; virtual void multimesh_set_visible_instances(RID p_multimesh, int p_visible) = 0; virtual int multimesh_get_visible_instances(RID p_multimesh) const = 0; |