summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellowindow
Commit message (Collapse)AuthorAgeFilesLines
* Added workable QScreen API on top of QPlatformScreen.Samuel Rødal2011-07-251-1/+3
| | | | | | | | | | | | | | | | | | | | | QPlatformIntegration::screens() no longer has to be implemented, implementations should call QPlatformIntegration::screenAdded() for each screen instead. This is for being able to support adding screens at run-time later on, by connecting it to a signal in QGuiApplication. The QGuiGLContext API has changed a bit, by not sending in all the parameters in the constructor but instead having a create() function. The createPlatformGLContext() factory in QPlatformIntegration takes a QGuiGLContext * instead of a QSurfaceFormat and a share context, similar to how the window and backing store factory functions work. The XCB plugin has experimental support for connecting to multiple X displays simultaneously, creating one or more QScreen for each. Change-Id: I248a22a4fd3481280710110272c04a30a8021e8f Reviewed-on: http://codereview.qt.nokia.com/2103 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Reintroduce QWindow::SurfaceTypeMorten Sorvig2011-06-221-0/+1
| | | | | | | On Cocoa it makes sense to distinguish between the two window types. Reviewed-by: Samuel
* OpenGL API refactor.Samuel Rødal2011-06-212-10/+9
| | | | | | Rename QGuiGLFormat to QSurfaceFormat, and make QWindow sub-class of QSurface and QPlatformWindow sub-class of QPlatformSurface, instead of having QPlatformGLSurface accessor in QWindow.
* Make glx wayland backends working.Laszlo Agocs2011-06-201-2/+1
|
* QWindowContext / QWindowFormat refactor.Samuel Rødal2011-06-103-52/+85
| | | | | | | | | | | | | To enable having a single GL context used for multiple drawables we need to de-couple the context class a bit more from the window class in the plugin API. Now contexts are created stand-alone based on a GL format and a share context, and when calling makeCurrent() a desired surface is specified. This maps well to GLX, EGL, Cocoa, AGL, and WGL, which all support this use case. QWindowContext is renamed to QGuiGLContext, and QWindowFormat is renamed to QGuiGLFormat. We have the ability to introduce a pbuffer or similar other offscreen GL drawable abstraction in the future.
* fix pro filesLars Knoll2011-05-071-1/+1
| | | | all examples compile again
* Implemented close event for QWindow and QWidgetWindow.Samuel Rødal2011-05-021-0/+3
|
* Set the window title even if it was set before calling create().Samuel Rødal2011-05-021-0/+1
|
* Add resize event support to QWindow.Samuel Rødal2011-04-282-0/+8
| | | | (cherry picked from commit 12b4e7e5a2b18cdd23f540821e1f2785f62b0b9a)
* Remove unused parameters in hellowindow.Samuel Rødal2011-04-282-8/+1
| | | | (cherry picked from commit 3d7f0d967ca1e7e76087d84efc67f5247b72dae6)
* Added QWindow example in examples/opengl/hellowindow.Samuel Rødal2011-04-284-0/+330
(cherry picked from commit 712f5fe0acc7ef73117151cd8206a0d4f5d01428)