From c755cced832a8e574c79f5fbd8e8e53f0ca62087 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Sun, 29 Apr 2018 01:23:55 +0200 Subject: Added partial texture update to VisualServer --- servers/visual/rasterizer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'servers/visual/rasterizer.h') diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h index 8bf112b0de..9b67566f60 100644 --- a/servers/visual/rasterizer.h +++ b/servers/visual/rasterizer.h @@ -175,6 +175,7 @@ public: virtual RID texture_create() = 0; virtual void texture_allocate(RID p_texture, int p_width, int p_height, Image::Format p_format, uint32_t p_flags = VS::TEXTURE_FLAGS_DEFAULT) = 0; virtual void texture_set_data(RID p_texture, const Ref &p_image, VS::CubeMapSide p_cube_side = VS::CUBEMAP_LEFT) = 0; + virtual void texture_set_data_partial(RID p_texture, const Ref &p_image, int src_x, int src_y, int src_w, int src_h, int dst_x, int dst_y, int p_dst_mip, VS::CubeMapSide p_cube_side = VS::CUBEMAP_LEFT) = 0; virtual Ref texture_get_data(RID p_texture, VS::CubeMapSide p_cube_side = VS::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; -- cgit v1.2.3