summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorRealBadAngel <maciej.kasatkin@o2.pl>2014-05-14 23:19:31 +0200
committerRealBadAngel <maciej.kasatkin@o2.pl>2014-06-15 05:40:33 +0200
commit6c98fd6658fcf7c0c676ee88f03e364c852e9f1b (patch)
tree01a6a17c00730bd2744a2394f36950ba83b10107 /src/nodedef.h
parent9ffa88b558498a139488679ef2ed8767c8540471 (diff)
downloadminetest-6c98fd6658fcf7c0c676ee88f03e364c852e9f1b.tar.gz
minetest-6c98fd6658fcf7c0c676ee88f03e364c852e9f1b.tar.bz2
minetest-6c98fd6658fcf7c0c676ee88f03e364c852e9f1b.zip
Unite nodes shaders.
Pass drawtype and material type to shaders. Move shaders generation to startup only. Allow assign shaders per tile. Initial code to support water surface shader.
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index d4cd66f80..6845e237d 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "mapnode.h"
#ifndef SERVER
#include "tile.h"
+#include "shader.h"
#endif
#include "itemgroup.h"
#include "sound.h" // SimpleSoundSpec
@@ -35,6 +36,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
class IItemDefManager;
class ITextureSource;
+class IShaderSource;
class IGameDef;
typedef std::list<std::pair<content_t, int> > GroupItems;
@@ -323,7 +325,8 @@ public:
/*
Update tile textures to latest return values of TextueSource.
*/
- virtual void updateTextures(ITextureSource *tsrc)=0;
+ virtual void updateTextures(ITextureSource *tsrc,
+ IShaderSource *shdsrc)=0;
virtual void serialize(std::ostream &os, u16 protocol_version)=0;
virtual void deSerialize(std::istream &is)=0;