closer to rendering materials with WFMtl
git-svn-id: svn://anubis/misc/wfobj@22 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
parent
2fe1763b74
commit
8772342fdb
15
WFMtl.cc
15
WFMtl.cc
@ -129,6 +129,19 @@ string WFMtl::stripFirstToken(string & input)
|
|||||||
return token;
|
return token;
|
||||||
}
|
}
|
||||||
|
|
||||||
void WFMtl::render()
|
void WFMtl::renderBegin(const string & mtlname)
|
||||||
{
|
{
|
||||||
|
map< string, vector< vector<string> > >::iterator it = m_data.find(mtlname);
|
||||||
|
if (it == m_data.end())
|
||||||
|
return;
|
||||||
|
/* TODO: draw the material at it->second */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WFMtl::renderEnd(const string & mtlname)
|
||||||
|
{
|
||||||
|
map< string, vector< vector<string> > >::iterator it = m_data.find(mtlname);
|
||||||
|
if (it == m_data.end())
|
||||||
|
return;
|
||||||
|
/* TODO: end the material at it->second */
|
||||||
|
}
|
||||||
|
|
||||||
|
3
WFMtl.hh
3
WFMtl.hh
@ -8,7 +8,8 @@ class WFMtl
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
bool load(const std::string & filename);
|
bool load(const std::string & filename);
|
||||||
void render();
|
void renderBegin(const std::string & mtlname);
|
||||||
|
void renderEnd(const std::string & mtlname);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/* methods */
|
/* methods */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user