From 45f86e0ab40fccb08af10724512a2ba4b275ff2d Mon Sep 17 00:00:00 2001 From: codereader Date: Sun, 11 Apr 2021 07:51:08 +0200 Subject: [PATCH] #5585 Update docs --- include/ishaders.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/ishaders.h b/include/ishaders.h index ebb351714c..4663c5649e 100644 --- a/include/ishaders.h +++ b/include/ishaders.h @@ -591,8 +591,11 @@ class MaterialManager // Creates a copy of the given material and returns the reference to it virtual MaterialPtr copyMaterial(const std::string& nameOfOriginal, const std::string& nameOfCopy) = 0; + // Renames the material named oldName to newName, and returns true if the operation was successful. + // If the new name is already in use, this returns false too. virtual bool renameMaterial(const std::string& oldName, const std::string& newName) = 0; + // Removes the named material virtual void removeMaterial(const std::string& name) = 0; // Saves the named material to the file location as specified in its shaderfile info.