filled in Scene::processOptions()
git-svn-id: svn://anubis/fart/trunk@169 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
parent
bb07e12193
commit
84249c8231
@ -227,7 +227,7 @@ void Scene::processCamera(refptr<Node> node)
|
|||||||
}
|
}
|
||||||
else if ( typeid(**it) == typeid(VFOVNode) )
|
else if ( typeid(**it) == typeid(VFOVNode) )
|
||||||
{
|
{
|
||||||
|
m_vfov = (*it)->getNumber();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -236,6 +236,23 @@ void Scene::processCamera(refptr<Node> node)
|
|||||||
|
|
||||||
void Scene::processOptions(refptr<Node> node)
|
void Scene::processOptions(refptr<Node> node)
|
||||||
{
|
{
|
||||||
|
for (Node_Iterator it = node->getChildren().begin();
|
||||||
|
it != node->getChildren().end();
|
||||||
|
it++)
|
||||||
|
{
|
||||||
|
if ( typeid(**it) == typeid(WidthNode) )
|
||||||
|
{
|
||||||
|
m_width = (*it)->getInteger();
|
||||||
|
}
|
||||||
|
else if ( typeid(**it) == typeid(HeightNode) )
|
||||||
|
{
|
||||||
|
m_height = (*it)->getInteger();
|
||||||
|
}
|
||||||
|
else if ( typeid(**it) == typeid(MultisampleNode) )
|
||||||
|
{
|
||||||
|
m_multisample_level = (*it)->getInteger();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Scene::processTransformBlock(refptr<Node> node)
|
void Scene::processTransformBlock(refptr<Node> node)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user