VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtDrawFBOCallback.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <osg/Camera>
15 #include <osg/FrameBufferObject>
16 
17 namespace osg
18 {
19  class RenderInfo;
20 }
21 
22 namespace makVrv
23 {
24  struct PreDrawFBOCallback : public osg::Camera::DrawCallback
25  {
27  PreDrawFBOCallback( osg::FrameBufferObject* fbo);
28 
30  virtual void operator () (osg::RenderInfo& renderInfo) const;
31 
33  void enableBindFbo(bool bind);
34 
35  private:
36  osg::ref_ptr<osg::FrameBufferObject> mySharedFbo;
38  };
39 
40 
41  struct PostDrawFBOCallback : public osg::Camera::DrawCallback
42  {
45 
47  virtual void operator () (osg::RenderInfo& renderInfo) const;
48 
50  void setRestoreDrawBuffer(GLenum bufferAttachment);
51 
53  void setRestoreReadBuffer(GLenum bufferAttachment);
54 
56  void enableUnbindFbo(bool unbind);
57  private:
61  };
62 
63 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)