Re: GtkGLArea

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le lundi 29 novembre 2004 Ã 17:19 +0100, sinsedrix@xxxxxxxx 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@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux