aboutsummaryrefslogtreecommitdiff
path: root/src/client/render/pipeline.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/render/pipeline.h')
-rw-r--r--src/client/render/pipeline.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/render/pipeline.h b/src/client/render/pipeline.h
index bfdef2931..f446773ba 100644
--- a/src/client/render/pipeline.h
+++ b/src/client/render/pipeline.h
@@ -126,7 +126,7 @@ public:
* @param name unique name of the texture
* @param format color format
*/
- void setTexture(u8 index, core::dimension2du size, const std::string& name, video::ECOLOR_FORMAT format);
+ void setTexture(u8 index, core::dimension2du size, const std::string& name, video::ECOLOR_FORMAT format, bool clear = false);
/**
* Configure relative-size texture for the specific index
@@ -136,7 +136,7 @@ public:
* @param name unique name of the texture
* @param format color format
*/
- void setTexture(u8 index, v2f scale_factor, const std::string& name, video::ECOLOR_FORMAT format);
+ void setTexture(u8 index, v2f scale_factor, const std::string& name, video::ECOLOR_FORMAT format, bool clear = false);
virtual u8 getTextureCount() override { return m_textures.size(); }
virtual video::ITexture *getTexture(u8 index) override;
@@ -150,6 +150,7 @@ private:
bool valid { false };
bool fixed_size { false };
bool dirty { false };
+ bool clear { false };
v2f scale_factor;
core::dimension2du size;
std::string name;