Initial on screen stats support
This commit is contained in:
@@ -74,7 +74,7 @@ bool Stats::getAttribute(int frameNumber, const std::string& attributeName, doub
|
||||
|
||||
const AttributeMap& attributeMap = _attributeMapList[index];
|
||||
AttributeMap::const_iterator itr = attributeMap.find(attributeName);
|
||||
if (itr != attributeMap.end()) return false;
|
||||
if (itr == attributeMap.end()) return false;
|
||||
|
||||
value = itr->second;
|
||||
return true;
|
||||
|
||||
@@ -53,6 +53,15 @@ View::~View()
|
||||
}
|
||||
|
||||
|
||||
void View::setCamera(osg::Camera* camera)
|
||||
{
|
||||
if (_camera.valid()) _camera->setView(0);
|
||||
|
||||
_camera = camera;
|
||||
|
||||
if (_camera.valid()) _camera->setView(this);
|
||||
}
|
||||
|
||||
void View::updateSlaves()
|
||||
{
|
||||
for(unsigned int i=0; i<_slaves.size(); ++i)
|
||||
|
||||
Reference in New Issue
Block a user