CG_Labs  2020.0
GLStateInspection.h
Go to the documentation of this file.
1 /*
2  * GL state inspection
3  */
4 
5 #pragma once
6 #include <string>
7 #include <vector>
8 #include "BuildSettings.h"
9 
10 namespace GLStateInspection {
11 
12 void Init();
13 void Destroy();
14 void CaptureSnapshot(std::string uniqueIdentifier);
15 bool ToString(std::ostream &os, std::string uniqueIdentifier);
16 bool ToString(std::ostream &os, int index);
17 int SnapshotCount();
18 void GetIdentifiers(std::vector<std::string> &list);
19 
20 };
21 
22 #if defined ENABLE_GL_STATE_INSPECTION && ENABLE_GL_STATE_INSPECTION != 0
23  #define INSPECT_GL_STATE(a) GLStateInspection::CaptureSnapshot(a)
24 #else
25  #define INSPECT_GL_STATE(a)
26 #endif
GLStateInspection::GetIdentifiers
void GetIdentifiers(std::vector< std::string > &list)
Definition: GLStateInspection.cpp:269
GLStateInspection::Destroy
void Destroy()
Definition: GLStateInspection.cpp:69
BuildSettings.h
GLStateInspection
Definition: GLStateInspection.cpp:11
GLStateInspection::CaptureSnapshot
void CaptureSnapshot(std::string uniqueIdentifier)
Definition: GLStateInspection.cpp:77
GLStateInspection::ToString
bool ToString(std::ostream &os, std::string uniqueIdentifier)
Definition: GLStateInspection.cpp:146
GLStateInspection::SnapshotCount
int SnapshotCount()
Definition: GLStateInspection.cpp:262
GLStateInspection::Init
void Init()
Definition: GLStateInspection.cpp:65