summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
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 {