24 std::cerr <<
"usage: " << name <<
" [source] [destination]\n";
28 int main(
int argc,
char* argv[])
36 for(arg = 1; arg != argc; ++arg) {
42 if(val ==
"--help" || val ==
"-h") {
45 }
else if(val ==
"--interactive" || val ==
"-i") {
47 }
else if(val ==
"--verbose" || val ==
"-v") {
49 }
else if(val ==
"--directory" || val ==
"-d" ) {
54 }
else if(dest.empty()) {
63 if(src.empty() || dest.empty()) {
72 std::cerr <<
"Failed: " << err.
message <<
"\n";
surface compose(const std::string &src, const std::string &dest)
static void print_usage(const char *badoption)
GLuint const GLfloat * val
bool save_image(const locator &i_locator, const std::string &filename)
void set_interactive(bool value)
void set_verbose(bool value)
int main(int argc, char *argv[])
GLuint const GLchar * name
this module manages the cache of images.
GLsizei const GLcharARB ** string