1 | /*
|
---|
2 | ============================================================================
|
---|
3 | This source file is part of the Ogre-Maya Tools.
|
---|
4 | Distributed as part of Ogre (Object-oriented Graphics Rendering Engine).
|
---|
5 | Copyright (C) 2003 Fifty1 Software Inc., Bytelords
|
---|
6 |
|
---|
7 | This program is free software; you can redistribute it and/or
|
---|
8 | modify it under the terms of the GNU General Public License
|
---|
9 | as published by the Free Software Foundation; either version 2
|
---|
10 | of the License, or (at your option) any later version.
|
---|
11 |
|
---|
12 | This program is distributed in the hope that it will be useful,
|
---|
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | GNU General Public License for more details.
|
---|
16 |
|
---|
17 | You should have received a copy of the GNU General Public License
|
---|
18 | along with this program; if not, write to the Free Software
|
---|
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
---|
20 | or go to http://www.gnu.org/licenses/gpl.txt
|
---|
21 | ============================================================================
|
---|
22 | */
|
---|
23 | #include <OgreMayaOptions.h>
|
---|
24 | #include <iostream>
|
---|
25 |
|
---|
26 | namespace OgreMaya {
|
---|
27 |
|
---|
28 | using namespace std;
|
---|
29 |
|
---|
30 | Options::Options() {
|
---|
31 | reset();
|
---|
32 | }
|
---|
33 |
|
---|
34 | void Options::reset() {
|
---|
35 | valid = false;
|
---|
36 |
|
---|
37 | verboseMode = false;
|
---|
38 |
|
---|
39 | exportSelected = false;
|
---|
40 |
|
---|
41 | exportMesh = false;
|
---|
42 | exportSkeleton = false;
|
---|
43 | exportVBA = false;
|
---|
44 | exportNormals = false;
|
---|
45 | exportColours = false;
|
---|
46 | exportUVs = false;
|
---|
47 | exportMaterial = false;
|
---|
48 |
|
---|
49 | inFile = "";
|
---|
50 | outMeshFile = "";
|
---|
51 | outSkelFile = "";
|
---|
52 | outMatFile = "";
|
---|
53 |
|
---|
54 | matPrefix = "";
|
---|
55 |
|
---|
56 | animations.clear();
|
---|
57 | }
|
---|
58 |
|
---|
59 |
|
---|
60 | Options& Options::instance() {
|
---|
61 | static Options options;
|
---|
62 | return options;
|
---|
63 | }
|
---|
64 |
|
---|
65 | void Options::debugOutput() {
|
---|
66 | cout << "=== options ================================\n";
|
---|
67 | cout << inFile << " -> mesh=" << outMeshFile << ", skel=" << outSkelFile << "\n";
|
---|
68 | cout << "Material: prefix=" << matPrefix << ", file=" << outMatFile << "\n";
|
---|
69 | cout << "exportMesh :" << exportMesh << '\n';
|
---|
70 | cout << "exportSkeleton :" << exportSkeleton << '\n';
|
---|
71 | cout << "exportNormals :" << exportNormals << '\n';
|
---|
72 | cout << "exportColours :" << exportColours << '\n';
|
---|
73 | cout << "exportUVs :" << exportUVs << '\n';
|
---|
74 | cout << "exportMaterial :" << exportMaterial << '\n';
|
---|
75 | cout << "============================================\n";
|
---|
76 | }
|
---|
77 |
|
---|
78 | } // namespace OgreMaya
|
---|