loaded a textured .obj!
git-svn-id: svn://anubis/misc/wfobj-view@32 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
1 parent
9db9725187
commit
681dbf4ab6
2 files changed
+99
-82
No files matched your search
+1
-19
@@ -14,7 +14,7 @@
|
||||
using namespace std;
|
||||
|
||||
#define WHITESPACE " \n\r\t\v"
|
||||
#define DEBUGGL
|
||||
// #define DEBUGGL
|
||||
|
||||
/****** static functions ******/
|
||||
|
||||
@@ -376,24 +376,6 @@ bool WFMtl::load(const string & filename, WFObj::loadTextureFunc_t loadTexture)
|
||||
processInputLine(input);
|
||||
}
|
||||
|
||||
/* DEBUG */
|
||||
map<string, vector< vector<string> > >::iterator it = m_data.begin();
|
||||
while (it != m_data.end())
|
||||
{
|
||||
cout << "Material '" << it->first << "':" << endl;
|
||||
for (int i = 0; i < it->second.size(); i++)
|
||||
{
|
||||
cout << " ";
|
||||
for (int j = 0; j < it->second[i].size(); j++)
|
||||
{
|
||||
cout << '\'' << it->second[i][j] << "' ";
|
||||
}
|
||||
cout << endl;
|
||||
}
|
||||
it++;
|
||||
}
|
||||
/* END DEBUG */
|
||||
|
||||
ifs.close();
|
||||
m_loadTexture = loadTexture;
|
||||
m_fileName = filename;
|
||||
|
||||
Reference in new issue
Block a user