pChild->QueryFloatAttribute("y", &m_camera.y);
m_hasCamera = true;
}
+ else if (strValue == "depth" && pChild->FirstChild())
+ {
+ float stereo = (float)atof(pChild->FirstChild()->Value());;
+ m_stereo = std::max(-1.f, std::min(1.f, stereo));
+ }
else if (strValue == "controls")
{
TiXmlElement *pControl = pChild->FirstChildElement();
m_animations.clear();
m_origins.clear();
m_hasCamera = false;
+ m_stereo = 0.f;
m_animationsEnabled = true;
m_clearBackground = 0xff000000; // opaque black -> clear
m_hitRect.SetRect(0, 0, (float)m_coordsRes.iWidth, (float)m_coordsRes.iHeight);