Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

SGI performer Frequently Asked Questions (FAQ)
Section - -24- How do I overlay graphics on top of my Performer scene?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Airports ]


Top Document: SGI performer Frequently Asked Questions (FAQ)
Previous Document: -23- How do I make GL calls from within a IRIS Performer program?
Next Document: -25- What is the difference between phases FREE, FLOAT, and LOCK?
See reader questions & answers on this topic! - Help others by sharing your knowledge

  Typically this is done to implement a heads-up display (HUD).

  In the draw function callback, the basic algorithm is:

  	save state with pfPushState()
  	disable textures, fog, & lighting with pfBasicState()
  	save & clear projection matrix
  	ortho2()
  	save & clear modelling matrix
  	draw()
  	restore modelling matrix
  	restore projection matrix
  	restore state with pfPopState()

  Or, you can 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, draw() would consist
  of:

          zfunction(ZF_ALWAYS);
          zwritemask(0x0);
  	draw HUD stuff
          zfunction(ZF_LEQUAL);
          zwritemask(0xffffffff);

User Contributions:

Comment about this article, ask questions, or add new information about this topic:




Top Document: SGI performer Frequently Asked Questions (FAQ)
Previous Document: -23- How do I make GL calls from within a IRIS Performer program?
Next Document: -25- What is the difference between phases FREE, FLOAT, and LOCK?

Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
sgi-faq@viz.tamu.edu (The SGI FAQ group)





Last Update March 27 2014 @ 02:12 PM