35 class ScopedGLContext;
38 explicit WindowQt( QScreen* screen );
41 void resizeEvent( QResizeEvent* event )
override;
42 void showEvent( QShowEvent* event )
override;
43 void exposeEvent( QExposeEvent* event )
override;
46 virtual void enterEvent( QEvent* event );
47 virtual void leaveEvent( QEvent* event );
86 inline ScopedGLContext activateScopedContext();
89 QOpenGLContext* context();
94 bool isOpenGlInitialized()
const {
return m_glInitialized.load(); }
103 void screenChanged();
106 void physicalDpiChanged( qreal dpi );
112 bool m_updatePending;
113 std::atomic_bool m_glInitialized;
116 void resizeInternal( QResizeEvent* event );
123 virtual bool initializeGL();
125 virtual void deinitializeGL();
127 virtual void resizeGL( QResizeEvent* event );
133 static glbinding::ProcAddress getProcAddress(
const char* name );
138 using QWindow::create;
140 static WindowQt* s_getProcAddressHelper;
141 int m_contextActivationCount { 0 };
143 QMetaObject::Connection m_screenObserver;