VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtImGuiHelper.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #include <vrvOsg/vrvOsg.h>
11 
12 #include <osg/Texture>
13 
14 #include <string>
15 
16 namespace osg
17 {
18  class State;
19  class Group;
20  class TextureObjectManager;
21  class RenderInfo;
22 }
23 
24 namespace osgViewer
25 {
26  class CompositeViewer;
27 }
28 
29 
30 namespace makVrv
31 {
32  class DtImGuiLoaderStatsData;
33  class DtDe;
34  class DtOsgRenderer;
35 
37  {
38  public:
40  DtImguiHelper(DtDe& de);
41 
43  virtual ~DtImguiHelper();
44 
46  DtImguiHelper() = delete;
47 
49  DtImguiHelper(const DtImguiHelper& rhs) = delete;
50 
52  DtImguiHelper& operator=(const DtImguiHelper& rhs) = delete;
53 
54  public:
56  virtual void releaseResources(osg::State* state);
57 
59  virtual void updateLoaderStats(DtOsgRenderer& renderer,
60  const osg::ref_ptr<osg::Group>& renderRoot,
61  osgViewer::CompositeViewer& viewer, osg::TextureObjectManager* tom);
62 
64  virtual DtImGuiLoaderStatsData* loaderStatsData(void);
65 
67  virtual void createProfilerUI(osg::RenderInfo& renderInfo, unsigned int state);
68 
70  virtual int numMultiSamples();
71 
74  virtual void addTextureEntry(const std::string &sharedPath, const std::string &name
75  , const osg::Texture * osgTexture, const osg::Texture::TextureObject * osgTextureObject);
76 
79  virtual void addTextureEntry(const std::string& sharedPath, const std::string& name
80  , int refCount, unsigned int textureId);
81 
82  protected:
84  virtual void addTextureEntry(const std::string& sharedPath, const std::string& name, int refCount
85  , int textureID
86  , int textureWidth, int textureHeight
87  , int textureSize
88  , int internalFormat);
89 
90  protected:
98  };
99 
100 }
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
The DtOsgRenderer is the component responsible for rendering 3D images onto the screen via OpenSceneG...
Definition: DtOsgRenderer.h:87
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Definition: DtImGuiHelper.h:36
class that gathers per frame stats and puts up UI
Definition: DtImGuiLoaderStatsData.h:43
int myNumMultiSamples
Definition: DtImGuiHelper.h:93
bool myMultiSampleOverriden
Definition: DtImGuiHelper.h:96
Contains DLL export macros.
DtImGuiLoaderStatsData * myLoaderStatsData
data for the loader stats ui
Definition: DtImGuiHelper.h:92
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
DtDe & myDe
Definition: DtImGuiHelper.h:97
int mySwapInterval
used for VSync setting
Definition: DtImGuiHelper.h:95

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)