[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Single Page

Top Document: SGI performer Frequently Asked Questions (FAQ)
Previous Document: -22- Guaranteeing Real Time performance
Next Document: -24- How do I overlay graphics on top of my Performer scene?


-23- How do I make GL calls from within a IRIS Performer program?


Date: 26 Oct 93 00:00:01 EST

  GL calls can only be made from a process that has a GL context.  In
  multi-process Performer applications only the draw process has GL
  context, so you must make your GL calls in a function called in the
  draw process.

  The pipe initialization callback, draw function callback, and node
  draw callbacks are all executed in the draw process.

  In an application that only will ever run single-process, GL calls
  can be made from anywhere in the program, but this is considered a
  dangerous practice.

  To set up a pipe initialization callback, see the pfInitPipe()
  manpage.  To set up a draw function callback, see the
  pfChanDrawFunc() manpage.  To set up a node draw callback, see the
  pfNodeTravFuncs() manpage.



Top Document: SGI performer Frequently Asked Questions (FAQ)
Previous Document: -22- Guaranteeing Real Time performance
Next Document: -24- How do I overlay graphics on top of my Performer scene?

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 October 22 2009 @ 05:34 AM

Some parts © 2009 Advameg, Inc.