Add custom texture create function
This commit is contained in:
@ -127,6 +127,8 @@ public:
|
||||
virtual void texture_set_path(RID p_texture, const String &p_path) = 0;
|
||||
virtual String texture_get_path(RID p_texture) const = 0;
|
||||
|
||||
virtual Image::Format texture_get_format(RID p_texture) const = 0;
|
||||
|
||||
typedef void (*TextureDetectCallback)(void *);
|
||||
|
||||
virtual void texture_set_detect_3d_callback(RID p_texture, TextureDetectCallback p_callback, void *p_userdata) = 0;
|
||||
@ -158,6 +160,7 @@ public:
|
||||
|
||||
virtual void texture_set_force_redraw_if_visible(RID p_texture, bool p_enable) = 0;
|
||||
|
||||
virtual RID texture_rd_create(const RID &p_rd_texture, const RenderingServer::TextureLayeredType p_layer_type = RenderingServer::TEXTURE_LAYERED_2D_ARRAY) = 0;
|
||||
virtual RID texture_get_rd_texture(RID p_texture, bool p_srgb = false) const = 0;
|
||||
virtual uint64_t texture_get_native_handle(RID p_texture, bool p_srgb = false) const = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user