summaryrefslogtreecommitdiff
path: root/src/tile.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2013-02-15 21:13:53 +0200
committerPerttu Ahola <celeron55@gmail.com>2013-05-02 19:43:47 +0300
commit084be3599a5ef0acba7c341bfd14a4e9801423a2 (patch)
tree319535075c0eafd482abd32f5418502aefc17ea9 /src/tile.h
parentb28734c82cdb88228a12a3cac90f51ab9384b653 (diff)
downloadminetest-084be3599a5ef0acba7c341bfd14a4e9801423a2.tar.gz
minetest-084be3599a5ef0acba7c341bfd14a4e9801423a2.tar.bz2
minetest-084be3599a5ef0acba7c341bfd14a4e9801423a2.zip
Get menu background image from selected game
Diffstat (limited to 'src/tile.h')
-rw-r--r--src/tile.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tile.h b/src/tile.h
index ea5c4be54..531a93172 100644
--- a/src/tile.h
+++ b/src/tile.h
@@ -35,6 +35,17 @@ class IGameDef;
*/
/*
+ Find out the full path of an image by trying different filename
+ extensions.
+
+ If failed, return "".
+
+ TODO: Should probably be moved out from here, because things needing
+ this function do not need anything else from this header
+*/
+std::string getImagePath(std::string path);
+
+/*
Gets the path to a texture by first checking if the texture exists
in texture_path and if not, using the data path.