wfobj/WFMtl.hh
josh 5b34c54c96 added (in progress) WFMtl class, clear() method
git-svn-id: svn://anubis/misc/wfobj@20 bd8a9e45-a331-0410-811e-c64571078777
2008-01-27 14:00:34 +00:00

25 lines
492 B
C++

#include <GL/gl.h>
#include <vector>
#include <string>
#include <map>
class WFMtl
{
public:
bool load(const std::string & filename);
void render();
private:
/* methods */
void clear();
std::string trim(std::string s);
int filesize(const char * filename);
void processInputLine(const std::string & input);
std::string stripFirstToken(std::string & input);
/* variables */
std::map< std::string, std::vector< std::vector<std::string> > > m_data;
string m_currentMaterialName;
};