VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgFrameTextureBlitterManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 
15 
17 
18 #include <osg/observer_ptr>
19 #include <osg/Node>
20 #include <osg/Light>
21 
22 #include <matrix/vlVector.h>
23 
24 #include <boost/unordered_map.hpp>
25 
26 namespace osg
27 {
28  class Light;
29  class LightSource;
30  class State;
31  class StateSet;
32  class Matrixd;
33 }
34 
35 namespace makVrv
36 {
37  class DtGlRenderTexture;
38 
39  class DtGLDeleteObjectManager;
40 
41  class DtChannelManager;
42  class DtChannel;
43 
47  {
48  public:
51 
53  virtual void releaseGLObjects();
55  DtGlRenderTexture* updateAndGetDepthRenderTexture(osg::RenderInfo& renderInfo);
56 
58  static DtOsgFrameTextureBlitterManager& instance(DtDe& de);
59 
61  static const std::string& theClassName();
62 
64  virtual void slot_channelDestroyed(DtChannelManager* channelManager, DtChannel* channel);
65 
66  protected:
69 
72 
73  virtual void flushInvalidCameras(void);
74 
75  virtual void deleteRenderTextureForCamera(const osg::Camera* camera);
76 
77  protected:
79 
81 
83  {
85  virtual ~TextureAndFrame();
88  };
89  typedef std::map<osg::observer_ptr<const osg::Camera>, TextureAndFrame> CameraToRenderTextureMap;
91 
92  // For listening for channel creation
94  };
95 }
Manager to delete GLBuffer in the main thread.
Definition: DtGlDeleteObjectManager.h:33
DtDe & myDe
Definition: DtOsgFrameTextureBlitterManager.h:78
Virtual base class.
Definition: DtVirtualBaseClass.h:19
A helper classes for creating a RTT target, optionally including depth buffer.
Definition: DtGlRenderToTexture.h:31
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
int myFrameNumber
Definition: DtOsgFrameTextureBlitterManager.h:87
DtGLDeleteObjectManager & myGLManager
Definition: DtOsgFrameTextureBlitterManager.h:80
The abstract Channel Class.
Definition: DtChannel.h:30
Light class.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Definition: DtOsgFrameTextureBlitterManager.h:82
std::map< osg::observer_ptr< const osg::Camera >, TextureAndFrame > CameraToRenderTextureMap
Definition: DtOsgFrameTextureBlitterManager.h:89
Base class for handling DtChannels.
Definition: DtChannelManager.h:32
Base class to provide boost signal/slot management.
DtOsgFrameTextureBlitterManager responsible for copying depth buffer to render to target...
Definition: DtOsgFrameTextureBlitterManager.h:46
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
CameraToRenderTextureMap myDepthRenderTextureMap
Definition: DtOsgFrameTextureBlitterManager.h:90
Contains makVrv::DtOsgShaderManager class.
DtGlRenderTexture * myTexture
Definition: DtOsgFrameTextureBlitterManager.h:86
DtSignalConnectionManager myConnections
Definition: DtOsgFrameTextureBlitterManager.h:93

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)