Re: [GtkGLExt] from glut to gtkglext



Am Freitag, den 28.04.2006, 11:16 +0100 schrieb ivan danicic:

> Hello  All, I am trying to learn gtk..., so here is a really stupid question:
> Is there an equivalent of glutdisplayfunc? Is there something like a display 
> function? In my program I am trying to get it to re-display the window 
> contents. Any comments gratefully received.

As a general rule of thumb...

	on_realize() do you inital OpenGL setup and stuff
	on_configure() do you resize and glViewport()
	on_expose() do all your frame-by-frame drawing

Best regards...

MacSlow

-- 
email - macslow bangang de
www - http://macslow.thepimp.net
lowfat - http://macslow.thepimp.net/sponsor-it




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