QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qtscriptshell_QGLContext.h
Go to the documentation of this file.
1 #ifndef QTSCRIPTSHELL_QGLCONTEXT_H
2 #define QTSCRIPTSHELL_QGLCONTEXT_H
3 
4 #include <qgl.h>
5 
6 #include <QtScript/qscriptvalue.h>
7 
8 class QtScriptShell_QGLContext : public QGLContext
9 {
10 public:
11  QtScriptShell_QGLContext(const QGLFormat& format);
12  QtScriptShell_QGLContext(const QGLFormat& format, QPaintDevice* device);
14 
15  bool chooseContext(const QGLContext* shareContext = 0);
16  bool create(const QGLContext* shareContext = 0);
17  void doneCurrent();
18  void makeCurrent();
19  void swapBuffers() const;
20 
21  QScriptValue __qtscript_self;
22 };
23 
24 #endif // QTSCRIPTSHELL_QGLCONTEXT_H