This commit is contained in:
MihailRis
2024-02-04 23:45:15 +03:00
parent 3cd648e10c
commit b38afe9e34
14 changed files with 837 additions and 684 deletions
+5
View File
@@ -4,6 +4,7 @@
#include <string>
#include <memory>
#include <vector>
#include <glm/glm.hpp>
#include <unordered_map>
#include "commons.h"
@@ -30,6 +31,10 @@ namespace xml {
int64_t asInt() const;
double asFloat() const;
bool asBool() const;
glm::vec2 asVec2() const;
glm::vec3 asVec3() const;
glm::vec4 asVec4() const;
glm::vec4 asColor() const;
};
/* XML element class. Text element has tag 'text' and attribute 'text' */