blob: 163e56b9ac352a8799368f6da6cb9f6348857d1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#ifndef WGLWIDGET_H
#error "Do not include this file, include wglwidget.h instead"
#endif
#include <QGLWidget>
class WGLWidget : public QGLWidget {
public:
WGLWidget(QWidget* pParent);
bool isContextValid() const;
bool isContextSharing() const;
bool shouldRender() const;
void makeCurrentIfNeeded();
protected:
QPaintDevice* paintDevice() {
return this;
}
};
|