summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorEkdohibs <nathanael.courant@laposte.net>2016-05-22 20:33:06 +0200
committerEkdohibs <nathanael.courant@laposte.net>2016-05-23 12:46:45 +0200
commit725edc78b214f8ffa5494ed846755083295c3feb (patch)
tree5839e5a76f0c49870ce46a4c97925087f68118ba /src/nodedef.h
parent423d8c1b0d3841f6ce9756ab0d6b2e10408fc89b (diff)
downloadminetest-725edc78b214f8ffa5494ed846755083295c3feb.tar.gz
minetest-725edc78b214f8ffa5494ed846755083295c3feb.tar.bz2
minetest-725edc78b214f8ffa5494ed846755083295c3feb.zip
Move updateTextures and fillTileAttribs to ContentFeatures
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index 58d0faffa..1c2f792d8 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -112,6 +112,26 @@ struct NodeBox
struct MapNode;
class NodeMetadata;
+enum LeavesStyle {
+ LEAVES_FANCY,
+ LEAVES_SIMPLE,
+ LEAVES_OPAQUE,
+};
+
+class TextureSettings {
+public:
+ LeavesStyle leaves_style;
+ bool opaque_water;
+ bool connected_glass;
+ bool use_normal_texture;
+ bool enable_mesh_cache;
+ bool enable_minimap;
+
+ TextureSettings() {}
+
+ void readSettings();
+};
+
enum NodeDrawType
{
NDT_NORMAL, // A basic solid block
@@ -304,6 +324,15 @@ struct ContentFeatures
if(!isLiquid() || !f.isLiquid()) return false;
return (liquid_alternative_flowing == f.liquid_alternative_flowing);
}
+
+#ifndef SERVER
+ void fillTileAttribs(ITextureSource *tsrc, TileSpec *tile, TileDef *tiledef,
+ u32 shader_id, bool use_normal_texture, bool backface_culling,
+ u8 alpha, u8 material_type);
+ void updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc,
+ scene::ISceneManager *smgr, scene::IMeshManipulator *meshmanip,
+ IGameDef *gamedef, const TextureSettings &tsettings);
+#endif
};
class INodeDefManager {