README: add render context gtk example
This commit is contained in:
parent
3c21d679da
commit
fc775920de
1 changed files with 11 additions and 4 deletions
15
README.rst
15
README.rst
|
|
@ -231,14 +231,21 @@ PyGObject embedding
|
||||||
application = MainClass()
|
application = MainClass()
|
||||||
Gtk.main()
|
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
|
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.
|
<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
|
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.
|
<https://gist.github.com/trin94/a930f2a13cee1c9fd21cab0393bf4663>`__ through this python API.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue