22 add_texture_options();
23 add_delod_options(0.0);
25 set_program_brief(
"convert an .egg file into a DirectX .x file");
26 set_program_description
27 (
"This program reads an Egg file and outputs an equivalent, " 28 "or nearly equivalent, DirectX-style .x file. Only simple " 29 "hierarchy and polygon meshes are supported; advanced features " 30 "like LOD's, decals, and animation or skinning are not supported.");
34 "Convert all the objects in the egg file as one big mesh, instead of " 35 "preserving the normal egg hierarchy.",
36 &EggToX::dispatch_none, &xfile_one_mesh);
40 _got_coordinate_system =
true;
41 _coordinate_system = CS_yup_left;
46 _force_complete =
true;
55 if (!do_reader_options()) {
60 nout <<
"Unable to define egg structure.\n";
71 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_...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void init_libxfile()
Initializes the library.
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.