summaryrefslogtreecommitdiffstats
path: root/servers/visual_server.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-11-14 17:25:42 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-11-14 17:26:35 -0300
commit6277e6d40a0f0e8c84470482400959fca4ff5ad8 (patch)
treecbeceb3b2d6ba41687b8331911888375d2f6259f /servers/visual_server.h
parent61a693cf782c952dc151d8d77b1ab365888e6701 (diff)
downloadredot-engine-6277e6d40a0f0e8c84470482400959fca4ff5ad8.tar.gz
Ability to update parts of an array, and set arrays as dynamic draw
Diffstat (limited to 'servers/visual_server.h')
-rw-r--r--servers/visual_server.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/visual_server.h b/servers/visual_server.h
index 7b0976b100..a36ba4a50a 100644
--- a/servers/visual_server.h
+++ b/servers/visual_server.h
@@ -227,6 +227,7 @@ public:
ARRAY_FLAG_USE_2D_VERTICES = ARRAY_COMPRESS_INDEX << 1,
ARRAY_FLAG_USE_16_BIT_BONES = ARRAY_COMPRESS_INDEX << 2,
+ ARRAY_FLAG_USE_DYNAMIC_UPDATE = ARRAY_COMPRESS_INDEX << 3,
ARRAY_COMPRESS_DEFAULT = ARRAY_COMPRESS_VERTEX | ARRAY_COMPRESS_NORMAL | ARRAY_COMPRESS_TANGENT | ARRAY_COMPRESS_COLOR | ARRAY_COMPRESS_TEX_UV | ARRAY_COMPRESS_TEX_UV2 | ARRAY_COMPRESS_WEIGHTS
@@ -259,6 +260,8 @@ public:
virtual void mesh_set_blend_shape_mode(RID p_mesh, BlendShapeMode p_mode) = 0;
virtual BlendShapeMode mesh_get_blend_shape_mode(RID p_mesh) const = 0;
+ virtual void mesh_surface_update_region(RID p_mesh, int p_surface, int p_offset, const PoolVector<uint8_t> &p_data) = 0;
+
virtual void mesh_surface_set_material(RID p_mesh, int p_surface, RID p_material) = 0;
virtual RID mesh_surface_get_material(RID p_mesh, int p_surface) const = 0;