aboutsummaryrefslogtreecommitdiffstats
path: root/examples/opengl
Commit message (Collapse)AuthorAgeFilesLines
* opengl/contextinfo.py: Polish the example a bitFriedemann Kleint2019-05-031-44/+73
| | | | | | | | | | | | Bring it closer to the C++ counterpart: - Handle High DPI scaling - Add options to control the rendering - Describe the formats of the GL context and surface - Fix the comments in the shaders (otherwise, ANGLE complains) Task-number: PYSIDE-865 Change-Id: I2fa32aa67884a3b0a34805ddcf01040ac9fddf89 Reviewed-by: Christian Tismer <tismer@stackless.com>
* opengl/contextinfo.py: Fix exception on exitFriedemann Kleint2019-05-021-0/+4
| | | | | | | | | Stop the timer on hiding in exposeEvent(), fixing a warning about QOpenGLContext::makeCurrent() failing. Change-Id: Icaef927696e1c5ce6ea282a9ee3dfdb60968413a Fixes: PYSIDE-865 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Change example scripts permissions to 644Cristian Maureira-Fredes2018-12-128-8/+0
| | | | | | | | | | | There was a mix of 644 and 755, since we expect the users to execute: python example.py we do not need to have files with 755. Change-Id: Iba9b2f5dbb57fe2a3503d8dfe971a4e92e764022 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Simo Fält <simo.falt@qt.io>
* Fix shiboken2 module import from exampleCristian Maureira-Fredes2018-12-051-1/+1
| | | | | | Change-Id: If2783d4796dced281a5f90c3847ac105860f1807 Fixes: PYSIDE-866 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Remove semicolon from examplesCristian Maureira-Fredes2018-06-181-26/+26
| | | | | | Task-number: PYSIDE-712 Change-Id: Ib91e4fec88bdb7146e54c285c7f4da60deecb6cf Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Change license from all the filesCristian Maureira-Fredes2018-05-039-9/+9
| | | | | | | | | | | | | | | | | Removing the word 'project' from all the headers, and changing the PySide reference from the examples to Qt for Python: The following line was used inside the source/ and build_scripts/ directory: for i in $(grep -r "the Qt for Python project" * |grep -v "pyside2-tools" | awk '{print $1}' | sed 's/:.*//g');do sed -i 's/the\ Qt\ for\ Python\ project/Qt\ for\ Python/g' $i;done and the following line was used inside the examples/ directory: for i in $(grep -r "of the PySide" * |grep -v "pyside2-tools" | awk '{print $1}' | sed 's/:.*//g');do sed -i 's/of\ the\ PySide/of\ the\ Qt\ for\ Python/g' $i;done Change-Id: Ic480714686ad62ac4d81c670f87f1c2033d4ffa1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Port OpenGL hellogl2 example which uses shadersAlexandru Croitor2018-01-151-0/+473
| | | | | Change-Id: I77ecf92e32ec1177f008b98c44b56567c3b11696 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Move examples from submodule to pyside-setupFriedemann Kleint2018-01-1215-0/+2767
Move PySide2 examples that are owned by the Qt Company to a new examples directory. Done-with: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Task-number: PYSIDE-363 Change-Id: I14099764d9eef2bc35e067086121427955862e3a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>