Re: Changing frame buffer configuration in real time (once more !)

New Message Reply Date view Thread view Subject view Author view

PHILIPPE.P.P.POUTIGNAT++at++TTS.thomson.fr
19 Nov 1997 17:50:23 +0000


Joaquin Casillas Melendez wrote :

>Yes, you will have to use multiple framebuffer configurations and attach
>them to a pfList. I tried it some time ago without success. The manual
>describes several *standard* examples for setting up a multiple FB
>configuration, but nothing about configuring it in your own. It's easy
>in gl, but in OpenGL...

OK, that's it !
After one day of tries, errors and guesses, I managed to have one pfWindow with
multiple frame buffer configurations working together !
There are several problems why Joaquin didn't manage to :
- the first one is the man page for pfWindow which isn't useful and up to date :
  for example, the token PFWIN_SHARE_STATE page 8 must be replaced with the token
PFWIN_SHARE_STATE_BIT if you don't want to have the same GL context in your other
drawable (take a look at /usr/include/Performer/pr.h). The descriptions of pfWinList
and pfWinIndex aren't very clear and don't tell about pfWinShare which must be called
to work.
- the second problem is the insight documentation (Performer Programmer's Guide)
which is giving you only the example 14-4 of an overlay alternate window, and this
example wouldn't work at it is written, since the call to pfWinOverlayWin is missing
(only in the documentation, not in the source file).
- the third point is that pfWinIndex and pfSelectWin don't work accordingly with an
overlay window or with an custom alternate window, and I think it's a pfBug.
In the case of an overlay window, you just have to call pfWinIndex() and
pfSelectWin() on the primary pfWindow that you have created to see the overlay
window.
In the case of an alternate custom pfWindow, it isn't working and you must call
explicitely pfSelectWin on the second pfWindow that you have created and hooked to
the primary pfWindow. If not, only the informations on the current pfWindow are
changed, but not the GL context, as you can see with a call to glGet() for example.

Thank you to Sharon, our pfWindows guru, to confirm this fact.

Cheers.

-----Philippe Poutignat
-----ZA Les Boutries
-----THOMSON TRAINING & SIMULATION
-----78703 Conflans Sainte Honorine
-----FRANCE

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:13 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.