示例#1
0
void EnvRoom::AddEnvImage(float x, float y, CellDir d, QString url)
{

    QUrl theurl(url);

    EnvImg * newimg = new EnvImg(theurl);
    newimg->Pos(x + 0.5f, 2.0f, y + 0.5f);
    newimg->Dir(EnvCell::CellDirToVector(d) * -1.0f);
    envimages.push_back(newimg);

}
示例#2
0
void opml_urlreader::handle_node(xmlNode * node, const std::string& tag) {
	if (node) {
		char * rssurl = (char *)xmlGetProp(node, (const xmlChar *)"xmlUrl");
		if (rssurl && strlen(rssurl) > 0) {
			std::string theurl(rssurl);
			urls.push_back(theurl);
			if (tag.length() > 0) {
				std::vector<std::string> tmptags;
				tmptags.push_back(tag);
				tags[theurl] = tmptags;
				alltags.insert(tag);
			}
		}
		if (rssurl)
			xmlFree(rssurl);
	}
}