Reputation: 3032
I am using `QGLWidget and OpenCL. To set the CL-GL interoperation I need
HGLRC glContext
HDC deviceGLContext
How to get it using Qt?
Upvotes: 0
Views: 592
Reputation: 3965
You can select the QGLWidget
for current OpenGL operations with QGLWidget::makeCurrent()
and then retrieve current HGLRC
and HDC
with wglGetCurrentContext
and wglGetCurrentDC
, respectively.
Upvotes: 2