Combining Performer and Qt-Toolkit on Linux...

New Message Reply Date view Thread view Subject view Author view

From: Oliver Albrecht MT64 (Oliver.Albrecht++at++m.dasa.de)
Date: 02/19/2001 00:20:02


Hi to all!

I am currently trying to combine Performer 2.4 with Qt-2.2.3 on a SuSE
Linux 7.0, but
it just drives me mad. All I am trying is to get Performer to render
into a given Qt-Widget.
In Qt there is a special GL-Widget, which delivers its GLXontext and a
XVisualInfo*. I can also get
the X11-WinID from this Widget. Now I try the following...

In my PerformerGLWidget

        GLXContext glx_context_ = context()->cx;
        pfWSConnection display_ = QPaintDevice::x11AppDisplay();
          pfWSWindow x_window_ = QGLWidget::winId();
          XVisualInfo* visual_ = context()->vi; // I needed to patch the
include file to access this member var!
        
and Later

          pipe_win_ = new pfPipeWindow( pipe_ );
          pipe_win_->setWinType( PFPWIN_TYPE_X );

          pipe_win_->setMode( PFWIN_AUTO_RESIZE, 1 );

        if( glx_context_ != NULL )
                  pipe_win_->setGLCxt( glx_context_ );

        if( x_window_ != 0 )
                  pipe_win_->setWSWindow( display_, x_window_ );
          
        if( x_window_ != 0 )
                  pipe_win_->setWSDrawable( display_, x_window_ );
                          
        pipe_win_->setFBConfig( visual_info_ );

          pipe_win_->open();

However Performer exists with:

PF Warning/Resource: pfWindow::select() could not make current
on window.Trying default.

Hmmm... This looks like setting the


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Feb 19 2001 - 00:24:07 PST

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