source: OGRE/trunk/ogrenew/Tools/MayaExport/shared/src/OgreMayaOptions.cpp @ 657

Revision 657, 2.6 KB checked in by mattausch, 19 years ago (diff)

added ogre dependencies and patched ogre sources

Line 
1/*
2============================================================================
3This source file is part of the Ogre-Maya Tools.
4Distributed as part of Ogre (Object-oriented Graphics Rendering Engine).
5Copyright (C) 2003 Fifty1 Software Inc., Bytelords
6
7This program is free software; you can redistribute it and/or
8modify it under the terms of the GNU General Public License
9as published by the Free Software Foundation; either version 2
10of the License, or (at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
19Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20or go to http://www.gnu.org/licenses/gpl.txt
21============================================================================
22*/
23#include <OgreMayaOptions.h>
24#include <iostream>
25
26namespace 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
Note: See TracBrowser for help on using the repository browser.