summaryrefslogtreecommitdiff
path: root/servers/visual_server.h
diff options
context:
space:
mode:
authorMarc Gilleron <marc.gilleron@gmail.com>2018-04-29 01:23:55 +0200
committerMarc Gilleron <marc.gilleron@gmail.com>2018-04-29 03:09:49 +0200
commitc755cced832a8e574c79f5fbd8e8e53f0ca62087 (patch)
treee14c298b4ce558e65ff78d97ddbbf1ee043ae4b5 /servers/visual_server.h
parent1226720c018fee23be440db3e259be7d29c55193 (diff)
Added partial texture update to VisualServer
Diffstat (limited to 'servers/visual_server.h')
-rw-r--r--servers/visual_server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/visual_server.h b/servers/visual_server.h
index 537588fd6f..1328483fa2 100644
--- a/servers/visual_server.h
+++ b/servers/visual_server.h
@@ -109,6 +109,7 @@ public:
RID texture_create_from_image(const Ref<Image> &p_image, uint32_t p_flags = TEXTURE_FLAGS_DEFAULT); // helper
virtual void texture_allocate(RID p_texture, int p_width, int p_height, Image::Format p_format, uint32_t p_flags = TEXTURE_FLAGS_DEFAULT) = 0;
virtual void texture_set_data(RID p_texture, const Ref<Image> &p_image, CubeMapSide p_cube_side = CUBEMAP_LEFT) = 0;
+ virtual void texture_set_data_partial(RID p_texture, const Ref<Image> &p_image, int src_x, int src_y, int src_w, int src_h, int dst_x, int dst_y, int p_dst_mip, CubeMapSide p_cube_side = CUBEMAP_LEFT) = 0;
virtual Ref<Image> texture_get_data(RID p_texture, CubeMapSide p_cube_side = CUBEMAP_LEFT) const = 0;
virtual void texture_set_flags(RID p_texture, uint32_t p_flags) = 0;
virtual uint32_t texture_get_flags(RID p_texture) const = 0;