Sharon Fischler (srf++at++rose)
Fri, 8 Oct 1993 15:22:50 -0700
Draw your static info in the overlay planes and ONLY redraw it
when the window receives a REDRAW event (moved, resized, etc.).
Changing between drawing to the overlays and drawing to regular
bitplanes takes a big hit.
For things that need to be updated real-time,
you can set
zfunction(ZF_ALWAYS);
zwritemask(0x0);
draw stuff
zfunction(ZF_LEQUAL);
zwritemask(0xffffffff);
If you have a whole lot of stuff to draw, then it might
faster to just turn off zbuffer but I would think
that most HUDs aren't that dense.
you also want to disable fog BEFORE you change the
projection matrix (ortho2).
srf.
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Sharon Rose Fischler - Silicon Graphics, Advanced Graphics Development srf++at++sgi.com (415) 390 - 1002 MS 7L-590 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:03 PDT