本文整理汇总了C++中vmap::TileAssembler::convertWorld2方法的典型用法代码示例。如果您正苦于以下问题:C++ TileAssembler::convertWorld2方法的具体用法?C++ TileAssembler::convertWorld2怎么用?C++ TileAssembler::convertWorld2使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vmap::TileAssembler
的用法示例。
在下文中一共展示了TileAssembler::convertWorld2方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//=======================================================
int main(int argc, char* argv[])
{
if(argc != 3)
{
std::cout << "usage: " << argv[0] << " <raw data dir> <vmap dest dir>" << std::endl;
return 1;
}
std::string src = argv[1];
std::string dest = argv[2];
std::cout << "using " << src << " as source directory and writing output to " << dest << std::endl;
VMAP::TileAssembler* ta = new VMAP::TileAssembler(src, dest);
if(!ta->convertWorld2())
{
std::cout << "exit with errors" << std::endl;
delete ta;
return 1;
}
delete ta;
std::cout << "Ok, all done" << std::endl;
return 0;
}
示例2: main
int main(int argc, char** argv)
{
printf("mangos-zero vmap (version %s) assembler\n\n", szVMAPMagic);
if (argc != 3)
{
Usage(argv[0]);
return 1;
}
std::string src = argv[1];
std::string dest = argv[2];
std::cout << "using " << src << " as source directory and writing output to " << dest << std::endl;
VMAP::TileAssembler* ta = new VMAP::TileAssembler(src, dest);
if (!ta->convertWorld2())
{
std::cout << "exit with errors" << std::endl;
delete ta;
return 1;
}
delete ta;
std::cout << "Ok, all done" << std::endl;
return 0;
}
示例3: main
int main(int argc, char* argv[])
{
if (argc != 3 && argc != 4)
{
//printf("\nusage: %s <raw data dir> <vmap dest dir> [config file name]\n", argv[0]);
printf("\nusage: %s <raw data dir> <vmap dest dir>\n", argv[0]);
return 1;
}
char *src = argv[1];
char *dest = argv[2];
char *conffile = NULL;
if (argc >= 4)
conffile = argv[3];
VMAP::TileAssembler* ta = new VMAP::TileAssembler(std::string(src), std::string(dest));
ta->setModelNameFilterMethod(modelNameFilter);
/*
All the names in the list are considered to be world maps or huge instances.
These maps will be spilt into tiles in the vmap assemble process
*/
/* if (conffile != NULL)
{
if (!readConfigFile(conffile, ta))
{
printf("Can not open file config file: %s\n", conffile);
delete ta;
return 1;
}
} */
if (!ta->convertWorld2())
{
printf("exit with errors\n");
delete ta;
return 1;
}
delete ta;
printf("Ok, all done\n");
return 0;
}