| 75 | ); |
| 76 | |
| 77 | class MandelbrotWidget : public QGLWidget |
| 78 | { |
| 79 | Q_OBJECT |
| 80 | |
| 81 | public: |
| 82 | MandelbrotWidget(QWidget *parent = 0); |
| 83 | ~MandelbrotWidget(); |
| 84 | |
| 85 | void initializeGL(); |
| 86 | void resizeGL(int width, int height); |
| 87 | void paintGL(); |
| 88 | void keyPressEvent(QKeyEvent* event); |
| 89 | |
| 90 | private: |
| 91 | compute::context context_; |
| 92 | compute::command_queue queue_; |
| 93 | compute::program program_; |
| 94 | GLuint gl_texture_; |
| 95 | compute::opengl_texture cl_texture_; |
| 96 | }; |
| 97 | |
| 98 | MandelbrotWidget::MandelbrotWidget(QWidget *parent) |
| 99 | : QGLWidget(parent) |
nothing calls this directly
no outgoing calls
no test coverage detected