浏览代码

ASE: Add Material constructor which takes material name

Turo Lamminen 7 年之前
父节点
当前提交
60d78f1701
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      code/ASEParser.h

+ 8 - 0
code/ASEParser.h

@@ -74,6 +74,14 @@ struct Material : public D3DS::Material
     {}
     {}
 
 
 
 
+    //! Constructor with explicit name
+    explicit Material(const std::string &name)
+    : D3DS::Material(name)
+    , pcInstance(NULL)
+    , bNeed (false)
+    {}
+
+
     Material(const Material &other)            = default;
     Material(const Material &other)            = default;
     Material(Material &&other)                 = default;
     Material(Material &&other)                 = default;