equal
deleted
inserted
replaced
79 QEglContext(); |
79 QEglContext(); |
80 ~QEglContext(); |
80 ~QEglContext(); |
81 |
81 |
82 bool isValid() const; |
82 bool isValid() const; |
83 bool isCurrent() const; |
83 bool isCurrent() const; |
|
84 bool isSharing() const { return sharing; } |
84 |
85 |
85 QEgl::API api() const { return apiType; } |
86 QEgl::API api() const { return apiType; } |
86 void setApi(QEgl::API api) { apiType = api; } |
87 void setApi(QEgl::API api) { apiType = api; } |
87 |
88 |
88 bool openDisplay(QPaintDevice *device); |
89 bool openDisplay(QPaintDevice *device); |
130 EGLContext ctx; |
131 EGLContext ctx; |
131 EGLConfig cfg; |
132 EGLConfig cfg; |
132 EGLSurface currentSurface; |
133 EGLSurface currentSurface; |
133 bool current; |
134 bool current; |
134 bool ownsContext; |
135 bool ownsContext; |
|
136 bool sharing; |
135 |
137 |
136 static EGLDisplay getDisplay(QPaintDevice *device); |
138 static EGLDisplay getDisplay(QPaintDevice *device); |
137 |
139 |
138 static QEglContext *currentContext(QEgl::API api); |
140 static QEglContext *currentContext(QEgl::API api); |
139 static void setCurrentContext(QEgl::API api, QEglContext *context); |
141 static void setCurrentContext(QEgl::API api, QEglContext *context); |