New textures

This commit is contained in:
2023-06-20 23:57:22 -07:00
parent e2e4732938
commit 160aa43973
9 changed files with 76 additions and 75 deletions

View File

@@ -55,6 +55,11 @@ void CodeGen::classGen(
}
line(out, "namespace Dawn {", "");
auto itTemplates = info.classTemplates.begin();
while(itTemplates != info.classTemplates.end()) {
line(out, "template<" + itTemplates->second + " " + itTemplates->first + ">", " ");
++itTemplates;
}
line(out, "class " + info.clazz + (info.extend.size() == 0 ? "{" : " : public " + info.extend + " {" ), " ");
if(info.protectedCode.size() > 0) {
line(out, "protected:", " ");

View File

@@ -14,6 +14,8 @@ namespace Dawn {
std::string constructorArgs = "";
std::string extendArgs = "";
std::map<std::string, std::string> classTemplates;
std::vector<std::string> constructorCode;
std::vector<std::string> protectedCode;