summaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-11 16:43:26 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-11 16:43:26 +0200
commit804b2647ced20b8af1e632f1e99d54f905fa8ce0 (patch)
treec60db21bf4394434424993711669253ee9f6aae2 /src/mapnode.h
parent841ac10e5c20ad152f375f43bceb992fc3945041 (diff)
downloadminetest-804b2647ced20b8af1e632f1e99d54f905fa8ce0.tar.gz
minetest-804b2647ced20b8af1e632f1e99d54f905fa8ce0.tar.bz2
minetest-804b2647ced20b8af1e632f1e99d54f905fa8ce0.zip
new texture stuff quite working
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/mapnode.h b/src/mapnode.h
index 3de170598..37a0b3aa6 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -33,9 +33,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
Initializes all kind of stuff in here.
Many things depend on this.
- irrlicht: Used for getting texture ids.
+ This accesses g_texturesource; if it is non-NULL, textures are set.
+
+ Client first calls this with g_texturesource=NULL to run some
+ unit tests and stuff, then it runs this again with g_texturesource
+ defined to get the textures.
+
+ Server only calls this once with g_texturesource=NULL.
*/
-void init_mapnode(IIrrlichtWrapper *irrlicht);
+void init_mapnode();
// Initializes g_content_inventory_texture_paths
void init_content_inventory_texture_paths();
@@ -137,6 +143,7 @@ struct ContentFeatures
//std::string inventory_image_path;
//TextureSpec inventory_texture;
//u32 inventory_texture_id;
+ video::ITexture *inventory_texture;
bool is_ground_content; //TODO: Remove, use walkable instead
bool light_propagates;
@@ -155,6 +162,7 @@ struct ContentFeatures
{
translate_to = NULL;
param_type = CPT_NONE;
+ inventory_texture = NULL;
is_ground_content = false;
light_propagates = false;
sunlight_propagates = false;
@@ -212,15 +220,10 @@ struct ContentFeatures
}
}
- /*void setInventoryTexture(const TextureSpec &spec)
- {
- inventory_texture = spec;
- }*/
-
- /*void setInventoryImage(std::string imgname)
- {
- inventory_image_path = porting::getDataPath(imgname.c_str());
- }*/
+ void setInventoryTexture(std::string imgname);
+
+ void setInventoryTextureCube(std::string top,
+ std::string left, std::string right);
};
/*