summaryrefslogtreecommitdiff
path: root/src/gamedef.h
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2012-03-19 02:59:12 +0100
committerPerttu Ahola <celeron55@gmail.com>2012-12-02 00:46:18 +0200
commit22e6fb7056dcc888e9ccf768fefb6c073077a3b5 (patch)
treef85461ee0449602fa12dde14b97c5c96cf813133 /src/gamedef.h
parente3258b78e263c3f95007e1fbc92fcc3a51646f69 (diff)
downloadminetest-22e6fb7056dcc888e9ccf768fefb6c073077a3b5.tar.gz
minetest-22e6fb7056dcc888e9ccf768fefb6c073077a3b5.tar.bz2
minetest-22e6fb7056dcc888e9ccf768fefb6c073077a3b5.zip
ShaderSource and silly example shaders
Diffstat (limited to 'src/gamedef.h')
-rw-r--r--src/gamedef.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gamedef.h b/src/gamedef.h
index 87918d726..6fc99b9f1 100644
--- a/src/gamedef.h
+++ b/src/gamedef.h
@@ -28,6 +28,7 @@ class INodeDefManager;
class ICraftDefManager;
class ITextureSource;
class ISoundManager;
+class IShaderSource;
class MtEventManager;
class IRollbackReportSink;
@@ -48,6 +49,8 @@ public:
// This is always thread-safe, but referencing the irrlicht texture
// pointers in other threads than main thread will make things explode.
virtual ITextureSource* getTextureSource()=0;
+
+ virtual IShaderSource* getShaderSource()=0;
// Used for keeping track of names/ids of unknown nodes
virtual u16 allocateUnknownNodeId(const std::string &name)=0;
@@ -70,6 +73,7 @@ public:
ICraftDefManager* cdef(){return getCraftDefManager();}
ITextureSource* tsrc(){return getTextureSource();}
ISoundManager* sound(){return getSoundManager();}
+ IShaderSource* shsrc(){return getShaderSource();}
MtEventManager* event(){return getEventManager();}
IRollbackReportSink* rollback(){return getRollbackReportSink();}
};