-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathglCapsViewer.h
87 lines (82 loc) · 2.48 KB
/
glCapsViewer.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
*
* OpenGL hardware capability viewer and database
*
* Main window class
*
* 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.
*
*/
#ifndef GLCAPSVIEWER_H
#define GLCAPSVIEWER_H
#include <QtWidgets/QMainWindow>
#include <QNetworkReply>
#include "ui_glCapsViewer.h"
#include "glCapsViewerCore.h"
#include "settings.h"
#include <QStandardItemModel>
#include <QStandardItem>
#include <treeproxyfilter.h>
class glCapsViewer : public QMainWindow
{
Q_OBJECT
public:
glCapsViewer(QWidget *parent = 0);
~glCapsViewer();
Ui::glcapsviewerClass ui;
glCapsViewerCore core;
GLFWwindow* window;
void updateReportState();
void generateReport();
bool contextTypeSelection();
private:
QNetworkAccessManager* nam;
capsViewer::settings appSettings;
struct
TreeProxyFilter extensionFilterProxy;
QStandardItemModel extensionTreeModel;
TreeProxyFilter implementationFilterProxy;
QStandardItemModel implementationTreeModel;
TreeProxyFilter texFormatFilterProxy;
QStandardItemModel texFormatListModel;
TreeProxyFilter SPIRVextensionFilterProxy;
QStandardItemModel SPIRVextensionTreeModel;
bool canUpdateReport(int reportId);
void refreshDeviceList();
void displayCapabilities();
void displayExtensions();
void displayCompressedFormats();
void displayInternalFormatInfo();
void displaySPIRVextensions();
private slots:
void slotRefreshReport();
void slotClose();
void slotExportXml();
void slotBrowseDatabase();
void slotShowDeviceOnline();
void slotAbout();
void slotSettings();
void slotUpload();
void slotRefreshDatabase();
void slotDatabaseDevicesItemChanged();
void slotDeviceVersionChanged(int index);
void slotTabChanged(int index);
void slotFilterExtensions(QString text);
void slotFilterSPIRVExtensions(QString text);
void slotFilterImplementation(QString text);
void slotFilterTextureFormats(QString text);
};
#endif // GLCAPSVIEWER_H
;