summaryrefslogtreecommitdiff
path: root/src/nodedef.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-15 15:46:52 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:44 +0200
commit89e7bacd991060fe6cdada6bf8112f9f20c3e310 (patch)
tree7493cb0a0b94f39110bd10af36d5bfcd0e679767 /src/nodedef.cpp
parentff34955a0dcd4eefa522056eea3e4530fc475732 (diff)
downloadminetest-89e7bacd991060fe6cdada6bf8112f9f20c3e310.tar.gz
minetest-89e7bacd991060fe6cdada6bf8112f9f20c3e310.tar.bz2
minetest-89e7bacd991060fe6cdada6bf8112f9f20c3e310.zip
Clean more
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r--src/nodedef.cpp53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index 6fa410cc2..045615fbb 100644
--- a/src/nodedef.cpp
+++ b/src/nodedef.cpp
@@ -37,59 +37,6 @@ ContentFeatures::~ContentFeatures()
#endif
}
-#if 0
-void ContentFeatures::setTexture(ITextureSource *tsrc,
- u16 i, std::string name, u8 alpha)
-{
- used_texturenames.insert(name);
-
- if(tsrc)
- {
- tiles[i].texture = tsrc->getTexture(name);
- }
-
- if(alpha != 255)
- {
- tiles[i].alpha = alpha;
- tiles[i].material_type = MATERIAL_ALPHA_VERTEX;
- }
-
- if(inventory_texture == NULL)
- setInventoryTexture(name, tsrc);
-}
-
-void ContentFeatures::setInventoryTexture(std::string imgname,
- ITextureSource *tsrc)
-{
- if(tsrc == NULL)
- return;
-
- imgname += "^[forcesingle";
-
- inventory_texture = tsrc->getTextureRaw(imgname);
-}
-
-void ContentFeatures::setInventoryTextureCube(std::string top,
- std::string left, std::string right, ITextureSource *tsrc)
-{
- if(tsrc == NULL)
- return;
-
- str_replace_char(top, '^', '&');
- str_replace_char(left, '^', '&');
- str_replace_char(right, '^', '&');
-
- std::string imgname_full;
- imgname_full += "[inventorycube{";
- imgname_full += top;
- imgname_full += "{";
- imgname_full += left;
- imgname_full += "{";
- imgname_full += right;
- inventory_texture = tsrc->getTextureRaw(imgname_full);
-}
-#endif
-
void ContentFeatures::setTexture(u16 i, std::string name)
{
used_texturenames.insert(name);