X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=include%2Fishaders.h;h=e1ce6261fbcf92da9c55d9e26bbf5e96bb6ff5f5;hb=455026606be8472bd8f349124aeb5e06624d986d;hp=f88c8ce78e206e426f233cc6ff7bf113c898f6cb;hpb=02a51890a3d97a0e937fbb11071cf7c41cc00aa9;p=xonotic%2Fnetradiant.git diff --git a/include/ishaders.h b/include/ishaders.h index f88c8ce7..e1ce6261 100644 --- a/include/ishaders.h +++ b/include/ishaders.h @@ -80,7 +80,6 @@ virtual float alphaTest() const = 0; typedef Callback ShaderLayerCallback; - class IShader { public: @@ -109,6 +108,8 @@ virtual qtexture_t* getBump() const = 0; virtual qtexture_t* getSpecular() const = 0; // get shader name virtual const char* getName() const = 0; +virtual const char* getWadName() const = 0; +virtual void setWadName( const char* name ) = 0; virtual bool IsInUse() const = 0; virtual void SetInUse( bool bInUse ) = 0; // get the editor flags (QER_NOCARVE QER_TRANS) @@ -183,7 +184,6 @@ inline ShaderSystem& GlobalShaderSystem(){ return GlobalShadersModule::getTable(); } - #define QERApp_Shader_ForName GlobalShaderSystem().getShaderForName #define QERApp_ActiveShaders_IteratorBegin GlobalShaderSystem().beginActiveShadersIterator #define QERApp_ActiveShaders_IteratorAtEnd GlobalShaderSystem().endActiveShadersIterator