//-------------------------------------------------- //-------------------------------------------------- template <> Matrix4 GetAttributeValue<Matrix4>(const XML::Node* in_node, const std::string& in_attributeName, const Matrix4& in_defaultValue) { for(rapidxml::xml_attribute<>* attribute = in_node->first_attribute(); attribute != nullptr; attribute = attribute->next_attribute()) { if (GetName(attribute) == in_attributeName) { return ParseMatrix4(GetValue(attribute)); } } return in_defaultValue; }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------ template <> Matrix4 ParseValue(const std::string& in_value) { return ParseMatrix4(in_value); }