Skip to content

Commit

Permalink
#5585 Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Apr 11, 2021
1 parent 8f5456c commit 45f86e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/ishaders.h
Expand Up @@ -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.
Expand Down

0 comments on commit 45f86e0

Please sign in to comment.