Added Camera::s/getAllowsEventFocus() method to allow osgViewer to have non interfactive cameras such as RTT ones

This commit is contained in:
Robert Osfield
2007-02-21 19:06:43 +00:00
parent 37e3114534
commit ee9440d155
2 changed files with 11 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ using namespace osg;
Camera::Camera():
_view(0),
_allowEventFocus(true),
_clearColor(osg::Vec4(0.0f,0.0f,0.0f,1.0f)),
_clearMask(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT),
_transformOrder(PRE_MULTIPLY),
@@ -34,6 +35,7 @@ Camera::Camera(const Camera& camera,const CopyOp& copyop):
Transform(camera,copyop),
CullSettings(camera),
_view(camera._view),
_allowEventFocus(camera._allowEventFocus),
_clearColor(camera._clearColor),
_clearMask(camera._clearMask),
_colorMask(camera._colorMask),