ComputerGraphik TU WIEN
debug.hpp
Go to the documentation of this file.
1 #ifndef DEBUG_HPP
2 #define DEBUG_HPP
3 
4 #include <string>
5 
6 class Scene;
7 class Shader;
8 class Texture;
9 
11 class Debug {
12 public:
13  Debug(Scene* scene, const char* windowTitle);
14  ~Debug();
15 
16  void update(double time, double deltaT);
17 
18  static void enableWindowsDebug();
19 
20 private:
22 
23  size_t frameCount;
24  double minDeltaT;
25  double maxDeltaT;
26  double lastTime;
27  double lastKeyTime;
28  double lastTitleTime;
29 
35  std::string windowTitle;
36 };
37 
38 #endif //DEBUG_HPP
double minDeltaT
Definition: debug.hpp:24
double lastTitleTime
Definition: debug.hpp:28
void update(double time, double deltaT)
Definition: debug.cpp:53
bool frameTimeOn
Definition: debug.hpp:32
int minFilterMode
Definition: debug.hpp:30
~Debug()
Definition: debug.cpp:47
bool wireFrameOn
Definition: debug.hpp:33
std::string windowTitle
Definition: debug.hpp:35
Encapsulates the Rendering Engine, holds a complete scene and it's assets.
Definition: scene.hpp:71
static void enableWindowsDebug()
Definition: debug.cpp:597
Debug(Scene *scene, const char *windowTitle)
Definition: debug.cpp:29
Encapsulates a texture in the GPU.
Definition: texture.hpp:10
size_t frameCount
Definition: debug.hpp:23
double lastKeyTime
Definition: debug.hpp:27
double maxDeltaT
Definition: debug.hpp:25
Encapsulates a shader program.
Definition: shader.hpp:9
double lastTime
Definition: debug.hpp:26
Scene * scene
Definition: debug.hpp:21
The switches to experiment OpenGL performance and quality are implemented here.
Definition: debug.hpp:11
bool transparencyOn
Definition: debug.hpp:34
int magFilterMode
Definition: debug.hpp:31