hhmmmm... Have you tried to compile the data points for the model (if they do not change vectors) somthing like this (from the log example): /* Forward "G". */ glNewList (LOGO_G_FORWARD, GL_COMPILE); glDisable (GL_CULL_FACE); glMaterialfv (GL_FRONT, GL_AMBIENT_AND_DIFFUSE, mat_blue); logo_draw_g_plane (); /* My user function that calls the actual gl* to draw */ glEnable (GL_CULL_FACE); glMaterialfv (GL_FRONT, GL_AMBIENT_AND_DIFFUSE, mat_black); logo_draw_i (); /* My user function that calls the actual gl* to draw */ glEndList (); Hope this helps, Shawn
> Date: Tue, 9 Feb 2010 17:15:24 +0000 > From: harg pml ac uk > To: gtkglext-list gnome org > Subject: [GtkGLExt] Is it possible to use overlays with gtkglextmm? > > Greetings, > > I have been writing, as my first significant project using OpenGL, a GUI > using gtkglextmm for viewing large datasets as a cloud of points. I have > some measuring tools that are currently rendered by drawing some of the > points and then the line or box of the tool while the user is dragging > the cursor. This works well with small datasets but gets sluggish with > the larger ones, particularly the ones that require caching. I would > like to use overlays as a conceptually and practically simple (I hope) > way of drawing the rulers (and so on) without having to redraw the > points each time. > > How do I do this while using gtkglextmm? I found the method > Gdk::GL::Config::get_layer_plane() but no other obvious things in the > documentation. Looking at an example using WGL, it appears I need to > create an "layer context" for the overlay, but I do not see how to do > that in gtkglextmm. Does it work in a similar way and, if so, how? > > Thanks in advance, > > Haraldur > > -------------------------------------------------------------------------------- > Plymouth Marine Laboratory > > Registered Office: > Prospect Place > The Hoe > Plymouth PL1 3DH > > Website: www.pml.ac.uk > Registered Charity No. 1091222 > PML is a company limited by guarantee > registered in England & Wales > company number 4178503 > > PML is a member of the Plymouth Marine Sciences Partnership > Website: www.pmsp.org.uk > -------------------------------------------------------------------------------- > This e-mail, its content and any file attachments are confidential. > > If you have received this e-mail in error please do not copy, disclose it to any third party or use the contents or attachments in any way. Please notify the sender by replying to this e-mail or e-mail forinfo pml ac uk and then delete the email without making any copies or using it in any other way. > > The content of this message may contain personal views which are not the views of Plymouth Marine Laboratory unless specifically stated. > > You are reminded that e-mail communications are not secure and may contain viruses. Plymouth Marine Laboratory accepts no liability for any loss or damage which may be caused by viruses. > -------------------------------------------------------------------------------- > _______________________________________________ > gtkglext-list mailing list > gtkglext-list gnome org > http://mail.gnome.org/mailman/listinfo/gtkglext-list |