summaryrefslogtreecommitdiff
path: root/servers/visual
diff options
context:
space:
mode:
authorBastiaanOlij <mux213@gmail.com>2017-05-20 10:09:36 +1000
committerBastiaanOlij <mux213@gmail.com>2017-05-20 10:09:36 +1000
commitc51ce72702ef58babe1ce3efd1c31206ba6721e2 (patch)
tree432eac4bab8f154453e12405b401aba0c9effac8 /servers/visual
parenta75623f436c215e107ede321afa08a1897552deb (diff)
Added texture_get_texid
Diffstat (limited to 'servers/visual')
-rw-r--r--servers/visual/rasterizer.h1
-rw-r--r--servers/visual/visual_server_raster.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h
index 624bd1dad7..12cf30cfc4 100644
--- a/servers/visual/rasterizer.h
+++ b/servers/visual/rasterizer.h
@@ -168,6 +168,7 @@ public:
virtual void texture_set_flags(RID p_texture, uint32_t p_flags) = 0;
virtual uint32_t texture_get_flags(RID p_texture) const = 0;
virtual Image::Format texture_get_format(RID p_texture) const = 0;
+ virtual uint32_t texture_get_texid(RID p_texture) const = 0;
virtual uint32_t texture_get_width(RID p_texture) const = 0;
virtual uint32_t texture_get_height(RID p_texture) const = 0;
virtual void texture_set_size_override(RID p_texture, int p_width, int p_height) = 0;
diff --git a/servers/visual/visual_server_raster.h b/servers/visual/visual_server_raster.h
index db3c7f822a..95806a2e1a 100644
--- a/servers/visual/visual_server_raster.h
+++ b/servers/visual/visual_server_raster.h
@@ -628,6 +628,7 @@ public:
BIND2(texture_set_flags, RID, uint32_t)
BIND1RC(uint32_t, texture_get_flags, RID)
BIND1RC(Image::Format, texture_get_format, RID)
+ BIND1RC(uint32_t, texture_get_texid, RID)
BIND1RC(uint32_t, texture_get_width, RID)
BIND1RC(uint32_t, texture_get_height, RID)
BIND3(texture_set_size_override, RID, int, int)