Пример #1
0
	void D3D9texturemanager::dumpTex_f(const CmdArgs& params)
	{
		if (params.tokened.size() != 2) {
			Printf("Usage: dumpTex <tex_name>\n");
			return;
		}
		const String& texname = params.tokened[1];

		TexturePtr tex = FindAsset_<Texture>(texname);

		if (!tex) {
			Printf("Cann't found texture '%s'\n", texname.c_str());
			return;
		}

		String filename = getImageFilename("dds");

		tex->saveToFile(filename);
	}
Пример #2
0
QImage* RouteMetadata::getImage(QString routeFolder)
{
	QString filename = getImageFilename(routeFolder);
	return NULL;
}