16 #include "config_xfile.h" 26 add_texture_options();
27 add_delod_options(0.0);
29 set_program_brief(
"convert an .egg file into a DirectX .x file");
30 set_program_description
31 (
"This program reads an Egg file and outputs an equivalent, " 32 "or nearly equivalent, DirectX-style .x file. Only simple " 33 "hierarchy and polygon meshes are supported; advanced features " 34 "like LOD's, decals, and animation or skinning are not supported.");
38 "Convert all the objects in the egg file as one big mesh, instead of " 39 "preserving the normal egg hierarchy.",
40 &EggToX::dispatch_none, &xfile_one_mesh);
44 _got_coordinate_system =
true;
45 _coordinate_system = CS_yup_left;
50 _force_complete =
true;
61 if (!do_reader_options()) {
65 if (!_x.add_tree(_data)) {
66 nout <<
"Unable to define egg structure.\n";
70 if (!_x.write(get_output_filename())) {
71 nout <<
"Unable to write " << get_output_filename() <<
".\n";
77 int main(
int argc,
char *argv[]) {
A program to read in a egg file and write an equivalent, or nearly equivalent, DirectX-style "x" file...
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_...
This is the general base class for a file-converter program that reads some model file format and gen...