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()) {
66 nout <<
"Unable to define egg structure.\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_...
Filename get_output_filename() const
If has_output_filename() returns true, this is the filename that the user specified.
bool add_tree(EggData *egg_data)
Adds the egg tree rooted at the indicated node to the X structure.
This is the general base class for a file-converter program that reads some model file format and gen...
bool write(const Filename &filename)
Writes the .x file data to the indicated filename; returns true on success, false otherwise...