static void
{
fprintf(stderr,
"Usage: %s [options]\n", program);
fprintf(stderr,
" -l lod Sphere level of detail [default: 3]\n");
fprintf(stderr,
" -o file Save geometry to file [default: stdout.geo]\n");
fprintf(stderr,
" -v vlod Viewport level of detail [default: 'full']\n");
fprintf(stderr,
" Choose one of:\n");
{
}
}
int
{
#if !defined(WIN32)
if (argc == 1<<28)
#endif
{
return 1;
}
const char *output = args.
found(
'o') ? args.
argp(
'o') :
"stdout.geo";
const char *viewportLOD = args.
found(
'v') ? args.
argp(
'v') :
"full";
if (!pack)
fprintf(stderr,
"Can't create a packed sphere\n");
else
{
fprintf(stderr,
"Error saving to: %s\n", output);
}
return 0;
}