How to perform 2D drawing on top of 3D OpenGL scene

2006-02-09 Thread Douglas Vechinski
I'm writing a program using Gtk and GtkGLExt. I have a drawing area which is using OpenGL to display a scene. I receive mouse motion events to rotate, translate, zoom, on this scene. In the display window, I would also like to draw some primitives on top of the scene rendered by OpenGL. For

Re: How to perform 2D drawing on top of 3D OpenGL scene

2006-02-09 Thread Daniel Pekelharing
Hi, Are you sure it would be that hard to do in OpenGL? In my GtkGlExt based animation app (kudu.sourceforge.net) I have to draw a selection rectangle based on a mouse drag, which is essentially a 2D drawing over a 3D scene (including rotations and zooming), I simply switched to a orthographic