added skeleton process{Material,Light,Shape} functions to Scene-load.cc
git-svn-id: svn://anubis/fart/trunk@140 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
parent
94548d4418
commit
864ef9b51b
@ -99,3 +99,25 @@ void Scene::processChildren(refptr<Node> node)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
refptr<Material> processMaterial(refptr<Node> node)
|
||||||
|
{
|
||||||
|
if (typeid(*node) != typeid(MaterialNode))
|
||||||
|
return refptr<Material>(NULL);
|
||||||
|
|
||||||
|
refptr<Material> material = new Material();
|
||||||
|
|
||||||
|
/* TODO: finish */
|
||||||
|
|
||||||
|
return material;
|
||||||
|
}
|
||||||
|
|
||||||
|
refptr<Shape> processShape(refptr<Node> node)
|
||||||
|
{
|
||||||
|
/* TODO: finish */
|
||||||
|
}
|
||||||
|
|
||||||
|
refptr<Light> processLight(refptr<Node> node)
|
||||||
|
{
|
||||||
|
/* TODO: finish */
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -53,6 +53,9 @@ class Scene
|
|||||||
void load(const char * filename);
|
void load(const char * filename);
|
||||||
void processNode(refptr<Node> node);
|
void processNode(refptr<Node> node);
|
||||||
void processChildren(refptr<Node> node);
|
void processChildren(refptr<Node> node);
|
||||||
|
refptr<Material> processMaterial(refptr<Node> node);
|
||||||
|
refptr<Shape> processShape(refptr<Node> node);
|
||||||
|
refptr<Light> processLight(refptr<Node> node);
|
||||||
|
|
||||||
/* rendering parameters */
|
/* rendering parameters */
|
||||||
int m_width;
|
int m_width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user