Added Model component to schema

This commit is contained in:
sippeangelo
2015-12-08 18:21:24 +01:00
parent 9fbea18330
commit 1e1ce4e127
7 changed files with 55 additions and 51 deletions
+2
View File
@@ -330,11 +330,13 @@ void EntityXMLFile::parseEntityGraph()
std::size_t EntityXMLFile::getTypeStride(std::string typeName)
{
std::map<std::string, size_t> typeStrides{
{ "bool", sizeof(bool) },
{ "int", sizeof(int) },
{ "double", sizeof(double) },
{ "string", sizeof(std::string) },
{ "Vector", sizeof(glm::vec3) },
{ "Quaternion", sizeof(glm::quat) },
{ "Color", sizeof(glm::vec4) }
};
auto it = typeStrides.find(typeName);