diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-05-21 11:07:03 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-05-21 11:07:03 +0300 |
commit | 969fbb189d16d87d26ceab29795644588fb90a32 (patch) | |
tree | a67a53a3ec9bd1afffda372587a9205d3ba8ef96 /src/tile.h | |
parent | a8acf3c391b4dbdc4f4fd12b7a491a1c38dab337 (diff) | |
download | minetest-969fbb189d16d87d26ceab29795644588fb90a32.tar.gz minetest-969fbb189d16d87d26ceab29795644588fb90a32.tar.bz2 minetest-969fbb189d16d87d26ceab29795644588fb90a32.zip |
All textures are are now searched first from the directory specified by the texture_path setting.
Diffstat (limited to 'src/tile.h')
-rw-r--r-- | src/tile.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/tile.h b/src/tile.h index f06285960..216d76508 100644 --- a/src/tile.h +++ b/src/tile.h @@ -1,6 +1,6 @@ /* Minetest-c55 -Copyright (C) 2010 celeron55, Perttu Ahola <celeron55@gmail.com> +Copyright (C) 2010-2011 celeron55, Perttu Ahola <celeron55@gmail.com> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,6 +26,22 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <string> /* + tile.{h,cpp}: Texture handling stuff. +*/ + +/* + Gets the path to a texture by first checking if the texture exists + in texture_path and if not, using the data path. + + Checks all supported extensions by replacing the original extension. + + If not found, returns "". + + Utilizes a thread-safe cache. +*/ +std::string getTexturePath(const std::string &filename); + +/* Specifies a texture in an atlas. This is used to specify single textures also. |