Something like
Qt Code:
#IFDEF Q_OS_WIN HGLRC rc = wglGetCurrentContext(); #ELSE GLXContext rc = glXGetCurrentContext(); #ENDIFTo copy to clipboard, switch view to plain text mode
in the intializeGL() or paintGL() methods of a QGLWidget will probably get the necessary rendering contexts. I've proved the Windows leg first with an OpenCascade OpenGL viewer - the alternate piece is the logical extension for X11.
Pete




Reply With Quote
Bookmarks