[DEV] add camacity at vec2

This commit is contained in:
Edouard DUPIN 2013-04-14 14:00:06 +02:00
parent 32da0ffb78
commit dffd6233d3

View File

@ -187,11 +187,14 @@ namespace etk {
{
m_floats[0] = 0;
m_floats[1] = 0;
//TK_DEBUG("start parsing od vec2 with \"" << str << "\"");
if (str.StartWith("(")) {
//TK_DEBUG(" start with (");
sscanf(str.c_str(), "(%f,%f)", &m_floats[0], &m_floats[1]);
} else {
sscanf(str.c_str(), "(%f,%f)", &m_floats[0], &m_floats[1]);
sscanf(str.c_str(), "%f,%f", &m_floats[0], &m_floats[1]);
}
//TK_DEBUG(" result " << *this);
}
};