Don Burns (don_burns++at++peru.csd.sgi.com)
Tue, 22 Dec 1998 13:01:35 -0800 (PST)
Charles,
What you need is to choose the right visual for your pfPipeWindow (pfPipeWindow
refers to these as FBConfigs). You may do so, before calling
pipeWindow->config(), by calling any of
pfPipeWindow::setFBConfig( XVisualInfo *)
pfPipeWindow::setFBConfigAttrs( int *)
or
pfPipeWindow::setFBConfigId( int id)
You may query what visuals are available on your current system/configuration
by the command "glxinfo", which will list each visual by id. If you pick the
visual you want you may pass it's id into setFBConfigId() - Not recommended
because it is not portable.
Or, you may call glXChooseVisual(3G), passing it a list of attributes as
specified in the man page. glXChooseVisual() will return an XVisualInfo *,
which you may pass to setFBConfig().
Or you may pass a similar list of attributes (defined in
/usr/include/Performer/pr.h as PFFB_ tokens) as passed to glXChooseVisual to
setFBConfigAttrs().
For example, in your case you might do something like :
pfPipeWindow *pw = new pfPipeWindow( pfGetPipe( 0 ) );
int visualAttributes[] = {
PFFB_RGBA,
PFFB_RED_SIZE, 12,
PFFB_GREEN_SIZE, 12,
PFFB_BLUE_SIZE, 12,
PFFB_ALPHA_SIZE, 0,
PFFB_DEPTH_SIZE, 24,
PFFB_STENCIL_SIZE, 8,
0,
};
pw->setFBConfigAttrs( visualAttributes );
-don
This archive was generated by hypermail 2.0b2 on Tue Dec 22 1998 - 13:02:44 PST