Panda3D
Loading...
Searching...
No Matches
eggConverter.cxx
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file eggConverter.cxx
10 * @author drose
11 * @date 2000-02-15
12 */
13
14#include "eggConverter.h"
15
16/**
17 * The first parameter to the constructor should be the one-word name of the
18 * alien file format that is to be read or written, for instance "OpenFlight"
19 * or "Alias". It's just used in printing error messages and such. The
20 * second parameter is the preferred extension of files of this form, if any,
21 * with a leading dot.
22 */
24EggConverter(const std::string &format_name,
25 const std::string &preferred_extension,
26 bool allow_last_param,
27 bool allow_stdout) :
28 EggFilter(allow_last_param, allow_stdout),
29 _format_name(format_name)
30{
31 // Indicate the extension name we expect the user to supply for output
32 // files.
33 _preferred_extension = preferred_extension;
34}
EggConverter(const std::string &format_name, const std::string &preferred_extension=std::string(), bool allow_last_param=true, bool allow_stdout=true)
The first parameter to the constructor should be the one-word name of the alien file format that is t...
This is the base class for a program that reads an egg file, operates on it, and writes another egg f...
Definition eggFilter.h:26
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.