From: Don Burns (don_burns++at++peru.engr.sgi.com)
Date: 08/15/2000 12:38:17
On Aug 15, 1:16pm, 'Bwana' Bob Buckley wrote:
> Subject: pfVideoChannel debug
>
>
> I'm running single process using user-defined X display, window, visual
> info, and OpenGL context with Debug pfNotify. When opening a
> pfPipeWindow via config function I get the following error when
> gathering stats:
>
> PF Debug/Resource: pfVideoChannel::pr_updateChanInto() - video channel
> Id still unknown - can't get info.
>
> If no callback is set, I open the pipe window inline and no debug is
> generated. The only difference is where the open call is placed. I see
> that this question was raised in '98 with no responses. I've been trying
> to put together a standalone example with no success. Can anyone shed
> some light on the debug message?
>
Perhaps a quick code snipet would help. For example,
I create the pfPipeWindow thus:
pfPipeWindow *pw = new pfPipeWindow( pfGetPipe(0));
pw->setWinType( PFPWIN_TYPE_X );
pw->setFullScreen();
pw->setConfigFunc( pwConfig );
pw->config();
My config func looks like this:
static void pwConfig( pfPipeWindow *pw )
{
pw->open();
}
> Also, does anyone know how to run with user-defined X resources within
> multiprocessed performer? I'm not sure how to allow the draw process to
> see the X Display, window, context, and visual info that need to be
> user-defined via the app. About the closest solution is from a message
> by Don Burns on 8/8/2000 addressing fltk via shared memory. Haven't
> actually tried it yet.
>
Translation:
typedef Display *pfWSConnection;
typedef XVisualInfo pfFBConfig;
typedef Window pfWSWindow;
typedef Drawable pfWSDrawable;
typedef GLXContext pfGLContext;
All of these made in the DRAW process (so there is gfx context). Given a
pfPipewindow *pw:
Display *dpy = pfGetCurWSConnection();
Window win = pw->getWSWindow();
Drawable dbl = pw->getWSDrawable();
GLXContext ctx = pw->getGLCxt();
XVisualInfo *vinfo = pw->getFBConfig(void);
Hope this helps,
-don
> Thanks.
>
> [ Attachment (text/x-vcard): "Bob.Buckley-Contractor.vcf" 208 bytes
> Character set: us-ascii
> Card for 'Bwana' Bob Buckley ]
>-- End of excerpt from 'Bwana' Bob Buckley
This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 12:39:10 PDT