summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2020-01-03 01:11:23 +0100
committerjaseg <code@jaseg.net>2020-01-03 01:11:23 +0100
commitfc775920def39309b1debedfb42045eacdb5db6d (patch)
tree5be1edce1d0419a8b79595e82821eb4a8dd0846e /README.rst
parent3c21d679da191f75e1fc929579a8454eeed039fd (diff)
downloadpython-mpv-fc775920def39309b1debedfb42045eacdb5db6d.tar.gz
python-mpv-fc775920def39309b1debedfb42045eacdb5db6d.tar.bz2
python-mpv-fc775920def39309b1debedfb42045eacdb5db6d.zip
README: add render context gtk example
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst15
1 files changed, 11 insertions, 4 deletions
diff --git a/README.rst b/README.rst
index 1d857b6..c78a196 100644
--- a/README.rst
+++ b/README.rst
@@ -231,14 +231,21 @@ PyGObject embedding
application = MainClass()
Gtk.main()
-Using OpenGL from PyQT
-......................
+Using OpenGL from PyGObject via new render context API
+......................................................
+
+Just like it is possible to render into a GTK widget through X11 windows, it `also is possible to render into a GTK
+widget using OpenGL <https://gist.github.com/jaseg/657e8ecca3267c0d82ec85d40f423caa>`__ through this python API.
+
+Using OpenGL via legacy opengl_cb backend from PyQT
+...................................................
Github user cosven_ has managed to `make mpv render into a Qt widget using OpenGL
<https://gist.github.com/cosven/b313de2acce1b7e15afda263779c0afc>`__ through this python API.
-Using OpenGL from PyGObject
-...........................
+Using OpenGL via legacy opengl_cb backend from PyGObject
+........................................................
+
Just like it is possible to render into a Qt widget, it `also is possible to render into a GTK widget
<https://gist.github.com/trin94/a930f2a13cee1c9fd21cab0393bf4663>`__ through this python API.