1 #ifndef __RE_Visual_h__
2 #define __RE_Visual_h__
48 void deleteOpenGLDrawable(
52 void returnOpenGLDrawable(
60 void deleteQPainterDrawable(
64 void returnQPainterDrawable(
91 const QSurfaceFormat * getPixelFormat()
const;
92 static QOpenGLContext * getSharedGLContext();
93 static void initDefaultGLFormat();
97 static const char * glWidgetTag();
101 static const char * glWidgetWrapperTag();
104 static QWidget * ownerWindowWidget(QWidget *gl_widget);
108 bool canOpenGLDrawableSupportQuadBufferStereo(
110 bool canDrawableSupportQuadBufferStereo(
116 bool canSupportQuadBufferStereo(
OGLDrawable drawable);
121 void createSharedGLWidget_();
122 void testGLVersions_();
123 bool canCreateGLContext_(
124 int gl_major,
int gl_minor,
125 bool use_core_profile);
138 UT_Lock myQPainterDrawableLock;
151 QWidget *myStashWidget;
153 QSurfaceFormat * myPixelFormat;
==========================================================================
RE_DisplayMode getMode() const
Returns the display mode used for the request to create this visual.
Window drawable that uses only QPainter for the new UI path.
QOpenGLContext * RE_OGLContext