Is it possible to hack GTK to render to OpenGL texture -
i'm writing opengl game, , want native looking gui elements. wondering if has hacked gtk+ using gtkoffscreenwindow
, gtk_offscreen_window_get_pixbuf
render opengl texture, , whether have reasonable performance, considering repeated re-uploading of texture data every time gui updated
while possible, i'd instead use real opengl widget toolkit clutter. if want render gtk+ opengl, i'd start creating new gdk backend (x11/opengl or that), (re-)implements gdk drawing functions using opengl. nice side effect be, gtk+ windows allow ordinary opengl rendering, too, i.e. no more need gtkglwidget class.
Comments
Post a Comment