summaryrefslogtreecommitdiff
path: root/src/client/content_cao.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/content_cao.h')
-rw-r--r--src/client/content_cao.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/client/content_cao.h b/src/client/content_cao.h
index 2c2d11077..7c29cbf17 100644
--- a/src/client/content_cao.h
+++ b/src/client/content_cao.h
@@ -125,6 +125,10 @@ private:
u8 m_last_light = 255;
bool m_is_visible = false;
s8 m_glow = 0;
+ // Material
+ video::E_MATERIAL_TYPE m_material_type;
+ // Settings
+ bool m_enable_shaders = false;
public:
GenericCAO(Client *client, ClientEnvironment *env);
@@ -165,9 +169,9 @@ public:
const bool isImmortal();
- scene::ISceneNode *getSceneNode();
+ scene::ISceneNode *getSceneNode() const;
- scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode();
+ scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode() const;
// m_matrixnode controls the position and rotation of the child node
// for all scene nodes, as a workaround for an Irrlicht problem with
@@ -234,6 +238,8 @@ public:
void updateLightNoCheck(u8 light_at_pos);
+ void setNodeLight(u8 light);
+
v3s16 getLightPosition();
void updateNodePos();