New textures
This commit is contained in:
@@ -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:", " ");
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user