VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGlDebugGroup.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 #pragma once
6 
10 
12 #include <vrvUtil/DtProfiler.h>
13 
14 #ifdef TRACY_ENABLE
15 #define TRACY_ON_DEMAND
16 #include <TracyClient/TracyOpenGL.hpp>
17 #define DtGlScopedDebugGroup(id, name) TracyGpuZone(name, makVrv::DtProfileManager::collectTracyGpuStats()); DtGlScopedDebugGroup_ objName##line(id, name);
18 #define DtGlTimedZone( name) TracyGpuZone(name, makVrv::DtProfileManager::collectTracyGpuStats());
19 #define DtGlScopedDebugGroupC(id, name, color) TracyGpuZoneC(name,color, makVrv::DtProfileManager::collectTracyGpuStats()); DtGlScopedDebugGroup_ objName##line(id, name);
20 #define DtProfileGpuCollect TracyGpuCollect
21 #define DtProfileGpuCreateContext TracyGpuContext
22 
23 #else
24 
25 #define DtGlScopedDebugGroup(id, name) DtGlScopedDebugGroup_ objName##line(id, name);
26 #define DtGlScopedDebugGroupC(id, name, color) DtGlScopedDebugGroup_ objName##line(id, name);
27 #define DtGlTimedZone( name) ;
28 #define DtProfileGpuCollect
29 #define DtProfileGpuCreateContext
30 
31 #endif
32 
33 #include <string>
34 
35 namespace makVrv
36 {
38  {
39  public:
40  static bool debuggingEnabled(void);
41  static void setDebuggingEnabled(bool val);
42  protected:
43  static bool theDebuggingEnabled;
44  };
45 //
46 
48  {
49  public:
50  DtGlScopedDebugGroup_(unsigned int id, const char* message);
51  virtual ~DtGlScopedDebugGroup_();
52 
53 
54  protected:
56  };
57 
59  {
60  public:
61  DtGlDebugGroup(unsigned int id, const char* message);
62  virtual ~DtGlDebugGroup();
63 
64  virtual void setId(unsigned int id);
65  virtual unsigned int id(void) const;
66 
67  virtual void setMessage(const char* message);
68  virtual const std::string& message(void) const;
69 
70  virtual void start(void);
71  virtual void stop(void);
72 
73  protected:
75  unsigned int myId;
76  std::string myMessage;
77 
78  };
79 
80 }
Dll export defines.
Definition: DtGlDebugGroup.h:58
unsigned int myId
Definition: DtGlDebugGroup.h:75
Definition: DtGlDebugGroup.h:37
static bool theDebuggingEnabled
Definition: DtGlDebugGroup.h:43
Definition: DtGlDebugGroup.h:47
Contains the classes allowing the profiler to work, DtProfileManager, DtProfileSample, and DtProfileIterator.
std::string myMessage
Definition: DtGlDebugGroup.h:76
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)