Le lundi 29 novembre 2004 Ã 17:19 +0100, [EMAIL PROTECTED] a Ãcrit :
> Hi,
> I'm trying to use gtkglarea, I don't know if the gtk-list deals with it
> cause it is not a regular GtkWidget.
> 
> I don't know how to activate the depth buffer and more generally
> how should I write the "attrs" in gtk_gl_area_new(attrs) :
> is it an array of GDK_GL_params or an array of couple
> (GDK_GL_param, value) ?

GtkGLArea is not maintained AFAIK, you should better use GtkGLExt unless
you want to use gtk+-1.

Otherwise, you can use something as:

        static int attrlist[] = {
                GDK_GL_RGBA,
                GDK_GL_BUFFER_SIZE,1,
                GDK_GL_RED_SIZE,1,
                GDK_GL_GREEN_SIZE,1,
                GDK_GL_BLUE_SIZE,1,
                GDK_GL_DEPTH_SIZE,1,
                GDK_GL_DOUBLEBUFFER,
                GDK_GL_NONE
        };

...

widget = GTK_WIDGET (gtk_gl_area_new (attrlist));

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to