MCPcopy Create free account
hub / github.com/boostorg/compute / ImageWidget

Class ImageWidget

example/resize_image.cpp:59–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57);
58
59class ImageWidget : public QGLWidget
60{
61 Q_OBJECT
62
63public:
64 ImageWidget(QString fileName, QWidget *parent = 0);
65 ~ImageWidget();
66
67 void initializeGL();
68 void resizeGL(int width, int height);
69 void paintGL();
70
71private:
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
82ImageWidget::ImageWidget(QString fileName, QWidget *parent)
83 : QGLWidget(parent),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected