Added partial texture update to VisualServer
This commit is contained in:
@ -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<Image> &p_image, VS::CubeMapSide p_cube_side = VS::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, VS::CubeMapSide p_cube_side = VS::CUBEMAP_LEFT) = 0;
|
||||
virtual Ref<Image> 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;
|
||||
|
||||
@ -148,6 +148,7 @@ public:
|
||||
BIND0R(RID, texture_create)
|
||||
BIND5(texture_allocate, RID, int, int, Image::Format, uint32_t)
|
||||
BIND3(texture_set_data, RID, const Ref<Image> &, CubeMapSide)
|
||||
BIND10(texture_set_data_partial, RID, const Ref<Image> &, int, int, int, int, int, int, int, CubeMapSide)
|
||||
BIND2RC(Ref<Image>, texture_get_data, RID, CubeMapSide)
|
||||
BIND2(texture_set_flags, RID, uint32_t)
|
||||
BIND1RC(uint32_t, texture_get_flags, RID)
|
||||
|
||||
@ -84,6 +84,7 @@ public:
|
||||
FUNCRID(texture)
|
||||
FUNC5(texture_allocate, RID, int, int, Image::Format, uint32_t)
|
||||
FUNC3(texture_set_data, RID, const Ref<Image> &, CubeMapSide)
|
||||
FUNC10(texture_set_data_partial, RID, const Ref<Image> &, int, int, int, int, int, int, int, CubeMapSide)
|
||||
FUNC2RC(Ref<Image>, texture_get_data, RID, CubeMapSide)
|
||||
FUNC2(texture_set_flags, RID, uint32_t)
|
||||
FUNC1RC(uint32_t, texture_get_flags, RID)
|
||||
|
||||
Reference in New Issue
Block a user