diff options
author | Stijn Buys <ingar@osirion.org> | 2014-12-22 16:02:48 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2014-12-22 16:02:48 +0000 |
commit | 871552eab28d07c3aaf0cabb5fb167c0eb365bdf (patch) | |
tree | 0c91777d067e3b5323070b458c1affd6f11669da /src/model/material.h | |
parent | a5aef07b4a2b85933f3a2f358a4d1b6fe27948b7 (diff) |
Fixed a bug where the lad/savegame dialog wouldn't show the screenshot of the first selected savegame,
minor code cleamups in material handling.
Diffstat (limited to 'src/model/material.h')
-rw-r--r-- | src/model/material.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/model/material.h b/src/model/material.h index c775c04..c6577ef 100644 --- a/src/model/material.h +++ b/src/model/material.h @@ -174,7 +174,7 @@ public: /** * @brief material registry * */ - static inline Registry registry() + static inline Registry & registry() { return material_registry; } @@ -213,6 +213,11 @@ public: * @brief find a material in the registry * */ static Material *find(const std::string &name); + + /** + * @brief add a new material to the registry. + * */ + static Material *add(const std::string &name); static void set_imageloader_func(ImageLoaderFuncPtr func); |