pfPipeWindows and overlay

New Message Reply Date view Thread view Subject view Author view

From: Isabelle Lafon (isabelle++at++discreet.com)
Date: 11/07/2000 04:47:31


Hi, performer specialists,

I have a question regarding pfPipeWindow and overlay windows.

I have several pfPipeWindow all of them have the following type, mode
and share mode. All of them are attached to the same share group.

pwin_[idx]->setFBConfigAttrs( attrib );
pwin_[idx]->setWinType( PFPWIN_TYPE_X | PFPWIN_TYPE_SHARE |
                        PFPWIN_TYPE_NOXEVENTS | PFPWIN_TYPE_UNMANAGED );
pwin_[idx]->setMode( PFWIN_NOBORDER, true );
pwin_[idx]->setMode( PFWIN_ORIGIN_LL, true );
pwin_[idx]->setMode( PFWIN_HAS_OVERLAY, true );
pwin_[idx]->setShare( PFWIN_SHARE_WSWINDOW |
                      PFWIN_SHARE_TYPE |
                      PFWIN_SHARE_MODE |
                      PFWIN_SHARE_GL_OBJS
                      PFWIN_SHARE_FBCONFIG | PFWIN_SHARE_GL_CXT | PFWIN_SHARE_STATE );

My problem arise when I add an overlay window to these pfPipeWindows.

The overlay window is simply created by:
    overlay = new pfWindow();
    overlay->setWinType( PFWIN_TYPE_X | PFWIN_TYPE_OVERLAY );

Then added to the pfPipeWindows :
    pwin_[idx]->setMode( PFWIN_HAS_OVERLAY, true );
    pwin_[idx]->setOverlayWin( overlay );

with PFWIN_SHARE_OVERLAY_WIN share mode, so my setShare becomes :
pwin_[idx]->setShare( PFWIN_SHARE_OVERLAY_WIN | PFWIN_SHARE_WSWINDOW |
                      PFWIN_SHARE_TYPE |
                      PFWIN_SHARE_MODE |
                      PFWIN_SHARE_GL_OBJS
                      PFWIN_SHARE_FBCONFIG | PFWIN_SHARE_GL_CXT | PFWIN_SHARE_STATE );

And I obtain an X error :
X Error of failed request: BadValue (integer parameter out of range for
operation)
  Major opcode of failed request: 86 (X_AllocColorCells)
  Value in failed request: 0x0
  Serial number of failed request: 47
  Current serial number in output stream: 47

This error occurs because of sharing modes :
PFWIN_SHARE_FBCONFIG, PFWIN_SHARE_GL_CXT & PFWIN_SHARE_STATE.

Does it means that when setting an overlay window on a pfPipeWindow,
this
overlay window is automatically put in the pfPipeWindow share group ?
That could explain the X error since the pfPipeWindow and the overlay
window have different graphic context.
That important for us to share graphic context and states between the
pfPipeWindows but we also need an overlay. What can we do ? Any Idea ?

Note: Working with Performer 2.4 Beta.
Thanks in advance for your help

Isabelle.

-- 
Isabelle Lafon                 Discreet Logic
Tel: (514) 954-7157            10 Duke
Fax: (514) 393-0110            Montreal (Quebec)
isabelle++at++discreet.com          Canada, H3C 2L7


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Nov 07 2000 - 04:47:38 PST

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