Disable on-screen statistics for the GUI camera
This commit is contained in:
parent
6214e976a8
commit
fe83ba7110
1 changed files with 5 additions and 2 deletions
|
@ -265,8 +265,11 @@ CameraInfo* CameraGroup::buildGUICamera(const SGPropertyNode* cameraNode,
|
|||
camera->setProjectionResizePolicy(Camera::FIXED);
|
||||
camera->setReferenceFrame(Transform::ABSOLUTE_RF);
|
||||
const int cameraFlags = GUI;
|
||||
return addCamera(cameraFlags, camera,
|
||||
Matrixd::identity(), Matrixd::identity(), false);
|
||||
CameraInfo* result = addCamera(cameraFlags, camera, Matrixd::identity(),
|
||||
Matrixd::identity(), false);
|
||||
// Disable statistics for the GUI camera.
|
||||
result->camera->setStats(0);
|
||||
return result;
|
||||
}
|
||||
|
||||
CameraGroup* CameraGroup::buildCameraGroup(osgViewer::Viewer* viewer,
|
||||
|
|
Loading…
Add table
Reference in a new issue