| 57 | ); |
| 58 | |
| 59 | class ImageWidget : public QGLWidget |
| 60 | { |
| 61 | Q_OBJECT |
| 62 | |
| 63 | public: |
| 64 | ImageWidget(QString fileName, QWidget *parent = 0); |
| 65 | ~ImageWidget(); |
| 66 | |
| 67 | void initializeGL(); |
| 68 | void resizeGL(int width, int height); |
| 69 | void paintGL(); |
| 70 | |
| 71 | private: |
| 72 | QImage qt_image_; |
| 73 | compute::context context_; |
| 74 | compute::command_queue queue_; |
| 75 | compute::program program_; |
| 76 | compute::image2d image_; |
| 77 | compute::image_sampler sampler_; |
| 78 | GLuint gl_texture_; |
| 79 | compute::opengl_texture cl_texture_; |
| 80 | }; |
| 81 | |
| 82 | ImageWidget::ImageWidget(QString fileName, QWidget *parent) |
| 83 | : QGLWidget(parent), |
nothing calls this directly
no outgoing calls
no test coverage detected