I’am migrating a program from Gtk2Hs (GTK2) to gi-gtk (GTK3) and can’t find how to draw on a GLArea (rendering OpenGL content) with cairo (additional informations).
In Gtk2Hs (GTK2) I used the function widgetGetDrawWindow on a GLDrawingArea. It gave me a DrawWindow on which I used renderWithDrawable.
Now, these functions seems to have disappeared and I’m a bit lost.
How do I draw with cairo on a gLArea using the gi-gtk API ?
Do you have an example even if it’s in another language than Haskell ?