forked from SaschaWillems/glCapsViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglCapsViewerCore.h
64 lines (59 loc) · 1.73 KB
/
glCapsViewerCore.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
*
* OpenGL hardware capability viewer and database
*
* OpenGL capability viewer core
*
* Copyright (C) 2011-2015 by Sascha Willems (www.saschawillems.de)
*
* This code is free software, you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 3 as published by the Free Software Foundation.
*
* Please review the following information to ensure the GNU Lesser
* General Public License version 3 requirements will be met:
* http://opensource.org/licenses/lgpl-3.0.html
*
* The code is distributed WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU LGPL 3.0 for more details.
*
*/
#pragma once
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <map>
#include <capsGroup.h>
#include <internalFormatTarget.h>
using namespace std;
class glCapsViewerCore
{
private:
map<GLint, string> enumList;
public:
vector<string> availableContextTypes;
map<string, string> implementation;
vector<capsViewer::capsGroup> capgroups;
vector<string> extensions;
vector<string> osextensions;
vector<GLint> compressedFormats;
vector<capsViewer::internalFormatTarget> internalFormatTargets;
string description = "";
string submitter = "";
string comment = "";
string contextType = "";
string readOperatingSystem();
bool extensionSupported(string ext);
void clear();
void readImplementation();
void readCapabilities();
void readExtensions();
void readCompressedFormats();
void readInternalFormats();
void printExtensions();
void readOsExtensions();
bool loadEnumList();
string getEnumName(GLint glenum);
string reportToXml();
void exportXml(string fileName);
};