diff options
| author | Juan Linietsky | 2015-10-21 09:50:44 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-10-21 09:50:44 -0300 |
| commit | b59c86f6f953ce6957bccbcc1ec6f3ce4c55572d (patch) | |
| tree | 39a74205feb03436beacf8c4dcf9d4fd70f2e344 /servers/visual_server.h | |
| parent | f6a790d58c596773466437140f6d7e2a6a29e5e7 (diff) | |
| download | godot-b59c86f6f953ce6957bccbcc1ec6f3ce4c55572d.tar.gz godot-b59c86f6f953ce6957bccbcc1ec6f3ce4c55572d.tar.zst godot-b59c86f6f953ce6957bccbcc1ec6f3ce4c55572d.zip | |
Diffstat (limited to 'servers/visual_server.h')
| -rw-r--r-- | servers/visual_server.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/servers/visual_server.h b/servers/visual_server.h index ece61ec70..96c3e15cd 100644 --- a/servers/visual_server.h +++ b/servers/visual_server.h @@ -135,6 +135,18 @@ public: virtual bool texture_can_stream(RID p_texture) const=0; virtual void texture_set_reload_hook(RID p_texture,ObjectID p_owner,const StringName& p_function) const=0; + virtual void texture_set_path(RID p_texture,const String& p_path)=0; + virtual String texture_get_path(RID p_texture) const=0; + + struct TextureInfo { + RID texture; + Size2 size; + Image::Format format; + int bytes; + String path; + }; + + virtual void texture_debug_usage(List<TextureInfo> *r_info)=0; /* SHADER API */ |
