diff options
author | Kahrl <kahrl@gmx.net> | 2012-03-19 02:59:12 +0100 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-12-02 00:46:18 +0200 |
commit | 22e6fb7056dcc888e9ccf768fefb6c073077a3b5 (patch) | |
tree | f85461ee0449602fa12dde14b97c5c96cf813133 /src/gamedef.h | |
parent | e3258b78e263c3f95007e1fbc92fcc3a51646f69 (diff) | |
download | minetest-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.h | 4 |
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();} }; |