From: Angus Dorbie (dorbie++at++sgi.com)
Date: 06/21/2001 10:06:13
You can just call the list in a draw callback to draw it, changing state
would be a bad thing unless you push and pop the state you use because
Performer likes to track the state in the OpenGL pipeline. You can
change state in the draw as long as you use performer calls & state to
do it, but you can't encapsulate those in an OpenGL display list.
The other option is to greate a pfGeoSet, and change the DrawMode of the
geoset to COMPILE_GL, this will tell Performer to draw that geostate
using a display list. Add that geoset to the scene graph or draw in in a
draw callback using it's methods.
Cheers,Angus.
Ictemo++at++aol.com wrote:
>
> Hi all,
> Do you know how to use opengl display lists in performer
> applications?
> Actually I am trying to overlay HUD on perfly sample
> program. However I could'nt find a way to use opengl
> display lists.
> Thank you very much for your help in advance.
>
> Ictem Ozkaya,
> Software Engineer
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
-- For Performer+OpenGL tutorials http://www.dorbie.com/"Whenever there is a conflict between human rights and property rights, human rights must prevail." --Abraham Lincoln
This archive was generated by hypermail 2b29 : Thu Jun 21 2001 - 10:03:54 PDT