aboutsummaryrefslogtreecommitdiff
path: root/servers/visual/visual_server_wrap_mt.h
diff options
context:
space:
mode:
authorJuan Linietsky2015-10-21 09:50:44 -0300
committerJuan Linietsky2015-10-21 09:50:44 -0300
commitb59c86f6f953ce6957bccbcc1ec6f3ce4c55572d (patch)
tree39a74205feb03436beacf8c4dcf9d4fd70f2e344 /servers/visual/visual_server_wrap_mt.h
parentf6a790d58c596773466437140f6d7e2a6a29e5e7 (diff)
downloadgodot-b59c86f6f953ce6957bccbcc1ec6f3ce4c55572d.tar.gz
godot-b59c86f6f953ce6957bccbcc1ec6f3ce4c55572d.tar.zst
godot-b59c86f6f953ce6957bccbcc1ec6f3ce4c55572d.zip
-Ability to debug video memory usage
-Small fix to xml saver (swapping > and <)
Diffstat (limited to 'servers/visual/visual_server_wrap_mt.h')
-rw-r--r--servers/visual/visual_server_wrap_mt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/servers/visual/visual_server_wrap_mt.h b/servers/visual/visual_server_wrap_mt.h
index af88c9bdc..57d691ae6 100644
--- a/servers/visual/visual_server_wrap_mt.h
+++ b/servers/visual/visual_server_wrap_mt.h
@@ -98,6 +98,15 @@ public:
FUNC1RC(bool,texture_can_stream,RID);
FUNC3C(texture_set_reload_hook,RID,ObjectID,const StringName&);
+ FUNC2(texture_set_path,RID,const String&);
+ FUNC1RC(String,texture_get_path,RID);
+
+ virtual void texture_debug_usage(List<TextureInfo> *r_info) {
+ //pass directly, should lock the server anyway
+ visual_server->texture_debug_usage(r_info);
+ }
+
+
/* SHADER API */
FUNC1R(RID,shader_create,ShaderMode);