Re: OpenGL Zoom / Pan

2006-02-23 Thread Philippe CHAUVAT
scale unchanged but adjust the projection mapping as in glOrtho(). To zoom in, you decrease the size of the x and y bounds of the viewing volume according to your scale factor. On Wed, 2006-02-22 at 19:28 +0100, Philippe CHAUVAT wrote: A little bit out of the list themas... but I wrote some program

OpenGL Zoom / Pan

2006-02-22 Thread Philippe CHAUVAT
A little bit out of the list themas... but I wrote some program with gtkglext and would like to do some Zoom, Pan, Rotate things with mouse and/or keyboard. Does anyone know where to find some sample or tutorial about this ? Thanks in advance. Philippe _

Re: Resize Event

2006-02-09 Thread Philippe CHAUVAT
Thanks to all Philippe Axel Simon a écrit : On Thu, 2006-02-09 at 15:14 +0100, Philippe CHAUVAT wrote: Hello Yeti, IIUC you are looking for "size-allocate"; "size-request" is emitted when widget is asked for preferred size, but "size-allocate" when it's told

Re: Resize Event

2006-02-09 Thread Philippe CHAUVAT
Hello Yeti, IIUC you are looking for "size-allocate"; "size-request" is emitted when widget is asked for preferred size, but "size-allocate" when it's told the actual allocation. When I follow those steps: - maximize the window: size_request and size_allocate are both called - then reduce the w

Resize Event

2006-02-09 Thread Philippe CHAUVAT
Hello the list, I wrote a program (Win32, VC++, Gtk2.8.10rc1, GLADE) which is describe like the following tree: - Window - Vbox - ScrolledWindow - Viewport - DrawingArea with GL support (gtk_widget_set_gl_capability func) => named D.A. - button - and other things I n