Hi Vincent,
LE GARREC Vincent writes:
2) https://bugzilla.gnome.org/show_bug.cgi?id=689759
GtkGLArea cannot work properly with Broadway, because when you use Broadway, you don't have any X11/Win32 context at all. You're just drawing to a pixbuf rendered via a HTML5 canvas.
BTW, WebGL is the only well-known method to use OpenGL is a browser. But I don't see how it could be implemented in GTK+ (you'd have to generate WebGL client-side code on the fly... pure hell). So I'd classify this as NOTABUG personally ;-)
3) gcc -o glx glx.o `pkg-config --cflags --libs gtk+-3.0 gl` -lX11
Your code doesn't use GtkGLArea at all, but GLX ; so yes, it obviously is Unix-specific and needs X11. GtkGLArea was designed to avoid this, by using GLX on X11, and WGL on Windows, transparently.The only problem about my example is
that you need "-lX11" in gcc and the X11's lib is really difficult to
compile for Windows.
So if you'd use GtkGLArea, you'd have a single code and recompile it with no changes on Unix and Win32. That's the whole point of the library.
Regards,
Vincent LE GARREC
Regards,
Tarnyko
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list