VR-Forces 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) 2026 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:
39 
40  static const int theGraphEntries = 180;
41 
42  public:
44  DtImguiHelper(DtDe& de);
45 
47  virtual ~DtImguiHelper();
48 
50  DtImguiHelper() = delete;
51 
53  DtImguiHelper(const DtImguiHelper& rhs) = delete;
54 
56  DtImguiHelper& operator=(const DtImguiHelper& rhs) = delete;
57 
58  public:
60  virtual void releaseResources(osg::State* state);
61 
63  virtual void updateLoaderStats(DtOsgRenderer& renderer,
64  const osg::ref_ptr<osg::Group>& renderRoot,
65  osgViewer::CompositeViewer& viewer);
66 
68  virtual DtImGuiLoaderStatsData* loaderStatsData(void);
69 
71  virtual void createProfilerUI(osg::RenderInfo& renderInfo, unsigned int state);
72 
74  virtual int numMultiSamples();
75 
78  virtual void addTextureEntry(const std::string &sharedPath, const std::string &name
79  , const osg::Texture * osgTexture, const osg::Texture::TextureObject * osgTextureObject);
80 
83  virtual void addTextureEntry(const std::string& sharedPath, const std::string& name
84  , int refCount, unsigned int textureId);
85 
86  protected:
88  virtual void addTextureEntry(const std::string& sharedPath, const std::string& name, int refCount
89  , int textureID
90  , int textureWidth, int textureHeight
91  , int textureSize
92  , int internalFormat);
93 
96  virtual void drawBackgroundLoaderStats();
97 
98  protected:
105 
107  float myForegroundTimeHistoryMs[theGraphEntries];
110 
112  };
113 
114 }
The DtOsgRenderer is the component responsible for rendering 3D images onto the screen via OpenSceneG...
Definition: DtOsgRenderer.h:92
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Definition: DtImGuiHelper.h:36
float myForegroundTimePeakMs
Definition: DtImGuiHelper.h:109
class that gathers per frame stats and puts up UI
Definition: DtImGuiLoaderStatsData.h:45
int myNumMultiSamples
Definition: DtImGuiHelper.h:101
int myForegroundTimeHistoryOffset
Definition: DtImGuiHelper.h:108
bool myShowBackgroundLoaderStats
Definition: DtImGuiHelper.h:106
bool myMultiSampleOverriden
Definition: DtImGuiHelper.h:104
Contains DLL export macros.
DtImGuiLoaderStatsData * myLoaderStatsData
data for the loader stats ui
Definition: DtImGuiHelper.h:100
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:76
DtDe & myDe
Definition: DtImGuiHelper.h:111
int mySwapInterval
used for VSync setting
Definition: DtImGuiHelper.h:103

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)