Up: SGI performer Frequently Asked Questions (FAQ)
Next: -15- How do I overlay graphics on top of my Performer scene?
Previous: -13- Guaranteeing Real Time performance
Subject:   -14- How do I make GL calls from within a IRIS Performer
                program?
Date: 26 Oct 1993 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.

  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.

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