void XMLNode::SetAttributes (AttribMap attrib) { AttribMap::iterator itor = attrib.begin (); for (; itor != attrib.end (); ++itor) { m_Node.SetAttribute(itor->first, itor->second); } }
vector<EGLint> attribMapToList (const AttribMap& attribs) { vector<EGLint> attribList; for (AttribMap::const_iterator it = attribs.begin(); it != attribs.end(); ++it) { attribList.push_back(it->first); attribList.push_back(it->second); } attribList.push_back(EGL_NONE); return attribList; }