Changeset 13041 for OpenSceneGraph/trunk/include/osg/Camera
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Camera (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Camera
r12812 r13041 59 59 60 60 61 /** Set the Stats object used for collect various frame related 61 /** Set the Stats object used for collect various frame related 62 62 * timing and scene graph stats. */ 63 63 void setStats(osg::Stats* stats) { _stats = stats; } … … 70 70 71 71 72 /** Set whether this camera allows events to be generated by the 72 /** Set whether this camera allows events to be generated by the 73 73 * associated graphics window to be associated with this camera. */ 74 74 void setAllowEventFocus(bool focus) { _allowEventFocus = focus; } … … 422 422 Camera chooses to substitue buffer attachments as defined by DisplaySettings. 423 423 424 Usually DisplaySettings implicit buffer attachment selection defaults to: DEPTH and COLOR 424 Usually DisplaySettings implicit buffer attachment selection defaults to: DEPTH and COLOR 425 425 for both primary (Render) FBO and seconday Multisample (Resolve) FBO 426 426 ie: IMPLICT_DEPTH_BUFFER_ATTACHMENT | IMPLICIT_COLOR_BUFFER_ATTACHMENT 427 427 428 If these masks are not changed and user did not attach depth buffer and/or color buffer 428 If these masks are not changed and user did not attach depth buffer and/or color buffer 429 429 to Camera, then OSG implicitly substitues these buffers. 430 430 By default it does not implicitly allocate a stencil buffer. 431 Use implicti buffer attachment masks to override default behavior: 431 Use implicti buffer attachment masks to override default behavior: 432 432 to turn off DEPTH or COLOR buffer substitution or to enforce STENCIL buffer substitution. 433 433 … … 461 461 } 462 462 463 /** 464 Get mask selecting implict buffer attachments for Camera primary FBO 463 /** 464 Get mask selecting implict buffer attachments for Camera primary FBO 465 465 if effectiveMask parameter is set, method follows USE_DISPLAY_SETTINGS_MASK dependence and returns effective mask 466 466 if effectiveMask parameter is reset, method returns nominal mask set by the Camera 467 467 */ 468 468 ImplicitBufferAttachmentMask getImplicitBufferAttachmentRenderMask(bool effectiveMask = false) const 469 { 469 { 470 470 if( effectiveMask && _implicitBufferAttachmentRenderMask == USE_DISPLAY_SETTINGS_MASK ) 471 471 { … … 479 479 } 480 480 481 /** 482 Get mask selecting implict buffer attachments for Camera secondary MULTISAMPLE FBO 481 /** 482 Get mask selecting implict buffer attachments for Camera secondary MULTISAMPLE FBO 483 483 if effectiveMask parameter is set, method follows USE_DISPLAY_SETTINGS_MASK dependence and returns effective mask 484 484 if effectiveMask parameter is reset, method returns nominal mask set by the Camera 485 485 */ 486 486 ImplicitBufferAttachmentMask getImplicitBufferAttachmentResolveMask(bool effectiveMask = false) const 487 { 487 { 488 488 if( effectiveMask && _implicitBufferAttachmentResolveMask == USE_DISPLAY_SETTINGS_MASK ) 489 489 {
