26 add_runline(
"[opts] input.lwo");
28 set_program_brief(
"describe the contents of a Lightwave object file");
29 set_program_description
30 (
"This program simply reads a Lightwave object file and dumps its "
31 "contents to standard output. It's mainly useful for debugging "
32 "problems with lwo2egg.");
42 nout <<
"Unable to open " << _input_filename <<
"\n";
47 if (chunk ==
nullptr) {
48 nout <<
"Unable to read file.\n";
50 while (chunk !=
nullptr) {
51 chunk->write(std::cout, 0);
52 chunk = in.get_chunk();
63 nout <<
"You must specify the Lightwave object file to read on the command line.\n";
66 if (args.size() != 1) {
67 nout <<
"You may specify only one Lightwave object file to read on the command line.\n";
71 _input_filename = args[0];
78 main(
int argc,
char *argv[]) {
The basic kind of record in an EA "IFF" file, which the LightWave object file is based on.
A program to read a Lightwave file and report its structure and contents.
virtual void parse_command_line(int argc, char **argv)
Dispatches on each of the options on the command line, and passes the remaining parameters to handle_...
void init_liblwo()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.