X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftile.h;h=216d76508ec0347f97a769eb83e5941dc03e6852;hb=c391bcee1698beabaec76ed13361d2930cb22f94;hp=f06285960612dacefc469f432dc190e801fe0155;hpb=e0f7bd4d57bf0c9b497c4d0bb73f7bd4d5cc0643;p=dragonfireclient.git 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 +Copyright (C) 2010-2011 celeron55, Perttu Ahola 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 @@ -25,6 +25,22 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "utility.h" #include +/* + 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.